On 7-11-2011 08:53, Marco wrote:
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 unwanted<break/>:
%%% 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?
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
___________________________________________________________________________________