Text Formatting[glossaries] Too long entries disappear

Information and discussion about LaTeX's general text formatting features (e.g. bold, italic, enumerations, ...)
Post Reply
cool
Posts: 5
Joined: Mon Oct 26, 2009 12:39 am

[glossaries] Too long entries disappear

Post by cool »

Hello *,

using the glossaries package and the style: long3colheaderborder I have a problem, that too long entries, which should be spread across multiple pages simply disappear. Any suggestions? (Despite the one to make the entries shorter)


Many Thanks,
Ovanes

Recommended reading 2024:

LaTeXguide.org • LaTeX-Cookbook.net • TikZ.org
LaTeX books
User avatar
nlct
Posts: 276
Joined: Thu Nov 06, 2008 11:15 am

[glossaries] Too long entries disappear

Post by nlct »

It's difficult to tell without an example, but it's possible that you've exceeded makeindex's buffer. See makeindex complains that the entry is too long. (Check the makeindex log file for messages.) If that doesn't solve it, please supply a minimal example.

Regards
Nicola Talbot
cool
Posts: 5
Joined: Mon Oct 26, 2009 12:39 am

[glossaries] Too long entries disappear

Post by cool »

Nicola,

many thanks for your answer. Especially thanks for such a great package! I really love it!

I will take a look at the supplied link and give some feedback here.

I have also posted some other question regarding [glossaries], but probably to the wrong forum: http://www.latex-community.org/forum/vi ... =45&t=6465, because I thought Figures & Tables is more related to Glossaries. Could you please take a look at it?

Many thanks,
Ovanes
cool
Posts: 5
Joined: Mon Oct 26, 2009 12:39 am

[glossaries] Too long entries disappear

Post by cool »

Nicola,

I have tested your suggestion, and unfortunately it does not work. Below is the example, I used to reproduce this behavior. The \gls{appdomain} entry is not shown.

I use TeXnicCenter and MiKTeX 2.7
One of the output lines states:
Scanning input file TestGlossaries.glo....done (1 entries accepted, 1 regected).
Many thanks,
Ovanes

Code: Select all

\documentclass{article}
\usepackage{index}
\usepackage[toc,style=long3colheaderborder,footnote,acronym]{glossaries} 

\makeindex 
\makeglossaries

\newcommand{\appDomainDescription}{As explained in SomeRefHere process boundaries are used to isolate threads of applications running on the same computer. Managed code passes through a verification process before its execution. If verification is passed, the code is considered to be type-safe. The ability to verify code as type-safe enables .NET CLR a more fine grained level of isolation as the process boundary: application domain. Several application domains are allowed to be executed within a single process. Fault in one application domain cannot affect other application domains [Citation missing]. Each application domain has an own copy of static data [Citation missing]. To transfer data between application domains a communication mechanism is required. This communication mechanism incurs additional performance drawbacks. MSDN copied text: `Application domains, which are represented by AppDomain objects, help provide isolation, unloading, and security boundaries for executing managed code. Multiple application domains can run in a single process; however, there is not a one-to-one correlation between application domains and threads. Several threads can belong to a single application domain, and while a given thread is not confined to a single application domain, at any given time, a thread executes in a single application domain.'}

\newglossaryentry{appdomain}{name={application domain}, description={\appDomainDescription}}


\newglossaryentry{sample}{name={[has been inserted aaa]},description={testing testing 123}}
\newacronym{aca}{aca}{a contrived acronym}

\begin{document}
\section{this is a test section}
This is the test line... a \gls{sample} \gls{appdomain} 
\index{entry} and \gls{aca}
\thispagestyle{empty}\cleardoublepage

\printglossary[type=main,title={Glossary},toctitle={Glossary}]
\thispagestyle{empty}\cleardoublepage
\printglossary[type=\acronymtype,title={List of Abbreviations},toctitle={List of Abbreviations}]

\printindex
\thispagestyle{empty}\cleardoublepage
\end{document}

User avatar
nlct
Posts: 276
Joined: Thu Nov 06, 2008 11:15 am

[glossaries] Too long entries disappear

Post by nlct »

You need to protect \appDomainDescription to prevent it from being expanded when it's written to the glo file:

Code: Select all

\newglossaryentry{appdomain}{name={application domain},
description={\protect\appDomainDescription}}
(This is because the "footnote" option switches off the sanitization performed on the description. I'll add an extra note on that in the faq.)

Regards
Nicola Talbot
Post Reply