2016-06-24 13 views
0

This example LaTeX fileは、Rstudio、TexShop、およびpdflatex example.texを使用して私にとってうまくコンパイルされます。しかしrmarkdown::renderは機能しません。rmarkdown :: render LaTeXドキュメントをコンパイルする

> rmarkdown::render("example.tex", output_format = "pdf_document") 
/usr/local/bin/pandoc +RTS -K512m -RTS example.utf8.md --to latex --from markdown+autolink_bare_uris+ascii_identifiers+tex_math_single_backslash --output example.pdf --template /Library/Frameworks/R.framework/Versions/3.3/Resources/library/rmarkdown/rmd/latex/default.tex --highlight-style tango --latex-engine /Library/TeX/texbin/pdflatex --variable graphics=yes --variable 'geometry:margin=1in' 
! LaTeX Error: Can be used only in preamble. 

See the LaTeX manual or LaTeX Companion for explanation. 
Type H <return> for immediate help. 
...            

l.88 \documentclass 

pandoc: Error producing PDF from TeX source 
Error: pandoc document conversion failed with error 43 
> 

私はLaTeXの文書で始まるよを伝える方法はありますか?私は

  • のMac OS 10.11.5
  • R 3.3.0
  • rmarkdown 0.9.6
  • pandoc 1.13.2
  • pdfTeXの3.14159265-2.6-1.40.17(TeXのライブ2016を使用しています)

答えて

関連する問題