for now I am using a tabularx table to print acronyms manually. But I want to use the style of my table with glossaries and acronyms: \printglossary[type=\acronymtype,style=mystyle]
The table so far:
\begin{tabularx}{\linewidth}{l @{\hspace{1.5em}=\hspace{1em}}X}
\toprule
\multicolumn{1}{l}{\textbf{Abk.}} & \multicolumn{1}{@{}X}{\textbf{Bedeutung}}\\%
\midrule
%
LED & Light-Emitting Diode \\%
VCC & positive Versorgungsspannung \\%
GND & Ground, negative Versorgungsspannung \\[0.3ex]%
\bottomrule%
\end{tabularx}%
How would the code of the corresponding style look like? The acronyms will be defined like this:
\newacronym{led}{LED}{Light-Emitting Diode}
\newacronym{vcc}{VCC}{positive Versorgungsspannung}
\newacronym{gnd}{GND}{Ground, negative Versorgungsspannung}
Thanks in advance
Best Answer
As far as I can tell
tabularx
doesn't work in a glossary style due to the way thetabularx
environment processes its contents. However it's possible to achieve the same effect without usingtabularx
. The following example requires the latest version ofglossaries
(v4.01 at time of writing):This produces:
Note that the acronyms have been sorted alphabetically. If you want them in order of definition you need to use the
sort=def
package option.