From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.io/gmane.comp.tex.context/50226 Path: news.gmane.org!not-for-mail From: Wolfgang Schuster Newsgroups: gmane.comp.tex.context Subject: Re: Chapter number in right margin? Date: Mon, 11 May 2009 15:09:34 +0200 Message-ID: References: <20090511120607.GA350@Fity> Reply-To: mailing list for ConTeXt users NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 (Apple Message framework v930.3) Content-Type: text/plain; charset="us-ascii"; Format="flowed"; DelSp="yes" Content-Transfer-Encoding: 7bit X-Trace: ger.gmane.org 1242047609 19770 80.91.229.12 (11 May 2009 13:13:29 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Mon, 11 May 2009 13:13:29 +0000 (UTC) To: mailing list for ConTeXt users Original-X-From: ntg-context-bounces@ntg.nl Mon May 11 15:13:20 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 1M3VJm-0003Lc-MA for gctc-ntg-context-518@m.gmane.org; Mon, 11 May 2009 15:13:18 +0200 Original-Received: from localhost (localhost [127.0.0.1]) by ronja.ntg.nl (Postfix) with ESMTP id 1351F1FE97; Mon, 11 May 2009 15:13:18 +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 07402-03-2; Mon, 11 May 2009 15:11:55 +0200 (CEST) Original-Received: from ronja.vet.uu.nl (localhost [127.0.0.1]) by ronja.ntg.nl (Postfix) with ESMTP id D90981FE8C; Mon, 11 May 2009 15:11:54 +0200 (CEST) Original-Received: from localhost (localhost [127.0.0.1]) by ronja.ntg.nl (Postfix) with ESMTP id 56AD31FE8A for ; Mon, 11 May 2009 15:11:53 +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 08021-03-3 for ; Mon, 11 May 2009 15:11:17 +0200 (CEST) Original-Received: from filter2-til.mf.surf.net (filter2-til.mf.surf.net [194.171.167.218]) by ronja.ntg.nl (Postfix) with ESMTP id 8C50E1FE76 for ; Mon, 11 May 2009 15:10:00 +0200 (CEST) Original-Received: from fg-out-1718.google.com (fg-out-1718.google.com [72.14.220.152]) by filter2-til.mf.surf.net (8.13.8/8.13.8/Debian-3) with ESMTP id n4BD9x1W031118 for ; Mon, 11 May 2009 15:10:00 +0200 Original-Received: by fg-out-1718.google.com with SMTP id e21so937378fga.8 for ; Mon, 11 May 2009 06:09:59 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=googlemail.com; s=gamma; h=domainkey-signature:received:received:message-id:from:to :in-reply-to:content-type:content-transfer-encoding:mime-version :subject:date:references:x-mailer; bh=A+9NsKlQsvA33CMXRXY+6Z7fyYRBHzBtDia9p/962+I=; b=jFV0F0HFOZJ3YVVeStNzgda9oNMdMq+S01h7+t8DQBtIHkM+m/xV0PciTp5hwp8B8a JYWrS1QQDe/v7fBRUV0Uhv5ksoDZh6eSQZcRAplybE82lk4fk7sRTA4QRfiBYZIS++8q qTXS7NfWQgt/ykF2y5TUEADjoj/v+NJs6D0uI= DomainKey-Signature: a=rsa-sha1; c=nofws; d=googlemail.com; s=gamma; h=message-id:from:to:in-reply-to:content-type :content-transfer-encoding:mime-version:subject:date:references :x-mailer; b=TeFwAoo5KwuenteEezHMkAEJlwbsSmIW1H7slFlAiPvuuE8wAXbIxraR0tI4aeimMs K8FQ33val7Qlrq7K/q7LYfIIZ+IiMOj+QyfYY7sWO0gk7JewTWajt5qb+pE8A/lj6dgE XBAd2wj0DzDkZtTiwilWt9dqibvubUCtwWgHw= Original-Received: by 10.86.80.17 with SMTP id d17mr6496837fgb.27.1242047399456; Mon, 11 May 2009 06:09:59 -0700 (PDT) Original-Received: from ?192.168.2.23? (p5B295338.dip.t-dialin.net [91.41.83.56]) by mx.google.com with ESMTPS id e11sm4386016fga.16.2009.05.11.06.09.57 (version=TLSv1/SSLv3 cipher=RC4-MD5); Mon, 11 May 2009 06:09:58 -0700 (PDT) In-Reply-To: X-Mailer: Apple Mail (2.930.3) X-Bayes-Prob: 0.0001 (Score 0, tokens from: @@RPTN) X-CanIt-Geo: ip=72.14.220.152; 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: 223106942 - d26740ca3a10 - 20090511 X-Scanned-By: CanIt (www . roaringpenguin . com) on 194.171.167.218 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:50226 Archived-At: Am 11.05.2009 um 14:59 schrieb Yanrui Li: > On Mon, May 11, 2009 at 8:06 PM, Corsair > wrote: >> Hi all, >> >> I'm typesetting a double-sided document. And I want the chapter >> numbers to be in the right margin, while the chapter titles remain in >> the main text area. So I write >> >> \def\MyChapter#1#2 >> {\inright{#1} #2} >> >> \setuphead >> [chapter] >> [command=\MyChapter] >> >> But it renders such that all the chapter numbers disappear while >> chapter titles seem normal. Any idea? >> > > I extract the following fragment from my document and I wish it can > help you :) > > \def\PlaceChapter#1#2{% > \vbox{% > \inoutermargin{% > \hbox to .6\rightmarginwidth{% > \hfil\switchtobodyfont[32pt,myfont,rm]{#1}\hss}% > }\tfc #2% > }% > } > \setuphead > [chapter] > [command=\PlaceChapter,header=empty,footer=empty] As alternative: \define[2]\PlaceChapter {\hbox{\vtop{#2}\rlap{\hskip\rightmargindistance#1}}} \definefont[ChapterNumber][Serif at 32pt] \setuphead [chapter] [command=\PlaceChapter,numberstyle=ChapterNumber,textstyle= \tfc,header=empty,footer=empty] Wolfgang ___________________________________________________________________________________ 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 ___________________________________________________________________________________