为什么 \marginpar 不将其文本换行?

发布于 2024-08-14 15:28:05 字数 266 浏览 5 评论 0原文

我在 Windows 上使用 miktex 2.8。由于某种原因,\marginpar 命令已停止工作。它曾经按预期工作,但行不会换行。我已将 marginparwidth 设置为 1in,但行仍然不会换行,它们只是直接离开页面(或直接进入奇数页上边距部分的文本)。如果我将 marginparwidth 更改为较小的值,我会看到文本移动,因此我认为该值正在被识别,但我无法弄清楚发生了什么更改,因此文本没有换行。

I'm using miktex 2.8 on Windows. For some reason, the \marginpar command has stopped working. It used to work as expected, but not the lines will not wrap. I have set marginparwidth to 1in and still the lines will not wrap, they just go right off the page (or right into the text for margin pars on the odd pages). If I change marginparwidth to something smaller, I see the text move, so I think the value is being recognized, but I can't figure out what changed so that the text is not wrapping.

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

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

发布评论

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

评论(1

阳光下慵懒的猫 2024-08-21 15:28:05

所以问题是 \usepackage{pdfsync}。显然这是进行 PDF 同步的旧方法。新的方法是在 pdfTex 的命令中添加“-synctex=-1”。使用 pdflatex 的synctex 开关不会与 marginpar 命令发生冲突,但使用 pdfsync 包却可以。诡异的。

So the problem was \usepackage{pdfsync}. Evidently this is the old way to do PDF synchronization. The new way is to add "-synctex=-1" to the command for pdfTex. Using the synctex switch for pdflatex does not screw with the marginpar command, but using the pdfsync package does. Weird.

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