Re: Previews and \jobname, was it a good idea?
On 27/07/2022 8:14 pm, Jean-Marc Lasgouttes wrote: Le 27/07/2022 à 09:25, Andrew Parsloe a écrit : 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. Thanks, Andrew, for this information. Indeed, if there is no other valid use for \jobname in previews, reverting the patch would be the simplest solution. What is your experience with expl3? The few bits of the terribly wordy syntax frightened me a bit :) JMarc Yes, expl3 is verbose but I've got used to it. It makes programming in LaTeX more like using a procedural language. I never mastered TeX (all those \expandafter-s) and reached my limit at about 20 lines, whereas numerica.sty is over 3000. Andrew -- lyx-devel mailing list lyx-devel@lists.lyx.org http://lists.lyx.org/mailman/listinfo/lyx-devel
Re: Previews and \jobname, was it a good idea?
Le 27/07/2022 à 09:25, Andrew Parsloe a écrit : 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. Thanks, Andrew, for this information. Indeed, if there is no other valid use for \jobname in previews, reverting the patch would be the simplest solution. What is your experience with expl3? The few bits of the terribly wordy syntax frightened me a bit :) JMarc -- lyx-devel mailing list lyx-devel@lists.lyx.org http://lists.lyx.org/mailman/listinfo/lyx-devel
Re: Previews and \jobname, was it a good idea?
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 -- lyx-devel mailing list lyx-devel@lists.lyx.org http://lists.lyx.org/mailman/listinfo/lyx-devel
Previews and \jobname, was it a good idea?
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 preview.lyx Description: application/lyx @Book{BellmanCooke63, author = {R. Bellman and K. L. Cooke}, title = {Differential-Difference Equations}, publisher= {Academic Press}, year = 1963, address = {New York} } -- lyx-devel mailing list lyx-devel@lists.lyx.org http://lists.lyx.org/mailman/listinfo/lyx-devel