Debian Codegraph @

texmf-dist/doc/latex/glossaries/samples/sample4col.tex

raw
1 % This file is public domain
2 % If you want to use arara, you need the following directives:
3 % arara: pdflatex: { synctex: on }
4 % arara: makeglossaries
5 % arara: pdflatex: { synctex: on }
6 %
7 %http://mirrors.ctan.org/macros/latex/contrib/glossaries/glossaries-user.html#sample4col
8 \documentclass[a4paper]{article}
9
10 % Other 4 column styles are available. The ones that use
11 % booktabs.sty are recommended over the "headerborder" styles
12 \usepackage[style=long4colheaderborder]{glossaries}
13
14 \makeglossaries
15
16 \newglossaryentry{w}{name={$w$},
17 sort=w,
18 description={width},
19 symbol=m}
20
21 \newglossaryentry{M}{name={$M$},
22 sort=M,
23 description={mass},
24 symbol=kg}
25
26 \begin{document}
27
28 \printglossaries
29
30 The width, \gls{w}, is measured in meters. The mass, \gls{M} is
31 measured in kilograms.
32
33 \end{document}