djmurphy420 / ggplot2-transition-guide

15 stars 5 forks source link

pdflatex error (or: why not just include the pdf file?) #2

Closed pchalasani closed 12 years ago

pchalasani commented 12 years ago

I'm getting an error whey I run pdflatex on the tex file produced by knitr:

(/usr/share/texmf/tex/latex/geometry/geometry.cfg)))                                                                                        
Runaway argument?                                                                                                                           
{ \smallve been expanded considerably, with many new examples; and (i\ETC.                                                                  
! File ended while scanning use of \@argdef.                                                                                                
<inserted text>                                                                                                                             
                \par                                                                                                                        
<*> ggplot2-transition-guide.tex                                                                                                                   

?                                                                                                                                           
pchalasani commented 12 years ago

Never mind, it was my bad -- when I did copy/paste from here, it mangled the .Rnw file

djmurphy420 commented 12 years ago

Hi:

I can't replicate the problem as it works for me. The error message appears to be related to the geometry package of LaTeX - do you have an old version of LaTeX and/or geometry? I'm not getting such an error when I run the source code through R.

This is how I generate the pdf document:

In R (assuming we're in the correct directory):

library('devtools')

Assuming you have a current/recent version of ggplot2-0.9.0,

library('ggplot2') library('knitr') knit('ggplot2-0.9.0.Rnw')

This outputs a file named ggplot2-0.9.0.tex file which you should be able to run with pdflatex in any of several ways.

My experience has been that if there's a problem in the preamble, it will get exposed during the knit('...') call, so I'm a little surprised you're getting it during the pdflatex call.

Dennis


From: pchalasani reply@reply.github.com To: Dennis Murphy djmurphy0420@yahoo.com Sent: Friday, January 27, 2012 5:37 AM Subject: [ggplot2-transition-guide] pdflatex error (or: why not just include the pdf file?) (#2)

I'm getting an error whey I run pdflatex on the tex file produced by knitr:

(/usr/share/texmf/tex/latex/geometry/geometry.cfg)))                                            
Runaway argument?                                                             
{ \smallve been expanded considerably, with many new examples; and (i\ETC.                                 
! File ended while scanning use of \@argdef.                                                
<inserted text>                                                              
        \par                                                            
<*> ggplot2-transition-guide.tex                                                         

?                                                                     

Reply to this email directly or view it on GitHub: https://github.com/djmurphy420/ggplot2-transition-guide/issues/2