feat(documentclass): add new glossary style 'supercol' for enhanced acronym formatting
Closes #85
This commit is contained in:
@@ -246,6 +246,24 @@
|
|||||||
\renewcommand*{\glsgroupskip}{& & \tabularnewline}%
|
\renewcommand*{\glsgroupskip}{& & \tabularnewline}%
|
||||||
\fi
|
\fi
|
||||||
}
|
}
|
||||||
|
|
||||||
|
% Define a new style 'supercol' based on 'super' for acronyms glossaries
|
||||||
|
\newglossarystyle{supercol}{%
|
||||||
|
\setglossarystyle{super}% inherit everything from the original
|
||||||
|
% override just the main-entry format:
|
||||||
|
\renewcommand*{\glossentry}[2]{%
|
||||||
|
\glsentryitem{##1}%
|
||||||
|
\glstarget{##1}{\glossentryname{##1}}\space % <-- added colon here
|
||||||
|
&: \glossentrydesc{##1}\glspostdescription\space ##2\tabularnewline
|
||||||
|
}%
|
||||||
|
% likewise for sub‐entries, if you want a colon there too:
|
||||||
|
\renewcommand*{\subglossentry}[3]{%
|
||||||
|
&:
|
||||||
|
\glssubentryitem{##2}%
|
||||||
|
\glstarget{##2}{\strut}\glossentryname{##2}\space % <-- and here
|
||||||
|
\glossentrydesc{##2}\glspostdescription\space ##3\tabularnewline
|
||||||
|
}%
|
||||||
|
}
|
||||||
\makeatother
|
\makeatother
|
||||||
|
|
||||||
\endinput
|
\endinput
|
||||||
Reference in New Issue
Block a user