前导和段落式脚注

前导和段落式脚注

这是前导包和脚注之间的垂直空间。Werner 的答案非常完美,但没有选项parafootmisc在调整字体行距并使用段落样式脚注时,有没有办法使脚注的行距保持一致?

以下是该问题的一个例子:

\documentclass[12pt]{book}
\usepackage[a5paper]{geometry}
\usepackage[norule,para]{footmisc}
\linespread{1.15}
% https://tex.stackexchange.com/a/61908/7883
\usepackage{etoolbox}
\makeatletter
\patchcmd{\@makefntext}
  {#1}
  {\usebox\strutbox#1}
  {}{}
\makeatother
\begin{document}
Alice was beginning to get very tired of sitting by her sister on the
bank, and of having nothing to do: once or twice she had peeped into
the book her sister was reading, but it had no pictures or
conversations in it.\footnote{`And what is the use of a book,' thought
  Alice `without pictures or conversation?'}

So she was considering in her own mind\footnote{As well as she could,
  for the hot day made her feel very sleepy and stupid.} whether the
pleasure of making a daisy-chain would be worth the trouble of getting
up and picking the daisies, when suddenly a White Rabbit with pink
eyes ran close by her.

There was nothing so \textsc{very} remarkable in that; nor did Alice
think it so \textsc{very} much out of the way to hear the Rabbit say
to itself, `Oh dear!  Oh dear!  I shall be late!';\footnote{When she
  thought it over afterwards, it occurred to her that she ought to
  have wondered at this, but at the time it all seemed quite natural.}
but when the Rabbit actually \textsc{took a watch out of its
  waistcoat-pocket}, and looked at it, and then hurried on, Alice
started to her feet, for it flashed across her mind that she had never
before seen a rabbit with either a waistcoat-pocket, or a watch to
take out of it, and burning with curiosity, she ran across the field
after it, and fortunately was just in time to see it pop down a large
rabbit-hole under the hedge.

In another moment down went Alice after it, never once considering how
in the world she was to get out again.
\end{document}

输出细节

答案1

我认为您不需要重新定义之前的问题。但无论如何,问题似乎如下:

  1. baselineskipFootmisc 根据加载footnotesize文本时的值设置脚注中的行距footmisc。这意味着您的脚注被设置为\linespread1,因为在加载包时您还没有做出更改。

  2. Footmisc 在制作脚注标记的位置插入\strut。这会增加有脚注标记的行中的空间,因为 设置\strut为基线跳过,已根据您的线展进行调整。

因此,您看到的是将脚注段落设置为linespread1,但在每个脚注开头设置\strut适当的1.3 的结果。这完全扰乱了间距。linespread

您可以做两件事:

  1. 如果你单倍行距的脚注,然后保持原样,但修补 footmisc,以便它不会插入有问题的\strut

    \patchcmd{\@footnotetext}
      {\strut}
      {}
      {}{}
    

    我认为理想情况下人们实际上会插入一个具有适合单倍行距脚注文本尺寸的规则:但实际上你可能什么都不做也能生存下来。

  2. 如果你希望脚注有相同的行距调整,请确保你发布你的\linespread 正在加载 footmisc。

完成下面的 MWE:

\documentclass[12pt]{book}
\usepackage[a5paper]{geometry}
\linespread{1.3}%<- Put here to have spaced footnote text
\usepackage[norule,para]{footmisc}
%\linespread{1.3}%<- Put here to have single spaced footnotes
% http://tex.stackexchange.com/a/61908/7883
\usepackage{etoolbox}
\makeatletter
\patchcmd{\@footnotetext}
  {\strut}
  {}
  {}{}
\makeatother
\begin{document}

Alice was beginning to get very tired of sitting by her sister on the
bank, and of having nothing to do: once or twice she had peeped into
the book her sister was reading, but it had no pictures or
conversations in it.\footnote{`And what is the use of a book,' thought
  Alice `without pictures or conversation?'}

So she was considering in her own mind\footnote{As well as she could,
  for the hot day made her feel very sleepy and stupid.} whether the
pleasure of making a daisy-chain would be worth the trouble of getting
up and picking the daisies, when suddenly a White Rabbit with pink
eyes ran close by her.

There was nothing so \textsc{very} remarkable in that; nor did Alice
think it so \textsc{very} much out of the way to hear the Rabbit say
to itself, `Oh dear!  Oh dear!  I shall be late!';\footnote{When she
  thought it over afterwards, it occurred to her that she ought to
  have wondered at this, but at the time it all seemed quite natural.}
but when the Rabbit actually \textsc{took a watch out of its
  waistcoat-pocket}, and looked at it, and then hurried on, Alice
started to her feet, for it flashed across her mind that she had never
before seen a rabbit with either a waistcoat-pocket, or a watch to
take out of it, and burning with curiosity, she ran across the field
after it, and fortunately was just in time to see it pop down a large
rabbit-hole under the hedge.

In another moment down went Alice after it, never once considering how
in the world she was to get out again.
\end{document}

间隔版本

间隔版本

无空格版本

在此处输入图片描述

相关内容