如何在 LaTeX 中输入多行脚注?
我的直觉是
Lorem ipsum\footnote{long footnote
that spans a whole
bunch of
lines.
}
但是无论我将 {
和 }
放在与脚注文本相关的位置,我都会收到以下错误:
Latex Error: ./mydoc.tex:142 Package inputenc Error: Unicode char \u8:― not set up for use with LaTeX.
My intuition was
Lorem ipsum\footnote{long footnote
that spans a whole
bunch of
lines.
}
But regardless of where I put the {
and }
in relation to the footnote text, I get the following error:
Latex Error: ./mydoc.tex:142 Package inputenc Error: Unicode char \u8:― not set up for use with LaTeX.
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(3)
脚注填充在可用空间中,就像任何其他段落一样:您只需写
这不是您的问题。 查看错误消息(我从个人经验中无法识别),我想说你的问题与字符集或字体相关。
你的编辑器使用unicode吗?
Footnotes are filled in the available space just like any other paragraph: you just write
That is not your problem. Looking at the error message (which I don't recognize from personal experience), I'd say your problem is character set or font related.
Is you editor using unicode?
您收到的错误表明存在编码设置问题。 谷歌搜索错误消息表明您可能正在运行 TexShop,或者您需要安装 Latex unicode 支持。 使用
或类似的东西,然后再试一次。
The error you're getting indicates there's a coding setup issue. Googling the error message suggests you may be running TexShop, or you need to install latex unicode support. use
or something similar and try it again.
当我从另一个文档中剪切文本并粘贴到 LaTeX 中时,我经常遇到此错误。 我的纯文本编辑器不会警告我粘贴了一些不良字符。 虽然很乏味,但您可以
这总是对我有用。 作为一种捷径,您也许能够看到罪魁祸首的标点符号,然后简单地修复它。
在您给出的示例中,看起来您可能有一个破折号字符,需要用两个或三个连字符的标准 LaTeX 结构替换。
I get this error a lot when I cut text from another document and paste into LaTeX. My plain text editor doesn't warn me that I pasted in some bad character. Although it is tedious, you can
This always works for me. As a shortcut, you may be able to see a punctuation mark that is the culprit and simply fix that.
In the example you gave, it looks like maybe you got an em-dash character that needs to be replaced by the standard LaTeX construction of two or three hyphens.