Using acronyms and glossary wit latex glossaries package with texmaker at the same time in a document

By Christopher, March 27, 2011

Today I have had the problem of generating my latex tables for acronyms and glossary with glossaries package and makeindex with Texmaker. The main problem is, that Texmaker only allows one makeindex command at the same time.

To solve that problem I wrote a workaround bash script, which I named makeindex_acro_glos.run

1
2
3
4
5
6
#!/bin/bash
#glossar:
makeindex -s  $1.ist -t $1.glg -o $1.gls $1.glo

#acronym:
makeindex -s $1.ist -t $1.alg -o $1.acr $1.acn

You need to set execution permission with chmod +x makeindex_acro_glos.run. I placed that scrip inside my latex project folder, but you could also place it in your main script folder in linux which you putted into path.

To enable that script inside Texmaker you need to change the configuration like on this screenshot:

If you have done it, you could generate the tables with F12 in Texmaker.

7 Comments

  1. Georg says:

    Hallo Christopher,

    ich bin gerade auf selbiges Problem gestoßen, als ich von meinem TechnixCenter zu TexMaker auf Mac OS migriert bin.

    Gibt es keine Alternativen?
    Wie sieht das Run file genau aus, dass du geschrieben hast? Ist das etwa schon alles?

    Was hälst du von Kile? Ist es an und für sich besser, und, gibt es hier das selbe Problem?

    Beste Grüße

    Georg

    • Christopher says:

      Hallo,
      ja das Runfile für makeindex ist genau dieser 3 Zeiler dort oben. Ob es Alternativen gibt..? Bestimmt, ich finde es so praktikabel, ich mag TexMaker, da ich ihn auf allen OS benutzen kann. Früher habe ich unter Windows auch immer TechnixCenter benutzt, da hat man dieses Problem nicht gehabt. Kile habe ich noch nie richtig ausprobiert und kann dazu nichts sagen, da ich aber meist nur GNOME benutze, verzichte ich meist auf die Nutzung von KDE-Anwendungen.

    • Melanie says:

      Hallo,

      how exactly do I set the permissions so that it can execute the command?

  2. Denis says:

    Danke für die Anleitung. Script klappt wunderbar!

  3. Pjotr says:

    thanks!

    i have put a bit more:)

    #!/bin/bash
    #ACRONYM:
    makeindex -s $1.ist -t $1.alg -o $1.acr $1.acn
    #GLOSSARY:
    makeindex -s $1.ist -t $1.glg -o $1.gls $1.glo
    #SYMBOL LIST:
    makeindex -s $1.ist -t $1.slg -o $1.syi $1.syg
    #FORMULA LIST:
    makeindex -s $1.ist -t $1.flg -o $1.fyi $1.fyg

What do you think?

You must be logged in to post a comment.