From 0ecc1bc3b590c3e3765327392cef172bd4acf72a Mon Sep 17 00:00:00 2001 From: Florian Hoss Date: Thu, 29 Sep 2022 10:32:58 +0200 Subject: [PATCH] Add glossary --- example/example.tex | 8 ++++++++ main.tex | 24 +++++++++++++++++++++++- 2 files changed, 31 insertions(+), 1 deletion(-) diff --git a/example/example.tex b/example/example.tex index a072bce..291db28 100644 --- a/example/example.tex +++ b/example/example.tex @@ -10,6 +10,8 @@ \end{center} \end{figure} +\newpage + \section{Doppelt} \begin{figure}[H] @@ -64,3 +66,9 @@ Vielleicht reicht auch Google\wwwlink{google.de}... $ sudo apt-get update $ sudo apt-get install python \end{verbatim} + +\chapter{Glossary} + +\gls{glos:latex} + +\gls{glos:swagger} diff --git a/main.tex b/main.tex index f442d32..334b7a6 100644 --- a/main.tex +++ b/main.tex @@ -156,6 +156,28 @@ \usepackage{todonotes} +%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% +% Glossar +%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% +\usepackage[nonumberlist]{glossaries} +\usepackage{glossary-super} +\setglossarystyle{super} +\makenoidxglossaries +\renewcommand*{\glstextformat}{\textbf} +\renewcommand*{\glsnamefont}{\textbf} + +\newglossaryentry{glos:latex} +{ + name=Latex, + description={Is a markup language specially suited + for scientific documents} +} +\newglossaryentry{glos:swagger} +{ + name=Swagger, + description={Is a suite of tools for API developers from SmartBear Software and a former specification upon which the OpenAPI Specification is based} +} + %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% % Dokument %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% @@ -171,7 +193,7 @@ \renewcommand\lstlistlistingname{Codeverzeichnis} \lstlistoflistings \printacronyms[heading=addchap] - + \printnoidxglossary \include{example/example}