TeXShop ⇒ Glossaries
Glossaries
http://the-moni-blog.blogspot.com.br/20 ... n-mac.html
But I can't find my engines directory. Can anyone help me?
Thanks
Learn LaTeX easily with newest books:
The LaTeX Beginner's Guide: 2nd edition and perfect for students writing a thesis
The LaTeX Cookbook: 2nd edition full of practical examples for mathematics, physics, chemistry, and more
LaTeX Graphics with TikZ: the first book about TikZ for perfect drawings in your LaTeX thesis
- Johannes_B
- Site Moderator
- Posts: 4182
- Joined: Thu Nov 01, 2012 4:08 pm
Glossaries
personally, i would always refer to Glossaries, Nomenclature, Lists of Symbols and Acronyms, an article written by the author itself. The basics of compiling are still valid, but the possibilities have changed a bit. Nicola has done quite a lot of development.
As to where you find the binary files, please run on the command line:
Code: Select all
$ which makeglossaries
makeglossaries
is a perl script that eases the call to makeindex (or xindy).Re: Glossaries
#!/bin/sh
bfname=$(dirname "$1")/"`basename "$1" .tex`"
makeindex -s "$bfname".ist -t "$bfname".alg -o "$bfname".acr "$bfname".acn
makeindex -s "$bfname".ist -t "$bfname".glg -o "$bfname".gls "$bfname".glo
Then tried to make it executable, but it didn't work. Any ideas what dirname "$1" and `basename "$1" .tex` would be?
Thanks
- Johannes_B
- Site Moderator
- Posts: 4182
- Joined: Thu Nov 01, 2012 4:08 pm
Glossaries
Run
makeglossaries basename
and everything will be fine. Remember, the basename is the name of your texfile, without the ending.Re: Glossaries
Re: Glossaries
Glossaries
Include_Tese
) where I include my glossary file (Glossario
) and a glossary file.When I ran:
makeglossaries My_Main_File
I got the following answer:
Code: Select all
makeglossaries version 2.14 (2014-03-06)
added glossary type 'main' (glg,gls,glo)
Warning: File 'Include_Tese.glo' is empty.
Have you used any entries defined in glossary 'main'?
Remember to use package option 'nomain' if you
don't want to use the main glossary.
- Johannes_B
- Site Moderator
- Posts: 4182
- Joined: Thu Nov 01, 2012 4:08 pm
Glossaries
At the first LaTeX run, helper files are created. The external tool
makeglossaries
, which is applpied on the basename of the mainfile (without file extension) sorts out the glossary stuff and write other files. With the next run of LaTeX, those files are read and the final glossary is printed. So, you have to run the helper script/programm/app in between your LaTeX runs.
To the actual problem: please have a look at the message, it gives you some clues.
Glossaries
My minimum code is as follows:
Code: Select all
\documentclass[11pt, a4paper]{report}
\usepackage{makeidx}
\usepackage{hyperref}
\usepackage{natbib}
\makeindex
\usepackage[toc]{glossaries}
\input{Capitulos/Glossario}
\makeglossaries
\begin{document}
\printglossary
\end{document}
\newglossaryentry{chama}
{
name= {chama},
description={uma rea\c{c}\~ao autosustentada}
}
\newglossaryentry{(LTE)}
{
name = {equilibrio}
description={localmente}
}
When I run latex followed by makeglossaries followed by latex and latex again, I get a compiled document without a glossary
Re: Glossaries
bruno$ makeglossaries Include_Tese
makeglossaries version 2.14 (2014-03-06)
added glossary type 'main' (glg,gls,glo)
Warning: File 'Include_Tese.glo' is empty.
Have you used any entries defined in glossary 'main'?
Remember to use package option 'nomain' if you
don't want to use the main glossary.