feat(documentclass): add new glossary style 'supercolnoloc' for corrected format
This commit is contained in:
@@ -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 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
|
||||
|
||||
% A new command that enables us to enter bi-lingual (Slovene and English) terms
|
||||
|
||||
Reference in New Issue
Block a user