diff --git a/thesis/bachelor.tex b/thesis/bachelor.tex index b42a817..5b87a4e 100644 --- a/thesis/bachelor.tex +++ b/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 diff --git a/thesis/own.gls b/thesis/own.gls new file mode 100644 index 0000000..702f444 --- /dev/null +++ b/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} \ No newline at end of file diff --git a/thesis/preamble/packages.tex b/thesis/preamble/packages.tex index 2101e12..3d43cea 100644 --- a/thesis/preamble/packages.tex +++ b/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 \ No newline at end of file