Hi,
TL;DR: Is there a way to pass a `mode` argument when running `mtxrun
--script epub --images`?
Thanks a lot Hans and Mikael for yesterday's update! Your efforts to
make ConTeXt-generated documents more accessible are really appreciated!
(And may make my question moot :D Although I imagine there will still be
use-cases for html/epub export.)
I have a document where different versions should have a different number
of images. Following an earlier suggestion from Wolfgang, I usually handle
differences between versions of the same document using modes, which works
very well for pdf outputs.
However, I could not figure out how to generate the correct images for html
export. For example, if I have the following:
test.tex
________________
\setupbackend[export=yes]
\starttext
A well-known equation:
\startmode[show_formula]
\startformula
e = \frac{m c^2}{\sqrt{1 - v^2 / c^2}}
\stopformula
\stopmode
\stoptext
___________________
and run
mtxrun --script epub --images test.tex
context test.tex --mode=show-formula
the pdf output is correct but the html output lacks the formula. (The
output is correct if I delete `\startmode[show_formula]` and `\stopmode`.)
Is there a way to activate the `show_formula` mode when running `mtxrun
--script epub --images`?
Cheers,
Florent
___________________________________________________________________________________
If your question is of interest to others as well, please add an entry to the
Wiki!
maillist : [email protected] /
https://mailman.ntg.nl/mailman3/lists/ntg-context.ntg.nl
webpage : https://www.pragma-ade.nl / https://context.aanhet.net (mirror)
archive : https://github.com/contextgarden/context
wiki : https://wiki.contextgarden.net
___________________________________________________________________________________