shiblon / latex-makefile

A Makefile for LaTeX - drop it in, type make, and magic happens.
Other
185 stars 30 forks source link

nomenclature list creation (makeindex) not working in Makefile v. 2.2.0? #142

Closed shiblon closed 8 years ago

shiblon commented 8 years ago

Originally reported on Google Code with ID 129

Hi Chris,

First, thanks so much for your work on this Makefile.  It's been a big time saver as
I work on my dissertation.  I just started using v. 2.2.0 a couple of days ago.

One thing I've noticed is that my documents that use the nomenclature package (nomencl.sty)
are not compiling as they used to under v. 2.1.43.

For the attached file, issuing the "make" command using v. 2.1.43, does everything,
including the makeindex command to create the "foo.nls" nomenclature list, that is
then included in the document.

Using v. 2.2.0, the "foo.nls" file is not created, and thus the final document does
not contain the nomenclature list.

I looked through shell-debug output using v. 2.2.0, but I don't understand enough about
what the output meant to determine whether makeindex was called, or if not, why not.

Looking at a diff between 2.1.43, and 2.2.0, I can see that the line that calls MAKEINDEX
is changed somewhat, but right now, I don't understand enough about the shell syntax
to debug.

My LaTeX installation is pretty much straight TeXLive 2010 on Ubuntu 10.04.

Thanks again, Chris!
-Chas

Reported by charles.hewgley4 on 2011-05-10 21:20:41


shiblon commented 8 years ago
Interesting.  It is creating a .nlo file with the following contents:

\nomenclatureentry{aSNAFU@[{SNAFU}]\begingroup Something messed up\nomeqref {0}|nompageref}{1}

\nomenclatureentry{aFUBAR@[{FUBAR}]\begingroup Something really messed up\nomeqref
{0}|nompageref}{1}

Is this perhaps a filename issue?  Is the extension wrong now?

Reported by shiblon on 2011-05-11 14:57:08

shiblon commented 8 years ago
I just found the problem.  Facepalm.

The nls file was depending on the .nlo file and on nomencl.ist.  If that wasn't in
the current directory, it was silently failing.  Now it depends on the result of kpsewhich
nomencl.ist first, which is more sensible.  Note that providing a local one will still
override the global one, but the make dependencies don't really care about that.

Try out the attached and let me know how it goes.

Reported by shiblon on 2011-05-11 15:08:30


shiblon commented 8 years ago
Thanks so much!  This fix worked like a champ!  I hadn't thought of the nomencl.ist
style file; my documents just use the default one in the texmf directory tree.

Reported by charles.hewgley4 on 2011-05-11 18:24:49

shiblon commented 8 years ago
Yay!  I'm uploading the new version, now.

Reported by shiblon on 2011-05-11 20:19:58