GeneralPackcage "glossaries" with TeXnicCenter - No glossary!

General information and discussion about TeXnicCenter
ollagnij
Posts: 2
Joined: Wed Feb 13, 2008 4:31 pm

Packcage "glossaries" with TeXnicCenter - No glossary!

Post by ollagnij »

Hi!

I am using the following very simple programme which is an example of the glossary package:

Code: Select all

\documentclass[a4paper]{article}

\usepackage[style=long4colheader]{glossaries}
\makeglossaries

\newglossaryentry{w}{name={$w$},
sort=w,
description={width},
symbol=m}

\newglossaryentry{M}{name={$M$},
sort=M,
description={mass},
symbol={kg}}

\begin{document}
\printglossaries
The width, \gls{w}, is measured in meters. The mass, \gls{M} is
measured in kilograms.
\end{document}

My problem is that the glossary does not appear after compiling it, whereas if I enter ind the MS-Dos window:

latex filename.tex
makeglossaries filename
latex filename.tex

the filename.dvi contains the glossary.


I wanted to integrate it to TeXnicCenter as follows:

[img=http://img228.imageshack.us/img228/395/makeglossariesqu0.th.jpg]

but after compiling it without error, I don't get the glossary!
and I tried this for the different profiles:
LateX=>DVI
LateX=>PDF
LateX=>PS
LateX=>PS=>PDF

somebody told me to check the makeindex transcript file (.glg) for errors.
but I don't get any glg file.

Does somebody knows what is wrong with my configuration?

Thank you in advance for your answer!

JB

Recommended reading 2024:

LaTeXguide.org • LaTeX-Cookbook.net • TikZ.org

NEW: TikZ book now 40% off at Amazon.com for a short time.

dimarcom
Posts: 26
Joined: Wed Mar 05, 2008 11:03 am

Re: Packcage "glossaries" with TeXnicCenter - No glossary!

Post by dimarcom »

I'd be interested too in the solution to this issue... I thought i'd post a reply to reactivate the topic...

Have a nice day !
User avatar
localghost
Site Moderator
Posts: 9202
Joined: Fri Feb 02, 2007 12:06 pm

Packcage "glossaries" with TeXnicCenter - No glossary!

Post by localghost »

I suggest to replace the makeglossaries.bat as shown in the picture with makeglossaries.exe. The documentation of the glossaries package introduces a Perl script (Section 1.1 - Generating the associated glossary files, p. 3), but it seems the executable does the same job.


Best regards
Thorsten¹
JohanLingen
Posts: 5
Joined: Tue Mar 25, 2008 4:08 pm

Re: Packcage "glossaries" with TeXnicCenter - No glossary!

Post by JohanLingen »

Hello Thorsten, could you tell me where I can find the makeglossaries.exe file?

I downloaded the glossaries package, followed all steps in the install manual, refreshed database and format files using MiKTeX. I defined makeglossaries.bat as shown by the picture in the first post. I also installed ActivePerl, but that made no difference: The words from glossary entries are shown, but the glossary itself doesn't show.
JohanLingen
Posts: 5
Joined: Tue Mar 25, 2008 4:08 pm

Re: Packcage "glossaries" with TeXnicCenter - No glossary!

Post by JohanLingen »

It appears that I also had to reboot the computer... maybe ActivePerl required that.

I can no see a glossary! It doesn't show in the PDF document's structure however, can that be fixed somehow?
User avatar
localghost
Site Moderator
Posts: 9202
Joined: Fri Feb 02, 2007 12:06 pm

Packcage "glossaries" with TeXnicCenter - No glossary!

Post by localghost »

JohanLingen wrote:Hello Thorsten, could you tell me where I can find the makeglossaries.exe file? [...]
This executable (as every executable for MiKTeX) can be found in the MiKTeX installation tree.

Code: Select all

C:\Program Files\MiKTeX 2.7\miktex\bin
JohanLingen wrote:[...] I defined makeglossaries.bat as shown by the picture in the first post. [...]
And that's exactly the false step (as I already said). I don't know where this batch file can be found. Perl scripts have a .pl suffix. Try to find out which options are accepted by makeglossaries.exe on the command prompt.

Code: Select all

makeglossaries --help
Add the options you need as command line arguments in the build profile of TeXnicCenter. Since I never did any glossaries, that's all I can tell you.
JohanLingen
Posts: 5
Joined: Tue Mar 25, 2008 4:08 pm

Re: Packcage "glossaries" with TeXnicCenter - No glossary!

Post by JohanLingen »

There is no such file in the MiKTeX directories, I searched them all.

However, with ActivePerl installed, I can see a glossary now (the previous post contained one word too much: "no"). It can be shown in the TOC by defining it as an option:

\usepackage[toc]{glossaries}
rppein
Posts: 1
Joined: Tue May 20, 2008 2:58 pm

Packcage "glossaries" with TeXnicCenter - No glossary!

Post by rppein »

I used the "glossary" package instead of "glossaries", but it was essentially the same problem. I tried to add "makeglossaries.exe" to the output postprocessor (for some reason the "makeglos.bat" and "makeglos.pl" were absent after installation). The compiler didn't find perl to execute "makeglossaries.exe".

I found another solution by writing down the parameters on my own. As they are stored in the profile and executed automatically, there seems to be no further advantage of using the perl-script. If you want to split the glossary from the acronyms, just add the second postprocessor.

makeGlossary
Executable: makeindex.exe
Arguments: -s "%bm".ist -t "%bm".glg -o "%bm".gls "%bm".glo

makeAcronym
Executable: makeindex.exe
Arguments: -s "%bm".ist -t "%bm".alg -o "%bm".acr "%bm".acn

--- edit ---

http://theoval.cmp.uea.ac.uk/~nlct/late ... 0000000000

The advantage of the Perl script seems to be the simplified use of multiple glossaries in parallel. Oherwise you need to keep track of each file on its own.
Archiddeon
Posts: 1
Joined: Sun Sep 28, 2008 10:50 pm

Packcage "glossaries" with TeXnicCenter - No glossary!

Post by Archiddeon »

Hi all,

After many hours of googling and experimenting with various options, I finally found a method that works for me (I tried the other ones mentioned in this thread, but they never worked ... I kept getting strange errors from makeindex and my glossary never displayed).

Anyways, the method ... I'm going to make this as simple as possible for people like myself who read some of these posts and get completely lost :P

Firstly download and install the Glossaries package (note GlossarIES, not GlossarY)
Ensure that the file makeglossaries.bat ends up in your appropriate installation directory ... mine, for instance, is "C:\Program Files\MiKTeX 2.7\tex\latex\glossaries\makeglossaries.bat"

Now, click Build and select "Define Output Profiles"
I use LaTeX to PS so select "LaTeX => PS" and select the Postprocessor tab
Create a new postprocess (I named mine "makeglossaries")
In the executable box, enter "C:\Program Files\MiKTeX 2.7\tex\latex\glossaries\makeglossaries.bat" (with the quotations!) or wherever you placed the makeglossaries.bat file
In the arguments box, enter "%tm" (again with the quotations!)
Now run as per normal and it should work :)

For testing I used a file with the code:

Code: Select all

\documentclass{article}
\usepackage[acronym]{glossaries} % make a separate list of acronyms
\makeindex
\makeglossaries
\newglossaryentry{sample}{name={[has been inserted]},
description={testing testing 123}}
\newacronym{aca}{aca}{a contrived acronym}
\begin{document}
\section{this is a test section}
This is the test line ... a \gls{sample} entry and \gls{aca}.
\printglossaries
\end{document}
in the directory "C:\Documents and Settings\[username]\Desktop\glossary test"

I hope this helps anyone who is still stuck with glossaries not displaying!

-A
Mikerada6
Posts: 42
Joined: Fri Oct 17, 2008 5:55 pm

Re: Packcage "glossaries" with TeXnicCenter - No glossary!

Post by Mikerada6 »

i tried doing as you said but i get an error:
" 'perl' is not recognized as an internal or external command, operable program or batch file."

and i can not get ANY output file.

I am one of those people you mention who get's lost easily so easier is better. Thank you
Post Reply