From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.io/gmane.comp.tex.context/28653 Path: news.gmane.org!not-for-mail From: Hans Hagen Newsgroups: gmane.comp.tex.context Subject: Re: Page breaking problem Date: Mon, 19 Jun 2006 12:20:05 +0200 Message-ID: <44967A55.4060500@wxs.nl> References: <7ED29D61-4A64-4881-B6C2-5CAF2D48A168@duke.edu> Reply-To: mailing list for ConTeXt users NNTP-Posting-Host: main.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit X-Trace: sea.gmane.org 1150712428 14469 80.91.229.2 (19 Jun 2006 10:20:28 GMT) X-Complaints-To: usenet@sea.gmane.org NNTP-Posting-Date: Mon, 19 Jun 2006 10:20:28 +0000 (UTC) Original-X-From: ntg-context-bounces@ntg.nl Mon Jun 19 12:20:25 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 1FsGrj-0005Ah-JF for gctc-ntg-context-518@m.gmane.org; Mon, 19 Jun 2006 12:20:20 +0200 Original-Received: from localhost (localhost [127.0.0.1]) by ronja.ntg.nl (Postfix) with ESMTP id 4384212845; Mon, 19 Jun 2006 12:20:19 +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 04255-04; Mon, 19 Jun 2006 12:20:09 +0200 (CEST) Original-Received: from ronja.vet.uu.nl (localhost [127.0.0.1]) by ronja.ntg.nl (Postfix) with ESMTP id 381E612840; Mon, 19 Jun 2006 12:20:09 +0200 (CEST) Original-Received: from localhost (localhost [127.0.0.1]) by ronja.ntg.nl (Postfix) with ESMTP id 9A52F12840 for ; Mon, 19 Jun 2006 12:20:06 +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 04539-03-2 for ; Mon, 19 Jun 2006 12:20:03 +0200 (CEST) Original-Received: from mail.pragma-ade.net (dsl-083-247-100-017.solcon.nl [83.247.100.17]) by ronja.ntg.nl (Postfix) with SMTP id 3E7921283A for ; Mon, 19 Jun 2006 12:20:02 +0200 (CEST) Original-Received: from [10.100.1.102] (unverified [10.100.1.102]) by controller-1 (SurgeMail 3.5b3) with ESMTP id 22558 for ; Mon, 19 Jun 2006 14:20:02 +0400 User-Agent: Thunderbird 1.5.0.4 (Windows/20060516) Original-To: mailing list for ConTeXt users In-Reply-To: <7ED29D61-4A64-4881-B6C2-5CAF2D48A168@duke.edu> X-Server: High Performance Mail Server - http://surgemail.com r=-274017400 X-Authenticated-User: hagen@controller-1 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:28653 Archived-At: Helin Gai wrote: > Hi, I'm new to ConTeXt and I'm preparing a document for my own > reference. The source code is below. I came across a few weird > issues: 1) I don't quite understand why the page break occurs on because of \startbackground, best use textbackgrounds > > pages 4 and 6; 2) Why are the first two items in the table of > contents in red instead of green? > try: \setupinteraction[color=red,contrastcolor=blue] the contrastcolor is used whet the ref is on the same page > Thanks so much!! > > % The source starts here: > \setupcolors[state=start] > \setuppapersize[letter][letter] > \setupbodyfont[10pt] > \setupbackground > [background=screen,corner=round,leftoffset=10pt,topoffset=3pt,rightoffse > t=10pt,bottomoffset=3pt] > \setuptyping[before={\startbackground},after=\stopbackground] > \setuphead[chapter][page=no,style={\bfb\ss},] > \setupheadertexts[][chapter] > \setuppagenumbering[location={header,margin},left=--~,right=~--] > > > \setupinteraction[state=start] > > > > > \starttext > \completecontent > \chapter{Logic Structure of a Project} > > \starttyping > \startproject name_of_project > \environment name_of_environ > \product name_of_product > \stopproject > > A product could be composed of different ``components.'' > \stoptyping > > > \chapter{Page Dimensions} > \starttyping > \setuppapersize[..1..][..2.._] > 1. A3 A4_ A5 A6 letter ... CD landscape mirrored rotated 90 180 270 > 2. A3 A4_ A5 A6 letter ... landscape mirrored rotated negative 90 180 > 270 > > \definepapersize[name][..=..] > width, height, offset: dimension > scale: number > \stoptyping > > \chapter{Layout} > > \starttyping > \showframe[text,margin,edge] > \showsetups > \showlayout > > \setuplayout[..=..] > HORIZONTAL: > leftedge, leftmargin, leftmargindistance = backspace > width: dimension/fit/middle > rightmargindistance, rightmargin, rightedget = cutspace > VERTICAL: > topsapce, header, headerdistance > height: dimension/fit/middle (=header+text+footer) > footerdistance, footer, bottomspace > OTHER > grid=yes/no_ > horoffset, veroffset > style: normal, bold, slanted, boldslanted, type, cap, > small ...command > marking: on/off_/color > location: left, middle, right, bottom, top, singlesided_, doublesided > scale: dimen > > \adaptlayout[page_numbers][height,lines] > \makeupwidth, \makeupheight, \textwidth, \textheight (=height-header- > footer) > \stoptyping > > \chapter{Logo} > > \starttyping > \definelogo[name][2][3][..=..] > 2. top header footer bottom > 3. none page leftedge leftmargin left middle right rightmargin rightedge > command > state > \stoptyping > > \chapter{Spacing} > > \starttyping > \setupinterlinespace[..._][..=..] > ..._ reset small_ medium big on off > height, depth, top, bottom: number > line: dimen > > \setupwhitespace[...] > none_, small, medium, big, line, fixed, fix, dimen > \whitespace > \nowhitespace > > \blank[..] > n*small n*medium n*big nowhite back white disable force reset line > halfline formula fixed flexible > > \setupblank[..] > normal_ standard line dimen big medium small fixed flexible > > \defineblank[name][...] > same as \setupblank > > \packed > \startpacked ... \stoppacked > \startunpacked ... \stopunpacked > > \setupspacing[broad,packed] > \space, \nospace, fixedspaces > \stoptyping > > \chapter{Indentation} > > \starttyping > \setupindenting[...] > none_, small, medium, big, yes, next, first > > \noindenting > > \indenting[..] > never_, not, no yes, always, first, next > > \startnarrower[...] ... \stopnarrower > n*left n*middle n*right > \setupnarrower[..=...] > left, right, middle > \stoptyping > > \chapter{Header and Footer} > \starttyping > \setupheadertexts[.1._][.2.][.3.] > 1. text_ margin edge > 2.
date pagenumber > 3. same as 2. > > \setupfootertexts > > \setupheader[.._][..=..] > ._ text_ margin edge > state=normal_/stop/start/empty/high/none/nomarking/ > strut=yes/no > style > leftstyle > rightstyle > leftwidth > rightwidth > before > after > > \setupfooter > \stoptyping > > \chapter{Page Numbers} > \starttyping > \setuppagenumber[..=..] > number: number > state=start/stop/keep > > \setuppagenumbering[..=..] > alternative=singlesided/doublesided > location=header/footer/left/right/middle/margin/marginedge/inleft/ > inright > converstion=numbers/characters/Characters/romannumerals/Romannumerals > style > left: text > right: text > way: bytext/by
/bypart_ > text: text > numberseparator: text > textseparator: text > sectionnumber: yes/no > separator: text > strut: yes_/no > state: start_/stop > command: \command#1 > \stoptyping > > > > > \chapter{Columns} > > \starttyping > \setupcolumns[..=..] > n: number > ntop: number > rule=on/off_ > height: dimen > tolerance=verystrict/strict/tolerant_/verytolerant/stretch > distance: dimen > balance=yes_/no > align=yes/no/text > blank=fixed_/halfline/line_/flexible/big/medium/small > option=background > direction=left/right > Those of \setupframed > > \defineparagraphs[name][..=..] > n: number > rule=on/off_ > height=fit/dimen > before: command > after: command > inner: command > distance: dimen > tolerance > align=left/right/middle > \setupparagraphs[name][2.._][..=..] > 2. /each > style > width > height > align=left/right/middle/width/breedte_ > tolerance > distance > before > after > inner > command > rule=on/off > > \start ...\ \stop > \stoptyping > > \chapter{Marginal Text} > \starttyping > \inmargin[.._][ref_]{...} > + - low > \inright > \inleft > \inothermargin > \margintext > > \setupinmargin[..._][..=..] > ..._ left right number > location=left/right/both_ > style > before > after > align=inner_/outer/left/right/middle/normal/no/yes > line: number > distance > separator: text > those of \setupframed > > \startcolumns .. \column .. \stopcolumns > \stoptyping > > > \chapter{Alignment} > \starttyping > \leftaligned{...} > \midaligned{...} > \rightaligned{...} > \wordright{...} > > \startalignment ... \stopalignment > \setupalign[...] > width left right middle inner outer wide broad height bottom line > reset hanging nothanging hyphenated nothyphenated > \stoptyping > > > \chapter{Lines} > \starttyping > \crlf > \startlines ... \stoplines > \setuplines[..=..] > before, after, inbetween, indenting=yes/no_/even/odd > > \startlinenumbering[...] ... \stoplinenumbering > continue > \setuplinenumbering[..=..] > conversion=numbers/characters/Characters/romannumerals/Romannumerals/ > text > start: number > step: number > width: dimen > location=intext/inmargin_ > style > prefix: text > referencing=on/off > \stoptyping > > \chapter{Pages} > \starttyping > \page[..] > yes_ makeup no preference bigpreference left right disable last > quadruple even odd blank empty reset > \stoptyping > > \stoptext > _______________________________________________ > ntg-context mailing list > ntg-context@ntg.nl > http://www.ntg.nl/mailman/listinfo/ntg-context > -- ----------------------------------------------------------------- Hans Hagen | PRAGMA ADE Ridderstraat 27 | 8061 GH Hasselt | The Netherlands tel: 038 477 53 69 | fax: 038 477 53 74 | www.pragma-ade.com | www.pragma-pod.nl -----------------------------------------------------------------