ntg-context - mailing list for ConTeXt users
 help / color / mirror / Atom feed
From: Hans Hagen <pragma@wxs.nl>
To: ntg-context@ntg.nl
Subject: Re: Issues of export (structure bug)
Date: Mon, 24 Aug 2015 10:14:13 +0200	[thread overview]
Message-ID: <55DAD255.6080502@wxs.nl> (raw)
In-Reply-To: <84ADFF19-08D0-4956-9AAD-2A8CEE2AACC1@fiee.net>

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
___________________________________________________________________________________

      reply	other threads:[~2015-08-24  8:14 UTC|newest]

Thread overview: 4+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2015-08-17 11:56 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 message]

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=55DAD255.6080502@wxs.nl \
    --to=pragma@wxs.nl \
    --cc=ntg-context@ntg.nl \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
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).