LaTeX forum ⇒ MakeIndex, Nomenclature, Glossaries and AcronymsMakeindex: glossaries package with acronym option Topic is solved

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

Makeindex: glossaries package with acronym option

Postby nicol » Sun Jan 12, 2014 11:30 am

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:
  1. 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:
  1. \documentclass[4apaper]{book}
  2.  
  3. \usepackage[german,french,spanish,english]{babel}
  4.  
  5. \usepackage{hyperref}
  6.  
  7. \usepackage{makeidx}
  8. \makeindex
  9.  
  10. \usepackage[acronym]{glossaries}
  11.  
  12.  
  13. \newglossaryentry{parola}{name=parola,
  14. description={Bla Bla}}
  15.  
  16. \newacronym{TEM}{TEM}{scanning electron microscope}
  17.  
  18. \newacronym{lVm}{LVM}{Logical Volume Manager}
  19.  
  20. \makeglossaries
  21.  
  22. \begin{document}
  23.  
  24.  
  25. \chapter{Chap One}
  26. Ciao\acrshort{lVm} Ciao\gls{TEM} Ciao\gls{parola}
  27.  
  28.  
  29. \printglossary[type=\acronymtype]
  30. \printglossary
  31.  
  32.  
  33. \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.
Reason: added inline code markup

Tags:

User avatar
cgnieder
Site Moderator
Posts: 1974
Joined: Sat Apr 16, 2011 7:27 pm
Location: Germany
Contact:

Postby cgnieder » Sun Jan 12, 2014 11:51 am

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
Clemens
------------------------------
chemmacros · chemformula · leadsheets · xsim

nicol
Posts: 11
Joined: Wed Jan 05, 2011 1:54 pm

Postby nicol » Sun Jan 12, 2014 12:03 pm

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: 1974
Joined: Sat Apr 16, 2011 7:27 pm
Location: Germany
Contact:

Postby cgnieder » Sun Jan 12, 2014 12:09 pm

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


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

Regards
Clemens
------------------------------
chemmacros · chemformula · leadsheets · xsim

nicol
Posts: 11
Joined: Wed Jan 05, 2011 1:54 pm

Postby nicol » Sun Jan 12, 2014 12:15 pm

Thank you very much

what do you use? (just for information)

Bests
Nicol

User avatar
cgnieder
Site Moderator
Posts: 1974
Joined: Sat Apr 16, 2011 7:27 pm
Location: Germany
Contact:

Postby cgnieder » Sun Jan 12, 2014 12:19 pm

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
Clemens
------------------------------
chemmacros · chemformula · leadsheets · xsim

nicol
Posts: 11
Joined: Wed Jan 05, 2011 1:54 pm

Postby nicol » Sun Jan 12, 2014 12:22 pm

ok thank you very much.

nicol

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

Postby Johannes_B » Sun Jan 12, 2014 1:44 pm

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: 1974
Joined: Sat Apr 16, 2011 7:27 pm
Location: Germany
Contact:

Postby cgnieder » Sun Jan 12, 2014 1:49 pm

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...)
Clemens
------------------------------
chemmacros · chemformula · leadsheets · xsim


Return to “MakeIndex, Nomenclature, Glossaries and Acronyms”

Who is online

Users browsing this forum: No registered users and 2 guests