LyXNo nomenclature ouput with LuaTex

Information and discussion about LyX, a WYSIWYM editor, available for Linux, Windows and Mac OS X systems.
Post Reply
plipMan
Posts: 4
Joined: Fri Mar 19, 2021 3:09 pm

No nomenclature ouput with LuaTex

Post by plipMan »

Hi,

I have the problem that the nomenclature is not displayed in my documents created with LuaTex. Only when I switch to pdflatex is it displayed. If I then switch back to LuaTex, it is still there and is also updated when I add new entries.
That would at least be a workaround, but unfortunately I also have documents with features that pdflatex doesn't support and this procedure doesn't work for them.
Does anyone have an explanation for this strange behaviour?

Regards
Philip

Recommended reading 2024:

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

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

Stefan Kottwitz
Site Admin
Posts: 10345
Joined: Mon Mar 10, 2008 9:44 pm

No nomenclature ouput with LuaTex

Post by Stefan Kottwitz »

Hi Philip,

welcome to the forum!

Can you perhaps post both log files (pdfLaTeX and LuaLaTeX run) here, as attachment? The *Attachments* link is below the text edit field, when writing or editing a post here.

Stefan
LaTeX.org admin
plipMan
Posts: 4
Joined: Fri Mar 19, 2021 3:09 pm

No nomenclature ouput with LuaTex

Post by plipMan »

Hi Stefan,

can you tell me where I can find this log file? I expected it to be in the same folder as the lyx file but it is not.
User avatar
Stefan Kottwitz
Site Admin
Posts: 10345
Joined: Mon Mar 10, 2008 9:44 pm

No nomenclature ouput with LuaTex

Post by Stefan Kottwitz »

Hi Philip,

ist can also be accessed via the LyX main menu, in Document / LaTeX log (for each run, pdfLaTeX and LuaLaTeX).

Stefan
LaTeX.org admin
plipMan
Posts: 4
Joined: Fri Mar 19, 2021 3:09 pm

No nomenclature ouput with LuaTex

Post by plipMan »

Thanks!
Attachments
pdflatex.txt
(9.41 KiB) Downloaded 197 times
luatex.txt
(13.85 KiB) Downloaded 210 times
User avatar
Stefan Kottwitz
Site Admin
Posts: 10345
Joined: Mon Mar 10, 2008 9:44 pm

No nomenclature ouput with LuaTex

Post by Stefan Kottwitz »

It looks like the pdfLaTeX call runs makeindex implicitly, and the LuaLaTeX call doesn't.

It may need to be configured in the LyX compiler settings, or you do it manually on the command prompt, such as

makeindex filename.nlo -s nomencl.ist -o filename.nls

makeindex is the engine behind nomencl.

Stefan
LaTeX.org admin
User avatar
Stefan Kottwitz
Site Admin
Posts: 10345
Joined: Mon Mar 10, 2008 9:44 pm

No nomenclature ouput with LuaTex

Post by Stefan Kottwitz »

By the way, technically it should work fine with LuaLaTeX. Here's a small example:

Code: Select all

% !TEX lualatex
% !TEX makeindex -s nomencl.ist -o document.nls -t document.nlg document.nlo
\documentclass[oneside,12pt]{article}
\usepackage{nomencl}
\makenomenclature
\begin{document}
\[
e^{\pi i} = 1
\]
\nomenclature{$e$}{Euler's number}
\nomenclature{$i$}{Imaginary unit}
\nomenclature{$\pi$}{Ratio of circumference to diameter}
\printnomenclature    
\end{document}
If you click on "Run LaTeX here", the forum translates it with LuaLaTeX, and the document properties show that it has been produced by LuaTeX-1.12.0.

Also, the corresponding .log file shows This is LuaHBTeX, Version 1.12.0 (TeX Live 2020) (format=lualatex 2021.3.22) when you insert

% !TEX log

at the beginning in the code edit field abolve.

Stefan
LaTeX.org admin
plipMan
Posts: 4
Joined: Fri Mar 19, 2021 3:09 pm

No nomenclature ouput with LuaTex

Post by plipMan »

Stefan Kottwitz wrote: makeindex filename.nlo -s nomencl.ist -o filename.nls
Stefan
What is the meaning of the .nlo and .list files? I can't find any files with these types in my project.
Post Reply