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

Let all acronym commands act as if their starred form also in \title, \author, \date #216

Closed
dbitouze opened this issue Jun 6, 2021 · 1 comment

Comments

@dbitouze
Copy link
Contributor

dbitouze commented Jun 6, 2021

I've read the warning:

In a number of contexts all acronym commands act as if their starred form is used: in the
table of contents, in the list of figures, and in the list of tables. The same is true for floats
and the measuring phase of common table environments like tabularx or ltxtable.

and that's a nice feature.

May I suggest making the title's commands (\title, \author, \date) be one of these contexts. It would be nice e.g. in the following case where the first occurrence of \ac{mit} in the text would be welcome to be printed in its full form:

\documentclass{article}
\usepackage{acro}
\DeclareAcronym{mit}{
  short = MIT ,
  long = Massachusetts Institute of Technology
}
\title{Interesting document}
\author{Jane Doe\\\acs{mit}}
\begin{document}
\maketitle
This work has been done at the \ac{mit}.
\end{document}
@cgnieder
Copy link
Owner

cgnieder commented Jan 4, 2022

You can use \acswitchoff and \acswitchon for a manual solution but a patch to \maketitle seems reasonable.

\documentclass{article}
\usepackage{acro}
\DeclareAcronym{mit}{
  short = MIT ,
  long = Massachusetts Institute of Technology
}

\title{Interesting document}
\author{Jane Doe\\\acs{mit}}

\begin{document}

\acswitchoff\maketitle\acswitchon

This work has been done at the \ac{mit}.

\end{document}

cgnieder added a commit that referenced this issue Jan 4, 2022
@cgnieder cgnieder closed this as completed Jan 4, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants