| 1 |
% This file is embedded in glossaries-extra-manual.pdf |
| 2 |
% Example 121 Formatting lists contained in field values |
| 3 |
% Label: "ex:fieldformatcsv" |
| 4 |
% arara: pdflatex |
| 5 |
% arara: pdfcrop |
| 6 |
\documentclass[12pt]{article} |
| 7 |
\pagestyle{empty} |
| 8 |
\usepackage[colorlinks]{hyperref} |
| 9 |
\usepackage[autoseeindex=false]{glossaries-extra} |
| 10 |
\newglossaryentry{example}{name=example,description={}, |
| 11 |
see={another1,another2}} |
| 12 |
\newglossaryentry{another1}{name={another one},description={}} |
| 13 |
\newglossaryentry{another2}{name={another two},description={}} |
| 14 |
|
| 15 |
\begin{document} |
| 16 |
\glsxtrapptocsvfield{example}{animals}{duck} |
| 17 |
\glsxtrapptocsvfield{example}{animals}{albatross} |
| 18 |
\glsxtrapptocsvfield{example}{animals}{arara} |
| 19 |
Animal list: \glsxtrfieldformatcsvlist{example}{animals}. |
| 20 |
|
| 21 |
|
| 22 |
See list: \glsxtrifhasfield{see}{example}{\glsxtrseelist{\glscurrentfieldvalue}}{not set}. |
| 23 |
|
| 24 |
|
| 25 |
\printunsrtglossaries |
| 26 |
\end{document} |