Take the 2-minute tour ×
TeX - LaTeX Stack Exchange is a question and answer site for users of TeX, LaTeX, ConTeXt, and related typesetting systems. It's 100% free, no registration required.

I have a text which includes some acronyms \ac{ABC}, but I want to omit the list of acronyms from my final document. As this post suggests, I tried:

\usepackage[nolist]{acronym}

but the title "List of Acronyms" still shows up on its own page. How can I completely omit it?

The alternative would be to comment out the package and find a way to deal with the \ac{} tags without removing them.

share|improve this question
    
You could use \def\ac#1{\ignorespaces}. However, the nolist option should work. Perhaps you need to remove your aux files or run pdflatex or latex a few more times. I don't know the mechanism acronym uses well enough to say for sure whether or not this will have any impact. –  Roelof Spijker Dec 12 '11 at 16:38
    
Tried removing aux files and re-running pdfLaTeX, problem persists. \def\ac#1{\ignorespaces} removes the acronyms, but I need to keep them, just not have pdflatex choke on the \ac{} bits without the package defined. –  Benjamin Dec 12 '11 at 16:42
    
My problem is coming from my acronyms file acronyms.tex, which I \include in my main document, and which begins with an unnumbered section, the section name is being printed but not the list because of the nolist option... –  Benjamin Dec 12 '11 at 17:07
    
ok... I suppose you could use \includeonly then. –  Roelof Spijker Dec 12 '11 at 17:23
    
I think \includeonly works only in the preamble, but I need to insert after document start. –  Benjamin Dec 12 '11 at 17:35

1 Answer 1

up vote 6 down vote accepted

From acronym's documentation:

If one does not want an acronym list to be produced at all, acronyms can be defined directly thanks to the two commands

\newacro{⟨acronym⟩}[⟨short name⟩]{⟨full name⟩}
\acrodef{⟨acronym⟩}[⟨short name⟩]{⟨full name⟩}

the difference between the two consisting in the fact that the latter makes the acronym definition stored in the .aux file. Therefore, the acronym becomes available from start-up in the next run.

share|improve this answer
    
Thanks, that worked. –  Benjamin Dec 12 '11 at 19:29

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.