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
NEW: TikZ book now 40% off at Amazon.com for a short time.
And: Currently, Packt sells ebooks for $4.99 each if you buy 5 of their over 1000 ebooks. If you choose only a single one, $9.99. How about combining 3 LaTeX books with Python, gnuplot, mathplotlib, Matlab, ChatGPT or other AI books? Epub and PDF. Bundle (3 books, add more for higher discount): https://packt.link/MDH5p
- 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 youdon'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.