[FEAT] Glossaries Custom Style #84

Open
opened 2025-05-24 10:33:18 +00:00 by nuluh · 0 comments
nuluh commented 2025-05-24 10:33:18 +00:00 (Migrated from github.com)

Problem Statement

Proposed Solution

% Define the new glossary style called 'mylistalt'
\makeatletter
\newglossarystyle{mylistalt}{%
  % start the list, initializing glossaries internals
  \renewenvironment{theglossary}%
    {\glslistinit\begin{enumerate}}%
    {\end{enumerate}}%
  % suppress all headers/groupskips
  \renewcommand*{\glossaryheader}{}%
  \renewcommand*{\glsgroupheading}[1]{}%
  \renewcommand*{\glsgroupskip}{}%
  % main entries: let \item produce "1." etc., then break
  \renewcommand*{\glossentry}[2]{%
    \item \glstarget{##1}{\glossentryname{##1}}%
    \mbox{}\\
    \glossentrydesc{##1}\space 
    [##2] % appears on page x
  }%
  % sub-entries as separate paragraphs, still aligned
  \renewcommand*{\subglossentry}[3]{%
    \par
    \glssubentryitem{##2}%
    \glstarget{##2}{\strut}\space
    \glossentrydesc{##2}\space ##3%
  }%
}
\makeatother

Alternatives Considered

No response

Component

LaTeX Document

Priority

Critical (blocks progress)

Implementation Ideas

No response

Expected Benefits

Matched required layout

Additional Context

No response

### Problem Statement - ### Proposed Solution ```tex % Define the new glossary style called 'mylistalt' \makeatletter \newglossarystyle{mylistalt}{% % start the list, initializing glossaries internals \renewenvironment{theglossary}% {\glslistinit\begin{enumerate}}% {\end{enumerate}}% % suppress all headers/groupskips \renewcommand*{\glossaryheader}{}% \renewcommand*{\glsgroupheading}[1]{}% \renewcommand*{\glsgroupskip}{}% % main entries: let \item produce "1." etc., then break \renewcommand*{\glossentry}[2]{% \item \glstarget{##1}{\glossentryname{##1}}% \mbox{}\\ \glossentrydesc{##1}\space [##2] % appears on page x }% % sub-entries as separate paragraphs, still aligned \renewcommand*{\subglossentry}[3]{% \par \glssubentryitem{##2}% \glstarget{##2}{\strut}\space \glossentrydesc{##2}\space ##3% }% } \makeatother ``` ### Alternatives Considered _No response_ ### Component LaTeX Document ### Priority Critical (blocks progress) ### Implementation Ideas _No response_ ### Expected Benefits Matched required layout ### Additional Context _No response_
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: nuluh/thesis#84