TransWikia.com

Glossary with term, translation, and page number (scrreprt)

TeX - LaTeX Asked on January 10, 2021

I’m writing a mathematical script in German (scrreprt). I want it to have a glossary which should contain:

  1. the term,
  2. its translation to English, and
  3. the page number of the first occurrence of the term.

The glossary should start on a new page. The pages for the glossary should be devided into two coloumns (all the other pages not).
Is there any good way to do that (recommended packages, settings, macros etc.)?

Thank you so much for sharing your expertise!

One Answer

The style mcolindex in glossaries does exactly what you want.

Here is how it works:

documentclass{scrreprt}
usepackage[indexonlyfirst]{glossaries} % indexonlyfirst gives you only the first occurance
usepackage{glossary-mcols}             % glossary-mcols to be able to set the style
renewcommand{glsmcols}{2}             % set the number of columns at 2
setglossarystyle{mcolindex}            % set the style

makeglossaries

newglossaryentry{1}{                   % this defines the terms
    name={term1},
    description={explanation of term 1}
}
newglossaryentry{2}{
    name={term 2},
    description={explanation of term 2}
}
begin{document}
    gls{1} gls{2}                     % these calls the terms
    printglossary
end{document}

Then you need to run latex, makeglossaries, latex, latex

This gives the following glossary: enter image description here

Correct answer by cktai on January 10, 2021

Add your own answers!

Ask a Question

Get help from others!

© 2024 TransWikia.com. All rights reserved. Sites we Love: PCI Database, UKBizDB, Menu Kuliner, Sharing RPP