使用词汇表包生成缩写的最低使用要求

使用词汇表包生成缩写的最低使用要求

我发现,在我使用 制作的大部分内容中LaTeX,我严重依赖glossaries包功能(尤其是其自定义词汇表类型)。在许多领域,我理解惯例将首字母缩略词的使用限制在至少需要 2-3 次的情况下,因此我更希望能够设置一个选项或定义一个环境,以允许在创建/显示缩写词后创建一些最低要求。我试图在功能性 MWE 中明确说明这一点。

\documentclass{article}
\usepackage[utf8]{inputenc}

\setlength\parindent{0pt}

\newenvironment{paper}{%
    \global\let\oldthesection\thesection
    \renewcommand{\thesection}{\@arabic\c@section}%
}{%
\global\let\thesection\oldthesection
}

%=========================================================================================================================================
% PACKAGES REQUIRED FOR GLOSSARIES
%=========================================================================================================================================

% Glossaries must be loaded before amsmath as per details in the following forum answer
% https://tex.stackexchange.com/questions/85696/what-causes-this-strange-interaction-between--and-amsmath
\usepackage[nogroupskip,toc,acronym]{glossaries} % must come after href   
\usepackage{scrwfile}%http://www.dickimaw-books.com/cgi-bin/faq.cgi?action=view&categorylabel=glossaries#glsnewwriteexceeded

\makeglossaries

\newglossaryentry{ICPMS}{ type={acronym}, sort={inductively coupled plasma mass spectrometry},  name={ICPMS}, short={ICPMS}, long={inductively coupled plasma mass spectrometry}, first={inductively coupled plasma mass spectrometry (ICPMS)}, description={inductively coupled plasma mass spectrometry} }

\begin{document}

    \part{An example of an abbreviation with multiple calls}

    \begin{itemize}
        \item \gls{ICPMS}
        \item this term is fully expanded and summarized on first use which displays \gls{ICPMS}
        \item this both makes sense because \gls{ICPMS} has appeared multiple times and because this is exactly what is what the documentation describes. 
        \item This is likely exactly the situation glossaries was designed for...
    \end{itemize}



\part{An example of a single call of the abbreviation with}
\glslocalresetall[acronym]  
I have just reset the acronyms.  This time only a single call to the abbreviated term will be made and there will be no difference will exist between this and the previous typesetting of the example term.

\begin{itemize}
    \item \gls{ICPMS}
    \item This doesn't make sense - who cares about an abbreivation that never shows up again...
    \item It would make more sense to see:
    \item \glsdisp{ICPMS}{inductively coupled plasma mass spectrometry}
    \item It doesn't make sense to force this with glsdisp because at any point the term could be added and theres no point to having to go through the files looking for this instance to correct.
    \item This is particularly important if different people are responsbile for writting different sections but with a known and pre-prepared glossary of abbreviations.  Who knows who will generate the first use, or if it will be the only occurance...
\end{itemize}

\begin{paper}
    \part{A custom environment to track gls usage}
    My ideal solution would include a new custom environment like the  which would contain the reset command, and contain some counters and decission structures so that I could have intelligant use criteron for the presentation of an acronym.

\end{paper}

\end{document

词汇表缩写的一些潜在最低使用标准:

  • 需要至少 4 个事件计数才能触发使用(否则,该术语仅使用 3 次就不值得缩写)。
  • 在同一节(或其他类型的指定文档层次结构)中至少使用 2 次,然后,如果频率上升,首字母缩略词标准将反映这一点。
  • 如果在 2 页内未使用术语表术语,则重置
  • 词汇表中的术语若未在 1000 个字以内使用则视为休息,等等。

注意我相信这不是重复的首次出现时抑制词汇表扩展因为这并不是对首次使用的统一压制。

更新:

虽然还没有完全调查清楚(只是在做其他事情时偶然发现的),词汇表:不要打印单个出现的内容可能包含与该问题的部分内容相关的类似类型的黑客攻击。

相关内容