Re: [NTG-context] Missing break/ while exporting to xml before highlight
On 7-11-2011 08:53, Marco wrote: Hans Hagenpra...@wxs.nl writes: On 6-11-2011 21:38, Marco Pessotto wrote: Hi! The highlight seems to act strangely. In addition to the previous report, I get an unwantedbreak/: %%% start example \setupbackend[export=yes] \definehighlight[emph][style=italic] \starttext \section{test} \emph{Hello} world! \stoptext %%% stop example It has to do with the way grouping interferes with the start of a paragraph \dontleavehmode \emph ... I'll make highlights horizontal by default It works, thanks a bunch. The previous missingbreak/ seems to be fixed wrapping the paragraph with \startparagraph \stopparagraph. I assume this is the right thing to do for a proper export, isn't it? Indeed. On and off I'm trying to make the automatic recognition more clever but too much guessing is bad too. Btw, is there a way to run context just for the xml output (as I'm doing conditional runs, and I discard the pdf which comes with the xml as a side effect). context --help doesn't seem to have an option for that. Well, not so important, just asking. Currently not. It would also complicate matters as we need to flush some information in the pdf backend that is needed in following passes. Hans - Hans Hagen | PRAGMA ADE Ridderstraat 27 | 8061 GH Hasselt | The Netherlands tel: 038 477 53 69 | voip: 087 875 68 74 | www.pragma-ade.com | 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 / http://www.ntg.nl/mailman/listinfo/ntg-context webpage : http://www.pragma-ade.nl / http://tex.aanhet.net archive : http://foundry.supelec.fr/projects/contextrev/ wiki : http://contextgarden.net ___
[NTG-context] Missing break/ while exporting to xml before highlight
Hi! See the following minimal example: %%% start example \setupbackend[export=yes] \definehighlight[emph][style=italic] \starttext Hey, hello! \emph{Hello world!} \stoptext %%% stop example And the output is: ?xml version='1.0' encoding='UTF-8' standalone='yes' ? !-- input filename : prova -- !-- processing date : Sun Nov 6 14:50:01 2011 -- !-- context version : 2011.11.04 14:15 -- !-- exporter version : 0.30 -- document language=en file=prova date=Sun Nov 6 14:50:01 2011 context=2011.11.04 14:15 version=0.30 xmlns:m=http://www.w3.org/1998/Math/MathML; Hey, hello! highlight detail=emphHello world!/highlight /document Best regards -- Marco ___ If your question is of interest to others as well, please add an entry to the Wiki! maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-context webpage : http://www.pragma-ade.nl / http://tex.aanhet.net archive : http://foundry.supelec.fr/projects/contextrev/ wiki : http://contextgarden.net ___
Re: [NTG-context] Missing break/ while exporting to xml before highlight
On 6-11-2011 21:38, Marco Pessotto wrote: Hi! The highlight seems to act strangely. In addition to the previous report, I get an unwantedbreak/: %%% start example \setupbackend[export=yes] \definehighlight[emph][style=italic] \starttext \section{test} \emph{Hello} world! \stoptext %%% stop example It has to do with the way grouping interferes with the start of a paragraph \dontleavehmode \emph ... I'll make highlights horizontal by default Hans - Hans Hagen | PRAGMA ADE Ridderstraat 27 | 8061 GH Hasselt | The Netherlands tel: 038 477 53 69 | voip: 087 875 68 74 | www.pragma-ade.com | 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 / http://www.ntg.nl/mailman/listinfo/ntg-context webpage : http://www.pragma-ade.nl / http://tex.aanhet.net archive : http://foundry.supelec.fr/projects/contextrev/ wiki : http://contextgarden.net ___
Re: [NTG-context] Missing break/ while exporting to xml before highlight
Hans Hagen pra...@wxs.nl writes: On 6-11-2011 21:38, Marco Pessotto wrote: Hi! The highlight seems to act strangely. In addition to the previous report, I get an unwantedbreak/: %%% start example \setupbackend[export=yes] \definehighlight[emph][style=italic] \starttext \section{test} \emph{Hello} world! \stoptext %%% stop example It has to do with the way grouping interferes with the start of a paragraph \dontleavehmode \emph ... I'll make highlights horizontal by default It works, thanks a bunch. The previous missing break/ seems to be fixed wrapping the paragraph with \startparagraph \stopparagraph. I assume this is the right thing to do for a proper export, isn't it? Btw, is there a way to run context just for the xml output (as I'm doing conditional runs, and I discard the pdf which comes with the xml as a side effect). context --help doesn't seem to have an option for that. Well, not so important, just asking. Thanks again Best wishes -- Marco ___ If your question is of interest to others as well, please add an entry to the Wiki! maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-context webpage : http://www.pragma-ade.nl / http://tex.aanhet.net archive : http://foundry.supelec.fr/projects/contextrev/ wiki : http://contextgarden.net ___