TransWikia.com

Problem with creating a simple glossary/list of abbreviations

TeX - LaTeX Asked by Karl L. on December 16, 2020

I need to make a List of Abbreviations and Acronyms for my thesis.

I am a beginner with LateX and I have tried numerous times to insert the glossary professionally but it just does not work. This is why I tried this simpler idea: Simple list of abbreviations manually

However, 1) how can I remove the dots 2) and also how can I italicize the bold abbreviations (and remove the bold function)?

Thank you for your help 🙂

usepackage{calc}
usepackage{lipsum}
makeatletter
newcommand{tocfill}{cleadershbox{$m@th mkern@dotsep mu . mkern@dotsep mu$}hfill}
makeatother
newcommand{abbrlabel}[1]{makebox[3cm][l]{textbf{#1} tocfill}}
newenvironment{abbreviations}{begin{list}{}{renewcommand{makelabel}{abbrlabel}%
        setlength{labelwidth}{3cm}setlength{leftmargin}{labelwidth+labelsep}%
                                              setlength{itemsep}{0pt}}}{end{list}}
begin{document}
noindentlipsum[1]
begin{abbreviations}
item[US] United States
item[EU] European Union
item[Gvmt] Government. lipsum[2]
end{abbreviations} 
lipsum[3]
end{document}

One Answer

I know, its not really the answer you were looking for. But i really recommend (with the experience of writing a thesis myself) to use the 'glossary' package and its extensive options (or the 'glossary-extra' package for even more). However, to show the glossary in your document you must run the 'makeglossaries' application in your TeX editor (e.g. TeXstudio->Tools->Command->Makeglossaries), which should not be confused with the 'makeglossary' respectively 'makeglossaries' command.

documentclass{article}
usepackage{glossaries}

newacronym{us}{US}{United States}
newacronym{eu}{EU}{European Union}
newacronym{gvmt}{Gvmt}{Government}

makeglossary
begin{document}
Actually use one or two acronyms in a first use of gls{us} and afirst use of gls{eu}.

Print the glossary, but only for used acronyms (so: gls{us} and gls{eu}).
printglossary
end{document}

Answered by Venez on December 16, 2020

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