From: "Confused Scientist" <confused.scientist@gmail.com>
Subject: Re: Conflict with chapter definition and header
Date: Thu, 3 Aug 2006 14:13:07 -0400 [thread overview]
Message-ID: <7a884c7c0608031113u2ddddb31g4ddde044d66d10bf@mail.gmail.com> (raw)
In-Reply-To: <44BF3A5B.2080803@elvenkind.com>
[-- Attachment #1.1: Type: text/plain, Size: 3595 bytes --]
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
[-- Attachment #1.2: Type: text/html, Size: 6597 bytes --]
[-- Attachment #2: Type: text/plain, Size: 139 bytes --]
_______________________________________________
ntg-context mailing list
ntg-context@ntg.nl
http://www.ntg.nl/mailman/listinfo/ntg-context
next prev parent reply other threads:[~2006-08-03 18:13 UTC|newest]
Thread overview: 4+ messages / expand[flat|nested] mbox.gz Atom feed top
2006-07-19 17:09 Confused Scientist
2006-07-20 8:10 ` Taco Hoekwater
2006-08-03 18:13 ` Confused Scientist [this message]
2006-08-04 8:14 ` Taco Hoekwater
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=7a884c7c0608031113u2ddddb31g4ddde044d66d10bf@mail.gmail.com \
--to=confused.scientist@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).