Tag Info

Hot answers tagged

5

The entry bar is added twice without using it by \glsadd{bar} and \glsaddallunused. In the description of the latter, the documentation says: If you want to use \glsaddallunused, it's best to place the command at the end of the document to ensure that all the commands you intend to use have already been used. Otherwise you could end up with a ...


3

Your MWE gives an error: ! Package datatool Error: Can't assign \longv : there is no key `Long ' in data base `data'. The problem is caused by a spurious space at the end of \longv=Long It's looking for a key called "Long " (note the space) but it doesn't exist, so \longv is set to null, which is what's producing the "NULL" text. Just comment out ...


3

Your style uses a supertabular, which seems to break a bit to early. You could try the style "long" instead. You could additionally enlarge the page with \enlargethispage{2\baselineskip} before \printglossaries.


3

Version 4.16 of glossaries now has a hook \glswriteentry that's used to determine whether or not to performing the indexing for commands like \gls. The default definition is: \newcommand*{\glswriteentry}[2]{% \ifglsindexonlyfirst \ifglsused{#1}{}{#2}% \else #2% \fi } The first argument is the entry's label and the second argument is the code ...


3

As from version 4.16 you can use the hook \glspostlinkhook that's used by commands like \gls: \documentclass{article} \usepackage[entrycounter]{glossaries} \makeglossaries \renewcommand*{\glsentrycounterlabel}{}% \renewcommand*{\glspostlinkhook}{\textsuperscript{\pageref{glsentry-\glslabel}}} \newglossaryentry{term}{name=term,description={an example}} ...


3

The problem is caused by the fact that internally the footnote is using \glslabel to reference the entry but the definition of this command has changed by the time the footnote is processed. The simplest thing to do is to modify the style to ensure the label is expanded first, as in the modified example below: \documentclass{scrreprt} \usepackage{ragged2e} ...


2

The glossaries bundle also provides the mfirstuc package, which provides the command \capitalisewords, which converts the first letter of each word to uppercase. This can be adapted so that instead of converting the letter to uppercase, it turns it bold instead. A new command can be created to do this: ...


2

(It would help if you provide a minimal working example (MWE) that people can work with.) The problem is caused by the default expansion that's performed when the entry is defined. This can be fixed by using \glsnoexpandfields to switch off the expansion: \documentclass{article} \usepackage{siunitx} \usepackage{glossaries} ...


2

As from glossaries version 4.16 you can use \glswriteentry to automatically set format=textit on first use: \documentclass{article} \usepackage{glossaries} \makeglossaries \defglsentryfmt{% \ifglsused{\glslabel}{% \glsgenentryfmt% }{% % Typeset first use \textit{\glsgenentryfmt}% }% } \renewcommand*{\glswriteentry}[2]{% ...


2

\printglossary[title={List of Symbols}]


2

There is a } missing at the end of the line starting with description=


2

You do not say why Ulrike Fischer's suggestion does not solve your problem in either your original document or the MWE. Switching to long solves the problem for the MWE when I test. So I'm guessing that you do not like the different positioning of the tabular. But this does not mean the problem isn't solved. It just means that solving it has created a new ...


2

You can use the package option numberedsection=autolabel, described in Sectioning, Headings and TOC Options, and then you can reference it using the glossary label (e.g. \ref{main} for the main glossary) but that will turn the glossary into a numbered chapter (which is necessary in order to cross-reference it using \ref). If you want a prefix you can ...


1

My solution to the formatting you describe would be to add two new keys, and create a new custom style based off the existing list template style. \documentclass{article} \usepackage[T1]{fontenc} \usepackage{setspace} \usepackage{siunitx,microtype,textcomp,textgreek} \usepackage[nogroupskip,toc,indexonlyfirst]{glossaries} ...


1

After looking more closely into the manual and how \glsentryfmt is originally defined, I managed to figure it out. =) This gives me what I want: \documentclass{article} \usepackage{glossaries} \makeglossaries \defglsentryfmt{% \ifglsused{\glslabel}{% \glsgenentryfmt% }{% % Typeset first use \textit{\glsgenentryfmt}% }% } ...


1

So what I ended up doing was this: To solve Nr. 1, I used this older answer from @Nicola Talbot: \setacronymstyle{long-short-desc} % Print both long and short \renewcommand*{\acronymentry}[1]{% \acronymfont{\glsentryshort{#1}} (\textnormal{\glsentrylong{#1}})} % Print it the way I want \makeglossaries \loadglsentries{glossar.tex} % Or define them ...



Only top voted, non community-wiki answers of a minimum length are eligible