Re: [NTG-context] highlight problems on xml export [hacky workaround included]
Hans Hagen writes: > On 7-11-2011 17:48, Marco Pessotto wrote: >> >> Well, after some trial and errors, I think I get what is going on with >> the highlight. When on the generated pdf the is at the edge >> of the paper, the space is eaten. Hacky workaround follows: > > i rewrote some of the 'heuristics' so best test the next beta > I will for sure. Looking forward to the beta. Thanks 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 ___
Re: [NTG-context] highlight problems on xml export [hacky workaround included]
On 7-11-2011 17:48, Marco Pessotto wrote: Well, after some trial and errors, I think I get what is going on with the highlight. When on the generated pdf the is at the edge of the paper, the space is eaten. Hacky workaround follows: i rewrote some of the 'heuristics' so best test the next beta 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] highlight problems on xml export [hacky workaround included]
Aditya Mahajan writes: > TeX does finite precision arithematics, so infinity is not > possible. But you can set paper width (and paper height) to \maxdimen, > which is the maximum dimension TeX can handle. > > \definepapersize[max][paperwidth=\maxdimen, paperheight=\maxdimen] > \setuppapersize[max] Thanks! -- 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] highlight problems on xml export [hacky workaround included]
On Mon, 7 Nov 2011, Marco Pessotto wrote: So, my impression is that for exporting the modal compilation is not an option. So far, that has been my impression as well. I need a lot of tweaks to get the right XML output (and I also need (multiple) PDF output). I have set a separate mode for XML export, and use something equivalent to context --mode=screen --result=s-filename filename to get a screen version of the document, context --mode=handout --result=h-filename filename to get a handout version of the document, and context --mode=export filename to get an xml version. Is there a way to set the paper width to infinity? (Even if, speaking about impression, I believe the 4 meters are enough for the average usage). TeX does finite precision arithematics, so infinity is not possible. But you can set paper width (and paper height) to \maxdimen, which is the maximum dimension TeX can handle. \definepapersize[max][paperwidth=\maxdimen, paperheight=\maxdimen] \setuppapersize[max] Aditya ___ 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] highlight problems on xml export [hacky workaround included]
Well, after some trial and errors, I think I get what is going on with the highlight. When on the generated pdf the is at the edge of the paper, the space is eaten. Hacky workaround follows: %% start example \setupbackend[export=yes] \definehighlight[emph][style=italic] \startmode[huge] \definepapersize[huge][width=4000mm] \setuppapersize[huge][huge] \setupbodyfont[8pt] \stopmode \starttext \startparagraph Published on \dontleavehmode\emph{Dissonanze} vol. I \stopparagraph \startparagraph Published on vol. I Published on vol. I Published on vol. I Published on \dontleavehmode\emph{Dissonanze} vol. I \stopparagraph \startparagraph Published on vol. I Published on vol. I Published on vol. I Published on blablabla \dontleavehmode\emph{Dissonanze} vol. I \stopparagraph \stoptext %%% stop example Compiled with context prova.tex, the space is eaten on the second paragraph. See produced pdf. http://www.w3.org/1998/Math/MathML";> Published on Dissonanze vol. I Published on vol. I Published on vol. I Published on vol. I Published on Dissonanzevol. I Published on vol. I Published on vol. I Published on vol. I Published on blablabla Dissonanze vol. I With `context --mode=huge prova.tex` everything is fine (As the paper is 4 meters long on 8pt!) http://www.w3.org/1998/Math/MathML";> Published on Dissonanze vol. I Published on vol. I Published on vol. I Published on vol. I Published on Dissonanze vol. I Published on vol. I Published on vol. I Published on vol. I Published on blablabla Dissonanze vol. I So, my impression is that for exporting the modal compilation is not an option. Is there a way to set the paper width to infinity? (Even if, speaking about impression, I believe the 4 meters are enough for the average usage). 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 ___