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)

[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

Re: [NTG-context] Rendering Standalone MetaPost Graphics with ConTeXt

2022-05-19 Thread Vincent Hennebert via ntg-context
On Thu, 2022-05-19 at 14:23 +0530, śrīrāma wrote: > On 5/19/22 1:53 PM Vincent Hennebert via ntg-context wrote: > > Looking at the wiki, it seems that \startMPinclusions is not meant > > to > > actually render any content, just to include MetaPost code like > > func

[NTG-context] Rendering Standalone MetaPost Graphics with ConTeXt

2022-05-19 Thread Vincent Hennebert via ntg-context
I’d like to use MetaPost to generate all sorts of standalone graphics (ultimately converted to SVG). For various reasons (among others, MetaFun and advanced text processing) I want to use MetaPost as embedded in ConTeXt rather than a standalone installation. metapost.mp fill fullcircle

Re: [NTG-context] Reset environment between MetaPost graphics?

2022-01-21 Thread Vincent Hennebert via ntg-context
On Thu, 2022-01-20 at 15:47 +0100, Hans Hagen via ntg-context wrote: > On 1/20/2022 3:26 PM, Aditya Mahajan via ntg-context wrote: > > > AFAIK, there is no in-built support for this. > > FYEO: > > \starttext > > \startMPcode > u = 123; > \stopMPcode > >

[NTG-context] Reset environment between MetaPost graphics?

2022-01-20 Thread Vincent Hennebert via ntg-context
Hi, Say I’m writing a document containing many independent MetaPost figures. I don’t want to bother with enclosing each and every graphics in a ‘begingroup...endgroup’ with the appropriate ‘save’ statement. But I don’t want variables from previous graphics to leak into following ones either.

Re: [NTG-context] Emojis showing up in black instead of colours

2021-11-15 Thread Vincent Hennebert via ntg-context
On Fri, 2021-11-12 at 23:00 +0100, Pablo Rodriguez via ntg-context wrote: > On 11/12/21 7:08 PM, Vincent Hennebert via ntg-context wrote: > > Hi there, > > > > freshly upgraded LMTX installation. TwemojiMozilla.ttf downloaded > > from > > GitHub [1]. > >

[NTG-context] Emojis showing up in black instead of colours

2021-11-12 Thread Vincent Hennebert via ntg-context
Hi there, freshly upgraded LMTX installation. TwemojiMozilla.ttf downloaded from GitHub [1]. The following: \usemodule[fonts-emoji] \definefontfeature [overlay] [default] [ccmp=yes, colr=yes, dist=yes] \starttext

Re: [NTG-context] Create an enumeration style

2021-08-27 Thread Vincent Hennebert via ntg-context
On Wed, 2021-08-11 at 10:23 +0200, Hans Hagen via ntg-context wrote: > On 8/11/2021 10:09 AM, Otared Kavian via ntg-context wrote: > > > > > > > On 9 Aug 2021, at 18:10, Wolfgang Schuster via ntg-context > > cont...@ntg.nl> wrote: > > > (…) > > > core-con.lua (line 1155): > > > > > > local