result = MakeNclAction(nclfile, nclfile, env)
if result != 0:
print env['MAKENCL']," (nomenclature) returned an error, check the nlg file"
- return result
+ #return result
# Now decide if latex will need to be run again due to glossary.
if check_MD5(suffix_nodes['.glo'],'.glo') or (count == 1 and run_glossaries) or (count == 1 and run_glossary):
result = MakeGlossaryAction(glofile, glofile, env)
if result != 0:
print env['MAKEGLOSSARY']," (glossary) returned an error, check the glg file"
- return result
+ #return result
# Now decide if latex will need to be run again due to acronyms.
if check_MD5(suffix_nodes['.acn'],'.acn') or (count == 1 and run_acronyms):
\usepackage[refpage]{nomencl}
+%handle old version of nomencl.sty
+\ifdefined\makenomenclature
\makenomenclature
-
+\else
+\makeglossary
+\fi
\begin{document}
A nomenclature entry \nomenclature{gnu}{an animal or software group}
and another\nomenclature{nix}{not sure}.
+%handle old version of nomencl.sty
+\ifdefined\printnomenclature
\printnomenclature
-
+\else
+\printglossary
+\fi
\end{document}
""")
test.must_exist(test.workpath('nomencl.aux'))
test.must_exist(test.workpath('nomencl.fls'))
-test.must_exist(test.workpath('nomencl.nlg'))
-test.must_exist(test.workpath('nomencl.nlo'))
-test.must_exist(test.workpath('nomencl.nls'))
+#test.must_exist(test.workpath('nomencl.nlg')) # old version of nomencl.sty generates .glg, .glo, and .gls
+#test.must_exist(test.workpath('nomencl.nlo'))
+#test.must_exist(test.workpath('nomencl.nls'))
test.must_exist(test.workpath('nomencl.log'))
test.must_exist(test.workpath('nomencl.pdf'))
test.must_not_exist(test.workpath('nomencl.aux'))
test.must_not_exist(test.workpath('nomencl.fls'))
-test.must_not_exist(test.workpath('nomencl.nlg'))
-test.must_not_exist(test.workpath('nomencl.nlo'))
-test.must_not_exist(test.workpath('nomencl.nls'))
+#test.must_not_exist(test.workpath('nomencl.nlg'))
+#test.must_not_exist(test.workpath('nomencl.nlo'))
+#test.must_not_exist(test.workpath('nomencl.nls'))
test.must_not_exist(test.workpath('nomencl.log'))
test.must_not_exist(test.workpath('nomencl.pdf'))