gpt4 book ai didi

数字后和文本前的 LaTeX 空白

转载 作者:行者123 更新时间:2023-12-04 17:59:16 26 4
gpt4 key购买 nike

如何在脚注中的数字后留空?
一般来说,对于所有脚注!

例子:

: 1 Hello World

坏:1Hello World

最佳答案

正确答案是不要重新定义\thefootnote ,因为这会在脚注被引用的地方增加空间;例如:

\documentclass{article}\renewcommand{\thefootnote}{\arabic{footnote}~}\begin{document}hello\footnote{test\label{foo}} but don't forget about fn.\,\ref{foo}.\end{document}

Note the extra space when the footnote number is referred to!

The footnote itself (including the number) is placed by the macro \@makefntext, whose default definition is

\parindent 1em\noindent \hb@xt@ 1.8em{\hss \@makefnmark }#1

以下是在脚注编号后添加一些空格的替换示例:

\documentclass{文章}
\makeatletter
\long\def\@makefntext#1{%
\parindent 1em\noindent\hb@xt@ 1.8em{\hss\@makefnmark}~#1%
}
\makeatother
\begin{文档}
hello\footnote{test\label{foo}} 但不要忘记 fn.\,\ref{foo}。
\end{文档}

例如,您可能还希望减少左侧的缩进。

关于数字后和文本前的 LaTeX 空白,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/1870128/

26 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com