我正在尝试将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,并尝试了我在这里看到的各种修复程序,但都不起作用
发布于 2016-09-15 04:04:13
枚举应为
1. part of 2. a numbered list
或
* an un- * ordered list
你能把你的.Rmd的那部分发出来吗?
https://stackoverflow.com/questions/39441861
复制相似问题