\framed feature request
Hello Hans, there are toffset, boffset, loffset and roffset parameters to \framed, and an offset parameter which sets all four (if I get it right). Would it be a trouble to add also hoffset (setting [l|]offset) and voffset (setting [t|b]offset)? Best, -- Marcin Borkowski
On Sat, 27 Aug 2011, Marcin Borkowski wrote:
Hello Hans,
there are toffset, boffset, loffset and roffset parameters to \framed, and an offset parameter which sets all four (if I get it right). Would it be a trouble to add also hoffset (setting [l|]offset) and voffset (setting [t|b]offset)?
\setupframed [loffset=\framedparameter{hoffset}, roffset=\framedparameter{hoffset}, hoffset=\zeropoint] \defineframed[test][hoffset=1cm] \starttext \test{test} \stoptext Aditya
On 27-8-2011 09:34, Aditya Mahajan wrote:
On Sat, 27 Aug 2011, Marcin Borkowski wrote:
Hello Hans,
there are toffset, boffset, loffset and roffset parameters to \framed, and an offset parameter which sets all four (if I get it right). Would it be a trouble to add also hoffset (setting [l|]offset) and voffset (setting [t|b]offset)?
\setupframed [loffset=\framedparameter{hoffset}, roffset=\framedparameter{hoffset}, hoffset=\zeropoint]
\defineframed[test][hoffset=1cm]
\starttext \test{test} \stoptext
a nice example for the wiki Hans ----------------------------------------------------------------- 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 -----------------------------------------------------------------
Dnia 2011-08-27, o godz. 11:02:31
Hans Hagen
On 27-8-2011 09:34, Aditya Mahajan wrote:
On Sat, 27 Aug 2011, Marcin Borkowski wrote:
Hello Hans,
there are toffset, boffset, loffset and roffset parameters to \framed, and an offset parameter which sets all four (if I get it right). Would it be a trouble to add also hoffset (setting [l|]offset) and voffset (setting [t|b]offset)?
\setupframed [loffset=\framedparameter{hoffset}, roffset=\framedparameter{hoffset}, hoffset=\zeropoint]
\defineframed[test][hoffset=1cm]
\starttext \test{test} \stoptext
a nice example for the wiki
Understood - I can add it (later today). But would it be a bad idea to add this to the ConTeXt core?
Hans
-- Marcin Borkowski
On 27-8-2011 13:14, Marcin Borkowski wrote:
But would it be a bad idea to add this to the ConTeXt core?
yes, as it slows down one of the core macros, add more to the documentation, and one never knows if we need hoffset some time later for another purpose Hans ----------------------------------------------------------------- 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 -----------------------------------------------------------------
Dnia 2011-08-27, o godz. 13:31:50
Hans Hagen
On 27-8-2011 13:14, Marcin Borkowski wrote:
But would it be a bad idea to add this to the ConTeXt core?
yes, as it slows down one of the core macros, add more to the documentation, and one never knows if we need hoffset some time later for another purpose
I see, thanks for explanation.
Hans
-- Marcin Borkowski
Dnia 2011-08-27, o godz. 13:14:14
Marcin Borkowski
Dnia 2011-08-27, o godz. 11:02:31 Hans Hagen
napisał(a): \setupframed [loffset=\framedparameter{hoffset}, roffset=\framedparameter{hoffset}, hoffset=\zeropoint]
\defineframed[test][hoffset=1cm]
\starttext \test{test} \stoptext
a nice example for the wiki
Understood - I can add it (later today).
Done - maybe in a suboptimal way (I'm not a wiki markup expert;)), but it's there.
But would it be a bad idea to add this to the ConTeXt core?
Hans
Best, -- Marcin Borkowski
participants (3)
-
Aditya Mahajan
-
Hans Hagen
-
Marcin Borkowski