# Managing acronyms with a macro that preserves the full name

I use the acronym package to create and manage acronyms in my document, e.g.:

Can you use \ac{css}?

However, sometimes I must add typesetting to documents which already have acronyms typed out entirely, but I still need them to be automatically shortened after the first appearance. They are typed out like this:

Can you use Cascading Style Sheets (CSS)?

As there are such a large number of acronyms, maintaining a list of used acronyms in the preamble creates confusion. E.g.: If I changed the adove to Can you use \ac{css}?, but later encountered another different acronym called "css", I could possible introduce an error, and have difficulty checking the data. For this reason, it would be better if I had a syntax which made as few changes to the existing text as possible, such as this:

In this way, I can still see the original text that was used, and if I need to use "Customer Support System (CSS)" later in the document, I would not need to worry about managing the duplicate.

How can this be done?

-

You can define them this way,

\newacro{css2}[CSS]{Customer Support Service}

This means you will need to remember, which is which but probably still easier than typing the whole thing out.

\documentclass{article}
\usepackage{acronym}
\newacro{css2}[CSS]{Customer Support Service}
\begin{document}
Use \ac{css1}, but there is no  \ac{css2}.
\end{document}

Instead of numbers, yo can also use more descriptive labels, in a similar fashion to referencing.

\newacro{customersupport}[CSS]{Customer Support Service}
-

If I understand what you want, with a slight adjustment to your syntax, you can obtain the desired results. The revised syntax is:

This will allow you to also use the standard \ac{<acronym>} macro.

\documentclass{article}
\usepackage{acronym}