![附注溢出,无法继续下一页](https://linux22.com/image/377299/%E9%99%84%E6%B3%A8%E6%BA%A2%E5%87%BA%EF%BC%8C%E6%97%A0%E6%B3%95%E7%BB%A7%E7%BB%AD%E4%B8%8B%E4%B8%80%E9%A1%B5.png)
使用侧注包时,侧注会溢出(双关语)。侧注不会继续到下一页,而是消失在页面之外。
这是一个最小的工作示例:
\documentclass[12pt]{book}
\usepackage{float}
\usepackage{caption}
\usepackage{url}
\usepackage{sidenotes}
\usepackage[outer=8cm,marginparsep=1cm,marginpar=6cm]{geometry}
\usepackage{chngcntr}
\counterwithin{sidenote}{section}
\makeatletter
\ExplSyntaxOn
\RenewDocumentCommand \sidenote { o o +m }
{
\@sidenotes@multichecker
\sidenotetext[#1][#2]{#3}
\sidenotemark[#1]
\@sidenotes@multimarker
}
\RenewDocumentCommand \sidenotetext { o o +m }
{
\IfNoValueOrEmptyTF{#1}
{
\refstepcounter{sidenote}
\@sidenotes@placemarginal{#2}{\textsuperscript{\thesidenote}{}~#3}
}
{
\@sidenotes@placemarginal{#2}{\textsuperscript{#1}~#3}
}
}
\ExplSyntaxOff
\makeatother
\begin{document}
\chapter{Example}
\section{Cake}
This is an example.\sidenote{First sidenote.\label{first}} \\
This is second\sidenote{Second sidenote.\label{second}} \\
More text... \\
...
... \\
Then I refer to sidenote \ref{first} and then to sidenote \ref{second}. \\
Now I add a lot of text, taken from Wikipedia: \url{https://en.wikipedia.org/wiki/Darth_Vader}
\section{Darth Vader}
Darth Vader\sidenote{Dark Lord of the Sith}, also known by his birth name Anakin Skywalker, is a fictional character in the Star Wars franchise. Vader appears in the original span of the saga going from being Anakin Skywalker, the prophesied child who would bring balance to the Force, to his corruption and transformation into Darth Vader, to being the pivotal antagonist, and eventual redemption and fulfillment of the prophecy.
The character was created by George Lucas and has been portrayed by numerous actors. His appearances span the first six Star Wars films, as well as Rogue One\sidenote{Don't miss Darth Vader's scenes, especially the last one, they are awesome!}, and his character is referenced in both Star Wars: The Force Awakens\sidenote{Episode VII, after Disney bought Lucasfilm and the Star Wars franchise. The original trilogy is still the best and Kylo Ren is not as great as Darth Vader. I keep writing here my own thoughts to demonstrate a problem: the sidenotes overflow (a pun intended). The comment doesn't continue to the next page but disappears outside the page.} and Star Wars: The Last Jedi. He is also an important character in the Star Wars expanded universe of television series, video games, novels, literature and comic books. Originally a Jedi prophesied to bring balance to the Force, he falls to the dark side of the Force and serves the evil Galactic Empire at the right hand of his Sith master, Emperor Palpatine (also known as Darth Sidious). He is also the father of Luke Skywalker and Princess Leia Organa, secret husband of Padmé Amidala and grandfather of Kylo Ren.
Darth Vader has become one of the most iconic villains in popular culture, and has been listed among the greatest villains and fictional characters ever. The American Film Institute listed him as the third greatest movie villain in cinema history on 100 Years... 100 Heroes and Villains, behind Hannibal Lecter and Norman Bates.[9] However, other critics consider him a tragic hero, citing his original motivations for the greater good before his fall to the dark side and the redemptive self-sacrifice that leads to his death.
\end{document}
使用侧注包时,侧注会溢出(双关语)。侧注不会继续到下一页,而是消失在页面之外。侧注的全文如下
第七集,迪士尼收购卢卡斯影业和星球大战系列之后。原版三部曲仍然是最好的,而凯洛·伦并不像达斯·维达那么伟大。我在这里不断写下自己的想法,以说明一个问题:旁注溢出(双关语)。评论不会继续到下一页,而是消失在页面之外。
答案1
答案2
阅读 sidenotes 包的手册,它使用 sidenotes 命令\marginpar
或在某些情况下\marginnote
使用 KOMA-script 包。两者都不提供在 sidenote 内设置分页符的功能。
但你所问的问题是可能的,请参见此处:与 Tufte 类似的设计,带有跨分页符的侧注,或者:使用 KOMAscript 制作的 Tufte:基于 scrlayer-scrnotecolumn 包的带分页符的旁注。请注意,自从我两年前提出问题以来,该包已经有一些新功能。
答案3
“回忆录”文档类别\sidebar
允许条目跨页显示,但它们没有像脚注那样的编号(尽管这很容易做到)。更重要的是,它们不会与正文中的参考点垂直对齐,而是从顶部填充侧边栏。
Memoir 还具有处理脚注的功能,\marginpar
其行为与侧注包相同。
如果“marginfix”解决了问题,请报告。