ntg-context - mailing list for ConTeXt users
 help / color / mirror / Atom feed
* Issues of export (structure bug)
@ 2015-08-17 11:56 Henning Hraban Ramm
  2015-08-21 17:04 ` Hans Hagen
  0 siblings, 1 reply; 4+ messages in thread
From: Henning Hraban Ramm @ 2015-08-17 11:56 UTC (permalink / raw)
  To: mailing list for ConTeXt users

Hi, there’s another structure bug in export:

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!


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
___________________________________________________________________________________

^ permalink raw reply	[flat|nested] 4+ messages in thread

* Re: Issues of export (structure bug)
  2015-08-17 11:56 Issues of export (structure bug) Henning Hraban Ramm
@ 2015-08-21 17:04 ` Hans Hagen
  2015-08-24  4:38   ` Henning Hraban Ramm
  0 siblings, 1 reply; 4+ messages in thread
From: Hans Hagen @ 2015-08-21 17:04 UTC (permalink / raw)
  To: ntg-context

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>
>     <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!

i get

  <section detail="chapter" chain="chapter" level="2" implicit="1">
   <sectionnumber>1</sectionnumber>
    <sectiontitle>Something</sectiontitle>
   <sectioncontent>
...  </sectioncontent>
  </section>
  <section detail="chapter" chain="chapter" level="2" implicit="2">
   <sectionnumber>2</sectionnumber>
    <sectiontitle>Something 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
___________________________________________________________________________________

^ permalink raw reply	[flat|nested] 4+ messages in thread

* Re: Issues of export (structure bug)
  2015-08-21 17:04 ` Hans Hagen
@ 2015-08-24  4:38   ` Henning Hraban Ramm
  2015-08-24  8:14     ` Hans Hagen
  0 siblings, 1 reply; 4+ messages in thread
From: Henning Hraban Ramm @ 2015-08-24  4:38 UTC (permalink / raw)
  To: mailing list for ConTeXt users

Am 2015-08-21 um 23:04 schrieb Hans Hagen <pragma@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)

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

^ permalink raw reply	[flat|nested] 4+ messages in thread

* Re: Issues of export (structure bug)
  2015-08-24  4:38   ` Henning Hraban Ramm
@ 2015-08-24  8:14     ` Hans Hagen
  0 siblings, 0 replies; 4+ messages in thread
From: Hans Hagen @ 2015-08-24  8:14 UTC (permalink / raw)
  To: ntg-context

On 8/24/2015 6:38 AM, Henning Hraban Ramm wrote:
> Am 2015-08-21 um 23:04 schrieb Hans Hagen <pragma@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:

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

^ permalink raw reply	[flat|nested] 4+ messages in thread

end of thread, other threads:[~2015-08-24  8:14 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2015-08-17 11:56 Issues of export (structure bug) Henning Hraban Ramm
2015-08-21 17:04 ` Hans Hagen
2015-08-24  4:38   ` Henning Hraban Ramm
2015-08-24  8:14     ` Hans Hagen

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).