如何在 LaTeX 中输入多行脚注?

发布于 2024-07-13 03:38:52 字数 316 浏览 2 评论 0原文

我的直觉是

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 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(3

橘虞初梦 2024-07-20 03:38:52

脚注填充在可用空间中,就像任何其他段落一样:您只需写

\footnote{ 
    a whole lot of text that goes on and on and on and...
    ...
    and may consists of multiple sentences. But after a while
    ... 
    it finally comes to a stop.
}

这不是您的问题。 查看错误消息(我从个人经验中无法识别),我想说你的问题与字符集或字体相关。

你的编辑器使用unicode吗?

Footnotes are filled in the available space just like any other paragraph: you just write

\footnote{ 
    a whole lot of text that goes on and on and on and...
    ...
    and may consists of multiple sentences. But after a while
    ... 
    it finally comes to a stop.
}

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?

小红帽 2024-07-20 03:38:52

您收到的错误表明存在编码设置问题。 谷歌搜索错误消息表明您可能正在运行 TexShop,或者您需要安装 Latex unicode 支持。 使用

apt-get latex-ucs

或类似的东西,然后再试一次。

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

apt-get latex-ucs

or something similar and try it again.

仙气飘飘 2024-07-20 03:38:52

当我从另一个文档中剪切文本并粘贴到 LaTeX 中时,我经常遇到此错误。 我的纯文本编辑器不会警告我粘贴了一些不良字符。 虽然很乏味,但您可以

  • 注释掉脚注的整个文本,将其替换为 XX,并确认现在文档运行,
  • 然后手动重新输入脚注的整个文本。

这总是对我有用。 作为一种捷径,您也许能够看到罪魁祸首的标点符号,然后简单地修复它。

在您给出的示例中,看起来您可能有一个破折号字符,需要用两个或三个连字符的标准 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

  • comment out the entire text of your footnote, replace it by XX, and confirm that now your document runs
  • retype the entire text of your footnote by hand.

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.

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文