rails-latex 1.0.3 → 1.0.4
Sign up to get free protection for your applications and to get access to all the features.
- data/README.rdoc +11 -2
- data/lib/erb_latex.rb +1 -1
- data/lib/latex_to_pdf.rb +25 -6
- data/test/test_latex_to_pdf.rb +1 -1
- data/test/tmp/out.pdf +0 -0
- data/test/tmp/tmp/rails-latex/4963-4557295006018958261/input.tex +5 -0
- data/test/tmp/tmp/rails-latex/4982--3721012929416963247/input.aux +1 -0
- data/test/tmp/tmp/rails-latex/4982--3721012929416963247/input.log +69 -0
- data/test/tmp/tmp/rails-latex/4982--3721012929416963247/input.pdf +0 -0
- data/test/tmp/tmp/rails-latex/4982--3721012929416963247/input.tex +5 -0
- data/test/tmp/tmp/rails-latex/5267--740595184139431260/input.aux +1 -0
- data/test/tmp/tmp/rails-latex/5267--740595184139431260/input.log +69 -0
- data/test/tmp/tmp/rails-latex/5267--740595184139431260/input.pdf +0 -0
- data/test/tmp/tmp/rails-latex/5267--740595184139431260/input.tex +5 -0
- data/test/tmp/tmp/rails-latex/5710--3333891790396452158/input.aux +1 -0
- data/test/tmp/tmp/rails-latex/5710--3333891790396452158/input.log +69 -0
- data/test/tmp/tmp/rails-latex/5710--3333891790396452158/input.pdf +0 -0
- data/test/tmp/tmp/rails-latex/5710--3333891790396452158/input.tex +5 -0
- data/test/tmp/tmp/rails-latex/5773--2586044705503359975/input.aux +1 -0
- data/test/tmp/tmp/rails-latex/5773--2586044705503359975/input.log +69 -0
- data/test/tmp/tmp/rails-latex/5773--2586044705503359975/input.pdf +0 -0
- data/test/tmp/tmp/rails-latex/5773--2586044705503359975/input.tex +5 -0
- data/test/tmp/tmp/rails-latex/5808--4120984604975193544/input.tex +5 -0
- data/test/tmp/tmp/rails-latex/5853--3414610511282325977/input.aux +1 -0
- data/test/tmp/tmp/rails-latex/5853--3414610511282325977/input.log +69 -0
- data/test/tmp/tmp/rails-latex/5853--3414610511282325977/input.pdf +0 -0
- data/test/tmp/tmp/rails-latex/5853--3414610511282325977/input.tex +5 -0
- data/test/tmp/tmp/rails-latex/5890--1546682180516809420/input.aux +1 -0
- data/test/tmp/tmp/rails-latex/5890--1546682180516809420/input.log +69 -0
- data/test/tmp/tmp/rails-latex/5890--1546682180516809420/input.pdf +0 -0
- data/test/tmp/tmp/rails-latex/5890--1546682180516809420/input.tex +5 -0
- data/test/tmp/tmp/rails-latex/input.log +10 -13
- metadata +31 -40
- data/examples/rails-latex-demo/app/controllers/application_controller.rb +0 -3
- data/examples/rails-latex-demo/app/controllers/latex_example_controller.rb +0 -5
- data/examples/rails-latex-demo/config/application.rb +0 -47
- data/examples/rails-latex-demo/config/boot.rb +0 -13
- data/examples/rails-latex-demo/config/environment.rb +0 -5
- data/examples/rails-latex-demo/config/environments/development.rb +0 -26
- data/examples/rails-latex-demo/config/environments/production.rb +0 -49
- data/examples/rails-latex-demo/config/environments/test.rb +0 -35
- data/examples/rails-latex-demo/config/initializers/backtrace_silencers.rb +0 -7
- data/examples/rails-latex-demo/config/initializers/inflections.rb +0 -10
- data/examples/rails-latex-demo/config/initializers/mime_types.rb +0 -6
- data/examples/rails-latex-demo/config/initializers/secret_token.rb +0 -7
- data/examples/rails-latex-demo/config/initializers/session_store.rb +0 -8
- data/examples/rails-latex-demo/config/routes.rb +0 -5
- data/examples/rails-latex-demo/test/functional/latex_example_controller_test.rb +0 -9
- data/examples/rails-latex-demo/test/unit/helpers/latex_example_helper_test.rb +0 -4
data/README.rdoc
CHANGED
@@ -42,10 +42,19 @@ should be of type .pdf.erb .
|
|
42
42
|
|
43
43
|
If a LaTeX package requires two parses then add the following to the .pdf.erbtex file:
|
44
44
|
|
45
|
-
<% @
|
45
|
+
<% @latex_config={:parse_twice => true} %>
|
46
|
+
|
47
|
+
You can override the defaults like so:
|
48
|
+
|
49
|
+
LatexToPdf.config.merge! :command => 'xetex', :arguments => ['-etex'], :parse_twice => true
|
50
|
+
|
51
|
+
The defaults are:
|
52
|
+
command: 'pdflatex'
|
53
|
+
arguments: []
|
54
|
+
parse_twice: false
|
46
55
|
|
47
56
|
The last log file is moved to tmp/rails-latex/input.log . If the PDF is no produced the build directory is not removed;
|
48
|
-
|
57
|
+
an archive script should be written to occasionally clean up the tmp/rails-latex directory.
|
49
58
|
|
50
59
|
See the rails application under examples/rails-latex-demo/ for a working example.
|
51
60
|
|
data/lib/erb_latex.rb
CHANGED
@@ -8,7 +8,7 @@ module ActionView # :nodoc: all
|
|
8
8
|
def compile(template)
|
9
9
|
erb = "<% __in_erb_template=true %>#{template.source}"
|
10
10
|
out=self.class.erb_implementation.new(erb, :trim=>(self.class.erb_trim_mode == "-")).src
|
11
|
-
out + ";LatexToPdf.generate_pdf(@output_buffer.to_s,@latex_parse_twice)"
|
11
|
+
out + ";LatexToPdf.generate_pdf(@output_buffer.to_s,@latex_config||{},@latex_parse_twice)"
|
12
12
|
end
|
13
13
|
end
|
14
14
|
end
|
data/lib/latex_to_pdf.rb
CHANGED
@@ -1,17 +1,37 @@
|
|
1
1
|
class LatexToPdf
|
2
|
+
def self.config
|
3
|
+
@config||={:command => 'pdflatex', :arguments => [], :parse_twice => false}
|
4
|
+
end
|
5
|
+
|
2
6
|
# Converts a string of LaTeX +code+ into a binary string of PDF.
|
3
7
|
#
|
4
8
|
# pdflatex is used to convert the file and creates the directory +#{Rails.root}/tmp/rails-latex+ to store intermediate
|
5
9
|
# files.
|
6
|
-
|
10
|
+
#
|
11
|
+
# The config argument defaults to ERBLatex.config but can be overridden using @latex_config.
|
12
|
+
#
|
13
|
+
# The parse_twice argument is deprecated in favor of using config[:parse_twice] instead.
|
14
|
+
def self.generate_pdf(code,config,parse_twice=nil)
|
15
|
+
parse_twice=config[:parse_twice] if parse_twice.nil?
|
16
|
+
config=self.config.merge(config)
|
7
17
|
dir=File.join(Rails.root,'tmp','rails-latex',"#{Process.pid}-#{Thread.current.hash}")
|
8
18
|
input=File.join(dir,'input.tex')
|
9
19
|
FileUtils.mkdir_p(dir)
|
10
20
|
File.open(input,'wb') {|io| io.write(code) }
|
11
|
-
(
|
12
|
-
|
13
|
-
|
14
|
-
|
21
|
+
Process.waitpid(fork do
|
22
|
+
begin
|
23
|
+
Dir.chdir dir
|
24
|
+
args=[*config[:arguments],'-shell-escape','-interaction','batchmode',"input.tex"]
|
25
|
+
system config[:command],'-draftmode',*args if parse_twice
|
26
|
+
exec config[:command],*args
|
27
|
+
rescue
|
28
|
+
File.open("input.log",'a') {|io|
|
29
|
+
io.write("#{$!.message}:\n#{$!.backtrace.join("\n")}\n")
|
30
|
+
}
|
31
|
+
ensure
|
32
|
+
Process.exit! 1
|
33
|
+
end
|
34
|
+
end)
|
15
35
|
FileUtils.mv(input.sub(/\.tex$/,'.log'),File.join(dir,'..','input.log'))
|
16
36
|
if File.exist?(pdf_file=input.sub(/\.tex$/,'.pdf'))
|
17
37
|
result=File.read(pdf_file)
|
@@ -60,5 +80,4 @@ class LatexToPdf
|
|
60
80
|
|
61
81
|
@latex_escaper.latex_esc(text.to_s).html_safe
|
62
82
|
end
|
63
|
-
|
64
83
|
end
|
data/test/test_latex_to_pdf.rb
CHANGED
@@ -15,7 +15,7 @@ class TestLatexToPdf < Test::Unit::TestCase
|
|
15
15
|
def test_generate_pdf
|
16
16
|
FileUtils.mkdir_p(TMP_DIR)
|
17
17
|
File.open(pdf_file=File.join(TMP_DIR,'out.pdf'),'wb') do |wio|
|
18
|
-
wio.write(LatexToPdf.generate_pdf(IO.read(File.expand_path('../test_doc.tex',__FILE__))))
|
18
|
+
wio.write(LatexToPdf.generate_pdf(IO.read(File.expand_path('../test_doc.tex',__FILE__)),{}))
|
19
19
|
end
|
20
20
|
assert_equal "hello world\n\n1\n\n\f", `pdftotext #{pdf_file} -`
|
21
21
|
|
data/test/tmp/out.pdf
CHANGED
Binary file
|
@@ -0,0 +1 @@
|
|
1
|
+
\relax
|
@@ -0,0 +1,69 @@
|
|
1
|
+
This is pdfTeX, Version 3.1415926-1.40.10 (TeX Live 2009/Debian) (format=pdflatex 2011.5.9) 2 JUL 2011 11:40
|
2
|
+
entering extended mode
|
3
|
+
\write18 enabled.
|
4
|
+
%&-line parsing enabled.
|
5
|
+
**/home/geoffj/src/rails-latex/test/tmp/tmp/rails-latex/4982--37210129294169632
|
6
|
+
47/input.tex
|
7
|
+
|
8
|
+
(/home/geoffj/src/rails-latex/test/tmp/tmp/rails-latex/4982--372101292941696324
|
9
|
+
7/input.tex
|
10
|
+
LaTeX2e <2009/09/24>
|
11
|
+
Babel <v3.8l> and hyphenation patterns for english, usenglishmax, dumylang, noh
|
12
|
+
yphenation, farsi, arabic, croatian, bulgarian, ukrainian, russian, czech, slov
|
13
|
+
ak, danish, dutch, finnish, french, basque, ngerman, german, german-x-2009-06-1
|
14
|
+
9, ngerman-x-2009-06-19, ibycus, monogreek, greek, ancientgreek, hungarian, san
|
15
|
+
skrit, italian, latin, latvian, lithuanian, mongolian2a, mongolian, bokmal, nyn
|
16
|
+
orsk, romanian, irish, coptic, serbian, turkish, welsh, esperanto, uppersorbian
|
17
|
+
, estonian, indonesian, interlingua, icelandic, kurmanji, slovenian, polish, po
|
18
|
+
rtuguese, spanish, galician, catalan, swedish, ukenglish, pinyin, loaded.
|
19
|
+
(/usr/share/texmf-texlive/tex/latex/base/article.cls
|
20
|
+
Document Class: article 2007/10/19 v1.4h Standard LaTeX document class
|
21
|
+
(/usr/share/texmf-texlive/tex/latex/base/size10.clo
|
22
|
+
File: size10.clo 2007/10/19 v1.4h Standard LaTeX file (size option)
|
23
|
+
)
|
24
|
+
\c@part=\count79
|
25
|
+
\c@section=\count80
|
26
|
+
\c@subsection=\count81
|
27
|
+
\c@subsubsection=\count82
|
28
|
+
\c@paragraph=\count83
|
29
|
+
\c@subparagraph=\count84
|
30
|
+
\c@figure=\count85
|
31
|
+
\c@table=\count86
|
32
|
+
\abovecaptionskip=\skip41
|
33
|
+
\belowcaptionskip=\skip42
|
34
|
+
\bibindent=\dimen102
|
35
|
+
)
|
36
|
+
No file input.aux.
|
37
|
+
\openout1 = `input.aux'.
|
38
|
+
|
39
|
+
LaTeX Font Info: Checking defaults for OML/cmm/m/it on input line 3.
|
40
|
+
LaTeX Font Info: ... okay on input line 3.
|
41
|
+
LaTeX Font Info: Checking defaults for T1/cmr/m/n on input line 3.
|
42
|
+
LaTeX Font Info: ... okay on input line 3.
|
43
|
+
LaTeX Font Info: Checking defaults for OT1/cmr/m/n on input line 3.
|
44
|
+
LaTeX Font Info: ... okay on input line 3.
|
45
|
+
LaTeX Font Info: Checking defaults for OMS/cmsy/m/n on input line 3.
|
46
|
+
LaTeX Font Info: ... okay on input line 3.
|
47
|
+
LaTeX Font Info: Checking defaults for OMX/cmex/m/n on input line 3.
|
48
|
+
LaTeX Font Info: ... okay on input line 3.
|
49
|
+
LaTeX Font Info: Checking defaults for U/cmr/m/n on input line 3.
|
50
|
+
LaTeX Font Info: ... okay on input line 3.
|
51
|
+
[1
|
52
|
+
|
53
|
+
{/var/lib/texmf/fonts/map/pdftex/updmap/pdftex.map}] (./input.aux) )
|
54
|
+
Here is how much of TeX's memory you used:
|
55
|
+
199 strings out of 493848
|
56
|
+
2329 string characters out of 1152824
|
57
|
+
47808 words of memory out of 3000000
|
58
|
+
3563 multiletter control sequences out of 15000+50000
|
59
|
+
3640 words of font info for 14 fonts, out of 3000000 for 9000
|
60
|
+
714 hyphenation exceptions out of 8191
|
61
|
+
23i,4n,17p,216b,107s stack positions out of 5000i,500n,10000p,200000b,50000s
|
62
|
+
</usr/share
|
63
|
+
/texmf-texlive/fonts/type1/public/amsfonts/cm/cmr10.pfb>
|
64
|
+
Output written on input.pdf (1 page, 11949 bytes).
|
65
|
+
PDF statistics:
|
66
|
+
10 PDF objects out of 1000 (max. 8388607)
|
67
|
+
0 named destinations out of 1000 (max. 500000)
|
68
|
+
1 words of extra memory for PDF output out of 10000 (max. 10000000)
|
69
|
+
|
Binary file
|
@@ -0,0 +1 @@
|
|
1
|
+
\relax
|
@@ -0,0 +1,69 @@
|
|
1
|
+
This is pdfTeX, Version 3.1415926-1.40.10 (TeX Live 2009/Debian) (format=pdflatex 2011.5.9) 2 JUL 2011 11:51
|
2
|
+
entering extended mode
|
3
|
+
\write18 enabled.
|
4
|
+
%&-line parsing enabled.
|
5
|
+
**/home/geoffj/src/rails-latex/test/tmp/tmp/rails-latex/5267--74059518413943126
|
6
|
+
0/input.tex
|
7
|
+
|
8
|
+
(/home/geoffj/src/rails-latex/test/tmp/tmp/rails-latex/5267--740595184139431260
|
9
|
+
/input.tex
|
10
|
+
LaTeX2e <2009/09/24>
|
11
|
+
Babel <v3.8l> and hyphenation patterns for english, usenglishmax, dumylang, noh
|
12
|
+
yphenation, farsi, arabic, croatian, bulgarian, ukrainian, russian, czech, slov
|
13
|
+
ak, danish, dutch, finnish, french, basque, ngerman, german, german-x-2009-06-1
|
14
|
+
9, ngerman-x-2009-06-19, ibycus, monogreek, greek, ancientgreek, hungarian, san
|
15
|
+
skrit, italian, latin, latvian, lithuanian, mongolian2a, mongolian, bokmal, nyn
|
16
|
+
orsk, romanian, irish, coptic, serbian, turkish, welsh, esperanto, uppersorbian
|
17
|
+
, estonian, indonesian, interlingua, icelandic, kurmanji, slovenian, polish, po
|
18
|
+
rtuguese, spanish, galician, catalan, swedish, ukenglish, pinyin, loaded.
|
19
|
+
(/usr/share/texmf-texlive/tex/latex/base/article.cls
|
20
|
+
Document Class: article 2007/10/19 v1.4h Standard LaTeX document class
|
21
|
+
(/usr/share/texmf-texlive/tex/latex/base/size10.clo
|
22
|
+
File: size10.clo 2007/10/19 v1.4h Standard LaTeX file (size option)
|
23
|
+
)
|
24
|
+
\c@part=\count79
|
25
|
+
\c@section=\count80
|
26
|
+
\c@subsection=\count81
|
27
|
+
\c@subsubsection=\count82
|
28
|
+
\c@paragraph=\count83
|
29
|
+
\c@subparagraph=\count84
|
30
|
+
\c@figure=\count85
|
31
|
+
\c@table=\count86
|
32
|
+
\abovecaptionskip=\skip41
|
33
|
+
\belowcaptionskip=\skip42
|
34
|
+
\bibindent=\dimen102
|
35
|
+
)
|
36
|
+
No file input.aux.
|
37
|
+
\openout1 = `input.aux'.
|
38
|
+
|
39
|
+
LaTeX Font Info: Checking defaults for OML/cmm/m/it on input line 3.
|
40
|
+
LaTeX Font Info: ... okay on input line 3.
|
41
|
+
LaTeX Font Info: Checking defaults for T1/cmr/m/n on input line 3.
|
42
|
+
LaTeX Font Info: ... okay on input line 3.
|
43
|
+
LaTeX Font Info: Checking defaults for OT1/cmr/m/n on input line 3.
|
44
|
+
LaTeX Font Info: ... okay on input line 3.
|
45
|
+
LaTeX Font Info: Checking defaults for OMS/cmsy/m/n on input line 3.
|
46
|
+
LaTeX Font Info: ... okay on input line 3.
|
47
|
+
LaTeX Font Info: Checking defaults for OMX/cmex/m/n on input line 3.
|
48
|
+
LaTeX Font Info: ... okay on input line 3.
|
49
|
+
LaTeX Font Info: Checking defaults for U/cmr/m/n on input line 3.
|
50
|
+
LaTeX Font Info: ... okay on input line 3.
|
51
|
+
[1
|
52
|
+
|
53
|
+
{/var/lib/texmf/fonts/map/pdftex/updmap/pdftex.map}] (./input.aux) )
|
54
|
+
Here is how much of TeX's memory you used:
|
55
|
+
199 strings out of 493848
|
56
|
+
2326 string characters out of 1152824
|
57
|
+
47808 words of memory out of 3000000
|
58
|
+
3563 multiletter control sequences out of 15000+50000
|
59
|
+
3640 words of font info for 14 fonts, out of 3000000 for 9000
|
60
|
+
714 hyphenation exceptions out of 8191
|
61
|
+
23i,4n,17p,215b,107s stack positions out of 5000i,500n,10000p,200000b,50000s
|
62
|
+
</usr/share
|
63
|
+
/texmf-texlive/fonts/type1/public/amsfonts/cm/cmr10.pfb>
|
64
|
+
Output written on input.pdf (1 page, 11949 bytes).
|
65
|
+
PDF statistics:
|
66
|
+
10 PDF objects out of 1000 (max. 8388607)
|
67
|
+
0 named destinations out of 1000 (max. 500000)
|
68
|
+
1 words of extra memory for PDF output out of 10000 (max. 10000000)
|
69
|
+
|
Binary file
|
@@ -0,0 +1 @@
|
|
1
|
+
\relax
|
@@ -0,0 +1,69 @@
|
|
1
|
+
This is pdfTeX, Version 3.1415926-1.40.10 (TeX Live 2009/Debian) (format=pdflatex 2011.5.9) 2 JUL 2011 12:02
|
2
|
+
entering extended mode
|
3
|
+
\write18 enabled.
|
4
|
+
%&-line parsing enabled.
|
5
|
+
**/home/geoffj/src/rails-latex/test/tmp/tmp/rails-latex/5710--33338917903964521
|
6
|
+
58/input.tex
|
7
|
+
|
8
|
+
(/home/geoffj/src/rails-latex/test/tmp/tmp/rails-latex/5710--333389179039645215
|
9
|
+
8/input.tex
|
10
|
+
LaTeX2e <2009/09/24>
|
11
|
+
Babel <v3.8l> and hyphenation patterns for english, usenglishmax, dumylang, noh
|
12
|
+
yphenation, farsi, arabic, croatian, bulgarian, ukrainian, russian, czech, slov
|
13
|
+
ak, danish, dutch, finnish, french, basque, ngerman, german, german-x-2009-06-1
|
14
|
+
9, ngerman-x-2009-06-19, ibycus, monogreek, greek, ancientgreek, hungarian, san
|
15
|
+
skrit, italian, latin, latvian, lithuanian, mongolian2a, mongolian, bokmal, nyn
|
16
|
+
orsk, romanian, irish, coptic, serbian, turkish, welsh, esperanto, uppersorbian
|
17
|
+
, estonian, indonesian, interlingua, icelandic, kurmanji, slovenian, polish, po
|
18
|
+
rtuguese, spanish, galician, catalan, swedish, ukenglish, pinyin, loaded.
|
19
|
+
(/usr/share/texmf-texlive/tex/latex/base/article.cls
|
20
|
+
Document Class: article 2007/10/19 v1.4h Standard LaTeX document class
|
21
|
+
(/usr/share/texmf-texlive/tex/latex/base/size10.clo
|
22
|
+
File: size10.clo 2007/10/19 v1.4h Standard LaTeX file (size option)
|
23
|
+
)
|
24
|
+
\c@part=\count79
|
25
|
+
\c@section=\count80
|
26
|
+
\c@subsection=\count81
|
27
|
+
\c@subsubsection=\count82
|
28
|
+
\c@paragraph=\count83
|
29
|
+
\c@subparagraph=\count84
|
30
|
+
\c@figure=\count85
|
31
|
+
\c@table=\count86
|
32
|
+
\abovecaptionskip=\skip41
|
33
|
+
\belowcaptionskip=\skip42
|
34
|
+
\bibindent=\dimen102
|
35
|
+
)
|
36
|
+
No file input.aux.
|
37
|
+
\openout1 = `input.aux'.
|
38
|
+
|
39
|
+
LaTeX Font Info: Checking defaults for OML/cmm/m/it on input line 3.
|
40
|
+
LaTeX Font Info: ... okay on input line 3.
|
41
|
+
LaTeX Font Info: Checking defaults for T1/cmr/m/n on input line 3.
|
42
|
+
LaTeX Font Info: ... okay on input line 3.
|
43
|
+
LaTeX Font Info: Checking defaults for OT1/cmr/m/n on input line 3.
|
44
|
+
LaTeX Font Info: ... okay on input line 3.
|
45
|
+
LaTeX Font Info: Checking defaults for OMS/cmsy/m/n on input line 3.
|
46
|
+
LaTeX Font Info: ... okay on input line 3.
|
47
|
+
LaTeX Font Info: Checking defaults for OMX/cmex/m/n on input line 3.
|
48
|
+
LaTeX Font Info: ... okay on input line 3.
|
49
|
+
LaTeX Font Info: Checking defaults for U/cmr/m/n on input line 3.
|
50
|
+
LaTeX Font Info: ... okay on input line 3.
|
51
|
+
[1
|
52
|
+
|
53
|
+
{/var/lib/texmf/fonts/map/pdftex/updmap/pdftex.map}] (./input.aux) )
|
54
|
+
Here is how much of TeX's memory you used:
|
55
|
+
199 strings out of 493848
|
56
|
+
2329 string characters out of 1152824
|
57
|
+
47808 words of memory out of 3000000
|
58
|
+
3563 multiletter control sequences out of 15000+50000
|
59
|
+
3640 words of font info for 14 fonts, out of 3000000 for 9000
|
60
|
+
714 hyphenation exceptions out of 8191
|
61
|
+
23i,4n,17p,216b,107s stack positions out of 5000i,500n,10000p,200000b,50000s
|
62
|
+
</usr/share
|
63
|
+
/texmf-texlive/fonts/type1/public/amsfonts/cm/cmr10.pfb>
|
64
|
+
Output written on input.pdf (1 page, 11949 bytes).
|
65
|
+
PDF statistics:
|
66
|
+
10 PDF objects out of 1000 (max. 8388607)
|
67
|
+
0 named destinations out of 1000 (max. 500000)
|
68
|
+
1 words of extra memory for PDF output out of 10000 (max. 10000000)
|
69
|
+
|
Binary file
|
@@ -0,0 +1 @@
|
|
1
|
+
\relax
|
@@ -0,0 +1,69 @@
|
|
1
|
+
This is pdfTeX, Version 3.1415926-1.40.10 (TeX Live 2009/Debian) (format=pdflatex 2011.5.9) 2 JUL 2011 12:03
|
2
|
+
entering extended mode
|
3
|
+
\write18 enabled.
|
4
|
+
%&-line parsing enabled.
|
5
|
+
**/home/geoffj/src/rails-latex/test/tmp/tmp/rails-latex/5773--25860447055033599
|
6
|
+
75/input.tex
|
7
|
+
|
8
|
+
(/home/geoffj/src/rails-latex/test/tmp/tmp/rails-latex/5773--258604470550335997
|
9
|
+
5/input.tex
|
10
|
+
LaTeX2e <2009/09/24>
|
11
|
+
Babel <v3.8l> and hyphenation patterns for english, usenglishmax, dumylang, noh
|
12
|
+
yphenation, farsi, arabic, croatian, bulgarian, ukrainian, russian, czech, slov
|
13
|
+
ak, danish, dutch, finnish, french, basque, ngerman, german, german-x-2009-06-1
|
14
|
+
9, ngerman-x-2009-06-19, ibycus, monogreek, greek, ancientgreek, hungarian, san
|
15
|
+
skrit, italian, latin, latvian, lithuanian, mongolian2a, mongolian, bokmal, nyn
|
16
|
+
orsk, romanian, irish, coptic, serbian, turkish, welsh, esperanto, uppersorbian
|
17
|
+
, estonian, indonesian, interlingua, icelandic, kurmanji, slovenian, polish, po
|
18
|
+
rtuguese, spanish, galician, catalan, swedish, ukenglish, pinyin, loaded.
|
19
|
+
(/usr/share/texmf-texlive/tex/latex/base/article.cls
|
20
|
+
Document Class: article 2007/10/19 v1.4h Standard LaTeX document class
|
21
|
+
(/usr/share/texmf-texlive/tex/latex/base/size10.clo
|
22
|
+
File: size10.clo 2007/10/19 v1.4h Standard LaTeX file (size option)
|
23
|
+
)
|
24
|
+
\c@part=\count79
|
25
|
+
\c@section=\count80
|
26
|
+
\c@subsection=\count81
|
27
|
+
\c@subsubsection=\count82
|
28
|
+
\c@paragraph=\count83
|
29
|
+
\c@subparagraph=\count84
|
30
|
+
\c@figure=\count85
|
31
|
+
\c@table=\count86
|
32
|
+
\abovecaptionskip=\skip41
|
33
|
+
\belowcaptionskip=\skip42
|
34
|
+
\bibindent=\dimen102
|
35
|
+
)
|
36
|
+
No file input.aux.
|
37
|
+
\openout1 = `input.aux'.
|
38
|
+
|
39
|
+
LaTeX Font Info: Checking defaults for OML/cmm/m/it on input line 3.
|
40
|
+
LaTeX Font Info: ... okay on input line 3.
|
41
|
+
LaTeX Font Info: Checking defaults for T1/cmr/m/n on input line 3.
|
42
|
+
LaTeX Font Info: ... okay on input line 3.
|
43
|
+
LaTeX Font Info: Checking defaults for OT1/cmr/m/n on input line 3.
|
44
|
+
LaTeX Font Info: ... okay on input line 3.
|
45
|
+
LaTeX Font Info: Checking defaults for OMS/cmsy/m/n on input line 3.
|
46
|
+
LaTeX Font Info: ... okay on input line 3.
|
47
|
+
LaTeX Font Info: Checking defaults for OMX/cmex/m/n on input line 3.
|
48
|
+
LaTeX Font Info: ... okay on input line 3.
|
49
|
+
LaTeX Font Info: Checking defaults for U/cmr/m/n on input line 3.
|
50
|
+
LaTeX Font Info: ... okay on input line 3.
|
51
|
+
[1
|
52
|
+
|
53
|
+
{/var/lib/texmf/fonts/map/pdftex/updmap/pdftex.map}] (./input.aux) )
|
54
|
+
Here is how much of TeX's memory you used:
|
55
|
+
199 strings out of 493848
|
56
|
+
2329 string characters out of 1152824
|
57
|
+
47808 words of memory out of 3000000
|
58
|
+
3563 multiletter control sequences out of 15000+50000
|
59
|
+
3640 words of font info for 14 fonts, out of 3000000 for 9000
|
60
|
+
714 hyphenation exceptions out of 8191
|
61
|
+
23i,4n,17p,216b,107s stack positions out of 5000i,500n,10000p,200000b,50000s
|
62
|
+
</usr/share
|
63
|
+
/texmf-texlive/fonts/type1/public/amsfonts/cm/cmr10.pfb>
|
64
|
+
Output written on input.pdf (1 page, 11949 bytes).
|
65
|
+
PDF statistics:
|
66
|
+
10 PDF objects out of 1000 (max. 8388607)
|
67
|
+
0 named destinations out of 1000 (max. 500000)
|
68
|
+
1 words of extra memory for PDF output out of 10000 (max. 10000000)
|
69
|
+
|
Binary file
|
@@ -0,0 +1 @@
|
|
1
|
+
\relax
|
@@ -0,0 +1,69 @@
|
|
1
|
+
This is pdfTeX, Version 3.1415926-1.40.10 (TeX Live 2009/Debian) (format=pdflatex 2011.5.9) 2 JUL 2011 12:04
|
2
|
+
entering extended mode
|
3
|
+
\write18 enabled.
|
4
|
+
%&-line parsing enabled.
|
5
|
+
**/home/geoffj/src/rails-latex/test/tmp/tmp/rails-latex/5853--34146105112823259
|
6
|
+
77/input.tex
|
7
|
+
|
8
|
+
(/home/geoffj/src/rails-latex/test/tmp/tmp/rails-latex/5853--341461051128232597
|
9
|
+
7/input.tex
|
10
|
+
LaTeX2e <2009/09/24>
|
11
|
+
Babel <v3.8l> and hyphenation patterns for english, usenglishmax, dumylang, noh
|
12
|
+
yphenation, farsi, arabic, croatian, bulgarian, ukrainian, russian, czech, slov
|
13
|
+
ak, danish, dutch, finnish, french, basque, ngerman, german, german-x-2009-06-1
|
14
|
+
9, ngerman-x-2009-06-19, ibycus, monogreek, greek, ancientgreek, hungarian, san
|
15
|
+
skrit, italian, latin, latvian, lithuanian, mongolian2a, mongolian, bokmal, nyn
|
16
|
+
orsk, romanian, irish, coptic, serbian, turkish, welsh, esperanto, uppersorbian
|
17
|
+
, estonian, indonesian, interlingua, icelandic, kurmanji, slovenian, polish, po
|
18
|
+
rtuguese, spanish, galician, catalan, swedish, ukenglish, pinyin, loaded.
|
19
|
+
(/usr/share/texmf-texlive/tex/latex/base/article.cls
|
20
|
+
Document Class: article 2007/10/19 v1.4h Standard LaTeX document class
|
21
|
+
(/usr/share/texmf-texlive/tex/latex/base/size10.clo
|
22
|
+
File: size10.clo 2007/10/19 v1.4h Standard LaTeX file (size option)
|
23
|
+
)
|
24
|
+
\c@part=\count79
|
25
|
+
\c@section=\count80
|
26
|
+
\c@subsection=\count81
|
27
|
+
\c@subsubsection=\count82
|
28
|
+
\c@paragraph=\count83
|
29
|
+
\c@subparagraph=\count84
|
30
|
+
\c@figure=\count85
|
31
|
+
\c@table=\count86
|
32
|
+
\abovecaptionskip=\skip41
|
33
|
+
\belowcaptionskip=\skip42
|
34
|
+
\bibindent=\dimen102
|
35
|
+
)
|
36
|
+
No file input.aux.
|
37
|
+
\openout1 = `input.aux'.
|
38
|
+
|
39
|
+
LaTeX Font Info: Checking defaults for OML/cmm/m/it on input line 3.
|
40
|
+
LaTeX Font Info: ... okay on input line 3.
|
41
|
+
LaTeX Font Info: Checking defaults for T1/cmr/m/n on input line 3.
|
42
|
+
LaTeX Font Info: ... okay on input line 3.
|
43
|
+
LaTeX Font Info: Checking defaults for OT1/cmr/m/n on input line 3.
|
44
|
+
LaTeX Font Info: ... okay on input line 3.
|
45
|
+
LaTeX Font Info: Checking defaults for OMS/cmsy/m/n on input line 3.
|
46
|
+
LaTeX Font Info: ... okay on input line 3.
|
47
|
+
LaTeX Font Info: Checking defaults for OMX/cmex/m/n on input line 3.
|
48
|
+
LaTeX Font Info: ... okay on input line 3.
|
49
|
+
LaTeX Font Info: Checking defaults for U/cmr/m/n on input line 3.
|
50
|
+
LaTeX Font Info: ... okay on input line 3.
|
51
|
+
[1
|
52
|
+
|
53
|
+
{/var/lib/texmf/fonts/map/pdftex/updmap/pdftex.map}] (./input.aux) )
|
54
|
+
Here is how much of TeX's memory you used:
|
55
|
+
199 strings out of 493848
|
56
|
+
2329 string characters out of 1152824
|
57
|
+
47808 words of memory out of 3000000
|
58
|
+
3563 multiletter control sequences out of 15000+50000
|
59
|
+
3640 words of font info for 14 fonts, out of 3000000 for 9000
|
60
|
+
714 hyphenation exceptions out of 8191
|
61
|
+
23i,4n,17p,216b,107s stack positions out of 5000i,500n,10000p,200000b,50000s
|
62
|
+
</usr/share
|
63
|
+
/texmf-texlive/fonts/type1/public/amsfonts/cm/cmr10.pfb>
|
64
|
+
Output written on input.pdf (1 page, 11949 bytes).
|
65
|
+
PDF statistics:
|
66
|
+
10 PDF objects out of 1000 (max. 8388607)
|
67
|
+
0 named destinations out of 1000 (max. 500000)
|
68
|
+
1 words of extra memory for PDF output out of 10000 (max. 10000000)
|
69
|
+
|
Binary file
|
@@ -0,0 +1 @@
|
|
1
|
+
\relax
|
@@ -0,0 +1,69 @@
|
|
1
|
+
This is pdfTeX, Version 3.1415926-1.40.10 (TeX Live 2009/Debian) (format=pdflatex 2011.5.9) 2 JUL 2011 12:05
|
2
|
+
entering extended mode
|
3
|
+
\write18 enabled.
|
4
|
+
%&-line parsing enabled.
|
5
|
+
**/home/geoffj/src/rails-latex/test/tmp/tmp/rails-latex/5890--15466821805168094
|
6
|
+
20/input.tex
|
7
|
+
|
8
|
+
(/home/geoffj/src/rails-latex/test/tmp/tmp/rails-latex/5890--154668218051680942
|
9
|
+
0/input.tex
|
10
|
+
LaTeX2e <2009/09/24>
|
11
|
+
Babel <v3.8l> and hyphenation patterns for english, usenglishmax, dumylang, noh
|
12
|
+
yphenation, farsi, arabic, croatian, bulgarian, ukrainian, russian, czech, slov
|
13
|
+
ak, danish, dutch, finnish, french, basque, ngerman, german, german-x-2009-06-1
|
14
|
+
9, ngerman-x-2009-06-19, ibycus, monogreek, greek, ancientgreek, hungarian, san
|
15
|
+
skrit, italian, latin, latvian, lithuanian, mongolian2a, mongolian, bokmal, nyn
|
16
|
+
orsk, romanian, irish, coptic, serbian, turkish, welsh, esperanto, uppersorbian
|
17
|
+
, estonian, indonesian, interlingua, icelandic, kurmanji, slovenian, polish, po
|
18
|
+
rtuguese, spanish, galician, catalan, swedish, ukenglish, pinyin, loaded.
|
19
|
+
(/usr/share/texmf-texlive/tex/latex/base/article.cls
|
20
|
+
Document Class: article 2007/10/19 v1.4h Standard LaTeX document class
|
21
|
+
(/usr/share/texmf-texlive/tex/latex/base/size10.clo
|
22
|
+
File: size10.clo 2007/10/19 v1.4h Standard LaTeX file (size option)
|
23
|
+
)
|
24
|
+
\c@part=\count79
|
25
|
+
\c@section=\count80
|
26
|
+
\c@subsection=\count81
|
27
|
+
\c@subsubsection=\count82
|
28
|
+
\c@paragraph=\count83
|
29
|
+
\c@subparagraph=\count84
|
30
|
+
\c@figure=\count85
|
31
|
+
\c@table=\count86
|
32
|
+
\abovecaptionskip=\skip41
|
33
|
+
\belowcaptionskip=\skip42
|
34
|
+
\bibindent=\dimen102
|
35
|
+
)
|
36
|
+
No file input.aux.
|
37
|
+
\openout1 = `input.aux'.
|
38
|
+
|
39
|
+
LaTeX Font Info: Checking defaults for OML/cmm/m/it on input line 3.
|
40
|
+
LaTeX Font Info: ... okay on input line 3.
|
41
|
+
LaTeX Font Info: Checking defaults for T1/cmr/m/n on input line 3.
|
42
|
+
LaTeX Font Info: ... okay on input line 3.
|
43
|
+
LaTeX Font Info: Checking defaults for OT1/cmr/m/n on input line 3.
|
44
|
+
LaTeX Font Info: ... okay on input line 3.
|
45
|
+
LaTeX Font Info: Checking defaults for OMS/cmsy/m/n on input line 3.
|
46
|
+
LaTeX Font Info: ... okay on input line 3.
|
47
|
+
LaTeX Font Info: Checking defaults for OMX/cmex/m/n on input line 3.
|
48
|
+
LaTeX Font Info: ... okay on input line 3.
|
49
|
+
LaTeX Font Info: Checking defaults for U/cmr/m/n on input line 3.
|
50
|
+
LaTeX Font Info: ... okay on input line 3.
|
51
|
+
[1
|
52
|
+
|
53
|
+
{/var/lib/texmf/fonts/map/pdftex/updmap/pdftex.map}] (./input.aux) )
|
54
|
+
Here is how much of TeX's memory you used:
|
55
|
+
199 strings out of 493848
|
56
|
+
2329 string characters out of 1152824
|
57
|
+
47808 words of memory out of 3000000
|
58
|
+
3563 multiletter control sequences out of 15000+50000
|
59
|
+
3640 words of font info for 14 fonts, out of 3000000 for 9000
|
60
|
+
714 hyphenation exceptions out of 8191
|
61
|
+
23i,4n,17p,216b,107s stack positions out of 5000i,500n,10000p,200000b,50000s
|
62
|
+
</usr/share
|
63
|
+
/texmf-texlive/fonts/type1/public/amsfonts/cm/cmr10.pfb>
|
64
|
+
Output written on input.pdf (1 page, 11949 bytes).
|
65
|
+
PDF statistics:
|
66
|
+
10 PDF objects out of 1000 (max. 8388607)
|
67
|
+
0 named destinations out of 1000 (max. 500000)
|
68
|
+
1 words of extra memory for PDF output out of 10000 (max. 10000000)
|
69
|
+
|
Binary file
|
@@ -1,11 +1,11 @@
|
|
1
|
-
This is pdfTeX, Version 3.1415926-1.40.10 (TeX Live 2009/Debian) (format=pdflatex
|
1
|
+
This is pdfTeX, Version 3.1415926-1.40.10 (TeX Live 2009/Debian) (format=pdflatex 2011.5.9) 2 JUL 2011 12:06
|
2
2
|
entering extended mode
|
3
|
-
|
3
|
+
\write18 enabled.
|
4
4
|
%&-line parsing enabled.
|
5
|
-
**/home/geoffj/src/rails-latex/test/tmp/tmp/rails-latex/
|
6
|
-
|
5
|
+
**/home/geoffj/src/rails-latex/test/tmp/tmp/rails-latex/5926-337422986344338362
|
6
|
+
4/input.tex
|
7
7
|
|
8
|
-
(/home/geoffj/src/rails-latex/test/tmp/tmp/rails-latex/
|
8
|
+
(/home/geoffj/src/rails-latex/test/tmp/tmp/rails-latex/5926-3374229863443383624
|
9
9
|
/input.tex
|
10
10
|
LaTeX2e <2009/09/24>
|
11
11
|
Babel <v3.8l> and hyphenation patterns for english, usenglishmax, dumylang, noh
|
@@ -50,21 +50,18 @@ LaTeX Font Info: Checking defaults for U/cmr/m/n on input line 3.
|
|
50
50
|
LaTeX Font Info: ... okay on input line 3.
|
51
51
|
[1
|
52
52
|
|
53
|
-
{/var/lib/texmf/fonts/map/pdftex/updmap/pdftex.map}]
|
54
|
-
(/home/geoffj/src/rails-latex/test/tmp/tmp/rails-latex/2800--838211544888946772
|
55
|
-
/input.aux) )
|
53
|
+
{/var/lib/texmf/fonts/map/pdftex/updmap/pdftex.map}] (./input.aux) )
|
56
54
|
Here is how much of TeX's memory you used:
|
57
55
|
199 strings out of 493848
|
58
|
-
|
56
|
+
2326 string characters out of 1152824
|
59
57
|
47808 words of memory out of 3000000
|
60
58
|
3563 multiletter control sequences out of 15000+50000
|
61
59
|
3640 words of font info for 14 fonts, out of 3000000 for 9000
|
62
60
|
714 hyphenation exceptions out of 8191
|
63
61
|
23i,4n,17p,215b,107s stack positions out of 5000i,500n,10000p,200000b,50000s
|
64
|
-
</usr/share
|
65
|
-
>
|
66
|
-
Output written on
|
67
|
-
38211544888946772/input.pdf (1 page, 11949 bytes).
|
62
|
+
</usr/share
|
63
|
+
/texmf-texlive/fonts/type1/public/amsfonts/cm/cmr10.pfb>
|
64
|
+
Output written on input.pdf (1 page, 11949 bytes).
|
68
65
|
PDF statistics:
|
69
66
|
10 PDF objects out of 1000 (max. 8388607)
|
70
67
|
0 named destinations out of 1000 (max. 500000)
|
metadata
CHANGED
@@ -2,7 +2,7 @@
|
|
2
2
|
name: rails-latex
|
3
3
|
version: !ruby/object:Gem::Version
|
4
4
|
prerelease:
|
5
|
-
version: 1.0.
|
5
|
+
version: 1.0.4
|
6
6
|
platform: ruby
|
7
7
|
authors:
|
8
8
|
- Geoff Jacobsen
|
@@ -10,8 +10,7 @@ autorequire:
|
|
10
10
|
bindir: bin
|
11
11
|
cert_chain: []
|
12
12
|
|
13
|
-
date: 2011-
|
14
|
-
default_executable:
|
13
|
+
date: 2011-07-02 00:00:00 Z
|
15
14
|
dependencies:
|
16
15
|
- !ruby/object:Gem::Dependency
|
17
16
|
name: rails
|
@@ -43,25 +42,34 @@ files:
|
|
43
42
|
- test/test_latex_to_pdf.rb
|
44
43
|
- test/tmp/out.pdf
|
45
44
|
- test/tmp/rails-latex/input.log
|
45
|
+
- test/tmp/tmp/rails-latex/4963-4557295006018958261/input.tex
|
46
|
+
- test/tmp/tmp/rails-latex/4982--3721012929416963247/input.aux
|
47
|
+
- test/tmp/tmp/rails-latex/4982--3721012929416963247/input.log
|
48
|
+
- test/tmp/tmp/rails-latex/4982--3721012929416963247/input.pdf
|
49
|
+
- test/tmp/tmp/rails-latex/4982--3721012929416963247/input.tex
|
50
|
+
- test/tmp/tmp/rails-latex/5267--740595184139431260/input.aux
|
51
|
+
- test/tmp/tmp/rails-latex/5267--740595184139431260/input.log
|
52
|
+
- test/tmp/tmp/rails-latex/5267--740595184139431260/input.pdf
|
53
|
+
- test/tmp/tmp/rails-latex/5267--740595184139431260/input.tex
|
54
|
+
- test/tmp/tmp/rails-latex/5710--3333891790396452158/input.aux
|
55
|
+
- test/tmp/tmp/rails-latex/5710--3333891790396452158/input.log
|
56
|
+
- test/tmp/tmp/rails-latex/5710--3333891790396452158/input.pdf
|
57
|
+
- test/tmp/tmp/rails-latex/5710--3333891790396452158/input.tex
|
58
|
+
- test/tmp/tmp/rails-latex/5773--2586044705503359975/input.aux
|
59
|
+
- test/tmp/tmp/rails-latex/5773--2586044705503359975/input.log
|
60
|
+
- test/tmp/tmp/rails-latex/5773--2586044705503359975/input.pdf
|
61
|
+
- test/tmp/tmp/rails-latex/5773--2586044705503359975/input.tex
|
62
|
+
- test/tmp/tmp/rails-latex/5808--4120984604975193544/input.tex
|
63
|
+
- test/tmp/tmp/rails-latex/5853--3414610511282325977/input.aux
|
64
|
+
- test/tmp/tmp/rails-latex/5853--3414610511282325977/input.log
|
65
|
+
- test/tmp/tmp/rails-latex/5853--3414610511282325977/input.pdf
|
66
|
+
- test/tmp/tmp/rails-latex/5853--3414610511282325977/input.tex
|
67
|
+
- test/tmp/tmp/rails-latex/5890--1546682180516809420/input.aux
|
68
|
+
- test/tmp/tmp/rails-latex/5890--1546682180516809420/input.log
|
69
|
+
- test/tmp/tmp/rails-latex/5890--1546682180516809420/input.pdf
|
70
|
+
- test/tmp/tmp/rails-latex/5890--1546682180516809420/input.tex
|
46
71
|
- test/tmp/tmp/rails-latex/input.log
|
47
72
|
- README.rdoc
|
48
|
-
- examples/rails-latex-demo/app/controllers/application_controller.rb
|
49
|
-
- examples/rails-latex-demo/app/controllers/latex_example_controller.rb
|
50
|
-
- examples/rails-latex-demo/config/application.rb
|
51
|
-
- examples/rails-latex-demo/config/boot.rb
|
52
|
-
- examples/rails-latex-demo/config/environment.rb
|
53
|
-
- examples/rails-latex-demo/config/environments/development.rb
|
54
|
-
- examples/rails-latex-demo/config/environments/production.rb
|
55
|
-
- examples/rails-latex-demo/config/environments/test.rb
|
56
|
-
- examples/rails-latex-demo/config/initializers/backtrace_silencers.rb
|
57
|
-
- examples/rails-latex-demo/config/initializers/inflections.rb
|
58
|
-
- examples/rails-latex-demo/config/initializers/mime_types.rb
|
59
|
-
- examples/rails-latex-demo/config/initializers/secret_token.rb
|
60
|
-
- examples/rails-latex-demo/config/initializers/session_store.rb
|
61
|
-
- examples/rails-latex-demo/config/routes.rb
|
62
|
-
- examples/rails-latex-demo/test/functional/latex_example_controller_test.rb
|
63
|
-
- examples/rails-latex-demo/test/unit/helpers/latex_example_helper_test.rb
|
64
|
-
has_rdoc: true
|
65
73
|
homepage:
|
66
74
|
licenses: []
|
67
75
|
|
@@ -85,26 +93,9 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
85
93
|
requirements: []
|
86
94
|
|
87
95
|
rubyforge_project:
|
88
|
-
rubygems_version: 1.
|
96
|
+
rubygems_version: 1.8.3
|
89
97
|
signing_key:
|
90
98
|
specification_version: 3
|
91
99
|
summary: A LaTeX to pdf rails 3 renderer.
|
92
|
-
test_files:
|
93
|
-
|
94
|
-
- examples/rails-latex-demo/app/controllers/latex_example_controller.rb
|
95
|
-
- examples/rails-latex-demo/config/application.rb
|
96
|
-
- examples/rails-latex-demo/config/boot.rb
|
97
|
-
- examples/rails-latex-demo/config/environment.rb
|
98
|
-
- examples/rails-latex-demo/config/environments/development.rb
|
99
|
-
- examples/rails-latex-demo/config/environments/production.rb
|
100
|
-
- examples/rails-latex-demo/config/environments/test.rb
|
101
|
-
- examples/rails-latex-demo/config/initializers/backtrace_silencers.rb
|
102
|
-
- examples/rails-latex-demo/config/initializers/inflections.rb
|
103
|
-
- examples/rails-latex-demo/config/initializers/mime_types.rb
|
104
|
-
- examples/rails-latex-demo/config/initializers/secret_token.rb
|
105
|
-
- examples/rails-latex-demo/config/initializers/session_store.rb
|
106
|
-
- examples/rails-latex-demo/config/routes.rb
|
107
|
-
- examples/rails-latex-demo/test/functional/latex_example_controller_test.rb
|
108
|
-
- examples/rails-latex-demo/test/unit/helpers/latex_example_helper_test.rb
|
109
|
-
- test/helper.rb
|
110
|
-
- test/test_latex_to_pdf.rb
|
100
|
+
test_files: []
|
101
|
+
|
@@ -1,47 +0,0 @@
|
|
1
|
-
require File.expand_path('../boot', __FILE__)
|
2
|
-
|
3
|
-
# Pick the frameworks you want:
|
4
|
-
# require "active_record/railtie"
|
5
|
-
require "action_controller/railtie"
|
6
|
-
require "action_mailer/railtie"
|
7
|
-
require "active_resource/railtie"
|
8
|
-
require "rails/test_unit/railtie"
|
9
|
-
|
10
|
-
# If you have a Gemfile, require the gems listed there, including any gems
|
11
|
-
# you've limited to :test, :development, or :production.
|
12
|
-
Bundler.require(:default, Rails.env) if defined?(Bundler)
|
13
|
-
|
14
|
-
module RailsLatexDemo
|
15
|
-
class Application < Rails::Application
|
16
|
-
# Settings in config/environments/* take precedence over those specified here.
|
17
|
-
# Application configuration should go into files in config/initializers
|
18
|
-
# -- all .rb files in that directory are automatically loaded.
|
19
|
-
|
20
|
-
# Custom directories with classes and modules you want to be autoloadable.
|
21
|
-
# config.autoload_paths += %W(#{config.root}/extras)
|
22
|
-
|
23
|
-
# Only load the plugins named here, in the order given (default is alphabetical).
|
24
|
-
# :all can be used as a placeholder for all plugins not explicitly named.
|
25
|
-
# config.plugins = [ :exception_notification, :ssl_requirement, :all ]
|
26
|
-
|
27
|
-
# Activate observers that should always be running.
|
28
|
-
# config.active_record.observers = :cacher, :garbage_collector, :forum_observer
|
29
|
-
|
30
|
-
# Set Time.zone default to the specified zone and make Active Record auto-convert to this zone.
|
31
|
-
# Run "rake -D time" for a list of tasks for finding time zone names. Default is UTC.
|
32
|
-
# config.time_zone = 'Central Time (US & Canada)'
|
33
|
-
|
34
|
-
# The default locale is :en and all translations from config/locales/*.rb,yml are auto loaded.
|
35
|
-
# config.i18n.load_path += Dir[Rails.root.join('my', 'locales', '*.{rb,yml}').to_s]
|
36
|
-
# config.i18n.default_locale = :de
|
37
|
-
|
38
|
-
# JavaScript files you want as :defaults (application.js is always included).
|
39
|
-
config.action_view.javascript_expansions[:defaults] = %w()
|
40
|
-
|
41
|
-
# Configure the default encoding used in templates for Ruby 1.9.
|
42
|
-
config.encoding = "utf-8"
|
43
|
-
|
44
|
-
# Configure sensitive parameters which will be filtered from the log file.
|
45
|
-
config.filter_parameters += [:password]
|
46
|
-
end
|
47
|
-
end
|
@@ -1,13 +0,0 @@
|
|
1
|
-
require 'rubygems'
|
2
|
-
|
3
|
-
# Set up gems listed in the Gemfile.
|
4
|
-
gemfile = File.expand_path('../../Gemfile', __FILE__)
|
5
|
-
begin
|
6
|
-
ENV['BUNDLE_GEMFILE'] = gemfile
|
7
|
-
require 'bundler'
|
8
|
-
Bundler.setup
|
9
|
-
rescue Bundler::GemNotFound => e
|
10
|
-
STDERR.puts e.message
|
11
|
-
STDERR.puts "Try running `bundle install`."
|
12
|
-
exit!
|
13
|
-
end if File.exist?(gemfile)
|
@@ -1,26 +0,0 @@
|
|
1
|
-
RailsLatexDemo::Application.configure do
|
2
|
-
# Settings specified here will take precedence over those in config/application.rb
|
3
|
-
|
4
|
-
# In the development environment your application's code is reloaded on
|
5
|
-
# every request. This slows down response time but is perfect for development
|
6
|
-
# since you don't have to restart the webserver when you make code changes.
|
7
|
-
config.cache_classes = false
|
8
|
-
|
9
|
-
# Log error messages when you accidentally call methods on nil.
|
10
|
-
config.whiny_nils = true
|
11
|
-
|
12
|
-
# Show full error reports and disable caching
|
13
|
-
config.consider_all_requests_local = true
|
14
|
-
config.action_view.debug_rjs = true
|
15
|
-
config.action_controller.perform_caching = false
|
16
|
-
|
17
|
-
# Don't care if the mailer can't send
|
18
|
-
config.action_mailer.raise_delivery_errors = false
|
19
|
-
|
20
|
-
# Print deprecation notices to the Rails logger
|
21
|
-
config.active_support.deprecation = :log
|
22
|
-
|
23
|
-
# Only use best-standards-support built into browsers
|
24
|
-
config.action_dispatch.best_standards_support = :builtin
|
25
|
-
end
|
26
|
-
|
@@ -1,49 +0,0 @@
|
|
1
|
-
RailsLatexDemo::Application.configure do
|
2
|
-
# Settings specified here will take precedence over those in config/application.rb
|
3
|
-
|
4
|
-
# The production environment is meant for finished, "live" apps.
|
5
|
-
# Code is not reloaded between requests
|
6
|
-
config.cache_classes = true
|
7
|
-
|
8
|
-
# Full error reports are disabled and caching is turned on
|
9
|
-
config.consider_all_requests_local = false
|
10
|
-
config.action_controller.perform_caching = true
|
11
|
-
|
12
|
-
# Specifies the header that your server uses for sending files
|
13
|
-
config.action_dispatch.x_sendfile_header = "X-Sendfile"
|
14
|
-
|
15
|
-
# For nginx:
|
16
|
-
# config.action_dispatch.x_sendfile_header = 'X-Accel-Redirect'
|
17
|
-
|
18
|
-
# If you have no front-end server that supports something like X-Sendfile,
|
19
|
-
# just comment this out and Rails will serve the files
|
20
|
-
|
21
|
-
# See everything in the log (default is :info)
|
22
|
-
# config.log_level = :debug
|
23
|
-
|
24
|
-
# Use a different logger for distributed setups
|
25
|
-
# config.logger = SyslogLogger.new
|
26
|
-
|
27
|
-
# Use a different cache store in production
|
28
|
-
# config.cache_store = :mem_cache_store
|
29
|
-
|
30
|
-
# Disable Rails's static asset server
|
31
|
-
# In production, Apache or nginx will already do this
|
32
|
-
config.serve_static_assets = false
|
33
|
-
|
34
|
-
# Enable serving of images, stylesheets, and javascripts from an asset server
|
35
|
-
# config.action_controller.asset_host = "http://assets.example.com"
|
36
|
-
|
37
|
-
# Disable delivery errors, bad email addresses will be ignored
|
38
|
-
# config.action_mailer.raise_delivery_errors = false
|
39
|
-
|
40
|
-
# Enable threaded mode
|
41
|
-
# config.threadsafe!
|
42
|
-
|
43
|
-
# Enable locale fallbacks for I18n (makes lookups for any locale fall back to
|
44
|
-
# the I18n.default_locale when a translation can not be found)
|
45
|
-
config.i18n.fallbacks = true
|
46
|
-
|
47
|
-
# Send deprecation notices to registered listeners
|
48
|
-
config.active_support.deprecation = :notify
|
49
|
-
end
|
@@ -1,35 +0,0 @@
|
|
1
|
-
RailsLatexDemo::Application.configure do
|
2
|
-
# Settings specified here will take precedence over those in config/application.rb
|
3
|
-
|
4
|
-
# The test environment is used exclusively to run your application's
|
5
|
-
# test suite. You never need to work with it otherwise. Remember that
|
6
|
-
# your test database is "scratch space" for the test suite and is wiped
|
7
|
-
# and recreated between test runs. Don't rely on the data there!
|
8
|
-
config.cache_classes = true
|
9
|
-
|
10
|
-
# Log error messages when you accidentally call methods on nil.
|
11
|
-
config.whiny_nils = true
|
12
|
-
|
13
|
-
# Show full error reports and disable caching
|
14
|
-
config.consider_all_requests_local = true
|
15
|
-
config.action_controller.perform_caching = false
|
16
|
-
|
17
|
-
# Raise exceptions instead of rendering exception templates
|
18
|
-
config.action_dispatch.show_exceptions = false
|
19
|
-
|
20
|
-
# Disable request forgery protection in test environment
|
21
|
-
config.action_controller.allow_forgery_protection = false
|
22
|
-
|
23
|
-
# Tell Action Mailer not to deliver emails to the real world.
|
24
|
-
# The :test delivery method accumulates sent emails in the
|
25
|
-
# ActionMailer::Base.deliveries array.
|
26
|
-
config.action_mailer.delivery_method = :test
|
27
|
-
|
28
|
-
# Use SQL instead of Active Record's schema dumper when creating the test database.
|
29
|
-
# This is necessary if your schema can't be completely dumped by the schema dumper,
|
30
|
-
# like if you have constraints or database-specific column types
|
31
|
-
# config.active_record.schema_format = :sql
|
32
|
-
|
33
|
-
# Print deprecation notices to the stderr
|
34
|
-
config.active_support.deprecation = :stderr
|
35
|
-
end
|
@@ -1,7 +0,0 @@
|
|
1
|
-
# Be sure to restart your server when you modify this file.
|
2
|
-
|
3
|
-
# You can add backtrace silencers for libraries that you're using but don't wish to see in your backtraces.
|
4
|
-
# Rails.backtrace_cleaner.add_silencer { |line| line =~ /my_noisy_library/ }
|
5
|
-
|
6
|
-
# You can also remove all the silencers if you're trying to debug a problem that might stem from framework code.
|
7
|
-
# Rails.backtrace_cleaner.remove_silencers!
|
@@ -1,10 +0,0 @@
|
|
1
|
-
# Be sure to restart your server when you modify this file.
|
2
|
-
|
3
|
-
# Add new inflection rules using the following format
|
4
|
-
# (all these examples are active by default):
|
5
|
-
# ActiveSupport::Inflector.inflections do |inflect|
|
6
|
-
# inflect.plural /^(ox)$/i, '\1en'
|
7
|
-
# inflect.singular /^(ox)en/i, '\1'
|
8
|
-
# inflect.irregular 'person', 'people'
|
9
|
-
# inflect.uncountable %w( fish sheep )
|
10
|
-
# end
|
@@ -1,6 +0,0 @@
|
|
1
|
-
# Be sure to restart your server when you modify this file.
|
2
|
-
|
3
|
-
# Add new mime types for use in respond_to blocks:
|
4
|
-
# Mime::Type.register "text/richtext", :rtf
|
5
|
-
# Mime::Type.register_alias "text/html", :iphone
|
6
|
-
Mime::Type.register "application/pdf", :pdf, ['text/pdf'], ['pdf']
|
@@ -1,7 +0,0 @@
|
|
1
|
-
# Be sure to restart your server when you modify this file.
|
2
|
-
|
3
|
-
# Your secret key for verifying the integrity of signed cookies.
|
4
|
-
# If you change this key, all old signed cookies will become invalid!
|
5
|
-
# Make sure the secret is at least 30 characters and all random,
|
6
|
-
# no regular words or you'll be exposed to dictionary attacks.
|
7
|
-
RailsLatexDemo::Application.config.secret_token = '1f3454cf2022edc496819d0703eae2a92b3526bf35dc9cbfbb64842b764f83b50d11893a5af2c64babbf30edd9f150d33e8340064bee2498cc543b7427a26b9d'
|
@@ -1,8 +0,0 @@
|
|
1
|
-
# Be sure to restart your server when you modify this file.
|
2
|
-
|
3
|
-
RailsLatexDemo::Application.config.session_store :cookie_store, :key => '_rails-latex-demo_session'
|
4
|
-
|
5
|
-
# Use the database for sessions instead of the cookie-based default,
|
6
|
-
# which shouldn't be used to store highly confidential information
|
7
|
-
# (create the session table with "rails generate session_migration")
|
8
|
-
# RailsLatexDemo::Application.config.session_store :active_record_store
|