Giter Club home page Giter Club logo

acronym's Introduction

An Acronym Environment for LaTeX

INSTALLATION:
 - call 'latex acronym.ins' and copy the acronym.sty - file into
   a path searched by LaTeX.
 - to re-generate the documentation, call latex acronym.dtx

While writing a paper on cellular mobile radio I had to used a lot of
acronyms.  Acronyms can be quite disturbing for the novice reader ...

The Acronym package provides tooling to make sure that all acronyms used in
the text are spelled out in full at least once and it provides an
environment to keep a list of used acronyms.

Note that acronym requires the 'suffix' package. You can find it on 
CTAN:macros/latex/contrib/bigfoot/

Files of the `acronym' package:
  README         This file
  acronym.dtx    Sourcecode, example file & documentation
  acronym.ins    Installation script generating the source and an example
  acronym.pdf    PDF Version of the Docs
  CHANGES        list of changes

If you run into trouble or would like to contribute, please use

https://github.com/oetiker/acronym/

cheers
tobi

acronym's People

Contributors

07u avatar blefloch avatar ldj01 avatar marsmee avatar mlegner avatar oetiker avatar schirmeier avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar

acronym's Issues

Acronym shortkey results in awkward Bug.

When i use the shortkey 'acl' for my acronym im getting a weird bug breaking all acronyms defined below. It results in this string printed out " @<>@<>@acl (TA)" which is " @<>@<>@" + shortkey + "(" + short acronym + ")"

Definde following acronym to reproduce this bug:
\acro{acl}[…]{…}

\begin{acronym}
    \acro{ta}[TA]{Trusted"=Anchor}
    \acro{acl}[test]{test}
    \acro{ca}[CA]{Certificate Authority}
    \acro{lbb}[\texttt{LBB}]{\texttt{Low"=Level"=Bootloader}}
    \acro{cot}[CoT]{Chain of Trust}
    \acro{bpr}[BPR]{\texttt{Boot} \texttt{Progress} \texttt{Register}}
    \acro{soc}[SoC]{\texttt{System} \texttt{on} \texttt{Chip}}
    \acro{uid}[UID]{Unique Identifier}
    \acro{uuid}[UUID]{Universally Unique Identifier}
    \acro{ota}[OTA]{Over"=The"=Air}
    \acro{alist}[ACL]{Access Control List}
    \acro{aslr}[ASLR]{Speicherverwürfelung (eng.: Address Space Layout Randomization)}
\end{acronym}

With the usage as follows:

\ac{ta}
\ac{acl}
\ac{ca}
\ac{lbb}
\ac{cot}
\ac{bpr}
\ac{soc}
\ac{uid}
\ac{uuid}
\ac{ota}
\ac{alist}
\ac{aslr}

produces the following result:
latex bug

\ac always shows short form when called inside pdftooltip

Hello,

At first thanks for your package, it is really useful to easily track all the acronyms and generate the list of them.

One thing I was trying to achieve was to, instead of providing an hyperlink to the list, show the acronym long forms in a tooltip.

I achieved that defining a new command (I called it \act, and its variants) that at the end calls the following relying on pdftooltip from https://ctan.org/pkg/pdfcomment
\pdftooltip{\ac{#1}}{\acl*{#1}}

even simpler form:
\pdftooltip{\ac{DAG}}{TEST}

fails in the same way

The problem is that, for some reason, when \ac is called inside pdftooltip, it always prints thee short form, even for the first time... and I fail to understand why. For all the other cases it works nice, but that problem with \ac makes me wonder about what could be happening (and it's a bit sad because, apart from that, everything else works)

Thanks a lot for your help

Add Support for Capitalization in Titles and Captions

Often times, the style of documents requires capitalization of words or phrases in titles and captions. Examples would be

Normal Text Titles and Captions
deep learning Deep Learning
hidden Markov model Hidden Markov Model
sequence to sequence Sequence to Sequence

This, however, is not (fully) supported by the package: As of now, only the first letter of the first word in a phrase can be capitalized but not every word's first letter or some words' first letters. Therefore, I suggest

  • adding a package flag for enabling automatic capitalization of any word in an acronym phrase when in a title or caption environment,
  • adding a flag to all existing commands entering the long form of acronyms inside text or adding likewise new commands to manually force the use of the capitalized form, and
  • adding an optional field to the \acro command to specify notations where not all words in the phrase (like for "sequence to sequence" / "Sequence to Sequence") are capitalized.

Thanks.

Edit: Spelling

Capitalization of acronym custom plural

I'm encountering two related bugs. First the easy one: the definition of \@Acp incorrectly uses \acsp twice, which should be replaced by \Acsp. Second, commands such as \AC@Aclp fail to capitalize the full form in case a custom plural \csname fn@#1@PL\endcsname is available: \AC@Aclp calls \AC@aclp after setting the \ifAC@upper switch, but the definition

\newcommand*\AC@aclp[1]{%
  \ifcsname fn@#1@PL\endcsname
  \csname fn@#1@PL\endcsname
  \else
  \AC@acl{#1}s%
  \fi
}

means that \csname fn@#1@PL\endcsname is used directly, without being processed with \ifAC@upper \@firstupper etc. (correctly used in the standard case that passes through \AC@get).

Add \ac but reversed

For some acronyms I would prefer to see them like this ACR (Acronym) instead of how it is done currently: Acronym (ACR).

I made a very crude implementation of this command for myself, I might make a pull request with a better version soon.

Full name never printed if first usage is within \caption

If an acronym is first mentioned in a caption, then the full name of that acronym will never be printed. Neither in the caption nor in the text.

Minimal working example:

\documentclass[12pt]{article}

\usepackage{acronym}

\acrodef{FSK}{Frequency-Shift Keying}

\begin{document}

\begin{figure}[t]
\caption{Here, the acronym is mentioned in a caption before it appears in text \ac{FSK}.}
\end{figure}

\noindent
This is the first usage of the acronym in text \ac{FSK}.

\end{document}

The expected output for that example is:

Figure 1: Here, we mention the acronym in a caption before it appears in text FSK.
This is the first usage of the acronym in text Frequency-Shift Keying (FSK).

The actual output for that example:

Figure 1: Here, we mention the acronym in a caption before it appears in text FSK.
This is the first usage of the acronym in text FSK.

If the figure definition is moved below the text line, the acronym's full name is printed correctly.

Acronyms in TeX Live version 2020 (Overleaf)

I am using your package acronym within the overleaf web interface and ran in the following problem. When I compile my file in the TeX Live version 2019 everything works perfectly fine but under the 2020 version the following appears:

Hyper reference `acro:MPC' on page 1 undefined on input line 2.

The error can be reproduced very well with Overleaf's template: https://de.overleaf.com/latex/examples/automatic-acronym-list-in-latex/dzvxfzpsjrmm

Is the problem known or any fix?

how to use multiple acronym environments?

I am putting together my dissertation, which has three chapters originally prepared as individual latex projects for submission to a journal. Each chapter uses acronym and ends with an acronym environment (because of the journal's latex template). In my dissertation I call \acresetall before and after each \include command that is used to import the text for the three chapters.

However, each printed acronym environment includes all the acronyms used regardless of the section/chapter it is included in. For example an acronym used in chapter 1 is not referenced in chapter 2, but is printed in chapter 2's acronym environment output.

There is some overlap in the acronym environments, as I copied my first acronym list into my 2nd paper and so on, so there are acronyms defined in the later chapter's acronym list even though the particular acronym is not used in the chapter. I suppose I could just remove the irrelevant acronyms from each chapter list, but I haven't tried that yet to know if it would work.

Is there something else I can do to ensure each environment only prints the acronyms used within the relevant tex file, that doesn't require drastic changes to how I structure my project?

I think I can accomplish this by switching to use the glossaries package potentially, but I would have to redefine the calls to \ac and \acp and it may take a while for me to fully work that out.

rough example, result of which is that chapter2's acronym list will include the "PDF" acronym

chapter1.tex:

\chapter{1}
\ac{PDF}

\begin{acronym}
\acro{PDF}[PDF]{...}
\end{acronym}

chapter2.tex:

\chapter{2}
\ac{CDF}

\begin{acronym}
\acro{PDF}[PDF]{...}
\acro{CDF}[CDF]{...}
\end{acronym}

main.tex:

\documentclass[12pt]{report}
\usepackage[printonlyused]{acronym}

\begin{document}
\acresetall
\include{chapter1.tex}
\acresetall

\acresetall
\include{chapter2.tex}
\acresetall
\end{document}

printonlyreused and capitalizing doesn't work

Version 1.46 provides options to only print multiply used acronyms ([printonlyreused]) to the list of acronyms as well as capitalizing e.g. long versions (\Acl{XYZ}). Capitalizing worked for me in an earlier version. I updated the package to version 1.46 but none of the above mentioned works now. I also re-installed the required packages suffix and xstring. I'm using MiKTeX 2.9.7380 with PDFlatex and also reset MiKTeX configuration but nothing helped. Please find below a MWE to describe the problem.

In my output, the long version of A is not capitalized, and B is still on the list.

\documentclass[12pt]{article}
\usepackage[printonlyreused]{acronym}
\begin{document}

\section{Chapter}
First use: \ac{NA}  \\
2nd use: \ac{NA}   \\
Long version with capital: \Acl{NA} \\
Other acronym, only mentioned once: \ac{NB} \\
The third acro is not mentioned to be excluded on the printed list

\section{List of acronyms}
\begin{acronym}
\acro{NA}{new acro A}
\acro{NB}{new acro B} % negative test for [printonlyreused]
\acro{NC}{new acro C} % negative test for [printonlyused]
\end{acronym}

\end{document}

Fix forward links in list of acronyms cases where only \acs is used in text

I have a long document with many chapters and a long list of acronyms. I appreciate the forward links feature of this package which takes you from the LoAs to the first usage. However, for stylistic reasons, several of my acronyms are used for the first time, or only, in the short form and so these hyperlinks are missing from my glossary. This looks strange because I have a list of acronyms that are blue and then scattered about are the various acronyms that I have used that don't have forward links associated with them and this is distressing. I have attempted to fool the compiler into thinking the acronym was called by putting \ac{myacronym} inside a \vphantom or similar construct, but this didn't work, nor did calling \acused{myacronym}. Can you please provide a workaround?

Upper case ignored for acronyms defined using \acroplural

If an acronym is defined using \acroplural, the commands \Acp, \Acfp, and \Aclp fail to capitalize the first letter of the long form.

MWE

\documentclass{article}
\usepackage[nolist]{acronym}

\begin{document}

\begin{acronym}
	\acroplural{AS}[ASes]{autonomous systems}
\end{acronym}

\Acp{AS} \\
\Acfp{AS} \\
\Aclp{AS} \\

\end{document}

Result

autonomous systems (ASes)
autonomous systems (ASes)
autonomous systems

Expected result

Autonomous systems (ASes)
Autonomous systems (ASes)
Autonomous systems

I'm using acronym 2020/04/17 v1.47

\Iac problem, after acronym is used

A way to reproduce the error:

  1. Open acrotest.tex
  2. In the acronym environment, add: \acroindefinite{IC}{an}{an}.
  3. Add to the text, somewhere after \acp{IC}, the command \Iac{IC}.

Note:
I'm not sure it is helping, but loading the package with the option |nolist|, makes the problem disappear.
Also, erasing the first \acp{IC} or the added \acroindefinite{IC}{an}{an}, will make the file compile as expected.

List of acronyms contains hyperlink

After the upgrade from TL2019 to TL2020 I have rebuilt a few documents and noticed that those documents using acronym package and that contain

\usepackage[pagebackref]{hyperref}
\usepackage[hyperpageref]{backref}

display the list of acronyms with more o less randomly distributed hyperlinked acronyms which behave as backref package does. The attachment contains 2 screenshot, one taken on a document built (2020.03.03) with TL219 (what I expect) and one taken for the same document rebuilt with TL2020, displaying what I do not expect.

The documents using acronym package but not backref have the list of acronims as I expect, not hyperlinked but just black bold text...

BTW, I flagged this issue also on texlive list

acronyms_sshot.tar.gz

Acronym section automatically generated from \newacro entries?

I really like the flexibility of the \newacro command for adding acronyms as I am writing. I also understand the explanation of the use of the \newacro command for using acronyms without generating an acronym list.

Is it possible to automatically generate an acronym section from \newacro entries when the document is processed?
Thanks,
Joel

Irregular vertical spacing between acronyms

When using a large acronym list with only a few printed (using the "printonlyused" option), occasionally extra vertical space is introduced between the printed items. Here is a minimal example that illustrates the issue:

\documentclass[12pt]{book}
\usepackage[printonlyused]{acro}
\begin{document}
\ac{XXX}
\ac{YYY}
\begin{acronym}[XXXXXXXXXX]
\acro{XXX}{xxxx xxxx xxxx xxxx xxxx xxxx xxxx xxxx xxxx}
\acro{101}{}
\acro{102}{}
\acro{103}{}
\acro{104}{}
\acro{105}{}
\acro{106}{}
\acro{107}{}
\acro{108}{}
\acro{109}{}
\acro{110}{}
\acro{YYY}{xxxx}
\end{acronym}
\end{document}

The spacing between the XXX and YYY definitions is larger than it should be. The spacing between the two definitions is corrected if any of the following is done:

  • Reduce the number of unused acronyms (101 - 110).
  • Reduce the length of the defined item width ("XXXXXXXXXX").
  • Reduce the length of the XXX acronym definition.

I think I've traced the problem to the \begingroup block in the \AC@@Acro definition in acronym.sty (2015/03/21, v1.41). Multiple @bsphack @esphack pairs (introduced by each unused acronym) appear to add white space to the previous printed acronym definition so that, at some point the definition spans an additional line.

I'm not sure that my description is accurate, but I have found that adding "\ignorespaces" after the \endgroup seems to resolve the issue.

Dots in list of acronym

I have been using your package for a year. In september the list of acronyms was shown correctly. However, with this version , if the acronym was used in a caption two weird things happen when listing the acronyms:

  • Two dots appear after each of those elements
  • These elements are linked to the list of figures. That is, there is a link from the list of acronyms to the element in the list of figures where the element was used.

Add a way to render acronyms in upper case in the list of acronyms while not when used inline

I am unable to get acronyms showing their longer form starting in upper case while still being able to be shown in lower case when used inline in the text.

For now I am using this workaround:
https://tex.stackexchange.com/questions/70875/how-to-render-individual-acronyms-in-lower-case-when-used-inline-but-mixed-case

And it works... but maybe it would be better to do it native, maybe like an option for \acro

Thanks a lot

hyperlink behaviour in list of acronyms

Hello,

i have a short question concerning the acronym package. I used in the past an older version from miktex 2.9 package installed on 10.04.2018 to write my dissertation and updated the package a month ago and the behaviour is different concerning the listing of acronyms, see attachement. Usage in code is:

\PassOptionsToPackage{printonlyused,smaller,withpage}{acronym}
\usepackage{acronym}

I used it in combination with the hyperref package (loaded first!) like \usepackage[linktocpage=true]{hyperref} to hyperref only the page numbers and not the whole listed acronym. This worked fine before the update, but now i get instead of the hyperlink for the page number a whole hyperlink for the acronym with definition. Do you have any ideas how to get again only the page numbers as a link in the list of acronyms? The behaviour of the now bold acronyms i managed it with a renewcommand like that:

\renewcommand*\aclabelfont[1]{\acsfont{#1}}

It seems to be similar question to the issue in: #32

Thanks a lot for your help in advance

Cheers
Mathias

acronym_list_issue.zip

Italicize first occurrence of a term?

It would be great to have the first occurrence of a term to be italicized, like with the acro package (\acsetup{first-long-format=\itshape}), but can't find a way to do it (other than specifically using \acfi).

Make acronym index sort alphabetically

Hey, I came across your great acronym package but I noticed when I googled for "latex acronym sort alphabetical" I found users from 2011 asking the same problem.

Could you add support for sorting the index alphabetically?

% Acronyms (Abkürzungsverzeichnis)
\usepackage{acronym}  

...

% Abkürzungsverzeichnis
% im Text dann mit \ac{DAST} referenzieren
\section*{Abkürzungsverzeichnis}
\addcontentsline{toc}{section}{Abkürzungsverzeichnis}
\begin{acronym}
    \acro{B}{Blub}
    \acro{A}{Bla}
%...
\end{acronym}
\clearpage

In tabularx, the commands show weird bugs

The bugs described here occur when compiling a document with acronym version 1.42 of November 11, 2019.


If an acronym has its first occurrence within a tabularx environment, only the short form will be output and the entry will also appear without its page number in the list. For comparison, the same code was compiled in a tabular environment where no such problems occur.

Also, note the weird "margin-top" inside the tabular environment, which does not occur when manually writing the exact same content in a new cell. This bug does not occur in tabularx, though.


MWE

\documentclass{article}

% Typeset Packages
\usepackage{parskip}
\usepackage[nohyperlinks, printonlyused, withpage]{acronym}

% Table Packages
\usepackage{tabularx}
\usepackage{booktabs}


\begin{document}

\section*{List of acronyms}

\begin{acronym}
    \acro{MTBE}[MTBE]{methyl \textit{tert}-butylether}
    \acro{4'-OH ATX}[4'-OH ATX]{4'-hydroxy atomoxetine}
\end{acronym}


\section{Tabular vs. tabularx}

Table with \texttt{tabular}
\begin{table}[htb!]
    \centering
    \begin{tabular}{p{\dimexpr 0.5\linewidth-2\tabcolsep} p{\dimexpr 0.5\linewidth-2\tabcolsep}}
        \toprule
            Substance
                & Company \\%
        \midrule
            \ac{MTBE}
                & Carl Roth GmbH \& Co. KG\\\midrule%
            methyl \textit{tert}-butylether
                & Carl Roth GmbH \& Co. KG\\
        \bottomrule
    \end{tabular}
\end{table}%

Table with \texttt{tabularx}
\begin{table}[htb!]
    \centering
    \begin{tabularx}{\linewidth}{X X}
        \toprule
            Substance 
                & Company \\%
        \midrule
            \ac{4'-OH ATX}
                & Carl Roth GmbH \& Co. KG\\\midrule%
            4'-hydroxy atomoxetine
                & Carl Roth GmbH \& Co. KG\\%
        \bottomrule
    \end{tabularx}
\end{table}

\end{document}

\Acf compilation error

There seems to be an issue with the \Acf command on TeX Live 2019. The following example errors, but works if I remove the \Acf.

I should note I am using the acronym.sty generated from the tip of the master branch def93b46bc8385cd5399808500701d74ac301530 using latex acronym.ins.

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

\usepackage{acronym}

\begin{document}

This is an example; \ac{ihe}.\\
And \acf{ihe} again!
And \Acf{ihe} again!

\acrodef{ihe}{\emph{integrating the Health Enterprise}}

\end{document}

outputs:

This is pdfTeX, Version 3.14159265-2.6-1.40.20 (TeX Live 2019/Debian) (preloaded format=pdflatex)
 restricted \write18 enabled.
entering extended mode
(./mini.tex
LaTeX2e <2020-02-02> patch level 2
L3 programming layer <2020-02-14>
(/usr/share/texlive/texmf-dist/tex/latex/base/article.cls
Document Class: article 2019/12/20 v1.4l Standard LaTeX document class
(/usr/share/texlive/texmf-dist/tex/latex/base/size10.clo))
(/usr/share/texlive/texmf-dist/tex/latex/base/inputenc.sty) (./acronym.sty
(/usr/share/texlive/texmf-dist/tex/latex/bigfoot/suffix.sty)
(/usr/share/texlive/texmf-dist/tex/generic/xstring/xstring.sty
(/usr/share/texlive/texmf-dist/tex/generic/xstring/xstring.tex)))
(/usr/share/texlive/texmf-dist/tex/latex/l3backend/l3backend-pdfmode.def)
(./mini.aux)
! Use of \\@Acf doesn't match its definition.
\text@command #1->\def \reserved@a {
                                    #1}\ifx \reserved@a \@empty \let \check@...
l.10 And \Acf{ihe}
                   again!
? 
! Too many }'s.
<recently read> \egroup 
                        
l.10 And \Acf{ihe}
                   again!
? 
! Too many }'s.
\xs_StrSplit_i__ #1#2->\xs_def \xs_arg_i {#1}
                                             \xs_def \xs_arg_ii {#2}\edef \x...
l.10 And \Acf{ihe}
                   again!
? 
! Missing control sequence inserted.
<inserted text> 
                \inaccessible 
l.10 And \Acf{ihe}
                   again!
? 
[1{/var/lib/texmf/fonts/map/pdftex/updmap/pdftex.map}] (./mini.aux) )
(\end occurred inside a group at level 1)

### simple group (level 1) entered at line 10 ({)
### bottom level
(\end occurred when \ifx on line 10 was incomplete)
(\end occurred when \iffalse on line 10 was incomplete)</usr/share/texlive/texm
f-dist/fonts/type1/public/amsfonts/cm/cmr10.pfb></usr/share/texlive/texmf-dist/
fonts/type1/public/amsfonts/cm/cmti10.pfb>
Output written on mini.pdf (1 page, 25544 bytes).
Transcript written on mini.log.

Thanks for making and maintaining the package, I find it really useful!

Apologies in advance if this is not a bug and is instead my mistake...

hyperref breaks acroplural

When using the acronym environment to typeset a list of acronyms in my document, using \acroplural without the optional argument (plural short form) stops the document from compiling when hyperref is also loaded.

Steps to Reproduce

Compile the following document by running xelatex or pdflatex twice:

\documentclass{article}

\usepackage{acronym,hyperref}

\begin{document}

\begin{acronym}
    \acro{POI}{point of interest} \acroplural{POI}{points of interest}
\end{acronym}

\end{document}

Error Messages (on second run)

LaTeX Warning: Hyper reference `acro:POI' on page 1 undefined on input line 8.


LaTeX Warning: Hyper reference `acro:POI' on page 1 undefined on input line 8.

! Undefined control sequence.
\hyper@@link ->\let \Hy@reserved@a 
                                   \relax \@ifnextchar [{\hyper@link@ }{\hyp...
l.8 ...erest} \acroplural{POI}{points of interest}
                                                  
! Argument of \AC@acroplurali has an extra }.
<inserted text> 
                \par 
l.8 ...erest} \acroplural{POI}{points of interest}
                                                  
Runaway argument?
{POI}{\hyper@link@ }\def \reserved@b {\hyper@link@ [link]}\futurelet \ETC.
! Paragraph ended before \AC@acroplurali was complete.
<to be read again> 
                   \par 
l.8 ...erest} \acroplural{POI}{points of interest}

See also acronym package - acroplural not working in acronym environment on TeX StackExchange.

How to get Special Characters (&)?

I am very new to LaTeX. I am trying to write up a document for work. I want to make the acronym "P&C" but of course that does not work. I am needing some help with this. Redefining the commands, anything. Any shortcut to get this to work and still have the links and all that work. I know the issue comes from csname but I do not know how to alter that. Any help is much appreciated.

Disable hyperlinks from the list of acronyms back to the text

With the current version of acronym from this GitHub repository, I get hyperref links in the list of acronyms that link to the first use of the acronym (introduced in 930a6a0).

If I want to disable this, it seems that I need to disable all hyperlinks with the nohyperlinks option. It would be nice if the links from the list of acronyms to the first usage and the links from the usages to the list of acronyms could be disabled separately.

acronym first use not recognized in xltabular

When using xltabular (or tabularx, I believe), the first use of an acronym is not recognized, so each occurrence in a table gets its own footnote. If the acronym has been used prior to being used in a table, the usage in the table does not result in additional footnotes.

I have attached a minimum working example.

MWE.zip

And thanks for this very useful package!

 Dave Underwood

Capitalization for words beginning with other characters than letters

The bugs described here occur when compiling a document with acronym version 1.42 of November 11, 2019.


Capitalization is not compatible with other commands or strings that do not begin with a letter (e.g. chemical names). For example, if you define the acronym \acro{4'-OH ATX}[4'-OH ATX]{4'-hydroxy atomoxetine} and output it using \Ac{4'-OH ATX}, you will get

4'-hydroxy atomoxetine

instead of

4'-Hydroxy atomoxetine.

It would, therefore, be necessary to apply the use of \MakeUppercase to the first letter instead of the first character.

In addition, no other macros can be used within the acro macros. However, it would be partly necessary to write it in italics or to put the correct quotation marks by using the \enquote command (csquotes). For chemical substance names, the \iupac command (chemmacros) would be useful. None of these works.


MWE

\documentclass{article}

% Typeset Packages
\usepackage{parskip}
\usepackage[nohyperlinks, printonlyused, withpage]{acronym}
\usepackage{csquotes}

% Chemistry Packages
\usepackage{chemmacros}


\begin{document}

\section*{List of acronyms}

\begin{acronym}
    \acro{MTBE}[MTBE]{methyl tert-butylether}
    \acro{4'-OH ATX}[4'-OH ATX]{4'-hydroxy atomoxetine}
    \acro{3-APA}[3-APA]{\iupac{3-azidopropylamine}}
\end{acronym}


\section{Capitalization}

Let's use the \verb!\Ac! command to output the MTBE acronym:\\
\Ac{MTBE}

Let's test the same thing with the 4'-OH ATX acronym:\\
\Ac{4'-OH ATX}

As you see, the first letter of the MTBE output is, as we would expect, capitalized. For the 4'-OH ATX output, however, the output is not as expected.


\section{Use of macros}

As the last example, let's uncomment the \verb!\Ac{3-APA}! command, in order to view the error resulting from using a macro inside of the \verb!\acro! macro. Please note, that this does \textbf{not} happen with the \verb!\ac! command!

% \Ac{3-APA}

\end{document}

Add support for grammatical cases and declination of adjectives

There is an issue when using the package in languages with multiple cases and declination of adjectives.

In the german language you might end up with an acronym like an unmanned aircraft system (german: unbemanntes Luftfahrtsystem).

In the acronym list you watn to have the nominative case with or without the indefinite article like "UAS: Unbemanntes Luftfahrtsystem", but in a sentence it might be needed to decline the adjective to put a definite article in front of the adjective. Something like: Das unbemannte Luftfahrtsystem. Note that the s is missing.

I am proposing to add new commands like \acronom, \acrogen, \acrodat and \acroacc to be able to set also the declined versions. Maybe we need also additional commands for the use with definite and indefinite articles and also the same for the plural use.
This might get a bit messy, but it would most likely only affect the long version.

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.