
我使用這個acronym
包來表示我的首字母縮寫。有沒有辦法使縮寫列表本身中的縮寫非斜體,但在文本中以斜體形式使用它們?大多數時候它都可以使用,\textit{\acs{XY}}
但是當我在首字母縮略詞中有下標時,我不希望下標是斜體。例如,在下面的程式碼中,我想將 Mint 連結到首字母縮寫列表,「Min」應該是斜體,而下標「t」不是斜體。我怎樣才能做到這一點?
\documentclass[oneside, english, 12pt]{book}
\usepackage{acronym}
\begin{document}
\begin{acronym}
\acro{Mint} [Min\textsubscript{t}]{Position of Minimum}
\end{acronym}
'Min' should be italic and the subscript 't' nonitalic.
And the whole word linked to the acronym list \textit{\acs{Mint}}
\end{document}
答案1
這就是你所尋求的嗎?如果是這樣,我會注意到它是透過將下標文字明確包含在\textup{}
.
\documentclass[oneside, english, 12pt]{book}
\usepackage{acronym}
\begin{document}
\begin{acronym}
\acro{Mint} [Min\textsubscript{\textup{t}}]{Position of Minimum}
\end{acronym}
'Min' should be italic and the subscript 't' nonitalic.
And the whole word linked to the acronym list \textit{\acs{Mint}}
\end{document}