From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.io/gmane.comp.tex.context/29942 Path: news.gmane.org!not-for-mail From: "Confused Scientist" Newsgroups: gmane.comp.tex.context Subject: Re: Conflict with chapter definition and header Date: Thu, 3 Aug 2006 14:13:07 -0400 Message-ID: <7a884c7c0608031113u2ddddb31g4ddde044d66d10bf@mail.gmail.com> References: <7a884c7c0607191009i435dc581yc0ff6afbeab2470a@mail.gmail.com> <44BF3A5B.2080803@elvenkind.com> Reply-To: mailing list for ConTeXt users NNTP-Posting-Host: main.gmane.org Mime-Version: 1.0 Content-Type: multipart/mixed; boundary="===============1039446085==" X-Trace: sea.gmane.org 1154628883 4206 80.91.229.2 (3 Aug 2006 18:14:43 GMT) X-Complaints-To: usenet@sea.gmane.org NNTP-Posting-Date: Thu, 3 Aug 2006 18:14:43 +0000 (UTC) Original-X-From: ntg-context-bounces@ntg.nl Thu Aug 03 20:14:41 2006 Return-path: Envelope-to: gctc-ntg-context-518@m.gmane.org Original-Received: from ronja.vet.uu.nl ([131.211.172.88] helo=ronja.ntg.nl) by ciao.gmane.org with esmtp (Exim 4.43) id 1G8hhM-0000Lu-2A for gctc-ntg-context-518@m.gmane.org; Thu, 03 Aug 2006 20:13:32 +0200 Original-Received: from localhost (localhost [127.0.0.1]) by ronja.ntg.nl (Postfix) with ESMTP id AD0B11FECE; Thu, 3 Aug 2006 20:13:30 +0200 (CEST) Original-Received: from ronja.ntg.nl ([127.0.0.1]) by localhost (smtp.ntg.nl [127.0.0.1]) (amavisd-new, port 10024) with LMTP id 02326-06; Thu, 3 Aug 2006 20:13:19 +0200 (CEST) Original-Received: from ronja.vet.uu.nl (localhost [127.0.0.1]) by ronja.ntg.nl (Postfix) with ESMTP id 18F951FE62; Thu, 3 Aug 2006 20:13:19 +0200 (CEST) Original-Received: from localhost (localhost [127.0.0.1]) by ronja.ntg.nl (Postfix) with ESMTP id EC9EA1FE62 for ; Thu, 3 Aug 2006 20:13:15 +0200 (CEST) Original-Received: from ronja.ntg.nl ([127.0.0.1]) by localhost (smtp.ntg.nl [127.0.0.1]) (amavisd-new, port 10024) with LMTP id 02622-05 for ; Thu, 3 Aug 2006 20:13:11 +0200 (CEST) Original-Received: from nz-out-0102.google.com (nz-out-0102.google.com [64.233.162.206]) by ronja.ntg.nl (Postfix) with SMTP id 8A67D1FE5F for ; Thu, 3 Aug 2006 20:13:10 +0200 (CEST) Original-Received: by nz-out-0102.google.com with SMTP id 8so470632nzo for ; Thu, 03 Aug 2006 11:13:08 -0700 (PDT) Original-Received: by 10.65.160.7 with SMTP id m7mr3806181qbo; Thu, 03 Aug 2006 11:13:08 -0700 (PDT) Original-Received: by 10.65.139.7 with HTTP; Thu, 3 Aug 2006 11:13:07 -0700 (PDT) Original-To: "mailing list for ConTeXt users" In-Reply-To: <44BF3A5B.2080803@elvenkind.com> X-Virus-Scanned: amavisd-new at ntg.nl X-BeenThere: ntg-context@ntg.nl X-Mailman-Version: 2.1.7 Precedence: list List-Id: mailing list for ConTeXt users List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Original-Sender: ntg-context-bounces@ntg.nl Errors-To: ntg-context-bounces@ntg.nl X-Virus-Scanned: amavisd-new at ntg.nl Xref: news.gmane.org gmane.comp.tex.context:29942 Archived-At: --===============1039446085== Content-Type: multipart/alternative; boundary="----=_Part_44840_4837311.1154628787662" ------=_Part_44840_4837311.1154628787662 Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit Content-Disposition: inline Thanks Taco. This is certainly closer to what I'm trying to do, but I still have a problem with the chapter names missing from the header of every odd/left page. Below is how I setup the headers: \setupheadertexts [] % even left [section] % even right [chapter] % odd left [] % odd right Any ideas? Thanks, James -- example -- %%% Layout \setuppagenumbering[ alternative=doublesided, style={\sc}, location={footer, marginedge}, partnumber=no, way=bytext] \setuppapersize[a4][a4] % paper size (210 x 297 mm) \definelayout[even] % Even = Left [topspace=14mm, % at the very top of the page bottomspace=14mm, % at the very bottom of the page header=6mm, % for header headerdistance=4mm, % between body and header footer=6mm, % for footer footerdistance=4mm, % between body and footer backspace=38mm, % binding edge space cutspace=32mm, % opposite to binding edge leftmargin=25mm, % space for margin notes rightmargin=25mm, % space for right margin notes width=fit, height=fit] \definelayout[odd] % Odd = Right [topspace=14mm, % at the very top of the page bottomspace=14mm, % at the very bottom of the page header=6mm, % for header headerdistance=4mm, % between body and header footer=6mm, % for footer footerdistance=4mm, % between body and footer backspace=38mm, % binding edge cutspace=32mm, % opposite to binding edge leftmargin=25mm, % the space for margin notes rightmargin=25mm, % the space for right margin notes width=fit, height=fit] \setuplayout [location=doublesided] % double-sided pages \setupheader[style={\it}] \setupheadertexts [] % even left [section] % even right [chapter] % odd left [] % odd right \definetext[chapter][footer][pagenumber] \setupheadtext [chapter=Chapter] \setuphead [chapter] [command=\MyChapterText, style={\sc\tfc}, placehead=yes, color=black, number=yes, continue=no, page=, header=high, footer=chapter, distance=0pt, before=\setups{chapter:before}, after=\setups{chapter:after}] \def\MyChapterText#1#2{\vbox{\sc\tfc\headtext{chapter}~#1\blank[small]#2}} \startsetups [chapter:before] \page[left] \noheaderandfooterlines \vbox to 35mm{} \vbox{\blank \startalignment[left,nothyphenated] \noindent \setups[chapter:quote] \stopalignment} \resetsetups[quote:text] \page[right] \noheaderandfooterlines \vbox to 35mm \bgroup \stopsetups \startsetups [chapter:after] \vss\egroup \stopsetups \showframe %%% Text \starttext \startsetups[chapter:quote] \vbox{My quote goes here\par \it{---author from ``source'', 1900.}} \stopsetups \chapter{This is a split chapter title\blank[small]% On two lines} \input tufte \section{Section One} \dorecurse{3}{\input tufte \par \input knuth \par} \section{Section Two} \dorecurse{3}{\input tufte \par \input knuth \par} \startsetups[chapter:quote] \vbox{My quote goes here\par \it{---author from ``source'', 1900.}} \stopsetups \chapter{A short title} \input tufte \section{Section One} \dorecurse{3}{\input tufte \par \input knuth \par} \section{Section Two} \dorecurse{3}{\input tufte \par \input knuth \par} \stoptext ------=_Part_44840_4837311.1154628787662 Content-Type: text/html; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit Content-Disposition: inline Thanks Taco.

This is certainly closer to what I'm trying to do, but I still have a problem with the chapter names missing from the header of every odd/left page.  Below is how I setup the headers:

\setupheadertexts
  []        % even left
  [section] % even right
  [chapter] % odd left
  []        % odd right

Any ideas?

Thanks,
James

-- example --
%%% Layout
\setuppagenumbering[
  alternative=doublesided,
  style={\sc},
  location={footer, marginedge},
  partnumber=no,
  way=bytext]

\setuppapersize[a4][a4]  % paper size (210 x 297 mm)

\definelayout[even]               % Even = Left
             [topspace=14mm,      % at the very top of the page
              bottomspace=14mm,   % at the very bottom of the page
              header=6mm,         % for header
              headerdistance=4mm, % between body and header
              footer=6mm,         % for footer
              footerdistance=4mm, % between body and footer
              backspace=38mm,     % binding edge space
              cutspace=32mm,      % opposite to binding edge
              leftmargin=25mm,    % space for margin notes
              rightmargin=25mm,   % space for right margin notes
              width=fit,
              height=fit]

\definelayout[odd]                % Odd = Right
             [topspace=14mm,      % at the very top of the page
              bottomspace=14mm,   % at the very bottom of the page
              header=6mm,         % for header
              headerdistance=4mm, % between body and header
              footer=6mm,         % for footer
              footerdistance=4mm, % between body and footer
              backspace=38mm,     % binding edge
              cutspace=32mm,      % opposite to binding edge
              leftmargin=25mm,    % the space for margin notes
              rightmargin=25mm,   % the space for right margin notes
              width=fit,
              height=fit]

\setuplayout
  [location=doublesided]  % double-sided pages

\setupheader[style={\it}]
\setupheadertexts
  []        % even left
  [section] % even right
  [chapter] % odd left
  []        % odd right

\definetext[chapter][footer][pagenumber]
\setupheadtext [chapter=Chapter]

\setuphead
  [chapter]
  [command=\MyChapterText,
   style={\sc\tfc},
   placehead=yes,
   color=black,
   number=yes,
   continue=no,
   page=,
   header=high,
   footer=chapter,
   distance=0pt,
   before=\setups{chapter:before},
   after=\setups{chapter:after}]

\def\MyChapterText#1#2{\vbox{\sc\tfc\headtext{chapter}~#1\blank[small]#2}}

\startsetups [chapter:before]
  \page[left]
  \noheaderandfooterlines
  \vbox to 35mm{}
  \vbox{\blank
  \startalignment[left,nothyphenated]
    \noindent \setups[chapter:quote]
  \stopalignment}
  \resetsetups[quote:text]
  \page[right]
  \noheaderandfooterlines
  \vbox to 35mm \bgroup
\stopsetups

\startsetups [chapter:after]
  \vss\egroup
\stopsetups

\showframe

%%% Text
\starttext

\startsetups[chapter:quote]
  \vbox{My quote goes here\par
    \it{---author from ``source'', 1900.}}
\stopsetups

\chapter{This is a split chapter title\blank[small]%
         On two lines}

\input tufte

\section{Section One}
\dorecurse{3}{\input tufte \par \input knuth \par}

\section{Section Two}
\dorecurse{3}{\input tufte \par \input knuth \par}

\startsetups[chapter:quote]
  \vbox{My quote goes here\par
    \it{---author from ``source'', 1900.}}
\stopsetups

\chapter{A short title}

\input tufte

\section{Section One}
\dorecurse{3}{\input tufte \par \input knuth \par}

\section{Section Two}
\dorecurse{3}{\input tufte \par \input knuth \par}

\stoptext

------=_Part_44840_4837311.1154628787662-- --===============1039446085== Content-Type: text/plain; charset="us-ascii" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit Content-Disposition: inline _______________________________________________ ntg-context mailing list ntg-context@ntg.nl http://www.ntg.nl/mailman/listinfo/ntg-context --===============1039446085==--