Re: [NTG-context] Issues of export (structure bug)
On 8/24/2015 6:38 AM, Henning Hraban Ramm wrote: Am 2015-08-21 um 23:04 schrieb Hans Hagen pra...@wxs.nl: from \startchapter[title=Something] ... \stopchapter \startchapter[title={Something Else}] ... \stopchapter I get in *—raw.xml: ... /sectioncontent sectiontitleSomething 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. Please 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: There is not much we can do about it. The export is not based on the input but on the way the input is used (basically we reconstruct). The solution for that is - use xml as input and transform that - use tex but use a different style for generating the export (this can be a rather basic one in this case: \startnotmode[*export] \setlayer[satzspiegel]{\externalfigure[koe]} \setupbackgrounds[text][background=satzspiegel] \stopnotmode or so (the export system mode is set automatically). I'll add an export flag to the runner: context foo --export Hans — \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 sectionnumber1/sectionnumber sectiontitleChapter 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) ___ 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 ___ -- - 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] Issues of export (structure bug)
Am 2015-08-21 um 23:04 schrieb Hans Hagen pra...@wxs.nl: from \startchapter[title=Something] ... \stopchapter \startchapter[title={Something Else}] ... \stopchapter I get in *—raw.xml: ... /sectioncontent sectiontitleSomething 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. Please 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 sectionnumber1/sectionnumber sectiontitleChapter 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) ___ 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] Issues of export (structure bug)
On 8/17/2015 1:56 PM, Henning Hraban Ramm wrote: Hi, there’s another structure bug in export: from \startchapter[title=Something] ... \stopchapter \startchapter[title={Something Else}] ... \stopchapter I get in *—raw.xml: ... /sectioncontent sectiontitleSomething 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. Please fix! i get section detail=chapter chain=chapter level=2 implicit=1 sectionnumber1/sectionnumber sectiontitleSomething/sectiontitle sectioncontent ... /sectioncontent /section section detail=chapter chain=chapter level=2 implicit=2 sectionnumber2/sectionnumber sectiontitleSomething Else/sectiontitle sectioncontent ... /sectioncontent /section - 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 ___