Thanks Aditya,
my metapost skills will probably not suffice to start this from scratch, but your hints made me dig around in the sources a little,
and in mp-apos.mpiv I found anch_sidebars_draw which not only draws the straight marginrules but also dotted ones, to
be invoked with \startmarginrule[2,alternative=1].
This confirms my suspicion that Hans has a time machine that allows him to implement features so that they are miraculously already available when requested.
I then tried to play around with this function a little, e.g. changing
dashed (withdots scaled (linewidth*2))
to
dashed evenly
but, to my embarrassment, it didn’t have any effect. Do I need to do something else besides saving the modified file to
have it take effect?
Thanks,
Matthias
On May 18, 2014, at 10:19 AM, Aditya Mahajan
On Sun, 18 May 2014, Matthias Weber wrote:
iii) Dream: Instead of solid margin rules I would love to have other options, like squiggly lines, dashed, dotted.
I don't have time to post a complete working example, but the normal way to achieve such features is to textbackground and let Metapost take care of the drawing. See the metafun manual for examples.
Also see this answer at tex.sx http://tex.stackexchange.com/a/125486/323 for some implementation ideas.
If you just need margin rules, you can also use background which are slightly simpler (less powerful but easier to work with) than textbackgrounds.
Aditya ___________________________________________________________________________________ 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 ___________________________________________________________________________________