forked from TH_General/Template_Summary
59 lines
1.6 KiB
TeX
59 lines
1.6 KiB
TeX
%%
|
|
% all references for the glossary as well as the abbreviation list and nomenclature
|
|
%%
|
|
% add glossary for nomenclature
|
|
\newglossary{nomenclature}{nom}{ncl}{Nomenklatur}
|
|
|
|
\shorthandon{"}
|
|
%--------------------
|
|
%main glossary
|
|
%--------------------
|
|
\newglossaryentry{example}{
|
|
name=Example,
|
|
plural=Examples,
|
|
description={This is an example for a main glossary entry}
|
|
}
|
|
|
|
%--------------------
|
|
%acronyms
|
|
%--------------------
|
|
\setabbreviationstyle[acronym]{long-short}
|
|
|
|
\newacronym{EXP}{EXP}{Example}
|
|
|
|
%--------------------
|
|
%nomenclature
|
|
%--------------------
|
|
|
|
%add new key
|
|
\glsaddstoragekey{unit}{}{\glsentryunit}
|
|
\glsnoexpandfields
|
|
|
|
\newcommand{\newnom}[5]{
|
|
\newglossaryentry{#1}{
|
|
name={#2},
|
|
symbol={#3},
|
|
description={#4},
|
|
unit={#5},
|
|
type=nomenclature,
|
|
sort={#1}
|
|
}
|
|
}
|
|
%use nomenclature entry (name + symbol) nomF=>First letter upper case
|
|
\newcommand{\nomf}[1]{\glsentryname{#1} \texorpdfstring{\glslink{#1}{\boldmath\ensuremath{\glsentrysymbol{#1}}}}{}\xspace}
|
|
\newcommand{\nomF}[1]{\Glsentryname{#1} \texorpdfstring{\glslink{#1}{\boldmath\ensuremath{\glsentrysymbol{#1}}}}{}\xspace}
|
|
%use nomenclature entry (name) nomS=>First letter upper case
|
|
\newcommand{\noms}[1]{\glsentryname{#1}\xspace}
|
|
\newcommand{\nomS}[1]{\Glsentryname{#1}\xspace}
|
|
%use nomenclature entry (symbol only)
|
|
\newcommand{\nomsym}[1]{\texorpdfstring{\glslink{#1}{\boldmath\ensuremath{\glsentrysymbol{#1}}}}{#1}\xspace}
|
|
%use nomenclature entry (use in equation)
|
|
\newcommand{\nomeq}[1]{\glslink{#1}{\glsentrysymbol{#1}}}
|
|
|
|
\newnom{exampl}{Example}{e_xa_mp_le}{Example for a nomenclature entry}{\si{m}}
|
|
|
|
\shorthandoff{"}
|
|
|
|
\makeglossaries
|
|
|