From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.io/gmane.comp.tex.context/50234 Path: news.gmane.org!not-for-mail From: Corsair Newsgroups: gmane.comp.tex.context Subject: Re: Chapter number in right margin? Date: Mon, 11 May 2009 21:54:35 +0800 Message-ID: <20090511135435.GA22236@Fity> References: <20090511120607.GA350@Fity> Reply-To: mailing list for ConTeXt users NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: multipart/mixed; boundary="===============1947020079==" X-Trace: ger.gmane.org 1242050161 28852 80.91.229.12 (11 May 2009 13:56:01 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Mon, 11 May 2009 13:56:01 +0000 (UTC) To: ntg-context@ntg.nl Original-X-From: ntg-context-bounces@ntg.nl Mon May 11 15:55:51 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 1M3Vyx-0005xg-1g for gctc-ntg-context-518@m.gmane.org; Mon, 11 May 2009 15:55:51 +0200 Original-Received: from localhost (localhost [127.0.0.1]) by ronja.ntg.nl (Postfix) with ESMTP id F0F2B1FEA9; Mon, 11 May 2009 15:55:49 +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 14199-03; Mon, 11 May 2009 15:55:05 +0200 (CEST) Original-Received: from ronja.vet.uu.nl (localhost [127.0.0.1]) by ronja.ntg.nl (Postfix) with ESMTP id 148671FD02; Mon, 11 May 2009 15:55:05 +0200 (CEST) Original-Received: from localhost (localhost [127.0.0.1]) by ronja.ntg.nl (Postfix) with ESMTP id 53F931FD02 for ; Mon, 11 May 2009 15:55:03 +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 18553-02-2 for ; Mon, 11 May 2009 15:54:51 +0200 (CEST) Original-Received: from filter1-ams.mf.surf.net (filter1-ams.mf.surf.net [192.87.102.69]) by ronja.ntg.nl (Postfix) with ESMTP id 551C41FBBA for ; Mon, 11 May 2009 15:54:51 +0200 (CEST) Original-Received: from wf-out-1314.google.com (wf-out-1314.google.com [209.85.200.171]) by filter1-ams.mf.surf.net (8.13.8/8.13.8/Debian-3) with ESMTP id n4BDsngx008220 for ; Mon, 11 May 2009 15:54:50 +0200 Original-Received: by wf-out-1314.google.com with SMTP id 25so2152160wfc.5 for ; Mon, 11 May 2009 06:54:48 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:received:received:date:from:to:subject :message-id:mail-followup-to:references:mime-version:content-type :content-disposition:in-reply-to:user-agent; bh=sJ/DNAoSaWlf3JrtaIKLzCT6XrxOGUnUVFdwjSp0KNc=; b=d/58sPLDMdbnP+OQJmDjEFcqsGaYfL+auYjwoHZojBczzTJ50o3FfcJYjnmZNB19Mb 80FEXaLvGGYTPc4/wpXvYWvc+s+30q4DmVc1LrpjsqUMU1cWzzrahkZrHVpz0yAjdQwW +UXZbBb21oll+iEZeavPbRDm0cESsoqGgNYFc= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=date:from:to:subject:message-id:mail-followup-to:references :mime-version:content-type:content-disposition:in-reply-to :user-agent; b=npqtRCdstJ6y0JaY8XbpvMDY6Dn9VUEQwzeblhY5iSSC8SrTepu4C+Pt7KICcQUbzb jNnfXurp59Xw2+z/UtvsP4yIIH8q/6Tj6OvSndyFO5nr7Y2Ybn861ZLoKcocW8IQY1Hk ikuPNBcrY8sXqOJ8dD2LQyT1Q+ogBlnAWO+I0= Original-Received: by 10.143.10.15 with SMTP id n15mr2840211wfi.268.1242050088888; Mon, 11 May 2009 06:54:48 -0700 (PDT) Original-Received: from localhost ([125.33.196.83]) by mx.google.com with ESMTPS id 22sm11016444wfd.39.2009.05.11.06.54.38 (version=TLSv1/SSLv3 cipher=RC4-MD5); Mon, 11 May 2009 06:54:40 -0700 (PDT) Mail-Followup-To: ntg-context@ntg.nl In-Reply-To: User-Agent: Mutt/1.5.18 (2008-05-17) X-Bayes-Prob: 0.0001 (Score 0, tokens from: @@RPTN) X-CanIt-Geo: ip=209.85.200.171; 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: 223149687 - 6613a7853f75 - 20090511 X-Scanned-By: CanIt (www . roaringpenguin . com) on 192.87.102.69 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:50234 Archived-At: --===============1947020079== Content-Type: multipart/signed; micalg=pgp-sha1; protocol="application/pgp-signature"; boundary="dDRMvlgZJXvWKvBx" Content-Disposition: inline --dDRMvlgZJXvWKvBx Content-Type: text/plain; charset=us-ascii Content-Disposition: inline Content-Transfer-Encoding: quoted-printable On Mon, May 11, 2009 at 03:09:34PM +0200, Wolfgang Schuster wrote: >=20 > Am 11.05.2009 um 14:59 schrieb Yanrui Li: >=20 > > I extract the following fragment from my document and I wish it can =20 > > help you :) > > > > \def\PlaceChapter#1#2{% > > \vbox{% > > \inoutermargin{% > > \hbox to .6\rightmarginwidth{% > > \hfil\switchtobodyfont[32pt,myfont,rm]{#1}\hss}% > > }\tfc #2% > > }% > > } > > \setuphead > > [chapter] > > [command=3D\PlaceChapter,header=3Dempty,footer=3Dempty] >=20 > As alternative: >=20 > \define[2]\PlaceChapter > {\hbox{\vtop{#2}\rlap{\hskip\rightmargindistance#1}}} >=20 > \definefont[ChapterNumber][Serif at 32pt] >=20 > \setuphead > [chapter] > [command=3D\PlaceChapter,numberstyle=3DChapterNumber,textstyle=3D=20 > \tfc,header=3Dempty,footer=3Dempty] Yanrui and Wolfgang, Your codes works like charms :-D Thank you! --=20 There is no emotion; there is peace. There is no ignorance; there is knowledge. There is no passion; there is serenity. There is no death; there is the Force. --dDRMvlgZJXvWKvBx Content-Type: application/pgp-signature Content-Disposition: inline -----BEGIN PGP SIGNATURE----- Version: GnuPG v2.0.11 (GNU/Linux) iEYEARECAAYFAkoILhsACgkQfRwStqqCRFuh8wCdGWpaIWiyNFVB4I6UNepPy8mN TrgAn1naflxxaVAgHwiMvAUauV/WHjJZ =fh9x -----END PGP SIGNATURE----- --dDRMvlgZJXvWKvBx-- --===============1947020079== Content-Type: text/plain; charset="us-ascii" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit Content-Disposition: inline ___________________________________________________________________________________ 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 ___________________________________________________________________________________ --===============1947020079==--