Feature Tracker
I’m currently working on a major new version of the datatool package. This may take a while. Please be patient. (Experimental version available for testing.)
ID | 2🔗 |
---|---|
Date: | 2012-10-27 12:24:44 |
Status | Closed (Implemented) Sign in if you want to like this report. |
Category | glossaries |
Summary | Specifying glossary preambles and postambles in an alternative way |
Sign in to subscribe to notifications about this report.
Description
Hi,In documents with several glossaries, it would be perhaps more convenient to specify glossary preambles and postambles on a per-glossary basis (e.g. using commands \setglossarypreamble and \setglossarypostamble) instead of repeatedly redefining \glossarypreamble and \glossarypostamble.
Here's my proposal for \setglossarypreamble:
\makeatletter %% \setglossarypreamble[<type>]{<text>} \newcommand{\setglossarypreamble}[2][\glsdefaulttype]{% \ifglossaryexists{#1}{% \csgdef{@glossarypreamble@#1}{#2}% }{% \PackageWarning{glossaries}{% Glossary `#1' is not defined% }% }% } \renewcommand*{\glossarypreamble}{% \csuse{@glossarypreamble@\currentglossary}% } \makeatotherSo what do you think about this?
Best regards,
Michael Pock
MWE
No mwe.tex
Evaluation
Added to version 3.07. Thanks.
Comments
0 comments.
Add Comment
Page permalink: https://www.dickimaw-books.com/featuretracker.php?key=2