ntg-context - mailing list for ConTeXt users
 help / color / mirror / Atom feed
From: "luigi scarso" <luigi.scarso@gmail.com>
To: "mailing list for ConTeXt users" <ntg-context@ntg.nl>
Subject: Re: rule=on in \columnset?
Date: Thu, 16 Oct 2008 14:42:57 +0200	[thread overview]
Message-ID: <fe8d59da0810160542i7ff3aeah5de63f9e5acff0d3@mail.gmail.com> (raw)
In-Reply-To: <48F72B5E.6040607@jhnet.nl>


[-- Attachment #1.1: Type: text/plain, Size: 2078 bytes --]

Can you put on the wiki ?

On Thu, Oct 16, 2008 at 1:54 PM, Jelle Huisman <jelle@jhnet.nl> 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
>
> \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
>
> ___________________________________________________________________________________
> 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
>
> ___________________________________________________________________________________
>



-- 
luigi

[-- Attachment #1.2: Type: text/html, Size: 3215 bytes --]

[-- Attachment #2: Type: text/plain, Size: 487 bytes --]

___________________________________________________________________________________
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
___________________________________________________________________________________

  reply	other threads:[~2008-10-16 12:42 UTC|newest]

Thread overview: 7+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2008-10-15 13:48 Jelle Huisman
2008-10-16 11:54 ` Jelle Huisman
2008-10-16 12:42   ` luigi scarso [this message]
2008-10-16 12:59     ` Jelle Huisman
2008-10-16 13:00   ` Wolfgang Schuster
2008-10-16 14:50     ` Jelle Huisman
2008-10-16 20:57       ` Jelle Huisman

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=fe8d59da0810160542i7ff3aeah5de63f9e5acff0d3@mail.gmail.com \
    --to=luigi.scarso@gmail.com \
    --cc=ntg-context@ntg.nl \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).