From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.io/gmane.comp.tex.context/67546 Path: news.gmane.org!not-for-mail From: Wolfgang Schuster Newsgroups: gmane.comp.tex.context Subject: Re: chapter and section titles in margin of each page Date: Thu, 31 Mar 2011 23:17:07 +0200 Message-ID: <735EC040-BBC0-40A4-8432-ECB1A074F05F@googlemail.com> References: <006801cbefc7$8a77d2b0$9f677810$@gmx.de> Reply-To: mailing list for ConTeXt users NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 (Apple Message framework v1084) Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit X-Trace: dough.gmane.org 1301606255 30544 80.91.229.12 (31 Mar 2011 21:17:35 GMT) X-Complaints-To: usenet@dough.gmane.org NNTP-Posting-Date: Thu, 31 Mar 2011 21:17:35 +0000 (UTC) To: mailing list for ConTeXt users Original-X-From: ntg-context-bounces@ntg.nl Thu Mar 31 23:17:31 2011 Return-path: Envelope-to: gctc-ntg-context-518@m.gmane.org Original-Received: from balder.ntg.nl ([195.12.62.10]) by lo.gmane.org with esmtp (Exim 4.69) (envelope-from ) id 1Q5PFA-0006XV-8g for gctc-ntg-context-518@m.gmane.org; Thu, 31 Mar 2011 23:17:28 +0200 Original-Received: from localhost (localhost [127.0.0.1]) by balder.ntg.nl (Postfix) with ESMTP id BA9F9CAB52; Thu, 31 Mar 2011 23:17:00 +0200 (CEST) X-Virus-Scanned: Debian amavisd-new at balder.ntg.nl Original-Received: from balder.ntg.nl ([127.0.0.1]) by localhost (balder.ntg.nl [127.0.0.1]) (amavisd-new, port 10024) with LMTP id rhZJcFTmotbm; Thu, 31 Mar 2011 23:16:58 +0200 (CEST) Original-Received: from balder.ntg.nl (localhost [127.0.0.1]) by balder.ntg.nl (Postfix) with ESMTP id E3978CAB48; Thu, 31 Mar 2011 23:16:57 +0200 (CEST) Original-Received: from localhost (localhost [127.0.0.1]) by balder.ntg.nl (Postfix) with ESMTP id EFD44CAB48 for ; Thu, 31 Mar 2011 23:16:56 +0200 (CEST) X-Virus-Scanned: Debian amavisd-new at balder.ntg.nl Original-Received: from balder.ntg.nl ([127.0.0.1]) by localhost (balder.ntg.nl [127.0.0.1]) (amavisd-new, port 10024) with LMTP id UOTeGoBF+7RF for ; Thu, 31 Mar 2011 23:16:45 +0200 (CEST) Original-Received: from filter1-til.mf.surf.net (filter1-til.mf.surf.net [194.171.167.217]) by balder.ntg.nl (Postfix) with ESMTP id CBDCECAB47 for ; Thu, 31 Mar 2011 23:16:45 +0200 (CEST) Original-Received: from mail-bw0-f41.google.com (mail-bw0-f41.google.com [209.85.214.41]) by filter1-til.mf.surf.net (8.14.3/8.14.3/Debian-5+lenny1) with ESMTP id p2VLHBZ3000690 for ; Thu, 31 Mar 2011 23:17:12 +0200 Original-Received: by bwz17 with SMTP id 17so2955894bwz.14 for ; Thu, 31 Mar 2011 14:17:11 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=googlemail.com; s=gamma; h=domainkey-signature:content-type:mime-version:subject:from :in-reply-to:date:content-transfer-encoding:message-id:references:to :x-mailer; bh=dRDWlmzMqPWPoQmi8YTfX3x8H1phahNxFvSIeQ6I5Lk=; b=wto9HanJXjopzlj2JTZuWonYQ07XkGkeV7iZLDoSWiWJNsyXb3KVmUCPYLtEfpZTRh NOwwlOm/swu5QRCYE6yKz81HMD1TPlU/ggsCy5hh6iN/mlhpopkxCMyQX/CUcGLXkfcb dNpuW82WvxQPTZ1bBYI1sK6BQogGCLzF1TBOw= DomainKey-Signature: a=rsa-sha1; c=nofws; d=googlemail.com; s=gamma; h=content-type:mime-version:subject:from:in-reply-to:date :content-transfer-encoding:message-id:references:to:x-mailer; b=hNxPll4zxuQ4HWffWSpiN+nCmqzO1iVYpS1EcsgDpgIA7pEYU2zn6oQJyFTMO/2LH0 UAXgGlQm9yEP9zQuwcm0EPEb9bTCqHsDBX0ko1pboNwS2DKm4cyZSntNRxGY1Z5zs3Rz viQf0Zp4cIWsd2hTKjRfVaj0R8fEzn9BGww7E= Original-Received: by 10.204.19.76 with SMTP id z12mr2819525bka.205.1301606231492; Thu, 31 Mar 2011 14:17:11 -0700 (PDT) Original-Received: from [192.168.2.31] (p5B294629.dip.t-dialin.net [91.41.70.41]) by mx.google.com with ESMTPS id z18sm994072bkf.8.2011.03.31.14.17.08 (version=TLSv1/SSLv3 cipher=OTHER); Thu, 31 Mar 2011 14:17:10 -0700 (PDT) In-Reply-To: <006801cbefc7$8a77d2b0$9f677810$@gmx.de> X-Mailer: Apple Mail (2.1084) X-Bayes-Prob: 0.9993 (Score 4.7, tokens from: @@RPTN) X-CanIt-Geo: ip=209.85.214.41; 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: 08EpVhbhA - d8aeded1a883 - 20110331 X-Scanned-By: CanIt (www . roaringpenguin . com) on 194.171.167.217 X-BeenThere: ntg-context@ntg.nl X-Mailman-Version: 2.1.12 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 Xref: news.gmane.org gmane.comp.tex.context:67546 Archived-At: Am 31.03.2011 um 19:17 schrieb C.: > Hello, > > this is nice: > http://wiki.contextgarden.net/Headers_and_Footers#Marginal_headings_and_cent > ered_headings > However, the text in the margin has not the same interlinespace as the main > text and that looks weird. > See http://i52.tinypic.com/91rc.png > The only solution I came up with is using \framed: > > \startsetups[text a] > \framed[align=flushleft, > height=24\lineheight, > width=\rightmarginwidth, > frame=off > ] > {\getmarking[section]} > \stopsetups > > The drawback seems to be that with this, I can not use \raised , so I have > to enlarge the frame (It says "A box is expected here" when I try to raise > the frame). > > Is there a better solution? \setuplayout[grid=yes] \setuppagenumbering[alternative=doublesided] \setuptexttexts[margin][][\setups{text a}][\setups{text b}][] \startsetups[text a] \framed [frame=off, offset=0pt, width=broad, height=\vsize, align={high,flushleft}, top={\blank[12*line]}] {\getmarking[chapter]} \stopsetups \startsetups[text b] \framed [frame=off, offset=0pt, width=broad, height=\vsize, align={high,flushright}, top={\blank[12*line]}] {\getmarking[section]} \stopsetups \showframe\showgrid \starttext \chapter{Chapter Knuth Testing} \section{Section Knuth Testing} \dorecurse{20}{\input knuth\par} \stoptext > P.S: Bonus points: Align baselines of margin text and main text. Does only work when you enable grid typesetting. 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 : http://foundry.supelec.fr/projects/contextrev/ wiki : http://contextgarden.net ___________________________________________________________________________________