Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- \documentclass{article}
- \usepackage{tabularx}
- \usepackage{array}
- \usepackage[acronym,nogroupskip]{glossaries}
- \newglossary[slg]{symbols}{slm}{sbl}{List of Symbols}
- \makeglossaries
- \newglossaryentry{degvi}{type=symbols,name=$\Delta E_{GP,i}$,
- user1={MJ},sort=energie differenz grau verbrauch,
- description={Differenz graue Energie und Verbrauch zu Produktion des betrachteten Systems}}
- \newacronym{ipcc}{IPCC}{Intergovernmental Panel on Climate Change}
- \newcolumntype{L}[1]{>{\raggedright\let\newline\\\arraybackslash\hspace{0pt}}m{#1}}
- \newcolumntype{C}[1]{>{\centering\let\newline\\\arraybackslash\hspace{0pt}}m{#1}}
- \newcolumntype{R}[1]{>{\raggedleft\let\newline\\\arraybackslash\hspace{0pt}}m{#1}}
- \newglossarystyle{tabx3col}{%
- % put the glossary in a longtable environment:
- \renewenvironment{theglossary}%
- {\begin{longtable}{L{0.2\textwidth}L{0.6\textwidth}R{0.2\textwidth}}}%
- {\end{longtable}}%
- % Set the table's header:
- \renewcommand*{\glossaryheader}{}%
- % No heading between groups:
- \renewcommand*{\glsgroupheading}[1]{}%
- % Main (level 0) entries displayed in a row:
- \renewcommand*{\glossaryentryfield}[5]{%
- \glstarget{##1}{\textbf{##2}}% Name
- & ##3% Description
- & ##5% Page list
- \\% end of row
- }%
- % Sub entries treated the same as level 0 entries:
- %\renewcommand*{\glossarysubentryfield}[6]{%
- %\glossaryentryfield{##2}{##3}{##5}{##6}}%
- %% Nothing between groups:
- %\renewcommand*{\glsgroupskip}{}%
- }
- \newglossarystyle{tabx4col}{%
- % put the glossary in a longtable environment:
- \renewenvironment{theglossary}%
- {\begin{longtable}{L{0.1\textwidth}L{0.1\textwidth}p{0.55\textwidth}R{0.2\textwidth}}}%
- {\end{longtable}}%
- % Set the table's header:
- \renewcommand*{\glossaryheader}{}%
- % No heading between groups:
- \renewcommand*{\glsgroupheading}[1]{}%
- % Main (level 0) entries displayed in a row:
- \renewcommand*{\glossaryentryfield}[5]{%
- \glstarget{\textbf{##1}}{\textbf{##2}}% Name
- & $[$\glsentryuseri{##1}$]$% Units
- & ##3% Description
- & ##5% Page list
- \\% end of row
- }%
- % Sub entries treated the same as level 0 entries:
- %\renewcommand*{\glossarysubentryfield}[6]{%
- %\glossaryentryfield{##2}{##3}{##5}{##6}}%
- %% Nothing between groups:
- %\renewcommand*{\glsgroupskip}{}%
- }
- \begin{document}
- \gls{degvi}, \\\gls{ipcc}.
- \printglossary[title=Abkürzungsverzeichnis,type=\acronymtype,style=tabx3col] %Print list of acronyms
- \printglossary[title=Symbolverzeichnis,type=symbols,style=tabx4col] %Print list of symbols
- \end{document}
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement