Browse Source

add glossary package and set up

master
Constantin Fürst 1 year ago
parent
commit
58ae6d25c7
  1. 9
      thesis/bachelor.tex
  2. 13
      thesis/own.gls
  3. 3
      thesis/preamble/packages.tex

9
thesis/bachelor.tex

@ -15,6 +15,7 @@
% You should select either american or british instead of english here:
\usepackage[ngerman,british]{babel}
\usepackage{fontspec}
\usepackage[autostyle]{csquotes}
\usepackage[citebordercolor={0.75 0.75 1},
filebordercolor={0.75 0.75 1},
@ -35,6 +36,7 @@ plainpages=false,pdfpagelabels=true]{hyperref}
\input{preamble/color.tex}
\input{preamble/style.tex}
\input{preamble/newcommands.tex}
\input{own.gls}
% If you know when you will hand in your thesis, enter the date here.
%\date{30. April 2009}
@ -87,11 +89,8 @@ plainpages=false,pdfpagelabels=true]{hyperref}
\appendix
%\addchap{Glossar}
% makeglossaries diplom
%\printglossary[style=altlist]
%\printglossary[type=\acronymtype,style=long]
\setglossarystyle{altlistgroup}
\printglossaries
\printbibliography
\iffalse

13
thesis/own.gls

@ -0,0 +1,13 @@
\usepackage{xparse}
\DeclareDocumentCommand{\newdualentry}{ O{} O{} m m m m } {
\newglossaryentry{gls-#3}{name={#5},text={#5\glsadd{#3}},
description={#6},#1
}
\makeglossaries
\newacronym[see={[Glossary:]{gls-#3}},#2]{#3}{#4}{#5\glsadd{gls-#3}}
}
\newdualentry{iommu}{IOMMU}{Input/Output Memory Management Unit}{... desc ...}
\newdualentry{bar}{BAR}{Base Address Register}{... desc ...}
\newacronym{dsa}{DSA}{Intel Data Streaming Accelerator}

3
thesis/preamble/packages.tex

@ -33,7 +33,10 @@
\usepackage{fancyhdr} % enables cool header line and footer line manipulations
\usepackage{lastpage} % enables the usage of the label "LastPage" to get the
% number of pages with \pageref{LastPage}
\usepackage{glossaries}
% use this one last
% (redefines some macros for compatibility with KOMAScript)
\usepackage{scrhack}
\makeglossaries
Loading…
Cancel
Save