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? 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 ___________________________________________________________________________________