Feature Tracker RSS feed

ID 2🔗
Date: 2012-10-27 12:24:44
Status Closed (Implemented)
Category glossaries
Summary Specifying glossary preambles and postambles in an alternative way

Return to Search Results

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}%
}

\makeatother
So 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

Name (optional):

Are you human? Please confirm the feature request ID (which can be found at the top of this page) or login if you have an account. All guest comments have to be manually checked before they appear on the page. There are too many bots trying to spam the site to allow unauthenticated users to post without verification.

Comment:


You can use the following markup:

Block:

[pre]Displayed verbatim[/pre]
[quote]block quote[/quote]

In line:

[tt]code[/tt]
[file]file/package/class name[/file]
[em]emphasized text[/em]
[b]bold text[/b]
[url]web address[/url] [sup]superscript[/sup]
[sub]subscript[/sub]

Ordered list:
[ol]
[li]first item[/li]
[li]second item[/li]
[/ol]

Unordered list:
[ul]
[li]first item[/li]
[li]second item[/li]
[/ul]

You can use the Preview button to review your message formatting before submitting.

Page permalink: https://www.dickimaw-books.com/featuretracker.php?key=2

Return to Search Results