Previews and \jobname, was it a good idea?
Andrew Parsloe
ajparsloe at gmail.com
Wed Jul 27 07:25:14 UTC 2022
On 27/07/2022 10:10 am, Jean-Marc Lasgouttes wrote:
> 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
As the person who nagged Enrico to make \jobname easily accessible in
preview files, I am 7 years older now, have more experience with expl3
(the programming language of LaTeX3) and have superseded the calculyx
package which was available on the LyX wiki with the numerica package on
CTAN. This is a standalone LaTeX package not specifically tailored for
use with LyX as calculyx was. I have no objection if you decide to
change the behaviour of \jobname in previews.
Andrew
More information about the lyx-devel
mailing list