Skip to content

Commit

Permalink
add example for a glossary.
Browse files Browse the repository at this point in the history
  • Loading branch information
jkitchin committed Jan 15, 2016
1 parent 10f8d2e commit f467abf
Showing 1 changed file with 12 additions and 1 deletion.
13 changes: 12 additions & 1 deletion org-ref.org
Original file line number Diff line number Diff line change
Expand Up @@ -480,12 +480,23 @@ See http://en.wikibooks.org/wiki/LaTeX/Glossary. Not all options are supported.

You will need to incorporate running the command makeglossaries into your PDF build command. You also need use the glossaries LaTeX package.

Here is a minimal working example of an org file that makes a glossary.
#+BEGIN_EXAMPLE
#+LATEX_HEADER: \usepackage[toc]{glossaries}
#+latex_header: \usepackage{glossaries}
#+latex_header: \makeglossaries

#+latex_header: \newglossaryentry{computer}{name=computer,description={A machine}}


A gls:computer is good for computing. Gls:computer is capitalized. We can also use a bunch of glspl:computer to make a cluster. Glspl:computer are the wave of the future.

\printglossaries
#+END_EXAMPLE

This is not supported in anything but LaTeX export.



* Index
This is a functional link that will open a buffer of clickable index entries:
printindex:nil
Expand Down

0 comments on commit f467abf

Please sign in to comment.