* rule=on in \columnset?
@ 2008-10-15 13:48 Jelle Huisman
2008-10-16 11:54 ` Jelle Huisman
0 siblings, 1 reply; 7+ messages in thread
From: Jelle Huisman @ 2008-10-15 13:48 UTC (permalink / raw)
To: mailing list for ConTeXt users
Hi all,
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?
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
___________________________________________________________________________________
^ permalink raw reply [flat|nested] 7+ messages in thread
* Re: rule=on in \columnset?
2008-10-15 13:48 rule=on in \columnset? Jelle Huisman
@ 2008-10-16 11:54 ` Jelle Huisman
2008-10-16 12:42 ` luigi scarso
2008-10-16 13:00 ` Wolfgang Schuster
0 siblings, 2 replies; 7+ messages in thread
From: Jelle Huisman @ 2008-10-16 11:54 UTC (permalink / raw)
To: mailing list for ConTeXt users
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
___________________________________________________________________________________
^ permalink raw reply [flat|nested] 7+ messages in thread
* Re: rule=on in \columnset?
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
1 sibling, 1 reply; 7+ messages in thread
From: luigi scarso @ 2008-10-16 12:42 UTC (permalink / raw)
To: mailing list for ConTeXt users
[-- 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
___________________________________________________________________________________
^ permalink raw reply [flat|nested] 7+ messages in thread
* Re: rule=on in \columnset?
2008-10-16 12:42 ` luigi scarso
@ 2008-10-16 12:59 ` Jelle Huisman
0 siblings, 0 replies; 7+ messages in thread
From: Jelle Huisman @ 2008-10-16 12:59 UTC (permalink / raw)
To: mailing list for ConTeXt users
[-- Attachment #1.1: Type: text/plain, Size: 626 bytes --]
luigi scarso wrote:
> Can you put on the wiki ?
I will do that, but preferably together with an answer to my question...
> 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.)
>
Jelle
[-- Attachment #1.2: Type: text/html, Size: 1275 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
___________________________________________________________________________________
^ permalink raw reply [flat|nested] 7+ messages in thread
* Re: rule=on in \columnset?
2008-10-16 11:54 ` Jelle Huisman
2008-10-16 12:42 ` luigi scarso
@ 2008-10-16 13:00 ` Wolfgang Schuster
2008-10-16 14:50 ` Jelle Huisman
1 sibling, 1 reply; 7+ messages in thread
From: Wolfgang Schuster @ 2008-10-16 13:00 UTC (permalink / raw)
To: mailing list for ConTeXt users
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
\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
___________________________________________________________________________________
^ permalink raw reply [flat|nested] 7+ messages in thread
* Re: rule=on in \columnset?
2008-10-16 13:00 ` Wolfgang Schuster
@ 2008-10-16 14:50 ` Jelle Huisman
2008-10-16 20:57 ` Jelle Huisman
0 siblings, 1 reply; 7+ messages in thread
From: Jelle Huisman @ 2008-10-16 14:50 UTC (permalink / raw)
To: mailing list for ConTeXt users
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...)
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
___________________________________________________________________________________
^ permalink raw reply [flat|nested] 7+ messages in thread
* Re: rule=on in \columnset?
2008-10-16 14:50 ` Jelle Huisman
@ 2008-10-16 20:57 ` Jelle Huisman
0 siblings, 0 replies; 7+ messages in thread
From: Jelle Huisman @ 2008-10-16 20:57 UTC (permalink / raw)
To: mailing list for ConTeXt users
[-- 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
___________________________________________________________________________________
^ permalink raw reply [flat|nested] 7+ messages in thread
end of thread, other threads:[~2008-10-16 20:57 UTC | newest]
Thread overview: 7+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2008-10-15 13:48 rule=on in \columnset? 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 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).