Previews and \jobname, was it a good idea?

Jean-Marc Lasgouttes lasgouttes at lyx.org
Tue Jul 26 22:10:53 UTC 2022


Dear all,

I ticket https://www.lyx.org/trac/ticket/9627, it was decided to define 
\jobname in preview file with the original file name.

However, run_command in lyxpreview_tools.py tries to read the aux file 
to determine whether it is necessary to run bibtex. It would be useful 
too to try to re-run latex until cross references are correct.

The result is clear: there is no bibtex preview in the attached example, 
but after reverting 1c94995a, it works again.

This prevents me from fixing the xref issues pointed by Enrico at #11535.

Ideas? One can always search for "\jobname" in the lyxpreview*.tex file 
and guess the aux file name, but this strikes as a bit hackish.

JMarc
-------------- next part --------------
A non-text attachment was scrubbed...
Name: preview.lyx
Type: application/x-lyx
Size: 2384 bytes
Desc: not available
URL: <http://lists.lyx.org/pipermail/lyx-devel/attachments/20220727/5472ad40/attachment.lyx>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: preview.bib
Type: text/x-bibtex
Size: 211 bytes
Desc: not available
URL: <http://lists.lyx.org/pipermail/lyx-devel/attachments/20220727/5472ad40/attachment.bib>


More information about the lyx-devel mailing list