[dev-context] Local settings for frame borders

Wolfgang Schuster schuster.wolfgang at googlemail.com
Wed May 23 15:03:18 CEST 2012


Am 23.05.2012 um 06:43 schrieb Aditya Mahajan:

> Hi,
> 
> Currently it is not possible to individually set the thickness of the different borders of a frame. A typical use-case is typesetting a table row where the top frame is double the thichness of the bottom frame. Having to resort to metapost for something as simple as this is a bit annoying.
> 
> Attached is a metapost library that defines "local" fences and allows you to set border individually. For example
> 
> \defineframed[...][frame=off, topframe=local, topframethickness=1pt, bottomframe=local, bottomframethickness=0.5pt]
> 
> sets the top frame to be 1pt and the bottomframe to be 0.5pt.
> 
> Does it make sense to include this (appropriately modified) in the core? Or is it better to distribute such enhancements as a user module.

I modified your code to bring it in the same form as meta-imp-fen.mkiv. The best form of distribution is when Hans add it to the core because you can load it then with \useMPlibrary[…] in your document.

Wolfgang
-------------- next part --------------
A non-text attachment was scrubbed...
Name: meta-imp-loc.mkiv
Type: application/octet-stream
Size: 2108 bytes
Desc: not available
URL: <http://www.ntg.nl/pipermail/dev-context/attachments/20120523/d3c6b532/attachment.obj>


More information about the dev-context mailing list