From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.io/gmane.comp.tex.context/36930 Path: news.gmane.org!not-for-mail From: "Wolfgang Schuster" Newsgroups: gmane.comp.tex.context Subject: Re: set headings in the margins Date: Tue, 9 Oct 2007 17:01:49 +0200 Message-ID: <115224fb0710090801w7833b9e2x62d525cc7b7aba32@mail.gmail.com> References: <3810155a0710090220p10e06c06rb59f1345360fbaff@mail.gmail.com> 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: sea.gmane.org 1191942166 31680 80.91.229.12 (9 Oct 2007 15:02:46 GMT) X-Complaints-To: usenet@sea.gmane.org NNTP-Posting-Date: Tue, 9 Oct 2007 15:02:46 +0000 (UTC) To: "mailing list for ConTeXt users" Original-X-From: ntg-context-bounces@ntg.nl Tue Oct 09 17:02:43 2007 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 1IfGb9-0003jN-Az for gctc-ntg-context-518@m.gmane.org; Tue, 09 Oct 2007 17:02:15 +0200 Original-Received: from localhost (localhost [127.0.0.1]) by ronja.ntg.nl (Postfix) with ESMTP id 478CB1FB9B; Tue, 9 Oct 2007 17:02:09 +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 29613-09; Tue, 9 Oct 2007 17:02:00 +0200 (CEST) Original-Received: from ronja.vet.uu.nl (localhost [127.0.0.1]) by ronja.ntg.nl (Postfix) with ESMTP id 85CEC1FB91; Tue, 9 Oct 2007 17:01:59 +0200 (CEST) Original-Received: from localhost (localhost [127.0.0.1]) by ronja.ntg.nl (Postfix) with ESMTP id 9A6B51FB91 for ; Tue, 9 Oct 2007 17:01:56 +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 29568-02 for ; Tue, 9 Oct 2007 17:01:50 +0200 (CEST) Original-Received: from fk-out-0910.google.com (fk-out-0910.google.com [209.85.128.188]) by ronja.ntg.nl (Postfix) with ESMTP id 7DF671FB89 for ; Tue, 9 Oct 2007 17:01:50 +0200 (CEST) Original-Received: by fk-out-0910.google.com with SMTP id 19so2850844fkr for ; Tue, 09 Oct 2007 08:01:50 -0700 (PDT) Original-Received: by 10.82.170.2 with SMTP id s2mr183474bue.1191942109292; Tue, 09 Oct 2007 08:01:49 -0700 (PDT) Original-Received: by 10.82.138.10 with HTTP; Tue, 9 Oct 2007 08:01:49 -0700 (PDT) In-Reply-To: <3810155a0710090220p10e06c06rb59f1345360fbaff@mail.gmail.com> Content-Disposition: inline X-Virus-Scanned: amavisd-new at ntg.nl X-BeenThere: ntg-context@ntg.nl X-Mailman-Version: 2.1.9 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:36930 Archived-At: 2007/10/9, Aric Bills : > Hello all, > > I'm a total newbie Context user trying to do something that is apparently > way beyond me. I'm trying to set up a conceptual three-column design grid. > The idea was to use the two columns on the right for body text, the column > on the left for margin paragraphs, and the full three-column spread for > headings. The easiest way I could find to set such a thing up was this: > > \setuplayout[backspace=3.083in, > leftmargin=2.083in, > leftmargindistance=.25in, > width=4.417in, > rightmargin=1in] > > where "leftmargin" represents the leftmost column and "width" represents the > other two columns (plus gutter). So far so good. > > To get my heading to stretch across all three conceptual columns, I thought > I'd use something along the lines of: > > \start > \startlocal > \setuplayout[...] > \stoplocal > \section{This heading was supposed to start at the left edge of the left > margin and wrap at the right edge of the text area} > \stop > > where [...] would eliminate the left margin and margindistance and > re-allocate that space to the text width. > However, I haven't yet found any [...] that does the trick. > > Whether my approach is basically right or totally wrong, I'd love to get > guidance on the best way to typeset a heading across both the margin and the > text area. I'm aware that it's trivial to make section numbers appear in > the margin; this is not the solution I'm looking for, though. > > Thanks for your help, > Aric Hi Aric, you can start with my solution, sorry but I have at the moment no time for a better one. \setuplayout[backspace=6cm,width=fit] \def\myheader#1#2% {\hbox to\makeupwidth {\hss\hbox to\dimexpr\leftmarginwidth+\leftmargindistance+\makeupwidth\relax {\vbox{\hsize=\dimexpr\leftmarginwidth+\leftmargindistance+\makeupwidth\relax#1#2}}}} \setuphead[section][command=\myheader] \starttext \dorecurse{5} {\section{\dorecurse{100}{text }} \dorecurse{5}{\input knuth\par}} \stoptext ___________________________________________________________________________________ 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 ___________________________________________________________________________________