ntg-context - mailing list for ConTeXt users
 help / color / mirror / Atom feed
From: Alan Stone <software.list.1es9s@gmail.com>
To: mailing list for ConTeXt users <ntg-context@ntg.nl>
Subject: Re: chapter page question
Date: Sat, 14 Feb 2009 19:17:44 +0100	[thread overview]
Message-ID: <326847810902141017g458d1eb5vd13d4c8f04fc5fb@mail.gmail.com> (raw)
In-Reply-To: <326847810902140514i6076bdaeu7de3af99268355c8@mail.gmail.com>


[-- Attachment #1.1: Type: text/plain, Size: 1293 bytes --]

The underneath example works with
\def\myHeader{\iftuut chapter\else high\fi}

How do you make it work with\def\myHeader{\doifmodelse{a}{chapter}{high}} ?
( without resorting to \doifmodeelse{a}{\tuuttrue}{\tuutfalse} )

\showframe

\newif\iftuut
%\tuuttrue
\tuutfalse

\setuppagenumbering[location=footer]

\setupheadertexts[\doifoddpageelse{right page}{left page}]

\definetext[chapter][header][chapter page]

\def\myHeader{\doifmodelse{a}{chapter}{high}}
%\def\myHeader{\iftuut chapter\else high\fi}

\setuphead
 [chapter]
% [header=chapter]
% [header=high]
 [header=\myHeader]

\starttext
\dorecurse{2}{\chapter{Chapter #1}\dorecurse{20}{\input knuth\par}}
\stoptext

---

 ! Undefined control sequence.
\myHeader ->\doifmodelse
                         {a}{chapter}{high}
\doifvaluesomething ...inga {\csname #1\endcsname
                                                  }\ifx \!!stringa \empty
\e...
<argument> ...ething {\??ko \v!chapter \c!header }
                                                   {\setuplayouttext
[\v!hea...
\firstoftwoarguments #1#2->#1

<argument> ...BB {\v!chapter }\v!header \c!header
                                                  \dohandlepagebreakBB
{\v!c...
\firstofoneargument #1->#1

...
l.23 ...apter #1}\dorecurse{20}{\input knuth\par}}

---

Alan

[-- Attachment #1.2: Type: text/html, Size: 3029 bytes --]

[-- Attachment #2: Type: text/plain, Size: 487 bytes --]

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

  parent reply	other threads:[~2009-02-14 18:17 UTC|newest]

Thread overview: 16+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2009-02-14 10:46 Alan Stone
2009-02-14 10:57 ` Wolfgang Schuster
2009-02-14 11:57   ` Alan Stone
2009-02-14 12:23     ` Wolfgang Schuster
2009-02-14 13:14       ` Alan Stone
2009-02-14 13:40         ` Wolfgang Schuster
2009-02-14 14:33           ` Alan Stone
2009-02-14 14:47             ` Wolfgang Schuster
2009-02-14 15:02               ` Alan Stone
2009-02-14 18:17         ` Alan Stone [this message]
2009-02-14 18:28           ` Wolfgang Schuster
2009-02-14 19:17             ` Alan Stone
2009-02-14 19:25               ` Wolfgang Schuster
2009-02-14 19:26       ` Alan Stone
2009-02-15 10:04         ` Wolfgang Schuster
2009-02-15 12:59           ` Alan Stone

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=326847810902141017g458d1eb5vd13d4c8f04fc5fb@mail.gmail.com \
    --to=software.list.1es9s@gmail.com \
    --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).