
기반이 답변내 질문에텍스트의 각주 표시는 위첨자 안감 그림이어야 하지만, 각주의 각주 표시는 전체 크기의 이전 스타일 그림이어야 합니다., 각주 모양의 형식을 지정하기 위한 다음 코드가 있습니다.
\documentclass{article}
\usepackage{fontspec} % Unicode
\setmainfont{Libertinus Serif}
\newfontfamily\footfont{Libertinus Serif}[% for footnote markers in the footnote
Numbers = {Monospaced, OldStyle}]
\usepackage{scrextend} % KOMA script
\newcommand*\footnotemarkspace{1em} % set distance of the footnote text from the margin
\deffootnote{\footnotemarkspace}% use distance from above
{\parindent}% paragraph indent in footnotes (footnotes should never have paragraphs!)
{\makebox[\footnotemarkspace][l]{\footfont\thefootnotemark.}} % footfont with period for footnote marks in footnote
\begin{document}
Foobar\footnote{First footnote}\footnote{Second footnote}\footnote{Third footnote}\footnote{Fourth footnote}\footnote{Fifth footnote}\footnote{Sixth footnote}\footnote{Seventh footnote}\footnote{Eighth footnote}\footnote{Ninth footnote}\footnote{Tenth footnote}\footnote{Eleventh footnote}\footnote{Twelfth footnote}
\end{document}
텍스트의 10번째 각주에 도달하면 문제가 나타납니다. 즉, 각주 표시가 한 자리에서 두 자리로 바뀔 때입니다. 위 코드의 출력은 다음과 같습니다.
문제는 footnotemarkspace
각주 표시의 오른쪽 가장자리에서 텍스트까지의 거리를 설정하는 매개 변수가 없이 왼쪽 여백에서 각주 텍스트까지의 거리를 설정한다는 것입니다.
내가 보기에 가장 좋은 해결책은 각주 표시를 오른쪽 정렬하여 한 자리 숫자가 두 자리 숫자와 동일한 오른쪽 가장자리를 가지도록 하는 것입니다. 이렇게 하면 각주 표시의 오른쪽 가장자리에서 균일한 거리를 확보할 수 있습니다. 텍스트에. 그러면 이상적으로는 두 자리 각주 표시의 왼쪽 가장자리가 문서 텍스트 영역의 왼쪽 여백과 정렬되어야 합니다.
이 작업을 어떻게 수행할 수 있습니까?이전에도 같은 질문이 있었습니다, 그러나 이 경우 질문이나 제안된 답변 모두 이 경우에 사용하고 있는 KOMA 스크립트를 사용하지 않습니다.
답변1
확대해야 합니다 \footnotemarkspace
. 그런 다음 의 마지막 인수에서 명령 r
에 대한 옵션을 사용할 수 있습니다 .\makebox
\deffootnote
\documentclass{article}
\usepackage{fontspec} % Unicode
\setmainfont{Libertinus Serif}
\newfontfamily\footfont{Libertinus Serif}[% for footnote markers in the footnote
Numbers = {Monospaced, OldStyle}]
\usepackage{scrextend} % KOMA script
\KOMAoptions{footnotes=multiple}% maybe you want to use this option?
\newcommand*\footnotemarkspace{1.5em} % set distance of the footnote text from the margin
\deffootnote{\footnotemarkspace}% use distance from above
{\parindent}% paragraph indent in footnotes (footnotes should never have paragraphs!)
{\makebox[\footnotemarkspace][r]{\thefootnotemark.\ }} % footfont with period for footnote marks in footnote
\begin{document}
Foobar
\footnote{First footnote}\footnote{Second footnote}%
\footnote{Third footnote}\footnote{Fourth footnote}%
\footnote{Fifth footnote}\footnote{Sixth footnote}%
\footnote{Seventh footnote}\footnote{Eighth footnote}%
\footnote{Ninth footnote}\footnote{Tenth footnote}%
\footnote{Eleventh footnote}\footnote{Twelfth footnote}
\end{document}
아니면 다음과 같은 것을 사용할 수 있습니다
\makebox[\footnotemarkspace][l]{\footfont\phantom{99}\llap{\thefootnotemark}.}
암호:
\documentclass{article}
\usepackage{fontspec} % Unicode
\setmainfont{Libertinus Serif}
\newfontfamily\footfont{Libertinus Serif}[% for footnote markers in the footnote
Numbers = {Monospaced, OldStyle}]
\usepackage{scrextend} % KOMA script
\KOMAoptions{footnotes=multiple}% maybe you want to use this option?
\newcommand*\footnotemarkspace{1.5em} % set distance of the footnote text from the margin
\deffootnote{\footnotemarkspace}% use distance from above
{\parindent}% paragraph indent in footnotes (footnotes should never have paragraphs!)
{\makebox[\footnotemarkspace][l]{\footfont\phantom{99}\llap{\thefootnotemark}.}} % footfont with period for footnote marks in footnote
\begin{document}
Foobar
\footnote{First footnote}\footnote{Second footnote}%
\footnote{Third footnote}\footnote{Fourth footnote}%
\footnote{Fifth footnote}\footnote{Sixth footnote}%
\footnote{Seventh footnote}\footnote{Eighth footnote}%
\footnote{Ninth footnote}\footnote{Tenth footnote}%
\footnote{Eleventh footnote}\footnote{Twelfth footnote}
\end{document}
Sverre의 편집
여기서는 첫 번째 코드 샘플에 두 자리 각주 표시의 첫 번째 숫자를 문서 텍스트 영역의 왼쪽 여백에 정렬하는 방법이 없으므로 이를 수동으로 조정해야 한다는 점을 보여주고 싶습니다.
두 번째 코드 샘플은 두 자리 숫자의 왼쪽 가장자리를 왼쪽 여백에 맞춰 정렬합니다 \phantom
.\llap
왼쪽 정렬을 원할 경우 및 코드를 사용하는 \phantom
것이 \llap
좋습니다.