Re: [NTG-context] Compiling a large metapost document

2022-06-01 Thread Stefan Nedeljkovic via ntg-context
ext < > ntg-context@ntg.nl> wrote: > > > > Just fixed the file, here is the new link: > https://drive.google.com/file/d/16jTzHbaqxPmhgmNaDOBRijlhlmUCnH4j/view?usp=sharing > > > > On Wed, Jun 1, 2022 at 4:48 PM Stefan Nedeljkovic > wrote: > > Dear list, >

Re: [NTG-context] Compiling a large metapost document

2022-06-01 Thread Bruce Horrocks via ntg-context
fan Nedeljkovic via ntg-context > wrote: > > Just fixed the file, here is the new link: > https://drive.google.com/file/d/16jTzHbaqxPmhgmNaDOBRijlhlmUCnH4j/view?usp=sharing > > On Wed, Jun 1, 2022 at 4:48 PM Stefan Nedeljkovic wrote: > Dear list, > > I have a large .t

Re: [NTG-context] Compiling a large metapost document

2022-06-01 Thread Stefan Nedeljkovic via ntg-context
Just fixed the file, here is the new link: https://drive.google.com/file/d/16jTzHbaqxPmhgmNaDOBRijlhlmUCnH4j/view?usp=sharing On Wed, Jun 1, 2022 at 4:48 PM Stefan Nedeljkovic wrote: > Dear list, > > I have a large .tex file with metapost embedded in it and want to compile > it,

[NTG-context] Compiling a large metapost document

2022-06-01 Thread Stefan Nedeljkovic via ntg-context
Dear list, I have a large .tex file with metapost embedded in it and want to compile it, but it fails. Here is a link to the file (~12MB): https://drive.google.com/file/d/1t-6mxFmGp-nzpl0RrPgNFq8KRvpplgDv/view?usp=sharing Do you know of a way to compile it? BTW, the file is automatically

[NTG-context] no update

2022-05-27 Thread Hans Hagen via ntg-context
Hi, no weekend update ... Mikael and I are working on / upgrading some math stuff (numbering) and don't want it to be too bad, as well as (new / improved) metapost stuff that we need to test first (and that also involves quite some experiments and documentation) Hans

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)

Re: [NTG-context] Metapost examples seems broken

2022-05-22 Thread Bruce Horrocks via ntg-context
It's archived here <https://web.archive.org/web/20210815171931/https://tex.loria.fr/prod-graph/zoonekynd/metapost/metapost.html> which might suffice until the author gets his certificates sorted out? > On 22 May 2022, at 09:41, Jan-Erik Hägglöf via ntg-context > wrote: > &g

Re: [NTG-context] Interactive checkbox in ConTeXt

2022-05-22 Thread Jan-Erik Hägglöf via ntg-context
Thank you for the useful tip. > > I’ve tested the example given below but ran into missing figure, maybe I need > to reconstruct the MetaPost file as mentioned in setup. Se attached example: > > Thanks in advance! > > /Jan-Erik > > \setupinteraction[state=start] >

Re: [NTG-context] Interactive checkbox in ConTeXt

2022-05-22 Thread Jan-Erik Hägglöf via ntg-context
Thank you for the useful tip. I’ve tested the example given below but ran into missing figure, maybe I need to reconstruct the MetaPost file as mentioned in setup. Se attached example: Thanks in advance! /Jan-Erik \setupinteraction[state=start] \setupexternalfigures[location=global

[NTG-context] Metapost examples seems broken

2022-05-22 Thread Jan-Erik Hägglöf via ntg-context
/zoonekynd/metapost/metapost.html <https://tex.loria.fr/prod-graph/zoonekynd/metapost/metapost.html> /Jan-Erik___ If your question is of interest to others as well, please add an entry to the Wiki! maillist

[NTG-context] MetaFun manual's "texvar" is not working for me

2022-05-21 Thread Gavin via ntg-context
> latin modern fonts are not preloaded languages > language 'en' is active system > synctex functionality is enabled, expect 5-10 pct runtime overhead! open source > level 1, order 2, name './ContractionExperiments.tex' fonts > preloading latin modern fonts (second

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 ConTeX

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

2022-05-20 Thread Mikael Sundqvist via ntg-context
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 pencircle scaled 5; > > endfig; > > >

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; > drawa

[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] Achieving the style of Jean-Luc Doumont

2022-05-20 Thread Susanne G. Loeber via ntg-context
han a complete recreation of his ideas. As I > learn Context and Metapost, I hope I will figure out how to recreate his > work. Sorry for the blog post :) > > Link to files: > > https://drive.google.com/drive/folders/1KpYbDlukvSCirKkFvJICOX3wABl_83bW?usp=sharing > &

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

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

2022-05-19 Thread śrīrāma via ntg-context
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 > function definitions. I guess I would have expected \startMPpage > instead. >

[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

[NTG-context] Achieving the style of Jean-Luc Doumont

2022-05-16 Thread Stefan Nedeljkovic via ntg-context
is pretty general, but any pointers would be welcome. Maybe the first thing useful would be the grid and how to position everything in accordance with it. I envisioned this thread more for discussion and suggestions than a complete recreation of his ideas. As I learn Context and Metapost, I hope I

Re: [NTG-context] upload

2022-05-11 Thread Zhichu Chen via ntg-context
d Do you mind get the new ones in the next beta? Best regards, Zhichu On 5/9/22 23:41, Hans Hagen via ntg-context wrote: Hi, I uploaded a new version of lmtx (also because some users have to test some new metapost functionality). In the next upload metafun will use 'double' mode (and scale

Re: [NTG-context] upload

2022-05-09 Thread Alexandre Christe via ntg-context
les. > > It looks like some old material got into the update. Is everything right? > > Massi > > Il 09/05/22 17:41, Hans Hagen via ntg-context ha scritto: > > Hi, > > > > I uploaded a new version of lmtx (also because some users have to test > > some ne

Re: [NTG-context] upload

2022-05-09 Thread mf via ntg-context
some new metapost functionality). In the next upload metafun will use 'double' mode (and scaledfun will be the traditional one). The advantage is less dager for overflows and in the meantime running in double mode is often also faster

[NTG-context] upload

2022-05-09 Thread Hans Hagen via ntg-context
Hi, I uploaded a new version of lmtx (also because some users have to test some new metapost functionality). In the next upload metafun will use 'double' mode (and scaledfun will be the traditional one). The advantage is less dager for overflows and in the meantime running in double mode

Re: [NTG-context] Math functions not typeset inside MetaPost

2022-04-19 Thread śrīrāma via ntg-context
On 4/19/22 8:22 PM Mikael Sundqvist via ntg-context wrote: > Thanks, this will be fixed in the next upload (that will take place > soon as far as I've heard). Thanks very much for the quick reply. Yes: it is fixed in the latest upload just now. Thanks, Sreeram

Re: [NTG-context] Math functions not typeset inside MetaPost

2022-04-19 Thread Mikael Sundqvist via ntg-context
On Tue, Apr 19, 2022 at 3:59 PM śrīrāma via ntg-context wrote: > > Hi Hans, > > [I am sending this again since the previous mails regarding were sent during > the weekend]. > > I am on the most recent upload of LMTX [2022.04.15 20:20]. However, when I try > to use math f

[NTG-context] Math functions not typeset inside MetaPost

2022-04-19 Thread śrīrāma via ntg-context
Hi Hans, [I am sending this again since the previous mails regarding were sent during the weekend]. I am on the most recent upload of LMTX [2022.04.15 20:20]. However, when I try to use math functions inside MetaPost strings, the function is not typeset correctly. Please consider

[NTG-context] Metafun, difficulty with graphical element in the margin, again.

2022-03-19 Thread Willi Egger via ntg-context
, lacking the background of the implementation… So here follows the section of the log with the error: metafun > log > metafun > log > error: Transform components aren't all known metafun > log > metapost> trace > (0,0,mfun_page_h

[NTG-context] Errors compiling the MetaFun manual

2022-03-12 Thread Marco Patzer via ntg-context
draw topath(a,--) ysized 2cm withpen pencircle scaled 1mm withcolor .625yellow ; drawpoints topath(a,--) ysized 2cm withpen pencircle scaled 1mm withcolor .625red ; drawpointlabels topath(a,--) ysized 2cm ; \stopMPcode \stoptext %% metapost> trace > unkno

Re: [NTG-context] \asciimode and MetaPost in LMTX result in “Isolated expression”

2022-03-12 Thread Marco Patzer via ntg-context
On Sat, 12 Mar 2022 22:27:38 +0100 Henning Hraban Ramm via ntg-context wrote: > My current and most MP-heavy project so far, fails in asciimode with > "Extra }, or forgotten \endgroup" You can't just run “normal” projects with \asciimode. Chances are, constructs are being used that are invalid

Re: [NTG-context] \asciimode and MetaPost in LMTX result in “Isolated expression”

2022-03-12 Thread Henning Hraban Ramm via ntg-context
Am 12.03.22 um 18:08 schrieb Marco Patzer via ntg-context: Maybe someone else with more MetaPost-heavy workflows¹ can test this, too? Marco ¹ Hraban? nudge, nudge… My use of MetaPost is very simple, I still don’t understand much... My current and most MP-heavy project so far, fails

Re: [NTG-context] \asciimode and MetaPost in LMTX result in “Isolated expression”

2022-03-12 Thread Marco Patzer via ntg-context
I run almost every document with \asciimode, so I can surely test that aspect, but I'm not using MetaPost a lot these days. I ran a few projects and it seems to work fine. But that's not what I'd call extensive testing. I think compiling the MetaPost manual would be a good test. But on my mach

Re: [NTG-context] new upload

2022-03-12 Thread Henning Hraban Ramm via ntg-context
Am 12.03.22 um 00:16 schrieb Hans Hagen via ntg-context: Hi, It has been a while since there was an updaste but there it is. The most significant 'changes' are: Thank you so much! Finally log files of reasonable size again. My latest book (with a lot MetaPost and image trickery) ran

Re: [NTG-context] \asciimode and MetaPost in LMTX result in “Isolated expression”

2022-03-12 Thread Hans Hagen via ntg-context
On 3/12/2022 3:35 PM, Marco Patzer via ntg-context wrote: On Mon, 31 Jan 2022 20:02:42 +0100 Marco Patzer via ntg-context wrote: LMTX seems to have an issue with \asciimode and MetaPost: \asciimode \starttext \startMPcode fill unitsquare scaled 2cm; \stopMPcode \stoptext Results

Re: [NTG-context] \asciimode and MetaPost in LMTX result in “Isolated expression”

2022-03-12 Thread Marco Patzer via ntg-context
On Mon, 31 Jan 2022 20:02:42 +0100 Marco Patzer via ntg-context wrote: > LMTX seems to have an issue with \asciimode and MetaPost: > > \asciimode > \starttext > \startMPcode > fill unitsquare scaled 2cm; > \stopMPcode > \stoptext > > Results in: >

[NTG-context] \asciimode and MetaPost in LMTX result in “Isolated expression”

2022-01-31 Thread Marco Patzer via ntg-context
Hi! LMTX seems to have an issue with \asciimode and MetaPost: \asciimode \starttext \startMPcode fill unitsquare scaled 2cm; \stopMPcode \stoptext Results in: metafun > log > error: Isolated expression metafun > log > metapost> trace > E.dash

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 > >

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

2022-01-20 Thread Hans Hagen via ntg-context
On 1/20/2022 3:42 PM, Hans Hagen via ntg-context wrote: next upload: \resetMPinstance[metafun:1] but try to avoid this because reloading takes time Hans - Hans Hagen | PRAGMA ADE

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

2022-01-20 Thread Hans Hagen via ntg-context
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 \ctxlua{metapost.reset("metafun:1")} \startMPcode u = 123; \stopMPcode \stoptext (the instance is reported on the console)

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

2022-01-20 Thread Hans Hagen via ntg-context
On 1/20/2022 2:59 PM, Vincent Hennebert via ntg-context wrote: 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

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

2022-01-20 Thread Aditya Mahajan via ntg-context
On Thu, 20 Jan 2022, Vincent Hennebert via ntg-context wrote: > 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

[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] Laundry symbols (now: altered picture)

2022-01-02 Thread Alfredo Catalina via ntg-context
xt > > > > But instead I got two huge sprites of 2.8 cm x 4.4 cm. > > > > Am I forgetting something? > Originally that worked because the image was always 'included' at

Re: [NTG-context] Laundry symbols (now: altered picture)

2022-01-02 Thread Hans Hagen via ntg-context
; \stopuseMPgraphic \useMPgraphic{mapa} \stoptext But instead I got two huge sprites of 2.8 cm x 4.4 cm. Am I forgetting something? Originally that worked because the image was always 'included' at 1 bp and then scaled but that was (1) inaccurate and (2) a bit depending on the image and (3) cou

Re: [NTG-context] measure layer/ ruler

2022-01-01 Thread Youssef Cherem via ntg-context
atex/contrib/fgruler> or koma > > script's \layercontentsmeasure? > a good opportunity to learn some metapost > > \startuniqueMPpagegraphic{ruler} > numeric n, f, sign ; > pair first, last; > if OnOddPage : > first := urcorner Page; > las

Re: [NTG-context] measure layer/ ruler

2022-01-01 Thread Hans Hagen via ntg-context
tps://www.ctan.org/tex-archive/macros/latex/contrib/fgruler> or koma script's \layercontentsmeasure? a good opportunity to learn some metapost \startuniqueMPpagegraphic{ruler} numeric n, f, sign ; pair first, last; if OnOddPage : first := urcorner Page; last := lrcorne

[NTG-context] Bug in mp-xbox.mpxl (circleit)

2021-12-22 Thread Jacob Kauffmann via ntg-context
("$X$")); drawboxed(a); \startMPpage The error (truncated) message: metapost> initializing instance 'metafun:1' using format 'metafun' and method 'default' metapost> loading 'metafun' as 'metafun.mpxl' using method 'default' metapost> initializing

Re: [NTG-context] MP: problem connecting paths.

2021-12-20 Thread Fabrice L via ntg-context
m is illustrated by the code (and the joined PDF) which >> follows. >> >> I draw random cycled forms (left part of the figure) and when they >> interact, they are modified to « fit together » (right part of the figure) . >> When building these new forms, I conne

Re: [NTG-context] MP: problem connecting paths.

2021-12-20 Thread Mikael Sundqvist via ntg-context
for exemple, to modify the blue circle, named « circleA », > I take the circle A from P1 to P2, then a segment from P2 to P1 and cycle to > have a closed path. So I should be able to do : > > newcircleA := circleA cutbefore P1 cutafter P2 & (P2 -- P1) & cycle ; > > The «

Re: [NTG-context] MP: problem connecting paths.

2021-12-20 Thread Fabrice L via ntg-context
ch; `&' will be changed to `..’."Which I do not understand since the paths « touch ». There was a similar question last year, without a clear answer («METAPOST subpath rounding issue »https://www.mail-archive.com/ntg-context@ntg.nl/msg94294.html).A solution is to ignore the repeating points :

Re: [NTG-context] MP: problem connecting paths.

2021-12-19 Thread Mikael Sundqvist via ntg-context
: > > "! Paths don't touch; `&' will be changed to `..’." > > Which I do not understand since the paths « touch ». There was a similar > question last year, without a clear answer (« > METAPOST subpath rounding issue > »https://www.mail-archive.com/ntg-context@nt

[NTG-context] MP: problem connecting paths.

2021-12-19 Thread Fabrice L via ntg-context
t;! Paths don't touch; `&' will be changed to `..’." Which I do not understand since the paths « touch ». There was a similar question last year, without a clear answer (« METAPOST subpath rounding issue »https://www.mail-archive.com/ntg-context@ntg.nl/msg94294.html). A solution is

Re: [NTG-context] tikzplot displacement result [solved]

2021-12-14 Thread Jan-Erik Hägglöf via ntg-context
and is > unnecessary. I don’t know what you are trying to do with the node{$h$}, but I > made it a label on the plot. > > The metafun graph module would also work for this plot, but it pgfplots is > more mature. I recommend using pgfplots unless you are already skilled with

Re: [NTG-context] tikzplot displacement result

2021-12-12 Thread Gavin via ntg-context
. I recommend using pgfplots unless you are already skilled with metapost. Hope that gets you going in the right direction. Gavin > On Dec 12, 2021, at 3:13 AM, Jan-Erik Hägglöf via ntg-context > wrote: > > HI! > > I’m trying to fit the funktion in the right place in t

Re: [NTG-context] Status of Asymptote

2021-12-07 Thread Hans Hagen via ntg-context
On 12/7/2021 7:29 AM, Aditya Mahajan via ntg-context wrote: On Mon, 6 Dec 2021, Alexandre Christe via ntg-context wrote: Dear all, I'd like to know what is the status of Asymptote in Context. To my knowledge, metapost/metafun only support 2D (except with the additional libraries from Roegel

Re: [NTG-context] Status of Asymptote

2021-12-06 Thread Aditya Mahajan via ntg-context
On Mon, 6 Dec 2021, Alexandre Christe via ntg-context wrote: > Dear all, > > I'd like to know what is the status of Asymptote in Context. To my > knowledge, metapost/metafun only support 2D (except with the additional > libraries from Roegel, which would have to be cleaned up a

Re: [NTG-context] Status of Asymptote

2021-12-06 Thread Fabrice L via ntg-context
redrawing with every run. > > TIkZ/pgfplots is the best short term solution for diagrams I need right now. > I am concerned that TikZ will eventually not work with ConTeXt, so for a long > term solution I am trying to make diagrams with Metapost, using Lua to do the > heavy

Re: [NTG-context] Status of Asymptote

2021-12-06 Thread Gavin via ntg-context
am concerned that TikZ will eventually not work with ConTeXt, so for a long term solution I am trying to make diagrams with Metapost, using Lua to do the heavy computational work. This is not easy, but the diagrams are super fast, and I think they will always work. Hope that helps. Gavin

[NTG-context] Status of Asymptote

2021-12-06 Thread Alexandre Christe via ntg-context
Dear all, I'd like to know what is the status of Asymptote in Context. To my knowledge, metapost/metafun only support 2D (except with the additional libraries from Roegel, which would have to be cleaned up a bit). Otherwise, what shall be used for 3D drawings in Context? TikZ? Something else

Re: [NTG-context] upload

2021-12-05 Thread Jairo A. del Rio via ntg-context
les) .. if something doesn't > work any more it might be because i missed a rename. > > - i finally decied that it does make sense to have native loops at the > primitive level (after all, metapost as macro language also has them) > and although much is possible in macros it does

[NTG-context] upload

2021-12-03 Thread Hans Hagen via ntg-context
at the primitive level (after all, metapost as macro language also has them) and although much is possible in macros it doesn't mean we have to do it the (often ugly and showing-off-by-abusing-side-effects way). We have just a constructor: \unexpandedloop 1 100 1 {.} and a fully expandable one

Re: [NTG-context] double underbars

2021-11-30 Thread Aditya Mahajan via ntg-context
ave that > option at all. There are backgroundoffset and frameoffset in framedtext ... not sure if they are inherited in text backgrounds. Or you can defining everything in metapost (but that may lose composability). https://tex.stackexch

Re: [NTG-context] Neovim and ConTeXt

2021-11-25 Thread Clint Grady via ntg-context
age) and \startluacode to do > > syntax highlighting for metapost and lua. > > I maintain the ConTeXt's plugin for Vim. It has async compilation > support, and context-sensitive (pun not intended) syntax highlighting. > All is explained in the wiki. I would expect syntax highlighting a

Re: [NTG-context] Neovim and ConTeXt

2021-11-25 Thread Nicola via ntg-context
highlighting for metapost and lua. I maintain the ConTeXt's plugin for Vim. It has async compilation support, and context-sensitive (pun not intended) syntax highlighting. All is explained in the wiki. I would expect syntax highlighting and mappings to be functional in NeoVim, too (async jobs are

Re: [NTG-context] Neovim and ConTeXt

2021-11-24 Thread Aditya Mahajan via ntg-context
..) which could be integrated. I don't know what is the current state of context syntax highlighting support in vim/neovim (I use a highly modifies syntax file). It will be nice to have support of \startMP(code|page) and \startluacode to do syntax highlighting for metapost and lua. Metafun has

Re: [NTG-context] Bug in lmt_arrow

2021-11-14 Thread Aditya Mahajan via ntg-context
r) > > Thanks! Works perfectly here. Spoke too soon. Now straight lines don't work: \starttext \startMPcode newpath p; ahfactor := 5; p := origin .. (3cm,0); draw lmt_arrow [ path = p, location = "percentage",

Re: [NTG-context] mp-geo Metapost package with ConTeXt

2021-10-22 Thread Hans Hagen via ntg-context
d down to 603309215 bytes Maybe I should try smaller files ;) Indeed: openstreetmap > processing file '/Users/hraban/Downloads/ConTeXt/Limburg.osm' openstreetmap > original size 12431810 bytes, stripped down to 8768209 bytes openstreetmap > xml data loaded openstreetmap

Re: [NTG-context] mp-geo Metapost package with ConTeXt

2021-10-22 Thread Henning Hraban Ramm via ntg-context
ng file '/Users/hraban/Downloads/ConTeXt/Bonn.osm' > openstreetmap > original size 713811948 bytes, stripped down to 603309215 > bytes > > > Maybe I should try smaller files ;) Indeed: openstreetmap > processing file '/Users/hraban/Downloads/ConTeXt/Limburg.osm' openstreetmap >

Re: [NTG-context] mp-geo Metapost package with ConTeXt

2021-10-22 Thread Hans Hagen via ntg-context
On 10/22/2021 11:31 AM, Henning Hraban Ramm via ntg-context wrote: Am 17.07.2021 um 12:45 schrieb Hans Hagen : \startMPpage draw lmt_openstreetmap [ filename = "hasselt.osm" grid = "dots", ] ; \stopMPpage The hasselt osm file is sime 12 MB, the colorful hasselt

Re: [NTG-context] mp-geo Metapost package with ConTeXt

2021-10-22 Thread Henning Hraban Ramm via ntg-context
> Am 17.07.2021 um 12:45 schrieb Hans Hagen : > > > \startMPpage >draw lmt_openstreetmap [ >filename = "hasselt.osm" >grid = "dots", >] ; > \stopMPpage > > The hasselt osm file is sime 12 MB, the colorful hasselt pdf file just below > 1 MB so that's okay (3.7 sec

Re: [NTG-context] Regular online meet-up

2021-10-11 Thread Henning Hraban Ramm via ntg-context
ccount, we can use the same “room” all the time: > https://lecture.senfcall.de/hen-rbr-rku-oke > I would have published the address later. > >> I hope that the “just finished meeting” was enjoyable, calm, not >> necessarily reposing and of course fruitful. > > It

[NTG-context] hatching an area without drawing its borders

2021-10-07 Thread Damien Thiriet via ntg-context
Hi, I read the 2015 thread Hatch an area with Metapost (Metafun) and started playing with anglestriped. However in my maps I would like to get my shapes hatched with no borders drawn. How can I achieve it? path p; p := fullcircle scaled 50 randomized 5; draw p anglestriped (1,60,4); Damien

Re: [NTG-context] Metafun's utflen not working in certain contexts

2021-10-05 Thread Jairo A. del Rio via ntg-context
m/questions/617597/how-can-i-use-luas-string-len-inside-a-metapost-function > > < > https://tex.stackexchange.com/questions/617597/how-can-i-use-luas-string-len-inside-a-metapost-function > >): > > > > \startMPinclusions > > > > vardef MotMystere(e

Re: [NTG-context] Metafun's utflen not working in certain contexts

2021-10-04 Thread Hans Hagen via ntg-context
On 10/3/2021 9:28 PM, Jairo A. del Rio via ntg-context wrote: Hi, list. The following works for MkIV, but not LMTX (adapted from here: https://tex.stackexchange.com/questions/617597/how-can-i-use-luas-string-len-inside-a-metapost-function <https://tex.stackexchange.com/questions/617597/how-

[NTG-context] Metafun's utflen not working in certain contexts

2021-10-03 Thread Jairo A. del Rio via ntg-context
Hi, list. The following works for MkIV, but not LMTX (adapted from here: https://tex.stackexchange.com/questions/617597/how-can-i-use-luas-string-len-inside-a-metapost-function ): \startMPinclusions vardef MotMystere(expr taille, speciale, index) = save avant,apres,case; numeric avant,apres

Re: [NTG-context] running tikz

2021-10-01 Thread Henri Menke via ntg-context
ke to use tikz to benefit of the package "pgf-soroban" > > > I > > > did write for LaTeX (after adapting it and before, later, to > > > translate it to metapost). > > > > > > I did try the sample program from the tikz manual, but I get an

Re: [NTG-context] running tikz

2021-10-01 Thread Hans Hagen via ntg-context
TeX (after adapting it and before, later, to translate it to metapost). I did try the sample program from the tikz manual, but I get an error saying that "t-pgf.tex" is not found; but it is in the tree of ConTeXt-lmtx. How to make all the files in the distribution known to t

Re: [NTG-context] running tikz

2021-09-30 Thread Aditya Mahajan via ntg-context
g it and before, later, to > > translate it to metapost). > > > > I did try the sample program from the tikz manual, but I get an error > > saying that "t-pgf.tex" is not found; but it is in the tree of > > ConTeXt-lmtx. > > > > How to make a

Re: [NTG-context] running tikz

2021-09-30 Thread Aditya Mahajan via ntg-context
On Thu, 30 Sep 2021, Alain Delmotte via ntg-context wrote: > > Hi! > > I would like to use tikz to benefit of the package "pgf-soroban" I did write > for > LaTeX (after adapting it and before, later, to translate it to metapost). > > I did try the sample p

Re: [NTG-context] running tikz

2021-09-30 Thread Hans Hagen via ntg-context
On 9/30/2021 11:57 AM, Alain Delmotte via ntg-context wrote: Hi! I would like to use tikz to benefit of the package "pgf-soroban" I did write for LaTeX (after adapting it and before, later, to translate it to metapost). I did try the sample program from the tikz manual, but I ge

Re: [NTG-context] running tikz

2021-09-30 Thread Alain Delmotte via ntg-context
TeX (after adapting it and before, later, to translate it to metapost). I did try the sample program from the tikz manual, but I get an error saying that "t-pgf.tex" is not found; but it is in the tree of ConTeXt-lmtx. How to make all the files in the distribution known to the compiler?

Re: [NTG-context] running tikz

2021-09-30 Thread Henri Menke via ntg-context
On Thu, 2021-09-30 at 11:57 +0200, Alain Delmotte via ntg-context wrote: > Hi! > > I would like to use tikz to benefit of the package "pgf-soroban" I > did write for LaTeX (after adapting it and before, later, to > translate it to metapost). > > I did try the samp

[NTG-context] running tikz

2021-09-30 Thread Alain Delmotte via ntg-context
Hi! I would like to use tikz to benefit of the package "pgf-soroban" I did write for LaTeX (after adapting it and before, later, to translate it to metapost). I did try the sample program from the tikz manual, but I get an error saying that

[NTG-context] new upload: --secure and 'dk' unit

2021-09-26 Thread Hans Hagen via ntg-context
\METAPOST\ aware of this unit because there it is just a numeric multiplier in a macro package. From Wikipedia: In issue 33, Mad published a partial table of the \quotation {Potrzebie System of Weights and Measures}, developed by 19-year-old Donald E. Knuth, later a famed computer

Re: [NTG-context] Regular online meet-up

2021-09-26 Thread Henning Hraban Ramm via ntg-context
. It was, and very inspiring. Of course, it was also too much information to process (I still can’t wrap my mind around MetaPost, even less LPEG). Hraban ___ If your question is of interest to others as well, please add

Re: [NTG-context] positioning of metapost figure

2021-09-12 Thread Sylvain Hubert via ntg-context
> > \startuniqueMPgraphic{concept} > > draw fullcircle scaled 1cm shifted (10cm,10cm); > > \stopuniqueMPgraphic > > \defineoverlay[concept][\uniqueMPgraphic{concept}] > > \setupbackgrounds[page][background=concept] > > \starttext > > . > > \stoptext > >

Re: [NTG-context] positioning of metapost figure

2021-09-12 Thread Hans Hagen via ntg-context
ay[concept][\uniqueMPgraphic{concept}] \setupbackgrounds[page][background=concept] \starttext . \stoptext How should the metapost background figure be positioned correctly? \startuniqueMPgraphic{concept} StartPage; draw fullcircle scaled 1cm shifted (10cm,10cm); draw Page withpen

[NTG-context] positioning of metapost figure

2021-09-12 Thread Sylvain Hubert via ntg-context
nd=concept] \starttext . \stoptext How should the metapost background figure be positioned correctly? Thanks! Best, Sylvain ___ If your question is of interest to others as well, please add an entry to the Wiki! mail

Re: [NTG-context] LuaMetaTEX as LaTeX to XHTML/ePub transpiler?

2021-09-11 Thread Hans Hagen via ntg-context
On 9/11/2021 1:19 PM, Hugh Fisher wrote: On Fri, 10 Sept 2021 at 21:47, Hans Hagen wrote: [ munch ] in this area there is nothing in luametatex that luatex can't do As in my earlier reply, I'm thinking about replacing Adobe Illustrator with Metapost, and LuaMetaTEX seems to have better

Re: [NTG-context] LuaMetaTEX as LaTeX to XHTML/ePub transpiler?

2021-09-11 Thread Hugh Fisher via ntg-context
On Fri, 10 Sept 2021 at 21:47, Hans Hagen wrote: > [ munch ] > > in this area there is nothing in luametatex that luatex can't do As in my earlier reply, I'm thinking about replacing Adobe Illustrator with Metapost, and LuaMetaTEX seems to have better integration? > > so, if y

Re: [NTG-context] LuaMetaTEX as LaTeX to XHTML/ePub transpiler?

2021-09-11 Thread Hugh Fisher via ntg-context
r art in the last non-subscription version of Adobe Illustrator, now approaching ten years old. I'll be trying out Metapost as a replacement. My markup isn't that complicated, so at worst I could translate by hand. But it occurs to me that if I get this markup to markup text translation going, I'd be

Re: [NTG-context] Use MetaPost to distort images?

2021-09-06 Thread Henning Hraban Ramm via ntg-context
> Am 06.09.2021 um 04:13 schrieb Aditya Mahajan via ntg-context > : > > On Sun, 5 Sep 2021, Henning Hraban Ramm via ntg-context wrote: > >> >>> Am 05.09.2021 um 10:10 schrieb Hans Hagen : BTW, here’s my script: Here are some results: >>> >>> Did you try that with the filter module?

Re: [NTG-context] Use MetaPost to distort images?

2021-09-05 Thread Aditya Mahajan via ntg-context
On Sun, 5 Sep 2021, Henning Hraban Ramm via ntg-context wrote: > > > Am 05.09.2021 um 10:10 schrieb Hans Hagen : > >> BTW, here’s my script: > >> Here are some results: > > > > Did you try that with the filter module? It would make it more portable > > I completely forgot I could do that (and

Re: [NTG-context] Use MetaPost to distort images?

2021-09-05 Thread Henning Hraban Ramm via ntg-context
> Am 05.09.2021 um 10:10 schrieb Hans Hagen : > > On 9/5/2021 9:40 AM, Henning Hraban Ramm via ntg-context wrote: >>> Am 04.09.2021 um 19:06 schrieb Hans Hagen : >>> >>> On 9/4/2021 2:18 PM, Henning Hraban Ramm via ntg-context wrote: >>> I guess it’s on me to write a wiki page about GM.

Re: [NTG-context] Use MetaPost to distort images?

2021-09-05 Thread Hans Hagen via ntg-context
On 9/5/2021 9:40 AM, Henning Hraban Ramm via ntg-context wrote: OTOH IM offers much more features (e.g. the geometric transformations I inquired about), and you can find lots of interesting examples (including the scripts Bruce mentioned). I couldn’t find another CLI tool that can do most of

Re: [NTG-context] Use MetaPost to distort images?

2021-09-05 Thread Hans Hagen via ntg-context
On 9/5/2021 9:40 AM, Henning Hraban Ramm via ntg-context wrote: Am 04.09.2021 um 19:06 schrieb Hans Hagen : On 9/4/2021 2:18 PM, Henning Hraban Ramm via ntg-context wrote: I guess it’s on me to write a wiki page about GM. you can then also add some comparison with im (i.e. what does it

Re: [NTG-context] Use MetaPost to distort images?

2021-09-05 Thread Henning Hraban Ramm via ntg-context
> Am 04.09.2021 um 19:06 schrieb Hans Hagen : > > On 9/4/2021 2:18 PM, Henning Hraban Ramm via ntg-context wrote: > >> I guess it’s on me to write a wiki page about GM. > > you can then also add some comparison with im (i.e. what does it offer more > than gm) Oh no... IM and GM have a

Re: [NTG-context] Use MetaPost to distort images?

2021-09-04 Thread Hans Hagen via ntg-context
On 9/4/2021 2:18 PM, Henning Hraban Ramm via ntg-context wrote: I guess it’s on me to write a wiki page about GM. you can then also add some comparison with im (i.e. what does it offer more than gm) Hans -

Re: [NTG-context] Use MetaPost to distort images?

2021-09-04 Thread Henning Hraban Ramm via ntg-context
> Am 03.09.2021 um 18:24 schrieb Hans Hagen via ntg-context > : > > On 9/3/2021 12:28 PM, Henning Hraban Ramm via ntg-context wrote: >> Hi, is it possible to apply geometric transformations to images using >> MetaPost? >> This is again way over my head, but I’m

Re: [NTG-context] Use MetaPost to distort images?

2021-09-04 Thread Henning Hraban Ramm via ntg-context
> Am 04.09.2021 um 00:16 schrieb Bruce Horrocks via ntg-context > : > > > >> On 3 Sep 2021, at 11:28, Henning Hraban Ramm via ntg-context >> wrote: >> >> Hi, is it possible to apply geometric transformations to images using >> MetaPost? >>

<    1   2   3   4   5   6   7   8   9   10   >