rails-latex 1.0.4 → 1.0.5

Sign up to get free protection for your applications and to get access to all the features.
data/README.rdoc CHANGED
@@ -97,4 +97,5 @@ Developing rails-latex requires jeweler
97
97
 
98
98
  == Contributions
99
99
 
100
- * Tommaso Patrizi
100
+ * Tommaso Patrizi
101
+ * Klaus Reske
data/lib/latex_to_pdf.rb CHANGED
@@ -5,10 +5,10 @@ class LatexToPdf
5
5
 
6
6
  # Converts a string of LaTeX +code+ into a binary string of PDF.
7
7
  #
8
- # pdflatex is used to convert the file and creates the directory +#{Rails.root}/tmp/rails-latex+ to store intermediate
8
+ # pdflatex is used to convert the file and creates the directory +#{Rails.root}/tmp/rails-latex/+ to store intermediate
9
9
  # files.
10
10
  #
11
- # The config argument defaults to ERBLatex.config but can be overridden using @latex_config.
11
+ # The config argument defaults to LatexToPdf.config but can be overridden using @latex_config.
12
12
  #
13
13
  # The parse_twice argument is deprecated in favor of using config[:parse_twice] instead.
14
14
  def self.generate_pdf(code,config,parse_twice=nil)
@@ -21,7 +21,7 @@ class LatexToPdf
21
21
  Process.waitpid(fork do
22
22
  begin
23
23
  Dir.chdir dir
24
- args=[*config[:arguments],'-shell-escape','-interaction','batchmode',"input.tex"]
24
+ args=config[:arguments] + ['-shell-escape','-interaction','batchmode',"input.tex"]
25
25
  system config[:command],'-draftmode',*args if parse_twice
26
26
  exec config[:command],*args
27
27
  rescue
data/test/tmp/out.pdf CHANGED
Binary file
@@ -0,0 +1,5 @@
1
+ \documentclass{article}
2
+
3
+ \begin{document}
4
+ hello world
5
+ \end{document}
@@ -1,12 +1,9 @@
1
- This is pdfTeX, Version 3.1415926-1.40.10 (TeX Live 2009/Debian) (format=pdflatex 2011.5.9) 2 JUL 2011 12:06
1
+ This is pdfTeX, Version 3.1415926-1.40.10 (TeX Live 2009/Debian) (format=pdflatex 2011.5.9) 3 JUL 2011 18:14
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/5926-337422986344338362
6
- 4/input.tex
7
-
8
- (/home/geoffj/src/rails-latex/test/tmp/tmp/rails-latex/5926-3374229863443383624
9
- /input.tex
5
+ **input.tex
6
+ (./input.tex
10
7
  LaTeX2e <2009/09/24>
11
8
  Babel <v3.8l> and hyphenation patterns for english, usenglishmax, dumylang, noh
12
9
  yphenation, farsi, arabic, croatian, bulgarian, ukrainian, russian, czech, slov
@@ -52,13 +49,13 @@ LaTeX Font Info: ... okay on input line 3.
52
49
 
53
50
  {/var/lib/texmf/fonts/map/pdftex/updmap/pdftex.map}] (./input.aux) )
54
51
  Here is how much of TeX's memory you used:
55
- 199 strings out of 493848
56
- 2326 string characters out of 1152824
52
+ 198 strings out of 493848
53
+ 2091 string characters out of 1152824
57
54
  47808 words of memory out of 3000000
58
55
  3563 multiletter control sequences out of 15000+50000
59
56
  3640 words of font info for 14 fonts, out of 3000000 for 9000
60
57
  714 hyphenation exceptions out of 8191
61
- 23i,4n,17p,215b,107s stack positions out of 5000i,500n,10000p,200000b,50000s
58
+ 23i,4n,17p,136b,107s stack positions out of 5000i,500n,10000p,200000b,50000s
62
59
  </usr/share
63
60
  /texmf-texlive/fonts/type1/public/amsfonts/cm/cmr10.pfb>
64
61
  Output written on input.pdf (1 page, 11949 bytes).
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.4
5
+ version: 1.0.5
6
6
  platform: ruby
7
7
  authors:
8
8
  - Geoff Jacobsen
@@ -10,7 +10,7 @@ autorequire:
10
10
  bindir: bin
11
11
  cert_chain: []
12
12
 
13
- date: 2011-07-02 00:00:00 Z
13
+ date: 2011-07-03 00:00:00 Z
14
14
  dependencies:
15
15
  - !ruby/object:Gem::Dependency
16
16
  name: rails
@@ -42,6 +42,7 @@ files:
42
42
  - test/test_latex_to_pdf.rb
43
43
  - test/tmp/out.pdf
44
44
  - test/tmp/rails-latex/input.log
45
+ - test/tmp/tmp/rails-latex/2368-1556906997793729431/input.tex
45
46
  - test/tmp/tmp/rails-latex/4963-4557295006018958261/input.tex
46
47
  - test/tmp/tmp/rails-latex/4982--3721012929416963247/input.aux
47
48
  - test/tmp/tmp/rails-latex/4982--3721012929416963247/input.log