Re: [NTG-context] Header spoils X(HT)ML export

2011-12-09 Thread Hans Hagen

On 6-12-2011 23:19, Andreas Harder wrote:

Hi Hans,

please consider the following example.

\setupbackend[export=yes,xhtml=yes,css=yes]
\setupheadertexts[{\startelement[header] test \stopelement}]


too messy ... so in the next beta structures is disabled completely in 
those areas



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


[NTG-context] Header spoils X(HT)ML export

2011-12-06 Thread Andreas Harder
Hi Hans,

please consider the following example.

\setupbackend[export=yes,xhtml=yes,css=yes]
\setupheadertexts[{\startelement[header] test \stopelement}]

\starttext

\startbuffer
  \startparagraph
\input tufte
  \stopparagraph
  \startparagraph
\input ward
  \stopparagraph
\stopbuffer

\startsection[title=first head]
  \getbuffer
\stopsection

\startsection[title=second head]
  \getbuffer
\stopsection

%% try to comment this section
\startsection[title=third head]
  \getbuffer
\stopsection

\stoptext

The section-title order is now 3, 1, 2 (in the XHTML output). This problem 
appears only if there is a page break. After commenting the last section the 
XHTML output looks like expected. 


Best wishes
Andreas


PS. I’ve encountered another export problem. Perhaps it is because of an not 
intending using of \settaggedmetadata … Here is an example.

\setupbackend[export=yes,xhtml=yes,css=yes]

\startsetups document:start
  \settaggedmetadata[title=\documentvariable{title}]
\stopsetups

\startdocument
  [title=This document title is wrapped in section-tags]

\startsection[title=test]
  \startparagraph
\input tufte
  \stopparagraph
\stopsection

\stopdocument

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