views:

14

answers:

0

When using the glossaries package in a LaTeX document I occasionally want to use a glossary entry as part of section or chapter title. For example:

\section{\Glsentrytext{big}}

This however results in an error. Trying to use \protect\Glsentrytext{} does not solve the the problem. Note that using the non-capitalized version (\glsentrytext) does not produce any problems.

Does anyone know of a way to get this to work?



I use the glossaries package occasionally as way to format specific strings in a consistent way. For example \gls{big} turns into 'beam-into-gas'. Obviously I could create two glossary entries, with and without caps, to achieve this and only include one in the final glossary. That is an ugly solution though.