| 1 |
% This file is embedded in glossaries-extra-manual.pdf |
| 2 |
% Example 133 Changing the target prefix |
| 3 |
% Label: "ex:targetprefixes" |
| 4 |
% arara: pdflatex |
| 5 |
% arara: pdfcrop |
| 6 |
\documentclass[12pt]{article} |
| 7 |
\pagestyle{empty} |
| 8 |
\usepackage[colorlinks]{hyperref} |
| 9 |
\usepackage[showtargets=annoteleft,style=tree]{glossaries-extra} |
| 10 |
\newglossaryentry{sample}{name={sample}, |
| 11 |
description={an example description that references \gls{another}}} |
| 12 |
\newglossaryentry{another}{name={another}, |
| 13 |
description={some other example description that references \gls{sample}}} |
| 14 |
\begin{document} |
| 15 |
Link to glossary 1: \gls{sample}. |
| 16 |
|
| 17 |
Link to glossary 2: \gls[prefix={other-}]{sample}. |
| 18 |
\printunsrtglossary |
| 19 |
\printunsrtglossary[prefix=other-] |
| 20 |
\end{document} |