术语和缩写

术语和缩写

我有一个包含论文不同章节的 TeX 文件。每个章节都在主 TeX 文件中导入的不同 TeX 文件中。我想知道如何将命名法和缩写列表添加到我的论文中。我应该一一写出来吗?

\addto\captionsenglish{\renewcommand{\contentsname}{\MakeUppercase{\bf Table of Contents}}}
\addto\captionsenglish{\renewcommand{\listtablename}{\bf LIST OF TABLES}}
\addto\captionsenglish{\renewcommand{\listfigurename}{\bf LIST OF FIGURES}}


bla bla bla

\clearpage
\tableofcontents

\clearpage
\addcontentsline{toc}{chapter}{\listtablename}
{\let\oldnumberline\numberline\renewcommand{\numberline}{\tablename~\oldnumberline}\listoftables}

\clearpage
\addcontentsline{toc}{chapter}{\listfigurename}
{\let\oldnumberline\numberline\renewcommand{\numberline}{\figurename~\oldnumberline}\listoffigures}

答案1

我建议使用包来创建缩写和命名法。只需更改类名,acro即可使用命令定义缩写和命名法。例如:\DeclareAcronym{}{}

\documentclass{report}
\usepackage{acro}
\acsetup{first-style=short}
\DeclareAcronym{GMC}{
    short = GMC,
    long = G.M.Constructions,
    class = abbrev
}
\DeclareAcronym{SPM}{
    short = SPM,
    long = Sectro photo meter,
    class = abbrev
}
\DeclareAcronym{NY}{
    short = NY,
    long = New York,
    class = abbrev
}
\DeclareAcronym{L}{
    short = L,
    long = Litre,
    class = nomencl
}
\DeclareAcronym{mg}{
    short = mg,
    long = Milli gram,
    class = abbrev
}
\DeclareAcronym{mL}{
    short = mL,
    long = Milii Litre,
    class = nomencl
}
\DeclareAcronym{g}{
    short = g,
    long = Gram,
    class = abbrev
}
\begin{document}
    \ac{GMC} is one of the famous company. \ac{SPM} is used for analytical study of compounds. I live in \ac{NY}.   $1$ \ac{L} = $1000$ \ac{mL}. Similarly, $1$ \ac{g} = $1000$ \ac{mg}.
    \printacronyms[include-classes=abbrev,name=Abbreviations]
    \printacronyms[include-classes=nomencl,name=Nomenclature]       
\end{document}

结果是 在此处输入图片描述

\ac{}您可以为每个章节创建单独的 tex 文件,并且一旦在文档的序言中定义了所有首字母缩略词,您就可以在任何文件中使用它。

相关内容