I am trying to redefine the \nomencl_command
in LyX, in order to be able to use the glossaries
package in stead of the obsolete nomencl
.
LyX allows you to specify the Nomenclature command
, which by default is set to:
makeindex -s nomencl.ist
For glossaries the command is thus changed to:
makeglossaries
However, the LyX implementation of nomencl uses the more recent .nlo
as an input file, and the .nls
as an output file. Whereas glossaries uses the 'older' .glo
and .gls
Unfortunately, the extensions cannot be specified.
I found that the preferences file only says:
\nomencl_command "makeglossaries"
but the log output says:
makeglossaries "[filename].nlo" -o [filename].nls
So my question is where is \nomencl_command
defined further?
The relevant code is in
src/LaTeX.cpp
. Note below that some diagnostic information is written to the latex debug flag. You can see this info on the terminal if you run LyX withlyx -dbg latex
.The following are excerpts from the file
src/LaTeX.cpp
from the soon-to-be-released (a matter of days) LyX 2.1.and
and