![](https://secure.gravatar.com/avatar/5fa1ff050d284933c4f4306c5197b0cb.jpg?s=120&d=mm&r=g)
Am 02.01.2011 15:57, schrieb Hans Hagen:
On 31-12-2010 7:22, Achim Jander wrote:
is it possible to get a <pagebreak/> into the exported XML?
I'll send you a small patch to play wit
Hello Hans, many thanks! I've tested a bit and it seems to work great! Two little suggestions for improvement: - would it possible to switch both (spaces and pagebreak) to on? It seems that in the Moment only one of them can be enabled. - would it be possible to include the pagenumber as attribute? During my tests i found a strange behaviour of the export-function (not related to pagebreak-export). With certain combinations of \setupalign[hz,hanging] and body-font-size most of the text gets eaten: \setupbackend [export=yes] \enabledirectives[structures.export.pagebreaks] \definefontfeature[default][default][% expansion=quality, protrusion=quality, ] \setupbodyfont[rm,8.5pt] %\setupbodyfont[rm,11pt] %does not work either %\setupbodyfont[rm,12pt] %this is ok \definebodyfontenvironment[8.5pt][% text=8.5pt, script=8.5pt, scriptscript=6pt, x=6pt, xx=5pt, big=28pt, small=17.3pt] \setupalign[hz,hanging] %without everything ok \starttext \input tufte \stoptext that gives the export: <?xml version='1.0' standalone='yes' ?> <!-- input filename : xml_test_export --> <!-- processing date : 01/03/11 12:43:00 --> <!-- context version : 2010.12.31 08:59 --> <!-- exporter version : 0.10 --> <document language='en' file='xml_test_export' date='01/03/11 12:43:01' context='2010.12.31 08:59' version='0.10'> --fiflfiglean, synopsize, winnow the wheat from the chaff and separate the sheep from the goats. </document> Either switching the body-font-size to 12pt or disable the \align gives the full export as expected. Very confusing. Greetings, Achim
----------------------------------------------------------------- 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 ___________________________________________________________________________________