[NTG-context] Conflict with chapter definition and header

2006-07-19 Thread Confused Scientist
Hello,I'm trying to put together a couple of examples I found in the ConTeXt manual, the wiki and the maling list archive. Unfortunately, I've broken my headers/footers in the process. What I am trying to do is have a double-sided layout where (at the beginning of each chapter) a famous quote is given on the left page and the chapter begins on the right. I do not want any header/footer on the left, but I would like the footer (page number) on the right. 
My problem is that I cannot seem to control the page headers and footers for the left/right chapter page. Also, I cannot seem to get the section name to reliably appear after using setupheadertexts? I am using:

TeXExec 5.4.3 - ConTeXt / PRAGMA ADE 1997-2005 texexec : TeXExec 5.4.3 - ConTeXt / PRAGMA ADE 1997-2005 texutil : TeXUtil 9.0.0 - ConTeXt / PRAGMA ADE 1992-2004 tex : pdfeTeX, 
3.141592-1.30.4-2.2 (Web2C 7.5.5) context : ver: 2006.02.03 21:03 cont-en : ver: 2006.02.03 21:03 fmt: 2006.2.10 mes: english cont-nl : ver: 2006.02.03 21:03 fmt: 
2006.2.10
 mes: dutch total run time : 9 secondsand below is an example of what I have. Any ideas on what I've done wrong.Thanks,Dave%%% 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] \vbox to 35mm{}\vbox{\blank
 \noheaderandfooterlines \startalignment[left,nothyphenated] \noindent \setups[chapter:quote] \stopalignment} \resetsetups[quote:text] \page[right] \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

___
ntg-context mailing list
ntg-context@ntg.nl
http://www.ntg.nl/mailman/listinfo/ntg-context


Re: [NTG-context] Conflict with chapter definition and header

2006-08-03 Thread Confused Scientist
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 rightAny 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
___
ntg-context mailing list
ntg-context@ntg.nl
http://www.ntg.nl/mailman/listinfo/ntg-context


[NTG-context] Natural Tables with verbatim text

2006-08-03 Thread Confused Scientist
HelloIs it possible to use \type{} in a natural table cell? The example below seems to generate an error for me.Thanks!% example\starttextThis is a quick \type{test_run} of the problem.
\bTABLE \bTR \bTD first \eTD\bTD {\bf alpha} \eTD\bTD one \eTD\eTR \bTR \bTD {\em second} \eTD\bTD beta \eTD\bTD two \eTD\eTR \bTR \bTD third \eTD\bTD gamma \eTD\bTD \type{three_ex} \eTD\eTR 
\eTABLE\stoptext
___
ntg-context mailing list
ntg-context@ntg.nl
http://www.ntg.nl/mailman/listinfo/ntg-context


[NTG-context] Specify the part/chapter number

2006-08-03 Thread Confused Scientist
Hello,I'm working on a project with a few other people and we are each responsible for writing a single chapter/component of a larger document. I am, for example, responsible for chapters 2 and 6. Unfortunately, when I run pdftex on my component, the chapter number always begins from 1 which means all my sections, equations, figures, and tables are all numbered as 
1.x.x.x. Is there a way to force a component to use a different chapter number?Thanks,James

___
ntg-context mailing list
ntg-context@ntg.nl
http://www.ntg.nl/mailman/listinfo/ntg-context


[NTG-context] Page number on 'chapter' pages

2007-02-01 Thread Confused Scientist

Hi all,
I'm using ConTeXt to layout my phd thesis and I need to follow some rather
strict rules.  One of these is that every page must be numbered.  I'm having
some trouble adding numbers to the page where the chapter starts and the
preceding page (where I place a famous quotation).  Below are the
definitions in my environment.

Any ideas on how to add page numbers to these pages?

Thanks,
Dave

%%% cut

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

%%% Formal title, Chapter #: Title
\definetext[chapter][footer][pagenumber]

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

\def\MyChapterText#1#2%
 {\vbox to 35mm
   \bgroup{\leftaligned{\vbox{\headtext{chapter} #1\blank#2}}}\vss\egroup}
\setupheadtext[chapter=Chapter]

\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
\stopsetups

%%% cut
___
ntg-context mailing list
ntg-context@ntg.nl
http://www.ntg.nl/mailman/listinfo/ntg-context