Thanks Hans,
while I did experiment I had no chance at divining the correct dimension distance=-\dimexpr\textwidth+2mm below.
So, with that, my bare bones marginbar in the right margin could look like the one in the file below. Where do I squeeze in the alternative=1
option to get dotted lines? When I put it into \definesidebar, the sidebar disappears, and when I write \startsidebar[oeps,alternative=1]
it reverts to the default left sidebar (albeit dotted).
Matthias
\setupmargindata [left]
[location=right,
style=\bfxx]
\setupmarginframed[left]
[frame=on,
framecolor=darkgray,
corner=round,
offset=3pt,
width=2cm,
align=middle]
\definesidebar[oeps][rulecolor=blue,distance=-\dimexpr\textwidth+2mm,rulethickness=.1pt]
\starttexdefinition startRightbar
\bgroup
\startsidebar[oeps]
\stoptexdefinition
\starttexdefinition stopRightbar
\stopsidebar
\egroup
\stoptexdefinition
\starttext
\input knuth
Just a few lines of text before the marked text.
\inmargin{Don’t\\read\\me\\again}
\startRightbar
\input tufte
\stopRightbar
And a few lines of text after the marked text.
\stoptext
On May 19, 2014, at 5:36 PM, Hans Hagen
On 5/19/2014 9:59 PM, Rik Kabel wrote:
On 2014-05-19 12:41, Matthias Weber wrote:
Thanks again, Rik,
this works like a charm, with one exception: No matter what I try, the marginrule appears always in the left margin. Is there a way to change this?
Matthias Looking through the code in anch-bar.mkiv, there is nothing that I can see that supports placing marginrules, or the sidebars on which they are built, into the right margin. It looks like a job for Hans.
Hm, so you didn't experiment ...
\starttext
\definesidebar[whow][rulecolor=green,distance=0pt] \definesidebar[oeps][rulecolor=blue,distance=-\dimexpr\textwidth+2mm]
\input tufte \par \startsidebar \input tufte \par \input tufte \par \startsidebar[whow] \input tufte \par \input tufte \par \input tufte \stopsidebar \par \input tufte \par \input tufte \stopsidebar \par \input tufte \par \input tufte \par \startsidebar[oeps] \input tufte \par \input tufte \par \input tufte \par \input tufte \par \input tufte \stopsidebar \par \input tufte \par \input tufte \par \startsidebar \input tufte \input tufte \input tufte \input tufte \input tufte \stopsidebar
\stoptext
----------------------------------------------------------------- Hans Hagen | PRAGMA ADE Ridderstraat 27 | 8061 GH Hasselt | The Netherlands tel: 038 477 53 69 | voip: 087 875 68 74 | www.pragma-ade.com | www.pragma-pod.nl ----------------------------------------------------------------- ___________________________________________________________________________________ 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 : http://foundry.supelec.fr/projects/contextrev/ wiki : http://contextgarden.net ___________________________________________________________________________________