我有一个示例代码,它使用 reledmac 包生成以下两列脚注装置。我想知道的是,如何设法将整个脚注块移动预定量。在下面的照片中,我展示了现有文档,其中红色垂直线表示我想要移动脚注块的位置。
我可以看到,使用 reledmac 包,我可以使用命令轻松修改整个脚注块的宽度\widthX
。同样,我可以控制两个单独列的宽度以及它们之间的间隔。此外,我可以使用 缩进注释\parindentX
。但是,我不知道如何控制此缩进的实际量。
控制脚注块的定位以使其覆盖示例图像中显示的边界的最简单方法是什么?
示例代码为:
\documentclass[11pt]{book}
\usepackage{alphalph}
\usepackage{ragged2e}
\usepackage{perpage}
\usepackage[paperheight=8.5in,paperwidth=5.5in]{geometry}
\geometry{includehead,nofoot,twoside,top=0.75in,bottom=0.75in,left=1in,right=1in,marginparwidth=3em,marginparsep=0.2ex}
\usepackage{reledmac}
\arrangementX[A]{twocol}
\colalignX[A]{\RaggedRight}
\hsizetwocolX[A]{0.48\hsize}
\MakePerPage{footnoteA}
\begin{document}
\footnoteA{First footnote}Now is \footnoteA{Second footnote}the time \footnoteA{Third footnote}for all \footnoteA{Fourth footnote}good men \footnoteA{Fifth footnote}to come \footnoteA{Sixth footnote}to the \footnoteA{Seventh footnote}aid of their country.
\footnoteA{First footnote}Now is \footnoteA{Second footnote}the time \footnoteA{Third footnote}for all \footnoteA{Fourth footnote}good men \footnoteA{Fifth footnote}to come \footnoteA{Sixth footnote}to the \footnoteA{Seventh footnote}aid of their country.
\footnoteA{First footnote}Now is \footnoteA{Second footnote}the time \footnoteA{Third footnote}for all \footnoteA{Fourth footnote}good men \footnoteA{Fifth footnote}to come \footnoteA{Sixth footnote}to the \footnoteA{Seventh footnote}aid of their country.
\footnoteA{First footnote}Now is \footnoteA{Second footnote}the time \footnoteA{Third footnote}for all \footnoteA{Fourth footnote}good men \footnoteA{Fifth footnote}to come \footnoteA{Sixth footnote}to the \footnoteA{Seventh footnote}aid of their country.
\footnoteA{First footnote}Now is \footnoteA{Second footnote}the time \footnoteA{Third footnote}for all \footnoteA{Fourth footnote}good men \footnoteA{Fifth footnote}to come \footnoteA{Sixth footnote}to the \footnoteA{Seventh footnote}aid of their country.
\footnoteA{First footnote}Now is \footnoteA{Second footnote}the time \footnoteA{Third footnote}for all \footnoteA{Fourth footnote}good men \footnoteA{Fifth footnote}to come \footnoteA{Sixth footnote}to the \footnoteA{Seventh footnote}aid of their country.
\footnoteA{First footnote}Now is \footnoteA{Second footnote}the time \footnoteA{Third footnote}for all \footnoteA{Fourth footnote}good men \footnoteA{Fifth footnote}to come \footnoteA{Sixth footnote}to the \footnoteA{Seventh footnote}aid of their country.
\footnoteA{First footnote}Now is \footnoteA{Second footnote}the time \footnoteA{Third footnote}for all \footnoteA{Fourth footnote}good men \footnoteA{Fifth footnote}to come \footnoteA{Sixth footnote}to the \footnoteA{Seventh footnote}aid of their country.
\footnoteA{First footnote}Now is \footnoteA{Second footnote}the time \footnoteA{Third footnote}for all \footnoteA{Fourth footnote}good men \footnoteA{Fifth footnote}to come \footnoteA{Sixth footnote}to the \footnoteA{Seventh footnote}aid of their country.
\end{document}
答案1
它看起来好像没有接口,但如果你重新定义平衡命令,它应该可以工作。为了获得最佳效果,插入的空间应该是 \hsize 和列宽之差的一半。
\documentclass[11pt]{book}
\usepackage{alphalph}
\usepackage{ragged2e}
\usepackage{perpage}
\usepackage[paperheight=8.5in,paperwidth=5.5in]{geometry}
\geometry{includehead,nofoot,twoside,top=0.75in,bottom=0.75in,left=1in,right=1in,marginparwidth=3em,marginparsep=0.2ex}
\usepackage{reledmac}
\arrangementX[A]{twocol}
\colalignX[A]{\RaggedRight}
\hsizetwocolX[A]{0.45\hsize}
\MakePerPage{footnoteA}
\makeatletter
\renewcommand*{\rigidbalance}[3]{%
\setbox0=\box#1 \@k=#2 \@h=#3%
\@@line{\splittopskip=\@h \vbadness=\@M \hfilneg
\hspace{0.05\hsize}%<-------------------
\valign{##\vfil\cr\dosplits}}}
\makeatother
\begin{document}
\footnoteA{First footnote\hfill xxx}Now is \footnoteA{Second footnote}the time \footnoteA{Third footnote}for all \footnoteA{Fourth footnote}good men \footnoteA{Fifth footnote}to come \footnoteA{Sixth footnote}to the \footnoteA{Seventh footnote}aid of their country.
\footnoteA{First footnote\hfill xxx}Now is \footnoteA{Second footnote}the time \footnoteA{Third footnote}for all \footnoteA{Fourth footnote}good men \footnoteA{Fifth footnote}to come \footnoteA{Sixth footnote}to the \footnoteA{Seventh footnote}aid of their country.
\footnoteA{First footnote\hfill xxx}Now is \footnoteA{Second footnote}the time \footnoteA{Third footnote}for all \footnoteA{Fourth footnote}good men \footnoteA{Fifth footnote}to come \footnoteA{Sixth footnote}to the \footnoteA{Seventh footnote}aid of their country.
\footnoteA{First footnote\hfill xxx}Now is \footnoteA{Second footnote}the time \footnoteA{Third footnote}for all \footnoteA{Fourth footnote}good men \footnoteA{Fifth footnote}to come \footnoteA{Sixth footnote}to the \footnoteA{Seventh footnote}aid of their country.
\footnoteA{First footnote\hfill xxx}Now is \footnoteA{Second footnote}the time \footnoteA{Third footnote}for all \footnoteA{Fourth footnote}good men \footnoteA{Fifth footnote}to come \footnoteA{Sixth footnote}to the \footnoteA{Seventh footnote}aid of their country.
\footnoteA{First footnote\hfill xxx}Now is \footnoteA{Second footnote}the time \footnoteA{Third footnote}for all \footnoteA{Fourth footnote}good men \footnoteA{Fifth footnote}to come \footnoteA{Sixth footnote}to the \footnoteA{Seventh footnote}aid of their country.
\footnoteA{First footnote\hfill xxx}Now is \footnoteA{Second footnote}the time \footnoteA{Third footnote}for all \footnoteA{Fourth footnote}good men \footnoteA{Fifth footnote}to come \footnoteA{Sixth footnote}to the \footnoteA{Seventh footnote}aid of their country.
\footnoteA{First footnote\hfill xxx}Now is \footnoteA{Second footnote}the time \footnoteA{Third footnote}for all \footnoteA{Fourth footnote}good men \footnoteA{Fifth footnote}to come \footnoteA{Sixth footnote}to the \footnoteA{Seventh footnote}aid of their country.
\footnoteA{First footnote\hfill xxx}Now is \footnoteA{Second footnote}the time \footnoteA{Third footnote}for all \footnoteA{Fourth footnote}good men \footnoteA{Fifth footnote}to come \footnoteA{Sixth footnote\hfill bla}to the \footnoteA{Seventh footnote}aid of their country.
\end{document}
答案2
不幸的是,我只能提供部分答案。
好消息:这正确的脚注块的边距已经在您想要的位置。
坏消息是:我认为,reledmac
目前的形式并没有提供易于访问的工具来定制左边边距。由于reledmac
脚注有特殊定义,原始方法(或 KOMAscript)在这里不起作用。
提交功能请求可能值得维护者。
右边距
删除所有不必要的部分,并修改脚注文本(\hfill
)以用尽所有可用宽度并显示脚注块的整个范围,我们得到以下 MWE:
\documentclass{book}
\usepackage[a6paper,showframe]{geometry}
\usepackage{reledmac}
\arrangementX[A]{twocol}
\hsizetwocolX[A]{0.48\hsize}
%\usepackage{ragged2e}
%\colalignX[A]{\RaggedLeft} % irrelevant: only affects the content of individual footnotes
\begin{document}
\newcommand{\onefootnote}{\footnoteA{A line-filling note \hfill$\rightarrow$\textbar}}
\newcommand{\sevenfootnotes}{\onefootnote Now is \onefootnote
the time \onefootnote for all \onefootnote good men \onefootnote
to come \onefootnote to the \onefootnote aid of their country. }
\sevenfootnotes \sevenfootnotes \sevenfootnotes
\sevenfootnotes \sevenfootnotes \sevenfootnotes
\end{document}
脚注块已经占用了所有文本宽度,直到右边距,因此无需将任何东西向右移动。
左边距:缩进?
但是,我找不到在左侧缩进整个块的方法。
您提到了设置\parindentX[A]
(reledmac
手动,§7.8),它将每个新脚注的开头(包括标记)缩进,作为一种潜在的解决方法。
确实,它乍一看很有希望,但它存在几个问题(见下图):
\parindentX[A]
缩进全部脚注,包括正确的列;并且reledmac
没有办法(据我所知)来减少列分隔符并抵消这种不必要的缩进。- 此命令仅影响第一行脚注:在较长的脚注中,以下行将从左边距开始。您需要“悬挂缩进”;不幸的是,命令
reledmac
(\hangindentX
再次,§7.8) 仅适用于normal
排列中的脚注,不适用于paragraph
排列或列。 \parindentX[A]
使用与整个文档相同的值\parindent
。您无法为脚注块(假设\setlength{\parindent}{8pt}
)选择理想的值,而不会影响常规段落的缩进整个文档。
尝试将以下几行添加到 MWE:
\parindentX[A]
\setlength{\parindent}{8pt}
\hangindentX{8pt} % with "twocol" notes, this doesn't come to bear
左边距:设备宽度?
公平地说,reledmac
确实有一个命令可以设置脚注块的宽度:(\widthX
手动,§7.12.7)。
然而,到目前为止,它对你的情况没有帮助,因为(在 LTR 设置中)它只影响右边距脚注块的右侧,而不是左侧。因此,您可以截断(或添加)右侧边距,但不能截断左侧边距。例如,通过
\widthX{\columnwidth-3em}
我认为,增加编辑脚注块左边距的功能对 来说是一个很好的补充\widthX
。请考虑向 的维护者提交请求reledmac
(并随意使用这些 MWE!)