emph{}
当我在 或 中将它的某个命令与或组合使用时,我对 acronym 包创建的脚注遇到了一些问题textit{}
。
请参阅我的 MWE,它acronym
以各种方式使用该包。与斜体文本结合,脚注离斜体文本太近了。
有任何想法吗?
顺便说一句:不要介意我弄乱脚注计数器,它在所有部分都有相同的数字。
\documentclass{article}
\usepackage[footnote]{acronym}
\usepackage{a4wide}
\title{Spacing issues}
\author{Dohn Joe}
\begin{document}
\maketitle
\section*{Not using \texttt{acronym}}
A sentence containing CFD\footnote{Computational fluid dynamics}.\\[3ex]
%
Another sentence containing \emph{CCM}\footnote{Computational continuum mechanics}.\\[3ex]
%
Another sentence containing \textit{CCM}\footnote{Computational continuum mechanics}.
\setcounter{footnote}{0}
\section*{Using \texttt{acronym}}
A sentence containing \ac{CFD}.\\[3ex]
%
Another sentence containing \emph{\ac{CCM}}.\\[3ex]
%
Another sentence containing \textit{\acf{CCM}}.
\setcounter{footnote}{0}
%\acresetall
\section*{Emulating \texttt{acronym} by using \texttt{acronym}}
A sentence containing \acs{CFD}\footnote{\acl{CFD}}.\\[3ex]
%
Another sentence containing \emph{\acs{CCM}}\footnote{\acl{CCM}}.\\[3ex]
%
Another sentence containing \textit{\acs{CCM}}\footnote{\acl{CCM}}.
\section*{Acronyms}
\begin{acronym}
\acro{CFD}{Computational fluid dynamics}
\acro{CCM}{Computational continuum mechanics}
\end{acronym}
\end{document}
答案1
您可以重新定义并在首字母缩略词后\AC@acs
添加斜体更正( )。最后本质上\/
acronym
\mbox{CCM}\footnote{Computational continuum mechanics}
我们希望它是:
\mbox{CCM\/}\footnote{Computational continuum mechanics}
重新定义的完整示例:
\documentclass{article}
\usepackage[footnote]{acronym}
\makeatletter
\renewcommand*\AC@acs[1]{% redefinition with italic correction at the end:
\mbox{\expandafter\AC@get\csname fn@#1\endcsname\@firstoftwo{#1}\/}}
\makeatother
\begin{document}
\emph{\mbox{CCM}\footnote{Computational continuum mechanics}} \par
\emph{\mbox{CCM}\/\footnote{Computational continuum mechanics}} \par
\emph{\mbox{CCM\/}\footnote{Computational continuum mechanics}} \par % << this
\emph{\ac{CCM}}
\begin{acronym}
\acro{CCM}{Computational continuum mechanics}
\end{acronym}
\end{document}