文本中的腳註標記應為上標襯線圖形,但腳註中的腳註標記應為全尺寸舊式圖形

文本中的腳註標記應為上標襯線圖形,但腳註中的腳註標記應為全尺寸舊式圖形

我的一般腳註佈局是這樣的:

\documentclass{article}
\usepackage{lipsum}
\usepackage[hang]{footmisc} % the whole footnote text is indented
    \setlength{\footnotemargin}{.5em} % push the footnote text half an em away from the footnote mark
\begin{document}
\null\vfill % just for this example
Text\footnote{\lipsum[2]}
\end{document}

在此輸入影像描述

但這並不是大多數印刷手冊會告訴您如何設計腳註標記的樣式。基於這些手冊,我想實現以下目標:

  1. 文本中的腳註標記應該是上標襯裡數字(我還不確定是否希望它們成比例或表格 - 我需要測試並查看)。
  2. 腳註中的腳註標記應為全尺寸舊式表格數字,後面跟著腳註文字之前的句點和空格。

現在,我可以1.用這段程式碼實作:

\documentclass{article}
\usepackage{lipsum}
\usepackage[hang]{footmisc} % the whole footnote text is indented
    \setlength{\footnotemargin}{.5em} % push the footnote text half an em away from the footnote mark
\usepackage{fontspec}
    \setmainfont{EBGaramond}
    \newfontfamily{\myfootnotemarkfont}{EBGaramond}[Numbers = Lining]
\usepackage{realscripts}
    \renewcommand\footnotemarkfont{\myfootnotemarkfont} % Proportional lining numbers for footnote markers
\begin{document}
\null\vfill % just for this example
Text\footnote{\lipsum[2]}
\end{document}

但這不會讓我更接近目標數字2. 在此輸入影像描述

我可以使用以下程式碼更改腳註中的腳註標記這個答案:

\documentclass{article}
\usepackage{lipsum}
\usepackage{fontspec}
    \setmainfont{EBGaramond}
    \newfontfamily{\myfootnotemarkfont}{EBGaramond}[Numbers = Lining]
\usepackage{realscripts}
    \renewcommand\footnotemarkfont{\myfootnotemarkfont} % Proportional lining numbers for footnote markers
\usepackage{scrextend}
    \deffootnote{1em}{0em}{\thefootnotemark.\enskip}
\begin{document}
\null\vfill % just for this example
Text\footnote{\lipsum[2]}
\end{document}

但這只會使用正文中的字體,該字體具有比例而不是表格舊式數字,而且我不明白如何將腳註標記放在頁邊距上,除了指定一些任意數字,就像{1em}或多或少看起來正確一樣。

在此輸入影像描述

如果只有一個包可以讓您修改腳註佈局的所有這些各個方面...

答案1

KOMA-Script(在您的例子中是通過scrextend)剛好有用於此目的的工具。您唯一需要做的就是定義合適的字體:

\usepackage{fontspec}
\setmainfont{EBGaramond}
\newfontfamily\EBGaramondLF  {EBGaramond}[Numbers = {Lining}]
% \newfontfamily\EBGaramondTLF {EBGaramond}[Numbers = {Monospaced,Lining}]
% \newfontfamily\EBGaramondOsF {EBGaramond}
\newfontfamily\EBGaramondTOsF{EBGaramond}[Numbers = {Monospaced}]

\deffootnote巨集允許定義懸掛腳註和頁腳中標記的樣式:

\deffootnote[space for mark]{hanging indent}{paragraph indent}{%
   mark definition using \thefootnotemark
}

space for mark將和設定hanging indent為相等的值將給出如圖所示的懸掛腳註。使用\makebox[space for mark][l]{...}會將其向右對齊,即對齊到邊距。在這種情況下 – 由於 \makebox will lead to a fixed width, we can also leave out the optional argument to\deffootnote`:

\usepackage{scrextend}
\newcommand*\footnotemarkspace{1.5em}
% footnotes in the footer:
\deffootnote{\footnotemarkspace}{1em}{%
  \makebox[\footnotemarkspace][l]{\EBGaramondTOsF\thefootnotemark.}%
}

對於文字中的標記有\deffootnotemark

\deffootnotemark{mark definition in the text using \thefootnotemark}

我們現在可以在哪裡使用

% footnote marks in the text:
\deffootnotemark{\textsuperscript{\EBGaramondLF\thefootnotemark}}

EBGaramond 擁有專門設計的優質人物。如果你想在文本中使用它們,你可以說

\newfontfamily\EBGaramondSu{EbGaramond}[VerticalPosition=Superior]

並將定義更改為

\deffootnotemark{\EBGaramondSu\thefootnotemark}

把這一切放在一起:

\documentclass{article}
\usepackage{fontspec}
\setmainfont{EBGaramond}
\newfontfamily\EBGaramondLF  {EBGaramond}[Numbers = {Lining}]
% \newfontfamily\EBGaramondTLF {EBGaramond}[Numbers = {Monospaced,Lining}]
% \newfontfamily\EBGaramondOsF {EBGaramond}
\newfontfamily\EBGaramondTOsF{EBGaramond}[Numbers = {Monospaced}]

\usepackage{scrextend}
\newcommand*\footnotemarkspace{1.5em}
% footnotes in the footer:
\deffootnote{\footnotemarkspace}{1em}{%
  \makebox[\footnotemarkspace][l]{\EBGaramondTOsF\thefootnotemark.}%
}

% footnote marks in the text:
\deffootnotemark{\textsuperscript{\EBGaramondLF\thefootnotemark}}

\usepackage{lipsum}

\begin{document}
\null\vfill % just for this example
\lipsum[4]
123 Text\footnote{\lipsum[2]} Text\footnote{\lipsum[3-4]}
\end{document}

在此輸入影像描述

相關內容