我怎么能在脚注中的数字后面留一个空白?一般来说,对于所有脚注!
例子:
好:1个你好世界
坏: 1你好世界
正确的答案是不要重新定义\thefootnote
,因为这会在引用脚注的地方增加空间;例如:
\documentclass{文章} \renewcommand{\thefootnote}{\arabic{footnote}~} \开始{文档} hello\footnote{test\label{foo}} 但不要忘记 fn.\,\ref{foo}。 \结束{文档}
注意脚注编号时的多余空格!
脚注本身(包括数字)由宏放置\@makefntext
,其默认定义为
\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 \开始{文档} hello\footnote{test\label{foo}} 但不要忘记 fn.\,\ref{foo}。 \结束{文档}
例如,您可能还希望减少左侧的缩进。
\hspace
总能在某处提供水平间距。
\footnote{\ insert footnote here}
\footnote{~insert footnote here}
工作,但我不知道这是否是官方的方式。“ ~ ”正式用于以下情况:
Mr.~Smith
在缩写“ 。 ”之后提供通常的空格。“\”我不知道,我只是在前一段时间偶然看到它的用法,后来不小心把它放在了一个句子中。
编辑:好的,重新设计。丑陋的黑客,但是,嘿,LaTeX 不只是一堆吗?
将以下内容放入序言中:
\let\myfootnote\footnote
\renewcommand{\footnote}[1]{\myfootnote{~#1}}
这将简单地自动为您的脚注文本添加一个不间断空格,因此在页面底部的脚注标记之后创建一个空格。而且它不会触及文本中间的脚注标记,这就是为什么它在标点符号之前仍然可以正常工作的原因。
你可以试试~一个牢不可破的空间
我为自己创建了一个帐户,但现在我无法评论答案,所以我提出了我的解决方案。我尝试了 Will 的版本,但如果脚注太长并且需要换行,我会遇到问题。
因此,根据他的工作,我发现:
\makeatletter
\renewcommand{\@makefntext}[1]{%
\setlength{\parindent}{0pt}
\begin{list}{}{%
\setlength{\topsep}{0pt}
\setlength{\partopsep}{0pt}
\setlength{\labelwidth}{1em} % Space from number to border
\setlength{\labelsep}{0.3em} % Space from number to text
\setlength{\leftmargin}{\labelwidth}
\addtolength{\leftmargin}{\labelsep}
\footnotesize}\item[{\makebox[\labelwidth][r]{\@makefnmark}}]#1%
\end{list}
}
\makeatother
感谢您的所有帮助,现在它看起来非常好,我有帐户;)。