From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.io/gmane.comp.tex.context/44787 Path: news.gmane.org!not-for-mail From: Jelle Huisman Newsgroups: gmane.comp.tex.context Subject: Re: rule=on in \columnset? Date: Thu, 16 Oct 2008 21:57:01 +0100 Message-ID: <48F7AA9D.1020900@jhnet.nl> References: <48F5F4C5.4060609@jhnet.nl> <48F72B5E.6040607@jhnet.nl> <115224fb0810160600t5a456590s8a9bf58c4be0569a@mail.gmail.com> <48F754AE.2030501@jhnet.nl> Reply-To: mailing list for ConTeXt users NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: multipart/mixed; boundary="===============1316870825==" X-Trace: ger.gmane.org 1224218315 22046 80.91.229.12 (17 Oct 2008 04:38:35 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Fri, 17 Oct 2008 04:38:35 +0000 (UTC) To: mailing list for ConTeXt users Original-X-From: ntg-context-bounces@ntg.nl Fri Oct 17 06:39:26 2008 connect(): Connection refused 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 1Kqh7R-0002mp-7a for gctc-ntg-context-518@m.gmane.org; Fri, 17 Oct 2008 06:39:21 +0200 Original-Received: from localhost (localhost [127.0.0.1]) by ronja.ntg.nl (Postfix) with ESMTP id 05F8B1FC6A; Fri, 17 Oct 2008 06:38:14 +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 04317-02-4; Fri, 17 Oct 2008 06:37:27 +0200 (CEST) Original-Received: from ronja.vet.uu.nl (localhost [127.0.0.1]) by ronja.ntg.nl (Postfix) with ESMTP id 865621FBBE; Fri, 17 Oct 2008 06:35:49 +0200 (CEST) Original-Received: from localhost (localhost [127.0.0.1]) by ronja.ntg.nl (Postfix) with ESMTP id B3F291FBAA for ; Fri, 17 Oct 2008 06:35:47 +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 03109-02-6 for ; Fri, 17 Oct 2008 06:35:10 +0200 (CEST) Original-Received: from smtp1.wsfo.org (smtp1.wsfo.org [208.145.81.51]) by ronja.ntg.nl (Postfix) with ESMTP id E3C1C1FE48 for ; Thu, 16 Oct 2008 22:57:20 +0200 (CEST) Original-Received: from mail.link77.net (mail.link77.net [172.22.0.125]) by smtp1.wsfo.org (8.13.1/8.13.1) with ESMTP id m9GKvJBw006582 (version=TLSv1/SSLv3 cipher=DES-CBC3-SHA bits=168 verify=NO) for ; Thu, 16 Oct 2008 16:57:19 -0400 X-CGP-ClamAV-Result: CLEAN X-VirusScanner: Niversoft's CGPClamav Helper v1.8.0 (ClamAV engine v0.94) X-ExternalMail: External Original-Received: from [82.153.47.165] (account jelle_huisman@sil.org HELO jelle-macbook.local) by mail.link77.net (CommuniGate Pro SMTP 5.2.8) with ESMTPSA id 196903893 for ntg-context@ntg.nl; Thu, 16 Oct 2008 16:57:16 -0400 User-Agent: Thunderbird 2.0.0.17 (Macintosh/20080914) In-Reply-To: <48F754AE.2030501@jhnet.nl> X-Scanned-By: MIMEDefang 2.62 on 172.22.0.51 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:44787 Archived-At: This is a multi-part message in MIME format. --===============1316870825== Content-Type: multipart/alternative; boundary="------------080705070605060802090203" This is a multi-part message in MIME format. --------------080705070605060802090203 Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit Jelle Huisman wrote: > Wolfgang Schuster wrote: > >> \startuseMPgraphic{columnrule} >> path p ; p := unitsquare xyscaled (OverlayWidth+5mm,OverlayHeight) ; >> draw (xpart(urcorner p),ypart(urcorner >> p)-\the\dimexpr\noflines\lineheight\relax) -- urcorner p ; >> setbounds currentpicture to p ; >> \stopuseMPgraphic >> > > Thanks Wolfgang!, this is precisely what I need. I'll wikify it. (Think > it's time to learn some MP...) Oeps, I have found one problem: if there is text before the columnset, like a chapter header, the text in the columnset moves down but the {columnrule} stays at the top of the page... How can I modify the code the make sure that this doesn't happen? See sample: %sample% \definecolumnset[example][n=3,distance=5mm] \startuseMPgraphic{columnrule} path p ; p := unitsquare xyscaled (OverlayWidth+5mm,OverlayHeight) ; draw (xpart(urcorner p),ypart(urcorner p)-\the\dimexpr\noflines\lineheight\relax) -- urcorner p ; setbounds currentpicture to p ; \stopuseMPgraphic \defineoverlay[columnrule][\useMPgraphic{columnrule}] \setupcolumnset[example][1,2][balance=yes,background=columnrule] \setupcolumnsetlines[example][1][1][-35] \setupcolumnsetlines[example][1][2][-35] \setupcolumnsetlines[example][1][3][-35] \starttext %\input knuth % <- uncomment this to see problem \startcolumnset[example] \dorecurse{2}{\input knuth} \stopcolumnset \stoptext %/sample% Thanks again, Jelle (MkII/XeTeX) --------------080705070605060802090203 Content-Type: text/html; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit Jelle Huisman wrote:
Wolfgang Schuster wrote:
  
\startuseMPgraphic{columnrule}
path p ; p := unitsquare xyscaled (OverlayWidth+5mm,OverlayHeight) ;
draw (xpart(urcorner p),ypart(urcorner
p)-\the\dimexpr\noflines\lineheight\relax) -- urcorner p ;
setbounds currentpicture to p ;
\stopuseMPgraphic
    

Thanks Wolfgang!, this is precisely what I need. I'll wikify it. (Think 
it's time to learn some MP...)

Oeps, I have found one problem: if there is text before the columnset, like a chapter header, the text in the columnset moves down but the {columnrule} stays at the top of the page... How can I modify the code the make sure that this doesn't happen? See sample:

%sample%
\definecolumnset[example][n=3,distance=5mm]

\startuseMPgraphic{columnrule}
path p ; p := unitsquare xyscaled (OverlayWidth+5mm,OverlayHeight) ;
draw (xpart(urcorner p),ypart(urcorner
p)-\the\dimexpr\noflines\lineheight\relax) -- urcorner p ;
setbounds currentpicture to p ;
\stopuseMPgraphic
\defineoverlay[columnrule][\useMPgraphic{columnrule}]

 \setupcolumnset[example][1,2][balance=yes,background=columnrule]
 \setupcolumnsetlines[example][1][1][-35]
 \setupcolumnsetlines[example][1][2][-35]
 \setupcolumnsetlines[example][1][3][-35]

 \starttext

%\input knuth % <- uncomment this to see problem

 \startcolumnset[example]
 \dorecurse{2}{\input knuth}
 \stopcolumnset
 \stoptext
 %/sample%

Thanks again,

Jelle (MkII/XeTeX) --------------080705070605060802090203-- --===============1316870825== Content-Type: text/plain; charset="us-ascii" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit Content-Disposition: inline ___________________________________________________________________________________ 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 ___________________________________________________________________________________ --===============1316870825==--