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:
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!
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
Correct answer by cktai on January 10, 2021
Get help from others!
Recent Answers
Recent Questions
© 2024 TransWikia.com. All rights reserved. Sites we Love: PCI Database, UKBizDB, Menu Kuliner, Sharing RPP