MakeIndex, Nomenclature, Glossaries and AcronymsMakeindex: glossaries package with acronym option

Information and discussion about MakeIndex - the tool to generate subject indices for LaTeX documents.
Post Reply
nicol
Posts: 11
Joined: Wed Jan 05, 2011 1:54 pm

Makeindex: glossaries package with acronym option

Post by nicol »

Dear all



I have a problem with the glossaries package with the option acronym.

I am using texmaker on windows.

I modified the makeindex command with:

Code: Select all

makeindex %.idx %.glo -t %.glg -s %.ist -o %.gls %.acn
and I run
pdflatex -- makeindex -- pdflatex -- pdflatex

The problem is that I cannot print the list of the acronym as separated by the glossary in two separated sections.

I managed to print "only" the main glossaries with acronyms and glossary entries together

this is the code I used:

Code: Select all

\documentclass[4apaper]{book}

\usepackage[german,french,spanish,english]{babel}

\usepackage{hyperref}

\usepackage{makeidx}
\makeindex

\usepackage[acronym]{glossaries}


\newglossaryentry{parola}{name=parola,
description={Bla Bla}}

\newacronym{TEM}{TEM}{scanning electron microscope}

\newacronym{lVm}{LVM}{Logical Volume Manager}

\makeglossaries

\begin{document}


\chapter{Chap One}
Ciao\acrshort{lVm} Ciao\gls{TEM} Ciao\gls{parola}


\printglossary[type=\acronymtype]
\printglossary


\end{document}
I tried also the simple \printglossaries instead of the two separated commands \printglossary[type=\acronymtype] and \printglossary, but nothing changed.




How can I do?
Nicol
Last edited by cgnieder on Sun Jan 12, 2014 11:48 am, edited 1 time in total.

Recommended reading 2024:

LaTeXguide.org • LaTeX-Cookbook.net • TikZ.org
LaTeX Beginner's Guide LaTeX Cookbook LaTeX TikZ graphics TikZによるLaTeXグラフィックス
User avatar
cgnieder
Site Moderator
Posts: 2000
Joined: Sat Apr 16, 2011 7:27 pm

Makeindex: glossaries package with acronym option

Post by cgnieder »

Hi Nicol,

YOu don't need to do anything with the makeindex command. Instead run makeglossaries.

If I run your code with
  1. pdflatex
  2. makeglossaries
  3. pdflatex
I get a document with five pages containing of chapter »Chap One«, a chapter »Acronyms« and a chapter »Glossary« as expected.

Regards
site moderator & package author
nicol
Posts: 11
Joined: Wed Jan 05, 2011 1:54 pm

Re: Makeindex: glossaries package with acronym option

Post by nicol »

sorry for my ignorance :) but...

how can I run makeglossaries?

Tekmaker doesn't work with it even if I created the command
makeindex%

following these instructions ( http://tex.stackexchange.com/questions/ ... on-windows )

Bests
Nicol
User avatar
cgnieder
Site Moderator
Posts: 2000
Joined: Sat Apr 16, 2011 7:27 pm

Makeindex: glossaries package with acronym option

Post by cgnieder »

Try the command line. If your file is called test.tex you should be able to call

Code: Select all

makeglossaries test
How you tell TeXmaker to use it I have no idea since I never used that editor.

Regards
site moderator & package author
nicol
Posts: 11
Joined: Wed Jan 05, 2011 1:54 pm

Re: Makeindex: glossaries package with acronym option

Post by nicol »

Thank you very much

what do you use? (just for information)

Bests
Nicol
User avatar
cgnieder
Site Moderator
Posts: 2000
Joined: Sat Apr 16, 2011 7:27 pm

Makeindex: glossaries package with acronym option

Post by cgnieder »

I used to use Kile a lot but I switched to emacs not too long ago. (I even wrote a blog post about that ;))

Regards
site moderator & package author
nicol
Posts: 11
Joined: Wed Jan 05, 2011 1:54 pm

Re: Makeindex: glossaries package with acronym option

Post by nicol »

ok thank you very much.

nicol
User avatar
Johannes_B
Site Moderator
Posts: 4182
Joined: Thu Nov 01, 2012 4:08 pm

Makeindex: glossaries package with acronym option

Post by Johannes_B »

nicol wrote:Tekmaker doesn't work with it even if I created the command
makeindex%
following these instructions ( http://tex.stackexchange.com/questions/ ... on-windows )
Maybe just a mistake when writing the post, but you have to input makeglossaries % as the new defined command.

Btw: Texmaker is useful for editing tex-files. There are other editors which are especially helpful for other files (like e.g. HTML).
Some editors are more powerful than others and can do almost everything (aside from making coffee), the big two are emacs and vim. Personally, i do everything in vim. Both are a bit complicated at first.
Let your personal taste decide who wins the editor war.
The smart way: Calm down and take a deep breath, read posts and provided links attentively, try to understand and ask if necessary.
User avatar
cgnieder
Site Moderator
Posts: 2000
Joined: Sat Apr 16, 2011 7:27 pm

Makeindex: glossaries package with acronym option

Post by cgnieder »

Johannes_B wrote:Some editors are more powerful than others and can do almost everything (aside from making coffee)
Well, since TeX can make toast it should be possible to make coffee as well. ;) (Maybe even without TeX but with your editor of choice...)
site moderator & package author
Post Reply