RMD转换为PDF

时间:2016-09-12 00:13:02

标签: pdf r-markdown

我正在尝试将RMD转换为PDF,但不断收到此错误

output file: hw1.knit.md

/Volumes/RStudio-0.99.893/RStudio.app/Contents/MacOS/pandoc/pandoc +RTS -K512m -RTS hw1.utf8.md --to latex --from markdown+autolink_bare_uris+ascii_identifiers+tex_math_single_backslash --output hw1.tex --template /Library/Frameworks/R.framework/Versions/3.2/Resources/library/rmarkdown/rmd/latex/default-1.15.2.tex --highlight-style tango --latex-engine /Library/TeX/texbin/xelatex --variable graphics=yes --variable 'geometry:margin=1in' 
/Volumes/RStudio-0.99.893/RStudio.app/Contents/MacOS/pandoc/pandoc +RTS -K512m -RTS hw1.utf8.md --to latex --from markdown+autolink_bare_uris+ascii_identifiers+tex_math_single_backslash --output hw1.pdf --template /Library/Frameworks/R.framework/Versions/3.2/Resources/library/rmarkdown/rmd/latex/default-1.15.2.tex --highlight-style tango --latex-engine /Library/TeX/texbin/xelatex --variable graphics=yes --variable 'geometry:margin=1in' 
! LaTeX Error: Command \end{enumerate} invalid in math mode.

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

l.206 \end{enumerate}

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

如果格式化为html,但我需要PDF。 我有TeX,并尝试了我在这里看到的各种修复,但没有任何工作

1 个答案:

答案 0 :(得分:1)

枚举应该是

1. part of 2. a numbered list

* an un- * ordered list

你可以发布.Rmd的那部分吗?