Generalglossaries formatting

LaTeX specific issues not fitting into one of the other forums of this category.
Post Reply
nzbone
Posts: 7
Joined: Mon Jul 07, 2014 8:27 pm

glossaries formatting

Post by nzbone »

Hi all,

I am trying to make a list of acronyms for my doc. I am just struggling to get the formatting to look nice.

What I want is the abbrv in bold and the full description to be left aligned in another column.

I used the standard new acronym macro to define acronyms

Code: Select all

%\newacronym{<label>}{<abbrv>}{<full>}
with the

Code: Select all

\glossaries
the

Code: Select all

style=super
option makes the description left aligned in a new column.

What is happening is my glossary is being split over two pages when there is ample room on one page.

I think

Code: Select all

\baselineskip=22pt plus1pt
is the culprit but this is to make it double spaced for uni requirement. Is there any other option to make it double spaced?

My output is attached and everything is up to date software wise.
Thanks a lot!!

My MWE is below. Apologise for the long list of acronyms but this is to show everyone the issue.

Code: Select all

documentclass[a4paper,12pt]{report} 

\usepackage[nopostdot,  style=super, nonumberlist, toc]{glossaries}

\makeglossaries	
	
\begin{document}
\baselineskip=22pt plus1pt


\printglossary[title={List of Abbreviations}]

\newpage

\gls{adamts} \gls{af} \gls{bp} \gls{dmem} \gls{ecm} \gls{fbs} \gls{gag} \gls{ivd} \gls{ivdd} \gls{il} 
\gls{lp} \gls{mmp} \gls{np} \gls{ngml} \gls{lp} \gls{mmp} \gls{np} \gls{ngml} \gls{page} \gls{page} 
\gls{pcr} \gls{sds} \gls{timp} \gls{tnf} \gls{ugml}

\newacronym{ngml}{$\eta$g/mL}{nanogram per millilitre}
\newacronym{ugml}{$\mu$g/mL}{microgram per millilitre}
\newacronym{adamts}{ADAMTS}{A Disintegrin And Metalloproteinase with Thrombospondin Motifs}
\newacronym{af}{AF}{annulus fibrosus}
\newacronym{bp}{BP}{back pain}
\newacronym{dmem}{DMEM}{Dulbecco's Modified Eagle's Medium}
\newacronym{ecm}{ECM}{extracellular matrix}
\newacronym{fbs}{FBS}{feotal bovine serum}
\newacronym{gag}{GAG}{glycosaminoglycans}
\newacronym{ivd}{IVD}{intervertebral disc}
\newacronym{ivdd}{IVDD}{intervertebral disc degeneration}
\newacronym{il}{IL}{interleukin}
\newacronym{lp}{LP}{leg pain}
\newacronym{mmp}{MMP}{matrix metalloproteinases}
\newacronym{np}{NP}{nucleus pulposus}
\newacronym{page}{PAGE}{polyacrylamide gel electrophoresis}
\newacronym{pcr}{RT-qPCR}{real time quantitative polymerase chain reaction}
\newacronym{sds}{SDS}{sodium dodecyl sulfate}
\newacronym{timp}{TIMP}{tissue inhibitors of metalloproteinases}
\newacronym{tnf}{TNF-$\alpha$}{Tumor necrosis factor-alpha}

\end{document}
Attachments
abbrev.pdf
(84.13 KiB) Downloaded 651 times
Last edited by cgnieder on Wed Aug 20, 2014 3:27 pm, edited 1 time in total.

Recommended reading 2024:

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

Learn LaTeX easily with newest books:

The LaTeX Beginner's Guide: 2nd edition and perfect for students writing a thesis

The LaTeX Cookbook: 2nd edition full of practical examples for mathematics, physics, chemistry, and more

LaTeX Graphics with TikZ: the first book about TikZ for perfect drawings in your LaTeX thesis

nzbone
Posts: 7
Joined: Mon Jul 07, 2014 8:27 pm

glossaries formatting

Post by nzbone »

This was solved over at Stackexchange
http://tex.stackexchange.com/questions/ ... glossaries

I should NOT have been using

Code: Select all

\baselineskip
rather

Code: Select all

\usepackage[doublespacing]{setspace}
And to adjust the width of the glossary i should use

Code: Select all

\setlength{\glsdescwidth}{0.8\textwidth}
All of this is explained more eloquently over at SE by Nicola Talbot.

Cheers All
Post Reply