I want to do a nomenclature list using the glossaries package. I like the print style "long", however, I would prefer if it didn't have the large indentation to the left and it also would be great if it had three columns so I could have the first column for the notation, second column for units and third for description. Minimal example of my code:
\documentclass[12pt,a4paper]{report}
\usepackage{amsmath}
\usepackage{hyperref}
\usepackage{longtable}
\usepackage[acronym,toc,nopostdot]{glossaries}
\hypersetup{
colorlinks = true, %Colours links instead of ugly boxes
urlcolor = black, %Colour for external hyperlinks
linkcolor = black, %Colour of internal links
citecolor = black %Colour of citations
}
\newglossaryentry{resonance_angular_frequency}{
name = $\omega_0$ ,
description = [rad/s] - The angular frequency at which the imaginary part of an impedance is zero
}
\newglossaryentry{coil}{
name = $W_i$ ,
description = The coils in the magnetic circuit where 1 denotes the primary side and 2 denotes the secondary side.
}
\newglossaryentry{electric_field}{
name = $\vec{E}$ ,
description = [V/m] - Electric field
}
\newglossaryentry{magnetic_flux_density}{
name = $\vec{B}$ ,
description = [T] - Magnetic flux density
}
\makeglossaries
\glsaddall
\printglossary[nonumberlist, style = long, title=Nomenclature]
\end{document}
Is there a way of adjusting the glossary style "long" the way I want to?
EDIT: In case you want to see what it looks like right now using the "long" style:
Best Answer
You can simply increase the value of the length
\glsdescwidth
whose default value is0.6\hsize
. For example, add the linein your preamble and you'll have
Complete code:
Instead, if you want a column for units you can define a new glossary style
mystyle
and define the units as symbols as in
The following MWE
produces the following result: