脚注和破损边距

脚注和破损边距

假设出于随机原因,我想要脚注标记与之相关的文本,而不是然后代码

\documentclass{memoir}

\begin{document}

Hello my name is Gaussler and I have a problem with footnotes before linebreaks. If the word is sufficiently long, the line breaks look just \footnote{Footnote}superhypoerproblematic and I don't know what to do about it, so can you help me solve this problem? It would be really nice, and I would appreciate it and +1 your answer and say thank you very much, you're very nice.

\end{document}

生产

在此处输入图片描述

等等,这看起来太糟糕了。单词超出了边距。如何解决这个问题?

(顺便说一句,是的,我注意到了这个错字。但我不在乎。)

答案1

你可以这样做...

\documentclass{memoir}

\begin{document}

  Hello my name is Gaussler and I have a problem with footnotes before linebreaks. If the word is sufficiently long, the line breaks look just \footnote{Footnote}\nolinebreak\hspace{0pt}superhypoerproblematic and I don't know what to do about it, so can you help me solve this problem? It would be really nice, and I would appreciate it and +1 your answer and say thank you very much, you're very nice.

\end{document}

标记后的连字符

编辑感谢 egreg 的评论,现已更正。

答案2

我原来的\kern0pt方法因断掉连字而受苦。到目前为止,我发现的唯一补救措施是手动为脚注后面的单词提供连字点。在这种情况下,或\kern\hskip没有必要了。

\documentclass{memoir}

\begin{document}


Hello my name is Gaussler and I have a problem with footnotes before linebreaks. If the word is 
sufficiently long, the line breaks look just 
\footnote{Footnote}su\-per\-hy\-po\-er\-prob\-lem\-at\-ic and I don't know what to do about it, 
so can you help me solve this problem? It would be really nice, and I would appreciate it 
and +1 your answer and say thank you very much, you're very nice.

Hello my name is Gaussler and I have a problem with footnotes before linebreaks. If the word is 
sufficiently long, the line breaks look xxxxxxxjust 
\footnote{Footnote}su\-per\-hy\-po\-er\-prob\-lem\-at\-ic and I don't know what to do about it, 
so can you help me solve this problem? It would be really nice, and I would appreciate it 
and +1 your answer and say thank you very much, you're very nice.

\end{document} 

在此处输入图片描述

相关内容