diff options
Diffstat (limited to 'Master/texmf-dist/doc/latex/glossaries/glossaries-user.tex')
-rw-r--r-- | Master/texmf-dist/doc/latex/glossaries/glossaries-user.tex | 47 |
1 files changed, 26 insertions, 21 deletions
diff --git a/Master/texmf-dist/doc/latex/glossaries/glossaries-user.tex b/Master/texmf-dist/doc/latex/glossaries/glossaries-user.tex index 5b396e9d492..7a79a1ae440 100644 --- a/Master/texmf-dist/doc/latex/glossaries/glossaries-user.tex +++ b/Master/texmf-dist/doc/latex/glossaries/glossaries-user.tex @@ -258,11 +258,11 @@ package option \pkgopt{sanitize} described in \sectionref{sec:pkgopts-general}} \MakeShortVerb{"} \DeleteShortVerb{\|} - \title{User Manual for glossaries.sty v3.06} + \title{User Manual for glossaries.sty v3.07} \author{Nicola L.C. Talbot\\% \url{http://www.dickimaw-books.com/}} - \date{2013-06-17} + \date{2013-07-05} \maketitle \noindent @@ -290,7 +290,7 @@ letter}{mfirstuc-manual}. \item[\url{glossaries-code.pdf}] Advanced users wishing to know more about the inner workings of all the packages provided in the \styfmt{glossaries} bundle should read -\qt{Documented Code for glossaries v3.06}. +\qt{Documented Code for glossaries v3.07}. This includes the documented code for the \sty{mfirstuc} package. \item[INSTALL] Installation instructions. @@ -1665,6 +1665,18 @@ counter reset at the start of each glossary, you can redefine \glsresetentrycounter } \end{verbatim} +or if you want a different preamble per glossary, use +\ics{setglossarypreamble}. For example: +\begin{verbatim} +\setglossarypreamble[acronym]{% + \glsresetentrycounter + The preamble text here for the list of acronyms. +} +\setglossarypreamble{% + \glsresetentrycounter + The preamble text here for the main glossary. +} +\end{verbatim} \end{important} \item[\pkgopt{subentrycounter}] This is a boolean option. (Default @@ -3738,28 +3750,21 @@ For example: indicate primary definitions.} \end{verbatim} This needs to be done before the glossary is displayed using -\linebreak\cs{printglossaries} or \cs{printglossary}. Note that if you -want a different preamble for each glossary, you will need to -use a separate \cs{printglossary} for each glossary and change -the definition of \cs{glossarypreamble} between each glossary. +\linebreak\cs{printglossaries} or \cs{printglossary}. + +If you want a different preamble per glossary you can use +\begin{definition}[\DescribeMacro{\setglossarypreamble}] +\cs{setglossarypreamble}\oarg{type}\marg{preamble text} +\end{definition} +If \meta{type} is omitted, \cs{glsdefaulttype} is used. + For example: \begin{verbatim} -\renewcommand{\glossarypreamble}{Numbers in italic +\setglossarypreamble{Numbers in italic indicate primary definitions.} -\printglossary -\renewcommand{\glossarypreamble}{} -\printglossary[type=acronym] -\end{verbatim} -Alternatively, you can do something like: -\begin{verbatim} -\renewcommand{\glossarypreamble}{Numbers in italic -indicate primary definitions.\gdef\glossarypreamble{}} -\printglossaries \end{verbatim} -which will print the preamble text for the first glossary and -change the preamble to do nothing for subsequent glossaries. -(Note that \cs{gdef} is required as the glossary is placed within -a group.) +This will print the given preamble text for the main glossary, +but not have any preamble text for any other glossaries. There is an analogous command called \begin{definition}[\DescribeMacro{\glossarypostamble}] |