我收到一份请求,要求将首字母缩略词列表放在论文的开头,而不是放在词汇表所在的结尾。有人对此有什么想法吗?
我尝试将缩写词分离到单独的acronym.tex
文件中
\newacronym{MCDA}{MCDA}{\gls{multipleCriteriaDecisionAnalysis}}
\newacronym{a}{n}{other example}
而词汇表条目位于另一个glossary.tex
文件中
\longnewglossaryentry{multipleCriteriaDecisionAnalysis}{
name={multiple criteria decision analysis (\textmd{also referred to as} multiple criteria decision-making)},%
text=multiple criteria decision analysis,
{%
used to describe any structured approach to determine overall preferences among alternative options, where the options accomplish several objectives; it is often used in government, as in this manual, to describe those methods which do not rely predominantly on monetary valuations
decision-making analysis that evaluates multiple (conflicting) criteria as part of the decision-making process
}
\longnewglossaryentry{another}{
name={another},
{%
this means something
or not
}
正如我刚才所演示的。
main.tex
然后我会像这样打电话给他们:
\documentclass{article}
\usepackage[utf8]{inputenc}
\usepackage[nottoc,numbib]{tocbibind}
\usepackage[colorlinks]{hyperref}
% glossary
\usepackage[xindy]{glossaries}
\input{glossary}
\makeglossaries
\begin{document}
\input{title section}
\input{acronym.tex}
\tableofcontents
\section{Introduction}
Text.
\section{Conclusion}
\printglossary
\end{document}
但它不起作用——大概是因为首字母缩略词和词汇表项目都属于这个glossaries
包。
答案1
该模板将帮助您入门。
编译为pdflatex
+++pdflatex
makeglossaries
pdflatex
使用加载条目\loadglsentries{<filename>}
在此示例中 \printglossary[type=\acronymtype,title={Acronyms}]
将打印部分中(使用的)缩写词列表引言, 尽管 \printglossary[type=main, title={Glossary}]
将词汇表(已使用)列表添加到该部分结论。
% !TeX TS-program = pdflatex
\begin{filecontents}[overwrite]{myglossary.tex}
\longnewglossaryentry{multipleCriteriaDecisionAnalysis}{
name={multiple criteria decision analysis (\textmd{also referred to as} multiple criteria decision-making)},%
text={multiple criteria decision analysis},
description= {%
used to describe any structured approach to determine overall preferences among alternative options, where the options accomplish several objectives; it is often used in government, as in this manual, to describe those methods which do not rely predominantly on monetary valuations
decision-making analysis that evaluates multiple (conflicting) criteria as part of the decision-making process}
}
\longnewglossaryentry{another}{
name={another},
description={%
this means something
or not}
}
\newacronym{MCDA}{MCDA}{\gls{multipleCriteriaDecisionAnalysis}}
\newacronym{O}{OTHER}{other example}
\end{filecontents}
\documentclass{article}
\usepackage[acronym,xindy]{glossaries} % <<<<<<<<<<<<<<
\makeglossaries
\loadglsentries{myglossary} % load entries <<<<<<<<<<<<<<<
\begin{document}
\tableofcontents
\clearpage
\section{Introduction}
See \gls{multipleCriteriaDecisionAnalysis} and \gls{another}
Also \gls{MCDA} and \gls{O}
\printglossary[type=\acronymtype,title={Acronyms}]
\section{Conclusion}
Some text.
\printglossary[type=main, title={Glossary}]%
\end{document}