简体   繁体   English

pandoc:使用 R Markdown 生成 PDF 时出错

[英]pandoc: Error producing PDF with R Markdown

When doing pandoc mymarkdown.md -o mypdf.pdf I get the following error:执行pandoc mymarkdown.md -o mypdf.pdf时出现以下错误:

! Undefined control sequence.
l.279 ...e know that the element stored at \(x \lt

pandoc: Error producing PDF

I'm confused, as using pandoc with any other markdown file works for me.我很困惑,因为将 pandoc 与任何其他 markdown 文件一起使用对我有用。 l.279...e know that the element stored at \(x \lt corresponds to a line in my md file. If I remove that line from the file, the error persists, giving a different line and so on. l.279...e know that the element stored at \(x \lt对应于我的md文件中的一行。如果我从文件中删除该行,错误仍然存在,给出不同的行等等。

Unicode character ∩¼ü (U+FB01) Unicode 字符∩¼ü (U+FB01)

It suggests there's a character that is cannot be converted correctly.它表明存在无法正确转换的字符。 If you're getting literally that error—with no visible character—then what's probably happening is that you have some sort of invisible or space Unicode character in your document.如果您确实遇到了该错误(没有可见字符),那么可能发生的情况是您的文档中有某种不可见或空格 Unicode 字符。 For instance, option + space on Mac will leave an invisible non-breaking space, which gives an error that looks like that.例如,Mac 上的option + space会留下一个不可见的不间断空格,这会产生类似这样的错误。

What you can do is starting from an empty document, then add one paragraph at a time, until you find the problem, then try to "re-write" the problem part.你可以做的是从一个空文档开始,然后一次添加一段,直到找到问题所在,然后尝试“重写”问题部分。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM