Re: [NTG-context] How to add margin around standalone MetaPost?

2022-05-24 Thread Vincent Hennebert via ntg-context
On Sat, 2022-05-21 at 07:39 +0530, śrīrāma wrote: > On 5/20/22 10:26 PM Vincent Hennebert via ntg-context wrote: > > Take the following MetaPost file: > > > > beginfig(0) > >   ahlength := 20; > >   linejoin := mitered; > >   drawarrow origin--(40,0) withpen pencircle scaled 5; > > endfig; > > >

Re: [NTG-context] How to add margin around standalone MetaPost?

2022-05-20 Thread śrīrāma via ntg-context
On 5/20/22 10:26 PM Vincent Hennebert via ntg-context wrote: > Take the following MetaPost file: > > beginfig(0) > ahlength := 20; > linejoin := mitered; > drawarrow origin--(40,0) withpen pencircle scaled 5; > endfig; > > Render it into PDF with ConTeXt. Witness the cut out ends of the

Re: [NTG-context] How to add margin around standalone MetaPost?

2022-05-20 Thread Mikael Sundqvist via ntg-context
Hi, Not sure if I understand the problem correctly. You could try \starttext \startMPpage[offset=3pt] ahlength := 20; linejoin := mitered; drawarrow origin--(40,0) withpen pencircle scaled 5; \stopMPpage \startMPpage[offset=1cm] ahlength := 20; linejoin := mitered; drawarrow

Re: [NTG-context] How to add margin around standalone MetaPost?

2022-05-20 Thread Bruce Horrocks via ntg-context
The arrow looks fine to me in ConTeXt ver: 2022.01.10 08:36 LMTX. (See attached PDF) > On 20 May 2022, at 17:56, Vincent Hennebert via ntg-context > wrote: > > Take the following MetaPost file: > > beginfig(0) > ahlength := 20; > linejoin := mitered; > drawarrow origin--(40,0) withpen

[NTG-context] How to add margin around standalone MetaPost?

2022-05-20 Thread Vincent Hennebert via ntg-context
Take the following MetaPost file: beginfig(0) ahlength := 20; linejoin := mitered; drawarrow origin--(40,0) withpen pencircle scaled 5; endfig; Render it into PDF with ConTeXt. Witness the cut out ends of the arrow. How to fix that? Being able to add some margin would be a solution, which