54

I want to have a glossary where I explain some terms or where I give a one sentence explanation and refer to the section where the term is discussed in detail. With the glossaries package, each term is first defined (in the preamble if you don't want nasty surprises that can occur in certain circumstances) using \newglossaryentry. For example: \...


34

acronym provides \acresetall for resetting the behaviour. After using it each acronym will behave as if it is called for the first time. So just call \acresetall at the beginning of a chapter (or section). In order to automate this you can load the etoolbox package and place \preto\chapter\acresetall in your preamble (or \preto\section\acresetall if you ...


34

Your problem is not caused by IEEEabrv.bib, which simply contains the abbreviated names of IEEE journals; it is rather caused by the style IEEEtran.bst, which is programmed to abbreviate author names. According to this, maybe you could write your author as author = {{\relax World Health Organization} and others}


31

Here is an example using the previously defined \tooltip command. Some user macros from the Acro package needed to be redefined to insert the tooltips only after first use: For Acronyms in black and non-draggable tip boxes use \def\ac#1{\acifused{#1}{\tooltip**[black]{\acs{#1}}{\acl{#1}}}{\acorig{#1}}\relax} \def\acp#1{\acifused{#1}{\tooltip**[black]{\acsp{...


26

In chapter 4 of the user manual the two options are plural and firstplural. The change is simply: \newacronym[plural=cM,firstplural=centiMorgans (cM)]{cM}{cM}{centiMorgan} and the mwe with this change is: \documentclass{article} \usepackage[colorlinks]{hyperref} \usepackage[acronym]{glossaries} \makeglossaries \newacronym[plural=cM,firstplural=...


20

Make your own "abbreviations" environment. For example \documentclass{article} \newcommand{\abbrlabel}[1]{\makebox[3cm][l]{\textbf{#1}\ \dotfill}} \newenvironment{abbreviations}{\begin{list}{}{\renewcommand{\makelabel}{\abbrlabel}}}{\end{list}} \begin{document} \begin{abbreviations} \item[US] United States \item[EU] European Union \item[Gvmt] Government \...


17

The \relax solution didn't work for me, but putting the author in double brackets like this got rid of the problem: author = {{The Agda Team}}


15

Without luatex you can do this, although the space around the word doesn't stretch with other inter-word space on the line. \documentclass{article} \usepackage[utf8]{inputenc} \usepackage[T1]{fontenc} \setlength\textwidth{5cm} \def\etc.{\discretionary{}{etcétera}{\hbox{ etc.}}} \begin{document} abc\etc. abc\etc. abc\etc. abc\etc. abc\etc. abc\etc. abc\...


13

Update 2015-09-08: As of version 2.1 acro supports tooltips directly. They can be activated in two ways: simply set the option \acsetup{tooltip=true}. This will load the pdfcomment package and use \pdftooltip as command for creating tooltips. set the option \acsetup{tooltip-cmd = <macro>} to a tooltip-creating macro of your liking. As a general rule ...


12

The example below defines some commands that allow you to add entries to multiple databases. You can then use the example command \xgls instead of \gls and it will index the entries for each of the databases. So if pdf is in the glossary, acronym and index database, \xgls{pdf} will add a location to each database, whereas if html is only in the acronym and ...


12

Heiko's answer works perfectly in your case, since you are printing only one glossary. In fact, adding nogroupskip option at loading time, you change the behavior globally, i.e. for all glossaries. Just in case you need to define it locally to one glossary, you can define a new style that redefines just that aspect: \newglossarystyle{modsuper}{% \...


12

As far as I can tell tabularx doesn't work in a glossary style due to the way the tabularx environment processes its contents. However it's possible to achieve the same effect without using tabularx. The following example requires the latest version of glossaries (v4.01 at time of writing): \documentclass{article} \usepackage{calc} \usepackage{booktabs} \...


12

The glossaries documentation describes a “first use flag” which determines whether an acronym is being used for the first time or not (and consequently, whether to print the full acronym): First use flag A conditional that determines whether or not the entry has been used according to the rules of first use. Commands to unset or reset this conditional are ...


12

\capitialisewords works by applying \makefirstuc to each space-separated element of its argument. In the case of \capitalisewords{\gls{src}}, there are no spaces in the argument, so it simply does \makefirstuc{\gls{src}}. \makefirstuc applies a set of rules when deciding how to change the case: If the argument starts with a command and that command is ...


12

The datatool package provides \DTLinitials. For example: \documentclass{article} \usepackage{datatool-base} \begin{document} \DTLinitials{This is a test of the Emergency Broadcast System. This-Test. for sample. This T.} \end{document} This automatically inserts a period after each initial, but that can be prevented by redefining \DTLafterinitials, \...


12

There are various methods. First is to use nonumberlist (either as a package option or in \printglossary) in combination with \glsaddall (which must be used after all acronyms have been defined). For example: \documentclass{article} \usepackage{graphics} \usepackage[acronym,nonumberlist]{glossaries} \makeglossaries \newacronym{ac1}{ac1}{acronym 1} \...


11

I have made a little Python script that processes a bibtex database, searching for the journal names and replacing them with their official abbreviation (taken from the Jabref source): https://gist.github.com/FilipDominec/9ff081952dbc4aae1df657a56c3db4ea


11

The vertical gap between is controlled by option nogroupskip. From the user manual of package glossaries: nogroupskip This is a boolean option. If no value is specified, true is assumed. When set to true, this option suppresses the default vertical gap between groups used by some of the predefined styles. The default setting is nogroupskip=false. ...


11

You can use \setglossarypreamble like this: \documentclass{article} \usepackage[acronym]{glossaries} \makeglossaries \setglossarypreamble[acronym]{This list of acronyms only specifies the most important ones} \newacronym{abc}{ABC}{sample acronym} \begin{document} \gls{abc}. \printglossaries \end{document} This produces: For older versions of ...


10

Upgrade to glossaries version 4.14 (I've only just uploaded it to CTAN, so you may need to wait a few days before it reaches the TeX distributions). This has a new command \glsenableentrycount which enables two extra fields for each entry: currcount and prevcount. The currcount field keeps track of how many times the entry has been used so far. (By "used", ...


10

It is indeed possible to have two separate lists using nomencl. You can define them as groups with corresponding titles. When doing so, you need to remove the main title by placing \renewcommand{\nomname}{} in the preamble. Here is an example with two groups: \documentclass{article} \usepackage{nomencl} \makenomenclature %% This removes the main ...


10

Since \addchap calls \@schapter, which is also called by \chapter*, one can think to patch both \@chapter and \@schapter. With the help of etoolbox it's quite easy: \usepackage{etoolbox} \makeatletter \pretocmd{\@chapter}{\glsresetall}{}{} \pretocmd{\@schapter}{\glsresetall}{}{} \makeatother


10

The problem is that \glsaddall adds all entries in the glossary together with their current location to the "number list". So, you should use \glsaddallunused instead of \glsaddall. The former skips any entries that have already been used and also will ignore the current location in the number list. Just remember to put this command after all of your used ...


9

This feature is available directly in the acronym package and I assume this was not the case when your question and David Carlisle's answer were posted. As you use \newacro (as opposed to \acro and \acrodef; see your linked PDF for the differences), David's example can be changed to \documentclass{article} \usepackage{acronym} \newacro{RMS}[RMS]{Resource ...


9

The argument of \index doesn't get expanded when written to the .idx file, so makeindex is trying to sort \glsfirst{cd}. Since makeindex doesn't interpret TeX commands, it views this as a string starting with the backslash character, which is why the entry is considered a symbol. Here's a way of automatically indexing subsequent uses of the acronyms that ...


9

This is exactly the kind of use case I had in mind when I decided to provide \acifused{<id>}{<true>}{<false>} With it you can do the following: \DeclareAcronym{dsdna}{ short = ds\acs*{dna} , long = double-stranded \acifused{dna}{\acs*{dna}}{\acl*{dna}} } This means that the short form will be typeset if the acronym dna has been used ...


9

Assuming you don't want a break within (ACM) then adding more hyphenation points (or reducing the penalty for hyphenation) won't help. You need to allow white space to stretch to allow the line to fill up after you have broken. \begin{document}\setlength\emergencystretch{1.5em} produces no overfull lines (although the lines produced are a bit spacy)


9

(Disclaimer: I'm absolutely sure there is a duplicate but I couldn't find it.) From the acronym documentation: In the acronym environment, acronyms are defined with the command: \acro{<acronym>}[<short name>]{<full name>}. The first argument <acronym> is the acronym string itself and is used in the commands of the ...


8

As I already said in the comments: acro provides the foreign key for cases like this. Nonetheless: here is a way to achieve what you want with acronym. The usage is similar to acronym's \acroextra. The code below defines a command \acroforeign{<foreign long form>} that is to be placed inside the second mandatory argument of \acro: \documentclass{...


8

betterbib (a small project of mine) now gives you a choice on the journal names; short ones are the default. Simply install with pip install betterbib and run it over your bib file: betterbib your.bib out.bib Use --long-journal-name/-l to switch to long journal names.


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