From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.io/gmane.comp.tex.context/67545 Path: news.gmane.org!not-for-mail From: "C." Newsgroups: gmane.comp.tex.context Subject: chapter and section titles in margin of each page Date: Thu, 31 Mar 2011 19:17:30 +0200 Message-ID: <006801cbefc7$8a77d2b0$9f677810$@gmx.de> 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: dough.gmane.org 1301591887 8931 80.91.229.12 (31 Mar 2011 17:18:07 GMT) X-Complaints-To: usenet@dough.gmane.org NNTP-Posting-Date: Thu, 31 Mar 2011 17:18:07 +0000 (UTC) To: "Context-Mailinglist" Original-X-From: ntg-context-bounces@ntg.nl Thu Mar 31 19:18:03 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 1Q5LVS-0003wa-UK for gctc-ntg-context-518@m.gmane.org; Thu, 31 Mar 2011 19:18:03 +0200 Original-Received: from localhost (localhost [127.0.0.1]) by balder.ntg.nl (Postfix) with ESMTP id BBD74CAB52; Thu, 31 Mar 2011 19:17:34 +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 KRKQqwhUG7ll; Thu, 31 Mar 2011 19:17:32 +0200 (CEST) Original-Received: from balder.ntg.nl (localhost [127.0.0.1]) by balder.ntg.nl (Postfix) with ESMTP id 61C75CAB48; Thu, 31 Mar 2011 19:17:32 +0200 (CEST) Original-Received: from localhost (localhost [127.0.0.1]) by balder.ntg.nl (Postfix) with ESMTP id 5722ECAB48 for ; Thu, 31 Mar 2011 19:17:31 +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 OJZnGnU2avlb for ; Thu, 31 Mar 2011 19:17:20 +0200 (CEST) Original-Received: from filter1-nij.mf.surf.net (filter1-nij.mf.surf.net [195.169.124.152]) by balder.ntg.nl (Postfix) with ESMTP id EDC14CAB47 for ; Thu, 31 Mar 2011 19:17:19 +0200 (CEST) Original-Received: from mailout-de.gmx.net (mailout-de.gmx.net [213.165.64.23]) by filter1-nij.mf.surf.net (8.14.3/8.14.3/Debian-5+lenny1) with SMTP id p2VHHjUC016999 for ; Thu, 31 Mar 2011 19:17:46 +0200 Original-Received: (qmail invoked by alias); 31 Mar 2011 17:17:45 -0000 Original-Received: from f053208252.adsl.alicedsl.de (EHLO christianPC) [78.53.208.252] by mail.gmx.net (mp069) with SMTP; 31 Mar 2011 19:17:45 +0200 X-Authenticated: #61879178 X-Provags-ID: V01U2FsdGVkX1+MlrBzLI+Mrp9/FeQyIMH+bahPXlLYEIh3GgxV9S ueE8RT6bC7ab1d X-Mailer: Microsoft Outlook 14.0 Thread-Index: AcvvxOizTcqLmLQoRBOjHtAaAJ95ww== Content-Language: de X-Y-GMX-Trusted: 0 X-Bayes-Prob: 0.9999 (Score 4.7, 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: 07EpRhJ77 - 2e9c18c1b95a - 20110331 X-Scanned-By: CanIt (www . roaringpenguin . com) on 195.169.124.152 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:67545 Archived-At: 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? P.S: Bonus points: Align baselines of margin text and main text. ___________________________________________________________________________________ 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 ___________________________________________________________________________________