[NTG-context] relative references?

2013-07-02 Thread Steffen Kram
Hello,

is it possible to reference parts of a document in a "relative" style?

My structure is as follows:

\startproduct
…
\startbodymatter
  \component chapterFoo/main
  \component chapterBar/main
\stopbodymatter
… 
\stopproduct

Each of my chapters uses \chapter, \section … \subsubsubsection markers. I 
would like to use references for each of them.


Is it possible to reference for example the subsection "Foo AA" from the 
chapter start with an relative reference such as 

\chapter[sec:foo]{Foo}

\in[fooA:fooAA]

\section[fooA]{Foo A}

\subsection[fooAA]{Foo AA}


but when referencing it from the second chapter use a absolute reference:

\chapter[sec:bar]{Bar}

\in[sec:foo:fooA:fooAA] …

Is this possible? Or must I use absolute references and identifiers everywhere?

Cheers,
Steffen
___
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] Headers on Empty Page at End of Chapter

2013-07-02 Thread Wolfgang Schuster

Am 02.07.2013 um 06:05 schrieb Malte Stien :

> Wolfgang,
> 
> Actually, I just realised this only works if the next page (the right page 
> following the empty left page) is the first page of a chapter in the 
> bodymatter. That is, it does not work in the following two cases:
> 
> - If the next page is the first page of the first appendix

This happens because sectionblocks force a right page at the start of each 
block, you can disable this with

\setupsectionblock[page=yes] % default: page=right

> - If there is no next page, ie. for the last page of the document

This should also be solved with the solution above. When the number still 
appears you can try to add \page[last] at the end of your document.

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