Google Groups no longer supports new Usenet posts or subscriptions. Historical content remains viewable.
Dismiss

Does a glossary exist for multi-paragraph texts?

1 view
Skip to first unread message

Daneel Yaitskov

unread,
Dec 24, 2009, 2:07:56 PM12/24/09
to
Hi List,


I encountered with a problem that the usual glossary package strong
imposes the description of a glossary. Namely, It is impossible to put
two or more paragraphs in one glossary:

\storeglosentry{glos:bay}{name=bay,description={
Although there is no requirement that you do so, it is
considered good form to check with an editor before quoting
the File in a published work or commercial product.

%%%%%%%% Here is the error \par is inhibited.
We may have additional
information that would be helpful to you and can assist you in
framing your quote to reflect not only the letter of the File but its
spirit as well.
}}


minipage and verbatim environments don't help.

It may put each paragraph into a item of a list but it isn't convenient.


Daneel Yaitskov.

Nicola Talbot

unread,
Dec 26, 2009, 6:58:50 AM12/26/09
to

\newcommand{\Par}{\par}


\storeglosentry{glos:bay}{name=bay,description={
Although there is no requirement that you do so, it is
considered good form to check with an editor before quoting
the File in a published work or commercial product.

\Par


We may have additional
information that would be helpful to you and can assist you in
framing your quote to reflect not only the letter of the File but its
spirit as well.
}}

Note, however, that the glossary package is obsolete and has been
replaced by glossaries, which provides the command \glspar to do the above.

Regards
Nicola Talbot
--
Home: http://theoval.cmp.uea.ac.uk/~nlct/
LaTeX Related Information: http://theoval.cmp.uea.ac.uk/~nlct/latex/
Creating a LaTeX Minimal Example:
http://theoval.cmp.uea.ac.uk/~nlct/latex/minexample/

--- news://freenews.netfront.net/ - complaints: ne...@netfront.net ---

Dan Luecking

unread,
Dec 28, 2009, 4:33:51 PM12/28/09
to
On Sat, 26 Dec 2009 11:58:50 +0000, Nicola Talbot <n.ta...@uea.ac.uk>
wrote:

>Daneel Yaitskov wrote:
>> I encountered with a problem that the usual glossary package strong
>> imposes the description of a glossary. Namely, It is impossible to put
>> two or more paragraphs in one glossary:
>>
>> \storeglosentry{glos:bay}{name=bay,description={
>> Although there is no requirement that you do so, it is
>> considered good form to check with an editor before quoting
>> the File in a published work or commercial product.
>>
>> %%%%%%%% Here is the error \par is inhibited.
>> We may have additional
>> information that would be helpful to you and can assist you in
>> framing your quote to reflect not only the letter of the File but its
>> spirit as well.
>> }}
>>
>>
>> minipage and verbatim environments don't help.
>>
>> It may put each paragraph into a item of a list but it isn't convenient.
>
>\newcommand{\Par}{\par}

This method has a slight chance of being fragile.
I don't know enough about the glossary package to be
sure but, if the argument is ever expanded between
being stored and used, \Par could be fragile.

One could use \endgraf in place of \Par. LaTeX
pre-defines this to be equal to the primitive \par
(using \let\endgraf\par). This makes \endgraf robust.

>\storeglosentry{glos:bay}{name=bay,description={
> Although there is no requirement that you do so, it is
>considered good form to check with an editor before quoting
>the File in a published work or commercial product.
>\Par

Or \endgraf.

>We may have additional
> information that would be helpful to you and can assist you in
> framing your quote to reflect not only the letter of the File but its
> spirit as well.
> }}


Dan
To reply by email, change LookInSig to luecking

Nicola Talbot

unread,
Jan 5, 2010, 9:58:32 AM1/5/10
to
Dan Luecking wrote:
> On Sat, 26 Dec 2009 11:58:50 +0000, Nicola Talbot <n.ta...@uea.ac.uk>
> wrote:
>> \newcommand{\Par}{\par}
>
> This method has a slight chance of being fragile.
> I don't know enough about the glossary package to be
> sure but, if the argument is ever expanded between
> being stored and used, \Par could be fragile.
>
> One could use \endgraf in place of \Par. LaTeX
> pre-defines this to be equal to the primitive \par
> (using \let\endgraf\par). This makes \endgraf robust.

Thanks for that.

0 new messages