feat(documentclass): add new glossary style 'supercolnoloc' for corrected format

This commit is contained in:
Rifqi D. Panuluh
2025-10-13 14:26:53 +00:00
parent ae49c61ff0
commit ce8cd8bf36
2 changed files with 25 additions and 5 deletions

View File

@@ -335,6 +335,26 @@
\glossentrydesc{##2}\glspostdescription\space ##3\tabularnewline
}%
}
% Define a new style 'supercolnoloc' based on 'super'
\newglossarystyle{supercolnoloc}{%
\setglossarystyle{super}% inherit everything from the original
\renewenvironment{theglossary}%
{\begin{longtable}{lp{0.8\textwidth}}}%
{\end{longtable}}%
% override just the main-entry format:
\renewcommand*{\glossentry}[2]{%
\glsentryitem{##1}%
\glstarget{##1}{\glossentryname{##1}}\space % <-- added colon here
&: \glossentrydesc{##1}\glspostdescription \tabularnewline
}%
% likewise for subentries, 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
% A new command that enables us to enter bi-lingual (Slovene and English) terms