LyX HTML export on command line runs pdflatex (via lyxpreview2bitmap.py)

Scott Kostyshak skostysh at lyx.org
Thu Nov 24 14:41:29 UTC 2022


On Thu, Nov 24, 2022 at 12:56:54PM +0100, Thibaut Cuvelier wrote:
> On Wed, 23 Nov 2022 at 04:08, Richard Kimberly Heck <rikiheck at gmail.com>
> wrote:
> 
> > On 11/20/22 10:22, Scott Kostyshak wrote:
> > > When testing a (seemingly) different issue that Thibaut reported about
> > > de Math.lyx, when I do:
> > >
> > >    lyx -e xhtml Math.lyx
> > >
> > > I notice that pdflatex is run, I think via lyxpreview2bitmap.py.
> > >
> > > Is this supposed to happen?
> >
> > It will depend upon what kinds of processes are needed for maths, etc.
> > In that document, some of them probably have to be exported as images,
> > because the LaTeX is complicated. So yes, that's expected.
> >
> 
> To be more precise, LyX tries to convert as many formulae as possible into
> MathML. If it cannot (mostly due to ERT -- or their math equivalent, when
> you can see the \command in red), it reverts to an image
> (lyxpreviewXXX.png). I believe that only ERTs trigger this behaviour.

I see, thanks for those explanations. I naively thought ERT was ignored
when exporting to non-LaTeX formats. Now I understand.

Scott
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 488 bytes
Desc: not available
URL: <http://lists.lyx.org/pipermail/lyx-devel/attachments/20221124/4ddf3b76/attachment.asc>


More information about the lyx-devel mailing list