ntg-context - mailing list for ConTeXt users
 help / color / mirror / Atom feed
From: Jelle Huisman <jelle@jhnet.nl>
To: mailing list for ConTeXt users <ntg-context@ntg.nl>
Subject: Re: rule=on in \columnset?
Date: Thu, 16 Oct 2008 21:57:01 +0100	[thread overview]
Message-ID: <48F7AA9D.1020900@jhnet.nl> (raw)
In-Reply-To: <48F754AE.2030501@jhnet.nl>


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

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)

[-- Attachment #1.2: Type: text/html, Size: 1996 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 20:57 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
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 [this message]

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=48F7AA9D.1020900@jhnet.nl \
    --to=jelle@jhnet.nl \
    --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).