我注意到,当脚注位于正面单词。它不会用连字符连接单词,而是根据单词在页面上的位置,直接将其放在页边距中,如下所示:
此代码演示了这个问题:
\documentclass{article}
\usepackage[paperheight=4in,paperwidth=6in]{geometry}
\geometry{top=1in,bottom=1in,left=2in,right=2in}
\usepackage{polyglossia}
\setmainlanguage{english}
\begin{hyphenrules}{english}
\hyphenation{this-is-a-really-long-word-but-it-can-be-hy-phe-na-ted}
\end{hyphenrules}
\begin{document}
\par\noindent
Now is the time for thisisareallylongwordbutitcanbehyphenated\footnote{Footnote1} all
good men to come to the aid of their thisisareallylongwordbutitcanbehyphenated country.
Now is the time for all good men to \footnote{Footnote2}thisisareallylongwordbutitcanbehyphenated
come to the aid of their country.
\end{document}
为什么在这种情况下连字可能会失败?请注意,如果您只是删除脚注 #2,polyglossia 就会将有问题的单词连字。
答案1
用于\nobreak\hspace{0pt}
将脚注与文本分开:
\documentclass{article}
\usepackage[paperheight=4in,paperwidth=6in]{geometry}
\geometry{top=1in,bottom=1in,left=2in,right=2in}
\usepackage{polyglossia}
\setmainlanguage{english}
\begin{hyphenrules}{english}
\hyphenation{this-is-a-really-long-word-but-it-can-be-hy-phe-na-ted}
\end{hyphenrules}
\begin{document}
\par\noindent
Now is the time for
thisisareallylongwordbutitcanbehyphenated\footnote{Footnote1} all good men to
come to the aid of their thisisareallylongwordbutitcanbehyphenated country.
Now is the time for all good men to
\footnote{Footnote2}\nobreak\hspace{0pt}thisisareallylongwordbutitcanbehyphenated
come to the aid of their country.
\end{document}