我正在使用词汇表包来定义首字母缩略词,但在一个地方我想用首字母缩略词的全文开始一个句子:
\subsection{Randomly-occurring deterministic disturbances}
\acrlong{RODD} (\acrshort{RODD}) are a family of ...
但是,由于\acrlong{RODD}
位于句子的开头,所以首字母需要大写。
我尝试过的两个选项的初步测试:
\MakeUppercase abc def ghi % works: Abc def ghi
\makefirstuc{abc def ghi} % works: Abc def ghi
尝试将这些应用到词汇表项:
\MakeUppercase \acrlong{RODD}
这会引起以下错误:
Incomplete \ifx; all text was ignored after line 17. \include{chapitre2}
Missing \endcsname inserted. \include{chapitre3}
Incomplete \ifcsname; all text was ignored after line 287.
\MakeUppercase{\acrlong{RODD}}
没有错误,但描述不是大写
\makefirstuc{\acrlong{RODD}}
引发以下错误:
Missing \endcsname inserted. \makefirstuc{\acrlong{RODD}}
Package glossaries Error: Glossary entry `\MakeTextUppercase {R}ODD' has not been defined. \makefirstuc{\acrlong{RODD}}
使用所述方法这里:
\expandafter\MakeUppercase\expandafter{\acrlong{RODD}}
引发以下错误:
Undefined control sequence. \expandafter\MakeUppercase \acrlong
Undefined control sequence. \expandafter\MakeUppercase \acrlong
Undefined control sequence. \expandafter\MakeUppercase \acrlong
...
使用所述方法这里
\expandafter\MakeUppercase \acrlong{RODD}
引发以下错误:
Undefined control sequence. \expandafter\MakeUppercase \acrlong
Undefined control sequence. \expandafter\MakeUppercase \acrlong
Undefined control sequence. \expandafter\MakeUppercase \acrlong
...
仅供参考:我想做的与这个人想要的相反,他们希望在首字母缩略词列表中将描述大写,但在文档中将其小写: 将首字母缩略词列表中的首字母大写
答案1
glossaries
已经为其大多数引用宏提供了句子大小写命令。就您而言,您正在寻找\Acrlong
。