How to find LyX' compile strategy?

Steve Litt slitt at troubleshooters.com
Wed Dec 8 01:20:12 UTC 2021


Hi all,

Please listen to my exact question, and then I'll elaborate. My exact
question is the following sentence...

How do I find out the exact commands LyX runs when I click the eyeballs
or press Ctrl+r?

As you read the rest of this email, please keep in mind this is an
almost 30K word book with proprietary information, so making an MWE
that I could give to others would take a huge, time consuming effort,
replacing things with Ipsum Lorum, etc.

Now for the symptom: When I compile my book with a shellscript, some of
the index entries point to a page one or two pages off. When I click
the eyeballs, all the index entries are accurate. So I have the root
cause trapped between one working and one non-working system, which
*should* enable me to quickly narrow it down. But I don't know what the
LyX Ctrl+r does, and I would need to know that to achieve this trap.

The following is my shellscript:

==================================================================
#!/bin/sh

namee="lawnmower"

zap_files(){
   dot="."
   for f in aux idx ilg ind log out pdf tex toc; do
      fname=$namee$dot$f
      rm $fname && echo "Deleted $fname."
   done
}

while /bin/true; do
  cd /d/at/books/mm_create
  zap_files
  /bin/texhash
  /usr/local/share/lyx/configure.py
  lyx --export luatex $namee.lyx
  lualatex  $namee.tex
  makeindex $namee.idx
  #texindy $namee.idx
  lualatex $namee.tex
  mupdf     $namee.pdf &  #no box
  echo -n "Press Enter to do it again: "
  read junk
done
==================================================================

Changing the reader doesn't change the symptom. Any reader triggered by
the eyeballs has correct indexing. Any reader triggered by the
shellscript has some erroneous index page numbers. Switching between
makeindex and texindy doesn't affect the symptom. For readability
reasons, I am absolutely committed to TeX Gyra Schola, unless somebody
can show me how to use Century Schoolbook, which I haven't been able to
do in 8 years. I have not been able to compile books with TeX Gyra
Schola with anything but LuaTeX/LuaLaTeX for the same 8 years.

If somebody can tell me how to deduce what LyX does when I press the
Ctrl+r key combo, that will put me well on the way to solving this
problem.

Thanks,

SteveT

Steve Litt 
Spring 2021 featured book: Troubleshooting Techniques of the Successful
Technologist http://www.troubleshooters.com/techniques


More information about the lyx-users mailing list