feat(documentclass): add new glossary style 'supercolnoloc' for corrected format
This commit is contained in:
@@ -37,17 +37,17 @@
|
||||
\glsaddall[types={main,notation,\acronymtype}]
|
||||
|
||||
\printglossary[type=notation,style=altlong3customheader,title=Daftar Simbol dan Lambang]
|
||||
\printglossary[type=\acronymtype,style=supercol,title=Daftar Singkatan]
|
||||
\printglossary[type=\acronymtype,style=supercolnoloc,title=Daftar Singkatan]
|
||||
\printglossary[type=main,style=mylistalt]
|
||||
\include{frontmatter/abstract}
|
||||
% \pagestyle{fancyplain}
|
||||
\mainmatter
|
||||
% Include content
|
||||
\onehalfspacing
|
||||
\include{chapters/id/01_introduction}
|
||||
\include{chapters/id/02_literature_review/index}
|
||||
\include{chapters/id/03_methodology/index}
|
||||
\include{chapters/id/04_results}
|
||||
% \include{chapters/id/01_introduction}
|
||||
% \include{chapters/id/02_literature_review/index}
|
||||
% \include{chapters/id/03_methodology/index}
|
||||
% \include{chapters/id/04_results}
|
||||
% \include{content/conclusion}
|
||||
\backmatter
|
||||
% Bibliography
|
||||
|
||||
@@ -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