* Minimal example for image bug in xhtml export
@ 2025-07-12 18:50 Matthias Weber
2025-07-12 21:01 ` [NTG-context] " Hans Hagen via ntg-context
0 siblings, 1 reply; 2+ messages in thread
From: Matthias Weber @ 2025-07-12 18:50 UTC (permalink / raw)
To: mailing list for ConTeXt users
I minimized my example to the following. To have the image displayed in the html file (filename-div.html in the filename-export directory), you need to put hacker.jpg into
filename-export/images). The problem appears also without the image present, the formula is covered by an image that shouldn’t be there.
Notice too that the overline is present in the pdf, but not in the html.
\usemodule[mathml]
\setupexternalfigures[location=default]
\setupbackend[export=yes,xhtml=yes]
\setupexport
[svgstyle=mathtest-style,
hyphen=yes,
width=60em]
\starttext
\subject{Introduction}
\startparagraph
\input knuth
\stopparagraph
\placefigure
[force]
[figure:configurations]
{Some simple Image}
{\externalfigure[hacker.jpg]
[width=\textwidth]}
\startparagraph
Let $p$ and $q$ be two different points. The \emph{segment} $\overline{pq}$ connecting $p$ and $q$ is the set
\startformula
pq = \{(1-t) p + t q: t\in[0,1]\}\ .
\stopformula
\stopparagraph
\stoptext
Any help will be appreciated!
Thanks,
Matthias
___________________________________________________________________________________
If your question is of interest to others as well, please add an entry to the Wiki!
maillist : ntg-context@ntg.nl / 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
___________________________________________________________________________________
^ permalink raw reply [flat|nested] 2+ messages in thread
* [NTG-context] Re: Minimal example for image bug in xhtml export
2025-07-12 18:50 Minimal example for image bug in xhtml export Matthias Weber
@ 2025-07-12 21:01 ` Hans Hagen via ntg-context
0 siblings, 0 replies; 2+ messages in thread
From: Hans Hagen via ntg-context @ 2025-07-12 21:01 UTC (permalink / raw)
To: ntg-context; +Cc: Hans Hagen
On 7/12/2025 8:50 PM, Matthias Weber wrote:
> I minimized my example to the following. To have the image displayed in the html file (filename-div.html in the filename-export directory), you need to put hacker.jpg into
> filename-export/images). The problem appears also without the image present, the formula is covered by an image that shouldn’t be there.
> Notice too that the overline is present in the pdf, but not in the html.
>
>
> \usemodule[mathml]
> \setupexternalfigures[location=default]
> \setupbackend[export=yes,xhtml=yes]
> \setupexport
> [svgstyle=mathtest-style,
> hyphen=yes,
> width=60em]
>
> \starttext
>
> \subject{Introduction}
>
> \startparagraph
> \input knuth
> \stopparagraph
>
> \placefigure
> [force]
> [figure:configurations]
> {Some simple Image}
> {\externalfigure[hacker.jpg]
> [width=\textwidth]}
>
> \startparagraph
> Let $p$ and $q$ be two different points. The \emph{segment} $\overline{pq}$ connecting $p$ and $q$ is the set
> \startformula
> pq = \{(1-t) p + t q: t\in[0,1]\}\ .
> \stopformula
> \stopparagraph
>
> \stoptext
>
>
> Any help will be appreciated!
I see what goes wrong .. you can try to patch grph-inc (and --make
afterwards)
% \dostarttaggednodetail\t!image
\global\advanceby\nofexportedboxes\plusone
\dostarttagged\t!image{\the\nofexportedboxes}%
\clf_figure_push {
as test, not the real solution. Btw you need to tun that document with
mtxrun --script epub --images thatfile
to get the proper math
Hans
-----------------------------------------------------------------
Hans Hagen | PRAGMA ADE
Ridderstraat 27 | 8061 GH Hasselt | The Netherlands
tel: 038 477 53 69 | www.pragma-ade.nl | www.pragma-pod.nl
-----------------------------------------------------------------
___________________________________________________________________________________
If your question is of interest to others as well, please add an entry to the Wiki!
maillist : ntg-context@ntg.nl / 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
___________________________________________________________________________________
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2025-07-12 21:05 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2025-07-12 18:50 Minimal example for image bug in xhtml export Matthias Weber
2025-07-12 21:01 ` [NTG-context] " Hans Hagen via ntg-context
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).