From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.io/gmane.comp.tex.context/44780 Path: news.gmane.org!not-for-mail From: "Wolfgang Schuster" Newsgroups: gmane.comp.tex.context Subject: Re: rule=on in \columnset? Date: Thu, 16 Oct 2008 15:00:19 +0200 Message-ID: <115224fb0810160600t5a456590s8a9bf58c4be0569a@mail.gmail.com> References: <48F5F4C5.4060609@jhnet.nl> <48F72B5E.6040607@jhnet.nl> 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: ger.gmane.org 1224168114 28752 80.91.229.12 (16 Oct 2008 14:41:54 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Thu, 16 Oct 2008 14:41:54 +0000 (UTC) To: "mailing list for ConTeXt users" Original-X-From: ntg-context-bounces@ntg.nl Thu Oct 16 16:42:47 2008 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 1KqU1l-0004aU-Uw for gctc-ntg-context-518@m.gmane.org; Thu, 16 Oct 2008 16:40:38 +0200 Original-Received: from localhost (localhost [127.0.0.1]) by ronja.ntg.nl (Postfix) with ESMTP id DEDDA207BB; Thu, 16 Oct 2008 16:39:30 +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 29721-06-67; Thu, 16 Oct 2008 16:38:50 +0200 (CEST) Original-Received: from ronja.vet.uu.nl (localhost [127.0.0.1]) by ronja.ntg.nl (Postfix) with ESMTP id 020261FF67; Thu, 16 Oct 2008 15:27:11 +0200 (CEST) Original-Received: from localhost (localhost [127.0.0.1]) by ronja.ntg.nl (Postfix) with ESMTP id E30FF20202 for ; Thu, 16 Oct 2008 15:27:07 +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 18821-04-35 for ; Thu, 16 Oct 2008 15:26:26 +0200 (CEST) Original-Received: from ug-out-1314.google.com (ug-out-1314.google.com [66.249.92.175]) by ronja.ntg.nl (Postfix) with ESMTP id D28431FF67 for ; Thu, 16 Oct 2008 15:00:19 +0200 (CEST) Original-Received: by ug-out-1314.google.com with SMTP id s2so1477208uge.1 for ; Thu, 16 Oct 2008 06:00:19 -0700 (PDT) Original-Received: by 10.103.23.20 with SMTP id a20mr1368073muj.128.1224162019464; Thu, 16 Oct 2008 06:00:19 -0700 (PDT) Original-Received: by 10.103.215.10 with HTTP; Thu, 16 Oct 2008 06:00:19 -0700 (PDT) In-Reply-To: <48F72B5E.6040607@jhnet.nl> 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:44780 Archived-At: On Thu, Oct 16, 2008 at 1:54 PM, Jelle Huisman wrote: > Jelle Huisman wrote: >> Maybe I miss something, but it looks there is no rule=on command for use >> in columnsets? I just want a vertical line between the columns in my >> columnset, how do I get that? > > Answering myself: I have found this solution, using an MP background: > http://archive.contextgarden.net/message/20080305.203901.d1d3eccf.en.html > > %sample% > \definecolumnset[example][n=3,distance=5mm] > > \startuseMPgraphic{columnrule} > path p ; p := unitsquare xyscaled (OverlayWidth+5mm,OverlayHeight) ; > draw lrcorner p -- urcorner p ; > setbounds currentpicture to p ; > \stopuseMPgraphic \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][background=columnrule] > > \setupcolumnsetlines[example][2][1][-26] > \setupcolumnsetlines[example][2][2][-26] > \setupcolumnsetlines[example][2][3][-26] > > \starttext > > \startcolumnset[example] > \dorecurse{10}{\input knuth} > \stopcolumnset > > \stoptext > %/sample% > > The only problem is that the height of the columnrule is fixed, which > doesn't look right with balanced columns :-( Would it be possible to > force this MPgraphic{columnrule} to use the actual height of the > balanced columns, instead of going all the way down to the bottom of the > page regardless of the actual column height? Or should I give up on this > question? (I'm on MkII/XeTeX for this project, so no lua based solution > possible.) > > Many thanks, > > Jelle 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 : https://foundry.supelec.fr/projects/contextrev/ wiki : http://contextgarden.net ___________________________________________________________________________________