From ce8cd8bf360357c4ceef7a0a6587d1378e8975e2 Mon Sep 17 00:00:00 2001 From: "Rifqi D. Panuluh" <69516665+nuluh@users.noreply.github.com> Date: Mon, 13 Oct 2025 14:26:53 +0000 Subject: [PATCH] feat(documentclass): add new glossary style 'supercolnoloc' for corrected format --- latex/main.tex | 10 +++++----- latex/thesis.cls | 20 ++++++++++++++++++++ 2 files changed, 25 insertions(+), 5 deletions(-) diff --git a/latex/main.tex b/latex/main.tex index 161ee4e..fbf7f6d 100644 --- a/latex/main.tex +++ b/latex/main.tex @@ -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 diff --git a/latex/thesis.cls b/latex/thesis.cls index e8b80c0..fe00f83 100644 --- a/latex/thesis.cls +++ b/latex/thesis.cls @@ -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