From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.io/gmane.comp.tex.context/67571 Path: news.gmane.org!not-for-mail From: "C." Newsgroups: gmane.comp.tex.context Subject: Re: chapter and section titles in margin of each page Date: Sat, 2 Apr 2011 00:02:33 +0200 Message-ID: <001101cbf0b8$813a2030$83ae6090$@gmx.de> References: <006801cbefc7$8a77d2b0$9f677810$@gmx.de> <735EC040-BBC0-40A4-8432-ECB1A074F05F@googlemail.com> Reply-To: mailing list for ConTeXt users NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: quoted-printable X-Trace: dough.gmane.org 1301695382 13714 80.91.229.12 (1 Apr 2011 22:03:02 GMT) X-Complaints-To: usenet@dough.gmane.org NNTP-Posting-Date: Fri, 1 Apr 2011 22:03:02 +0000 (UTC) To: "'mailing list for ConTeXt users'" Original-X-From: ntg-context-bounces@ntg.nl Sat Apr 02 00:02:58 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 1Q5mQk-0000sc-2r for gctc-ntg-context-518@m.gmane.org; Sat, 02 Apr 2011 00:02:58 +0200 Original-Received: from localhost (localhost [127.0.0.1]) by balder.ntg.nl (Postfix) with ESMTP id B77BACAB6C; Sat, 2 Apr 2011 00:02:28 +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 WlvhW7u4Pe6Q; Sat, 2 Apr 2011 00:02:26 +0200 (CEST) Original-Received: from balder.ntg.nl (localhost [127.0.0.1]) by balder.ntg.nl (Postfix) with ESMTP id 047E4CAB65; Sat, 2 Apr 2011 00:02:26 +0200 (CEST) Original-Received: from localhost (localhost [127.0.0.1]) by balder.ntg.nl (Postfix) with ESMTP id D8F93CAB65 for ; Sat, 2 Apr 2011 00:02:24 +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 GSzNrKWzA0+I for ; Sat, 2 Apr 2011 00:02:13 +0200 (CEST) Original-Received: from filter3-nij.mf.surf.net (filter3-nij.mf.surf.net [195.169.124.154]) by balder.ntg.nl (Postfix) with ESMTP id 8A25FCAB64 for ; Sat, 2 Apr 2011 00:02:13 +0200 (CEST) Original-Received: from mailout-de.gmx.net (mailout-de.gmx.net [213.165.64.23]) by filter3-nij.mf.surf.net (8.14.3/8.14.3/Debian-5+lenny1) with SMTP id p31M2fqM032564 for ; Sat, 2 Apr 2011 00:02:41 +0200 Original-Received: (qmail invoked by alias); 01 Apr 2011 22:02:40 -0000 Original-Received: from f053213200.adsl.alicedsl.de (EHLO christianPC) [78.53.213.200] by mail.gmx.net (mp015) with SMTP; 02 Apr 2011 00:02:40 +0200 X-Authenticated: #61879178 X-Provags-ID: V01U2FsdGVkX185s/sPX4k5v3RQvksezEPiPoc4LHmSr8E+4sNW9M LTGvVGrdXzpNUz In-Reply-To: <735EC040-BBC0-40A4-8432-ECB1A074F05F@googlemail.com> X-Mailer: Microsoft Outlook 14.0 Thread-Index: AQLltbwWpfXq6eut9a8q82n/VvKlSgIK47M4kgWuUZA= Content-Language: de X-Y-GMX-Trusted: 0 X-Bayes-Prob: 0.0001 (Score 0, tokens from: @@RPTN) X-CanIt-Geo: ip=213.165.64.23; country=DE; latitude=51.0000; longitude=9.0000; http://maps.google.com/maps?q=51.0000,9.0000&z=6 X-CanItPRO-Stream: uu:ntg-context@ntg.nl (inherits from uu:default, base:default) X-Canit-Stats-ID: 0dEqm2Fop - a0299b240ddf - 20110402 X-Scanned-By: CanIt (www . roaringpenguin . com) on 195.169.124.154 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:67571 Archived-At: That seems to Work. Grid alignment does also work, as long as the whitespace before and after section/chapter heads is a multiple of lineheight. Thank you. > -----Urspr=FCngliche Nachricht----- > Von: Wolfgang Schuster [mailto:schuster.wolfgang@googlemail.com] > Gesendet: Donnerstag, 31. M=E4rz 2011 23:17 > An: mailing list for ConTeXt users > Betreff: Re: [NTG-context] chapter and section titles in margin of each page > = > = > Am 31.03.2011 um 19:17 schrieb C.: > = > > Hello, > > > > this is nice: > > > http://wiki.contextgarden.net/Headers_and_Footers#Marginal_headings_a > n > > d_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=3Dflushleft, > > height=3D24\lineheight, > > width=3D\rightmarginwidth, > > frame=3Doff > > ] > > {\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=3Dyes] > = > \setuppagenumbering[alternative=3Ddoublesided] > = > \setuptexttexts[margin][][\setups{text a}][\setups{text b}][] > = > \startsetups[text a] > \framed > [frame=3Doff, > offset=3D0pt, > width=3Dbroad, > height=3D\vsize, > align=3D{high,flushleft}, > top=3D{\blank[12*line]}] > {\getmarking[chapter]} > \stopsetups > = > \startsetups[text b] > \framed > [frame=3Doff, > offset=3D0pt, > width=3Dbroad, > height=3D\vsize, > align=3D{high,flushright}, > top=3D{\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 t= he Wiki! maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-cont= ext webpage : http://www.pragma-ade.nl / http://tex.aanhet.net archive : http://foundry.supelec.fr/projects/contextrev/ wiki : http://contextgarden.net ___________________________________________________________________________= ________