From 17efbb93c3c280ebec43438b10c53601758ef11e Mon Sep 17 00:00:00 2001 From: Karl Berry Date: Sun, 5 Feb 2017 23:22:17 +0000 Subject: glossaries-extra (4feb17) git-svn-id: svn://tug.org/texlive/trunk@43152 c570f23f-e606-0410-a88d-b1316a301751 --- .../doc/latex/glossaries-extra/sample-record.tex | 25 ++++++++++++++++++---- 1 file changed, 21 insertions(+), 4 deletions(-) (limited to 'Master/texmf-dist/doc/latex/glossaries-extra/sample-record.tex') diff --git a/Master/texmf-dist/doc/latex/glossaries-extra/sample-record.tex b/Master/texmf-dist/doc/latex/glossaries-extra/sample-record.tex index f480e816510..2639da2e3d4 100644 --- a/Master/texmf-dist/doc/latex/glossaries-extra/sample-record.tex +++ b/Master/texmf-dist/doc/latex/glossaries-extra/sample-record.tex @@ -3,21 +3,38 @@ \documentclass{article} \usepackage[colorlinks]{hyperref} -\usepackage[record]{glossaries-extra} +\usepackage[record,style=index]{glossaries-extra} + % Use \loadglsentries (or \input) for .tex files: % \loadglsentries{example-glossaries-brief} -% Use \glsxtrresourcefile for .glstex files: -\glsxtrresourcefile{sample-resource} +% Use \glsxtrresourcefile or \GlsXtrLoadResources for .glstex files: + +%\GlsXtrLoadResources % loads \jobname.glstex +\glsxtrresourcefile{sample-resource}% loads sample-resource.glstex + +\GlsXtrRecordCounter{section} \begin{document} -\glspl{lorem}, \gls{dolor}, \gls{amet}. +\section{Sample Section} +\printunsrtglossaryunit{section} +% or: +%\printunsrtglossary*{\printunsrtglossaryunitsetup{section}% +% \renewcommand*{\glossarysection}[2][]{\subsection*{Summary}}% +%} + +\gls{dolor}, \gls{amet}. See \url{https://github.com/nlct/bib2gls} for converting .bib to .glstex files. +\section{Another Section} +\printunsrtglossaryunit{section} + +\glspl{lorem}, \gls{amet}. + \printunsrtglossary \end{document} -- cgit v1.2.3