Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Always typeset the short version only print used in \printacronyms #25

Closed
cgnieder opened this issue Feb 7, 2015 · 3 comments
Closed
Labels
enhancement New feature or request

Comments

@cgnieder
Copy link
Owner

cgnieder commented Feb 7, 2015

Original report by Robin Schneider (Bitbucket: ypid, GitHub: ypid).


Hi

First of all, great package.

Am I missing something? Can I force \ac to only typeset the short version, even the first time and still only print the used acronyms in \printacronyms.

When I use \acuseall then all acronyms appear.

My workaround is kind of stupid: https://github.com/ypid/typesetting/blob/luaLaTeX/MyPackages/acroUsedShort.sty

@cgnieder
Copy link
Owner Author

cgnieder commented Feb 7, 2015

Original comment by Clemens Niederberger (Bitbucket: cgnieder, GitHub: cgnieder).


That's actually quite easy since acro provides a number of different styles for the first usage. Search the manual for the first-style option. This should be it:

#!latex

\documentclass{article}
\usepackage{acro}
\acsetup{first-style=short}

\DeclareAcronym{foo}{
  short = foo ,
  long = this is the description for foo
}
\DeclareAcronym{bar}{
  short = bar ,
  long = this is the description for bar
}

\begin{document}

\ac{foo} \ac{foo}

\printacronyms

\end{document}

@cgnieder
Copy link
Owner Author

cgnieder commented Feb 7, 2015

Original comment by Clemens Niederberger (Bitbucket: cgnieder, GitHub: cgnieder).


Already possible with the current version.

@cgnieder cgnieder closed this as completed Feb 7, 2015
@cgnieder
Copy link
Owner Author

Original comment by Clemens Niederberger (Bitbucket: cgnieder, GitHub: cgnieder).


Removing version: 1.5 (automated comment)

@cgnieder cgnieder added minor enhancement New feature or request labels Mar 8, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

1 participant