ntg-context - mailing list for ConTeXt users
 help / color / mirror / Atom feed
From: Marcin Borkowski <mbork@atos.wmid.amu.edu.pl>
To: mailing list for ConTeXt users <ntg-context@ntg.nl>
Subject: Re: Different footers for different parts of a project
Date: Wed, 5 Nov 2008 01:00:15 +0100	[thread overview]
Message-ID: <20081105000015.GL2264@atos.labs.wmid.amu.edu.pl> (raw)
In-Reply-To: <7278408D-5B9D-467C-8B07-810D9BF2C8FB@gmail.com>

Dnia Wed, Nov 05, 2008 at 12:00:30AM +0100, Wolfgang Schuster napisa&#322;(a):
> 
> Am 04.11.2008 um 23:47 schrieb Marcin Borkowski:
> 
> > Dnia Tue, Nov 04, 2008 at 10:58:32PM +0100, Wolfgang Schuster  
> > napisa&#322;(a):
> >>
> >> Am 04.11.2008 um 22:44 schrieb Marcin Borkowski:
> >>
> >>> Dnia Tue, Nov 04, 2008 at 10:37:26PM +0100, Wolfgang Schuster
> >>> napisa&#322;(a):
> >>>>
> >>>> Am 04.11.2008 um 22:01 schrieb Marcin Borkowski:
> >>>>
> >>>>> Hi,
> >>>>>
> >>>>> yet another question from me;).
> >>>>>
> >>>>> I have a project divided into products divided into components.
> >>>>> When I
> >>>>> typeset a component, I want to get it's title (I keep it in a
> >>>>> variable)
> >>>>> in the footer.  If I typeset the wqhole project, I want to have  
> >>>>> the
> >>>>> pagenumber there instead.
> >>>>>
> >>>>> How do I do it?  (I mean what to put in the
> >>>>> environment/product/component code?)
> >>>>
> >>>> \startmode[*product]
> >>>> ...
> >>>> \stopmode
> >>>
> >>> And: is there a corresponding \startmode[*project] ... \stopmode
> >>> construct?
> >>
> >> Yes.
> >
> > Yes, that's right.  However, it won't work wrt. arranging.  If I put
> > \setuppapersize[A5][A4]
> > \setuparranging[2UP,rotated]
> >
> > within
> > \startmode[*project]
> > ...
> > \stopmode
> >
> > I have still to repeat
> > \setuparranging[normal]
> >
> > within
> > \startmode[*product]
> > ...
> > \stopmode
> >
> > etc.
> >
> > Is it a bug or a feature?  (Seems a bug for me;).)
> 
> I guess you missed something in your files, it works for me.

So here are my files:

env.tex:
======
\environment env

\startmode[*project]
  \setupheadertexts[Project]
  \setuppapersize[A5][A4]
  \setuparranging[2UP,rotated]
\stopmode

\startmode[*product]
  \setupheadertexts[Product]
\stopmode

\startmode[*component]
  \setupheadertexts[Component]
\stopmode
======

project.tex:
======
\startproject project

\environment env

\product product

\stopproject
======

product.tex:
======
\startproduct product

\project project

\component component

\stopproduct
======

component.tex:
======
\startcomponent component

\project project

Hello component!

\blank

\input tufte

\blank

\input knuth

\stopcomponent
======

So that only the whole project should be typest 2-up - but everything
gets arranged that way...

> 
> Wolfgang

Greets

-- 
Marcin Borkowski (http://mbork.pl)

Ty okryłeś śmierć wstydem!
Wtrąciłeś piekło w żałobę!
Uderzyłeś niegodziwość,
Niesprawiedliwość pozbawiłeś potomstwa!
___________________________________________________________________________________
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  : https://foundry.supelec.fr/projects/contextrev/
wiki     : http://contextgarden.net
___________________________________________________________________________________


  reply	other threads:[~2008-11-05  0:00 UTC|newest]

Thread overview: 12+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2008-11-04 21:01 Marcin Borkowski
2008-11-04 21:37 ` Wolfgang Schuster
2008-11-04 21:41   ` Marcin Borkowski
2008-11-04 21:44   ` Marcin Borkowski
2008-11-04 21:58     ` Wolfgang Schuster
2008-11-04 22:47       ` Marcin Borkowski
2008-11-04 23:00         ` Wolfgang Schuster
2008-11-05  0:00           ` Marcin Borkowski [this message]
2008-11-05  3:30             ` Aditya Mahajan
2008-11-05  6:05               ` Marcin Borkowski
2008-11-05  7:55                 ` Alan STONE
2008-11-05  7:11             ` Wolfgang Schuster

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=20081105000015.GL2264@atos.labs.wmid.amu.edu.pl \
    --to=mbork@atos.wmid.amu.edu.pl \
    --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).