(我正在使用该microtype
包。)
我想将脚注的最后一行对齐,因为它几乎已经满了。它看起来是这样的:
前两行来自同一个脚注,第三行来自下一个脚注。
- 我尝试了
\linebreak
,它按我想要的方式进行了证明,但却在我的两个脚注之间创建了一个空白行:
- 然后,我用
\setlength{\parfillskip}{0pt plus\dimexpr\textwidth-2\parindent}
,发现这个答案。它确实调整了行,并且没有添加空行;但它的工作方式就像microtype
包没有加载一样,即没有扩展,在这种情况下:
虽然这样更好,但它与文档其余部分的论证方式相冲突。
MWE(使用LuaLaTeX编译):
\documentclass{article}
\usepackage{microtype}
\begin{document}
Lorem ipsum\footnote{Sed non risus. Suspendisse lectus tortor, dignissim sit amet, adipiscing nec, ultricies sed, dolor. Cras elementum ultrices diam. Maecenas ligula massa, varius a, semper [...] non, mi.} dolor sit amet, consectetur adipiscing elit. % 1) last line not full
Lorem ipsum\footnote{Sed non risus. Suspendisse lectus tortor, dignissim sit amet, adipiscing nec, ultricies sed, dolor. Cras elementum ultrices diam. Maecenas ligula massa, varius a, semper [...] non, mi.\linebreak} dolor sit amet, consectetur adipiscing elit. % 2) last line full in microtype style but followed by a blank line
Lorem ipsum\footnote{{Sed non risus. Suspendisse lectus tortor, dignissim sit amet, adipiscing nec, ultricies sed, dolor. Cras elementum ultrices diam. Maecenas ligula massa, varius a, semper [...] non, mi.} \setlength{\parfillskip}{0pt plus\dimexpr\textwidth-2\parindent}} dolor sit amet, consectetur adipiscing elit. % 3) last line full but not in microtype style
Lorem ipsum\footnote{Sed non risus. Suspendisse lectus tortor, dignissim sit amet, adipiscing nec, ultricies sed, dolor. Cras elementum ultrices diam. Maecenas ligula massa, varius a, semper [...] non, mi.} dolor sit amet, consectetur adipiscing elit. % 4) same as 1), to show there is no blank line after 3)
\end{document}
答案1
我看到两种解决方案:(1)芭芭拉建议的添加\parfillskip=0pt
适用于普通段落,但脚注以支撑框结尾,这会阻止右侧突出。对于这种情况,microtype 提供了命令\rightprotrusion
。(2)您还可以撤消添加的额外垂直空间\linebreak
。所以:
\documentclass{article}
\usepackage{microtype}
\begin{document}
Lorem ipsum\footnote{Sed non risus. Suspendisse lectus tortor, dignissim sit amet,
adipiscing nec, ultricies sed, dolor. Cras elementum ultrices diam. Maecenas ligula
massa, varius a, semper [\ldots] non, mi\parfillskip=0pt \rightprotrusion{.}}
dolor sit amet, consectetur adipiscing elit.
Lorem ipsum\footnote{Sed non risus. Suspendisse lectus tortor, dignissim sit amet,
adipiscing nec, ultricies sed, dolor. Cras elementum ultrices diam. Maecenas ligula
massa, varius a, semper [\ldots] non, mi.\linebreak\vspace{-\baselineskip}}
dolor sit amet, consectetur adipiscing elit.
\end{document}