Document ClassesForcing line-spacing in the acronym package

Information and discussion about specific document classes and how to create your own document classes.
Post Reply
slp58
Posts: 2
Joined: Mon Aug 11, 2008 12:54 pm

Forcing line-spacing in the acronym package

Post by slp58 »

Hi I have a document within which I'm using the acronym package (it's called from the .cls file):

\RequirePackage{acronym}
\renewcommand{\ac}[1]{%
\expandafter\ifx\csname ac@#1\endcsname\relax%
\acf{#1}%
\expandafter\gdef\csname ac@#1\endcsname{x}%
\else%
\acs{#1}%
\fi}

I don't know if it's default, but the spacing in the list of acronyms looks like 2-2.5 lines. I would like to single space this list to reduce the number of pages taken. I already set my main document to onehalfspace using the setspace package. I tried including the singlespace line in my acronym.tex file but that doesn't affect it.

How can I force the acronym.tex spacing to be single line?


My 'master document' structure:
...
\usepackage{setspace}
...
\begin{document}
...
\frontmatter
\input{acronyms}
...
\mainmatter
\onehalfspace
...
\end{document}

Recommended reading 2024:

LaTeXguide.org • LaTeX-Cookbook.net • TikZ.org

NEW: TikZ book now 40% off at Amazon.com for a short time.

And: Currently, Packt sells ebooks for $4.99 each if you buy 5 of their over 1000 ebooks. If you choose only a single one, $9.99. How about combining 3 LaTeX books with Python, gnuplot, mathplotlib, Matlab, ChatGPT or other AI books? Epub and PDF. Bundle (3 books, add more for higher discount): https://packt.link/MDH5p

gmedina
Posts: 2313
Joined: Wed Jul 11, 2007 11:45 pm

Forcing line-spacing in the acronym package

Post by gmedina »

Hi,
slp58 wrote:...I don't know if it's default, but the spacing in the list of acronyms looks like 2-2.5 lines.
No, it is not. Since you are using a non-standard document class, this class must be responsible for that behaviour.
slp58 wrote:...I would like to single space this list to reduce the number of pages taken. I already set my main document to onehalfspace using the setspace package. I tried including the singlespace line in my acronym.tex file but that doesn't affect it.

How can I force the acronym.tex spacing to be single line?
Try using the singlespacing environmnet provided by the setspace package:

Code: Select all

...
\frontmatter
\begin{singlespacing}
\input{acronyms}
\end{singlespacing}
...
If this does not work, then try attaching here the .cls file you are using (and maybe someone will have the time to look at it) or, better yet, try contacting the designer of that particular document class.
1,1,2,3,5,8,13,21,34,55,89,144,233,...
slp58
Posts: 2
Joined: Mon Aug 11, 2008 12:54 pm

Re: Forcing line-spacing in the acronym package

Post by slp58 »

I tried that but unfortunately it didn't work. Ok well below is the mscThesis.cls file as I already tried and was not able to get in touch with the author.

If anyone has the time I would really appreciate it tell me how I can reduce the acronym spacing? Thanks :)
Attachments
mcsThesis.cls
(32.45 KiB) Downloaded 469 times
Post Reply