[NTG-context] Issues of export (structure bug)
Henning Hraban Ramm
texml at fiee.net
Mon Aug 24 06:38:26 CEST 2015
Am 2015-08-21 um 23:04 schrieb Hans Hagen <pragma at wxs.nl>:
>> from
>>
>>
>> \startchapter[title=Something]
>> ...
>> \stopchapter
>>
>> \startchapter[title={Something Else}]
>> ...
>> \stopchapter
>>
>>
>> I get in *—raw.xml:
>>
>> ...
>> </sectioncontent>
>> <sectiontitle>Something Else</sectiontitle>
>> </section>
>> <section detail="chapter" chain="chapter" level="2" implicit="4">
>> <sectioncontent>
>> …
>>
>> That means, the title of a section is at the end of the previous section. Pleeeeease fix!
Sorry, making a minimal example helps as usual.
My description was partly wrong: The section title is moved to the end of its own section.
It is caused by using a layer:
—
\setupbackend[export=yes]
\definelayer[satzspiegel][
width=\textwidth,height=\textheight,
location={left,bottom},
x=\textwidth,y=0mm]
\starttext
\startchapter[title={Chapter Two}]
%\input tufte
\setlayer[satzspiegel]{\externalfigure[koe]}
\setupbackgrounds[text][background=satzspiegel]
\input tufte
\stopchapter
\stoptext
—
from that I get:
—
<document date="Mon Aug 24 10:32:56 2015" context="2015.08.21 19:57" version="0.34" xmlns:m="http://www.w3.org/1998/Math/MathML" file="structurebug" language="en">
<metadata>
</metadata>
<section detail="chapter" chain="chapter" implicit="1" level="2">
<sectioncontent>
<image label="3.054cm" height="3.054cm" id="image-1" width="4.072cm" name="koe"></image>
We thrive in information ... from the goats. </sectioncontent>
<sectionnumber>1</sectionnumber>
<sectiontitle>Chapter Two</sectiontitle>
</section>
</document>
—
If I uncomment the first \input, the picture is still at the beginning of the chapter and its title at the end.
Greetlings, Hraban
---
http://www.fiee.net
http://wiki.contextgarden.net
https://www.cacert.org (I'm an assurer)
More information about the ntg-context
mailing list