I'm trying to implement the nomencl
package in my Master's thesis, but I'm experiencing serious trouble when it comes to make latexmk
/makeindex
create or update the nls
file. I ended up creating the nls
file manually from terminal (according to the nomencl
documentation), but it won't update. I'm using TeX Live and Sublime Text 2 with LaTeXTools.
So, according to quite wide web I'm not the only one having troubles making nomencl
and latexmk
/makeindex
communicate properly. According to one thread, I tried to add the following code to a latexmkrc
file:
# for nomenclature
add_cus_dep("nlo", "nls", 0, "nlo2nls");
sub nlo2nls {
system("makeindex $_[0].nlo -s nomencl.ist -o $_[0].nls -t $_[0].nlg");
}
I found no less than 8 latexmkrc
files on my Mac, none of them located according to the latexmk
documentation, and with no response to print('Hello, world!');
added to any of the files. I also tried to make a latexmkrc
file in /opt/local/share/latexmk/LatexmK
(and /opt/local/share/latexmk
, just in case). Neither responds to
Hello, world!
My question is: how do I get the nls
file to be created and updated automatically?
.latexmkrc
in your home directory. But I think you may have misunderstood the documentation for the names of the system-wide configuration files. These are files named LatexMk in one of the directories /opt/local/share/latexmk/ /usr/local/share/latexmk/ /usr/local/lib/latexmk/ (There are some backwards compatibility reasons for the naming.)