[NTG-context] Re: MetaPost behaviour differs between standalone and \startreusableMPgraphic

2025-02-19 Thread Aditya Mahajan
On Tue, 18 Feb 2025, Pavneet Arora via ntg-context wrote: > I am in the process of converting a bunch of old TikZ notepaper > templates to native ConTeXt and MetaPost. If speed is not a huge concern, you can directly use Tikz code in context, both as standalone code and also anywhere backgrou

[NTG-context] Re: MetaPost behaviour differs between standalone and \startreusableMPgraphic

2025-02-19 Thread luigi scarso
On Wed, 19 Feb 2025 at 04:41, Gavin via ntg-context wrote: > > I whole heatedly support converting TikZ to MetaPost! > I don't think it will happen soon, if ever . Instead, these two can be useful tools to have at hand: https://ipe.otfried.org/ https://asymptote.sourceforge.io/ -- luigi __

[NTG-context] Re: MetaPost behaviour differs between standalone and \startreusableMPgraphic

2025-02-19 Thread Hans Hagen
port converting TikZ to MetaPost! - Gavin \startreusableMPgraphic{graph} minor=2mm; % Minor lines, each every 2mm major=8mm; % Major lines, each every 4mm z1 = (0,0); % lower left corner % z2 = (2.75in,4.25in)-z1; % upper right corner z2 = (2.75in,4.25in)-z1;% upper right corne

[NTG-context] Re: MetaPost behaviour differs between standalone and \startreusableMPgraphic

2025-02-18 Thread Gavin via ntg-context
Hi Pavneet, I recommend avoiding the mod function. Just draw the two grids (major and minor) each with their own spacing and pen. I whole heatedly support converting TikZ to MetaPost! - Gavin \startreusableMPgraphic{graph} minor=2mm; % Minor lines, each every 2mm major=8mm; % Major

[NTG-context] MetaPost behaviour differs between standalone and \startreusableMPgraphic

2025-02-18 Thread Pavneet Arora via ntg-context
setuppapersize[PocketPage][letter,landscape] % }}}2 % MetaPost template for graph paper for pocket sized notebook (2.75" W x % 4.25in H). {{{2 \startreusableMPgraphic{graph} minor=2mm;| | % Minor lines, each every 2mm major=8mm;| | % Major lines, each every 4mm ┆ ┆ ┆ ┆ % major