| 1 |
% arara: pdflatex |
| 2 |
% arara: makeglossaries |
| 3 |
% arara: pdflatex |
| 4 |
\documentclass{article} |
| 5 |
|
| 6 |
\usepackage[colorlinks]{hyperref} |
| 7 |
\usepackage |
| 8 |
%[debug=showtargets]% requires glossaries.sty v4.32 |
| 9 |
{glossaries-extra} |
| 10 |
|
| 11 |
%\renewcommand*{\glsshowtarget}[1]{\texttt{\small [#1]}} |
| 12 |
|
| 13 |
\makeglossaries |
| 14 |
|
| 15 |
\newglossaryentry{sample}{name={sample},description={an example}} |
| 16 |
|
| 17 |
\renewcommand{\thesection}{S.\arabic{section}} |
| 18 |
\renewcommand{\theHsection}{\thepart.\thesection} |
| 19 |
|
| 20 |
\begin{document} |
| 21 |
\part{Sample Part} |
| 22 |
\section{Sample Section} |
| 23 |
|
| 24 |
\part{Another Part} |
| 25 |
\section{Another Section} |
| 26 |
\gls[counter=section]{sample}. |
| 27 |
|
| 28 |
\printglossaries |
| 29 |
\end{document} |