ntg-context - mailing list for ConTeXt users
 help / color / mirror / Atom feed
From: Achim Jander <achim@jander.de>
To: mailing list for ConTeXt users <ntg-context@ntg.nl>
Cc: Hans Hagen <pragma@wxs.nl>
Subject: Re: export and pagebreak
Date: Mon, 03 Jan 2011 12:54:48 +0100	[thread overview]
Message-ID: <4D21B908.3040703@jander.de> (raw)
In-Reply-To: <4D20925F.3030809@wxs.nl>

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

___________________________________________________________________________________
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:[~2011-01-03 11:54 UTC|newest]

Thread overview: 7+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2010-12-31 18:22 Achim Jander
2011-01-02 14:57 ` Hans Hagen
2011-01-03 11:54   ` Achim Jander [this message]
2011-01-03 14:43     ` Hans Hagen
2011-01-03 15:11       ` Achim Jander
2011-01-03 15:19         ` Hans Hagen
2011-01-03 15:32           ` Achim Jander

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=4D21B908.3040703@jander.de \
    --to=achim@jander.de \
    --cc=ntg-context@ntg.nl \
    --cc=pragma@wxs.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).