From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.io/gmane.comp.tex.context/50643 Path: news.gmane.org!not-for-mail From: Yue Wang Newsgroups: gmane.comp.tex.context Subject: two newbie questions (about conditional processing) Date: Thu, 21 May 2009 09:25:33 +0800 Message-ID: <68bfdc900905201825w1e8aee29ibd1ec946dd733b83@mail.gmail.com> Reply-To: mailing list for ConTeXt users NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit X-Trace: ger.gmane.org 1242869205 14057 80.91.229.12 (21 May 2009 01:26:45 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Thu, 21 May 2009 01:26:45 +0000 (UTC) To: mailing list for ConTeXt users Original-X-From: ntg-context-bounces@ntg.nl Thu May 21 03:26:38 2009 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 lo.gmane.org with esmtp (Exim 4.50) id 1M6x3N-0005HS-US for gctc-ntg-context-518@m.gmane.org; Thu, 21 May 2009 03:26:38 +0200 Original-Received: from localhost (localhost [127.0.0.1]) by ronja.ntg.nl (Postfix) with ESMTP id 440131FCDB; Thu, 21 May 2009 03:26:35 +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 29114-08-2; Thu, 21 May 2009 03:25:54 +0200 (CEST) Original-Received: from ronja.vet.uu.nl (localhost [127.0.0.1]) by ronja.ntg.nl (Postfix) with ESMTP id C24471FC93; Thu, 21 May 2009 03:25:53 +0200 (CEST) Original-Received: from localhost (localhost [127.0.0.1]) by ronja.ntg.nl (Postfix) with ESMTP id 3922F1FCA2 for ; Thu, 21 May 2009 03:25:52 +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 07097-02 for ; Thu, 21 May 2009 03:25:35 +0200 (CEST) Original-Received: from filter4-til.mf.surf.net (filter4-til.mf.surf.net [194.171.167.220]) by ronja.ntg.nl (Postfix) with ESMTP id 061681FC87 for ; Thu, 21 May 2009 03:25:35 +0200 (CEST) Original-Received: from mail-qy0-f103.google.com (mail-qy0-f103.google.com [209.85.221.103]) by filter4-til.mf.surf.net (8.13.8/8.13.8/Debian-3) with ESMTP id n4L1PXQb008150 for ; Thu, 21 May 2009 03:25:34 +0200 Original-Received: by qyk1 with SMTP id 1so1238603qyk.16 for ; Wed, 20 May 2009 18:25:33 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:mime-version:received:date:message-id:subject :from:to:content-type:content-transfer-encoding; bh=4YNhW9kI9d5K5fCM1RJehrzrvTm/0SzcFSUIRGKf46Q=; b=o4t797e6U5UPzhGY1QDV7C/eO/jswXl33ANbuOHl6omnNDCxYe2Yw24ajl7ynSbeWS GSEMSwIZdVQz3GhrdDG3gt1q7/LpoghskcxSL36XSSmzWH0IMXfjKEpzeTGSM5FOXqXa IwggTLyWubvZaaLAUOrnhW2Eq3YwWHMTgTc3Q= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=mime-version:date:message-id:subject:from:to:content-type :content-transfer-encoding; b=RKVrJUBmHftenc2G5kbjQ+f9yJ3kLjr6W2iFa/D+9k/X2YfO3Lh+043ZurdI8vcPvI RxAe3OJkG+2WizRymTsmirQI+krVyxwLSGsXamGak3fo6D0J+XSYg+tjIOWKFGbYUoR0 0NYOaq4ne0jd8fH0CamQv90qbLr/+Bb9YaamM= Original-Received: by 10.229.85.132 with SMTP id o4mr846504qcl.0.1242869133245; Wed, 20 May 2009 18:25:33 -0700 (PDT) X-Bayes-Prob: 0.0001 (Score 0, tokens from: @@RPTN) X-CanIt-Geo: ip=209.85.221.103; country=US; region=CA; city=Mountain View; postalcode=94043; latitude=37.4192; longitude=-122.0574; metrocode=807; areacode=650; http://maps.google.com/maps?q=37.4192,-122.0574&z=6 X-CanItPRO-Stream: uu:ntg-context@ntg.nl (inherits from uu:default, base:default) X-Canit-Stats-ID: 229455271 - 8a24e756edc8 - 20090521 X-Scanned-By: CanIt (www . roaringpenguin . com) on 194.171.167.220 X-Virus-Scanned: amavisd-new at ntg.nl X-BeenThere: ntg-context@ntg.nl X-Mailman-Version: 2.1.11 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:50643 Archived-At: Hi, I have a new book to design, but I don't know how to do page/content conditional processing). Please help me:) - I want my chapter page (first page of each chapter) to be really distinctive. that is, I define a dark color background, and want all the text on the first page set in white. how can I do that? for example \chapter{hello} \dorecurse{10}{\input zapf } % all the characters in the first page should white, others should set in black. - I want to insert graphics and images. all the graphics are inserted using \placeexternalfigures. I want all the pages where the insertion happens to be quite distictive (that is, have a very narrow text layout, and leave the large margin for the figures. However, when a page starts, TeX does not know wheter or not an external figure will be placed on this page, so it really has no idea whether this page should be set narrower or not..... how can I do that? Thanks. Yue Wang ___________________________________________________________________________________ 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 ___________________________________________________________________________________