Re: [NTG-context] Issue with rendering arrows in lmtx

2020-03-17 Thread mf
nt to have. Keep in mind this: - SVG rendering in metapost started as an experiment and it is still under development, even if you can already do some very interesting things with it - inkscape SVG is different from standard SVG, so the first thing you can try is saving as plain SVG

Re: [NTG-context] Can I share METAPOST vardefs over multiple pages?

2020-03-16 Thread Aditya Mahajan
On Mon, 16 Mar 2020, Gerben Wierda wrote: This worked when I was just doing METAPOST. Now, I am using my lua code to produce the METAPOST code that produces the pictures. And the picture itself is put in a file for METAPOST as follows: File test4-mplib-run-001.mp: % begin graphic: n=0

Re: [NTG-context] Can I share METAPOST vardefs over multiple pages?

2020-03-16 Thread Gerben Wierda
This worked when I was just doing METAPOST. Now, I am using my lua code to produce the METAPOST code that produces the pictures. And the picture itself is put in a file for METAPOST as follows: File test4-mplib-run-001.mp: % begin graphic: n=0 ; beginfig(1) ; defaultfont:="name:dejavu

Re: [NTG-context] METAPOST vardef returning multiple and non-numeric types as a single answer?

2020-03-16 Thread Gerben Wierda
Maybe a nice little explanation (educational with good examples) of ‘how to use pass by reference’ and ‘building and using complex data structures’ would be useful for people. Say, some ‘patterns’. G > On 16 Mar 2020, at 10:38, Hans Hagen wrote: > > that said, after muy share of mp

Re: [NTG-context] METAPOST vardef returning multiple and non-numeric types as a single answer?

2020-03-16 Thread Gerben Wierda
] := 5; > enddef; > numeric foo[]; > foo[1] = 6; > Foo(1,foo); This was initially complete gobbledegook to me. But I now think that after the last statement foo[1] equals 5. Very weird/counterintuitive that y[a] := 5 works here without the use of scantokens. The first one i

Re: [NTG-context] METAPOST vardef returning multiple and non-numeric types as a single answer?

2020-03-16 Thread Hans Hagen
s, of course. Main point: Metapost is not an easy language to grasp. If you want to really understand how it works, you should study the Metafont book by DEK. > As you can clearly see, even experienced users are likely to make mistakes. it's the mixture of delayed parsing and expansion and

Re: [NTG-context] Can is somehow inspect the intermediate results of an mtxrun?

2020-03-16 Thread Hans Hagen
On 3/16/2020 10:16 AM, Gerben Wierda wrote: I have an mtxrun on a .tex file that has problems I need to debug. The .tex file handles well, but whenMETAPOST has a go, it crashes. But after the run, I cannot inspect what source was fed to METAPOST. Can I inspect that (outside of what the log

Re: [NTG-context] METAPOST vardef returning multiple and non-numeric types as a single answer?

2020-03-16 Thread Taco Hoekwater
text y) = scantokens(y&":=5”); enddef; Foo("x"); This would work, but that is weird. This also works, and that is why I had the erroneous memory that it would work always: vardef Foo(expr a)(text y) = y[a] := 5; enddef; numeric foo[]; foo[1] = 6; Foo(1,f

[NTG-context] Can is somehow inspect the intermediate results of an mtxrun?

2020-03-16 Thread Gerben Wierda
I have an mtxrun on a .tex file that has problems I need to debug. The .tex file handles well, but whenMETAPOST has a go, it crashes. But after the run, I cannot inspect what source was fed to METAPOST. Can I inspect that (outside of what the log tells me)? In this case, I know METAPOST is fed

Re: [NTG-context] METAPOST vardef returning multiple and non-numeric types as a single answer?

2020-03-16 Thread Taco Hoekwater
> On 16 Mar 2020, at 09:53, Gerben Wierda wrote: > > Hola! So, the arguments passed to macros are by reference and not by value? I > could have known of course, they are simple expansions, but I’d like to be > sure. IfI assign to a variable inside a vardef macro and that variable is not >

Re: [NTG-context] METAPOST vardef returning multiple and non-numeric types as a single answer?

2020-03-16 Thread Gerben Wierda
annot access the components of the picture anymore with pathpart. >> >> I found metapost vardef returning multiple values on StackExchange but that >> is about returning multiple values of the same numeric type. Is it possible >> to have vardef return a set of (picture, p

Re: [NTG-context] Why do I see the outline of the green box in this METAPOST code?

2020-03-16 Thread Taco Hoekwater
Move the fills to within the image(), and build it up in stacking order. > On 14 Mar 2020, at 16:29, Gerben Wierda wrote: > > Code: > > vardef Foo(expr w, h, lh) = >save pth; path pth; >save pthtwo; path pthtwo; >save pththree; path pththree; >save pic; picture pic; >pth

Re: [NTG-context] METAPOST vardef returning multiple and non-numeric types as a single answer?

2020-03-16 Thread Taco Hoekwater
t. > > I found metapost vardef returning multiple values on StackExchange but that > is about returning multiple values of the same numeric type. Is it possible > to have vardef return a set of (picture, path) or (picture, picture) in some > way? If not, I need to make two vard

Re: [NTG-context] Is it possible to use the macOS Optima font in ConTeXt/METAPOST?

2020-03-15 Thread Pablo Rodriguez
On 3/15/20 4:54 PM, Gerben Wierda wrote: > Subject line says it all… Hi Gerben, this should work: \definefontfamily[mainface][rm][Optima] %~ \definefontfamily[mainface][rm][URW Classico] \setupbodyfont[mainface] \starttext This is Optima. \stoptext I need the commented

[NTG-context] Is it possible to use the macOS Optima font in ConTeXt/METAPOST?

2020-03-15 Thread Gerben Wierda
Subject line says it all… Thanks in advance, G ___ If your question is of interest to others as well, please add an entry to the Wiki! maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-context

Re: [NTG-context] ntg-context Digest, Vol 189, Issue 28

2020-03-15 Thread Yves Cloutier
ntg-context digest..." > > > Today's Topics: > >1. Source Code with Bolded Keywords (Yves Cloutier) >2. Re: Source Code with Bolded Keywords (Wolfgang Schuster) >3. Quizz (Fabrice Couvreur) >4. Re: Quizz (Henning Hraban Ramm) >5. METAPOST vardef returni

[NTG-context] METAPOST vardef returning multiple and non-numeric types as a single answer?

2020-03-15 Thread Gerben Wierda
I would like a vardef macro to return the pair of a picture and a bounding box. I don't want to use the setbound operator, because as soon as I do that, I cannot access the components of the picture anymore with pathpart. I found metapost vardef returning multiple values <ht

[NTG-context] Why do I see the outline of the green box in this METAPOST code?

2020-03-14 Thread Gerben Wierda
Code:vardef Foo(expr w, h, lh) =   save pth; path pth;   save pthtwo; path pthtwo;   save pththree; path pththree;   save pic; picture pic;   pth = fullsquare xysized (w, h);   pthtwo = fullsquare xysized (2*lh, lh) shifted (-w/2, 2.5*lh);   pththree = fullsquare xysized (2*lh, lh) shifted (-w/2,

Re: [NTG-context] Why does this METAPOST vardef 'save' statement fail?

2020-03-14 Thread Gerben Wierda
mment the bold line (first comment) a mtxrun fails. Whatever > I try, a single save statement, etc., I fail in getting a second local > variable. The METAPOST manual is no help. > > The error shown is: > > metapost log> ! Extra tokens will be flushed. > metapost log

[NTG-context] Why does this METAPOST vardef 'save' statement fail?

2020-03-14 Thread Gerben Wierda
here ); setbounds pic to pth; pic enddef ; As soon as I uncomment the bold line (first comment) a mtxrun fails. Whatever I try, a single save statement, etc., I fail in getting a second local variable. The METAPOST manual is no help. The error shown is: metapost log> ! Ex

Re: [NTG-context] Can I share METAPOST vardefs over multiple pages?

2020-03-14 Thread Gerben Wierda
> On 13 Mar 2020, at 14:59, Hans Hagen wrote: > > On 3/13/2020 2:33 PM, Aditya Mahajan wrote: >> On Fri, 13 Mar 2020, Taco Hoekwater wrote: >>> Hi, >>> >>> >>> On 13 Mar 2020, at 12:53, Gerben Wierda wrote: Suppose I have this code: Can I reuse that varied

Re: [NTG-context] Can I share METAPOST vardefs over multiple pages?

2020-03-13 Thread Hans Hagen
On 3/13/2020 2:33 PM, Aditya Mahajan wrote: On Fri, 13 Mar 2020, Taco Hoekwater wrote: Hi, On 13 Mar 2020, at 12:53, Gerben Wierda wrote: Suppose I have this code: Can I reuse that varied across follow-up MPPages? Sure, put the vardef inside \startMPinclusions: or

Re: [NTG-context] Can I share METAPOST vardefs over multiple pages?

2020-03-13 Thread Gerben Wierda
Thank you. And if I want these in a separate file, what is the correct way to include them? > On 13 Mar 2020, at 13:24, Taco Hoekwater wrote: > > Hi, > > > >> On 13 Mar 2020, at 12:53, Gerben Wierda wrote: >> >> Suppose I have this code: >> >> >> Can I reuse that varied across follow-up

Re: [NTG-context] Can I share METAPOST vardefs over multiple pages?

2020-03-13 Thread Aditya Mahajan
On Fri, 13 Mar 2020, Taco Hoekwater wrote: Hi, On 13 Mar 2020, at 12:53, Gerben Wierda wrote: Suppose I have this code: Can I reuse that varied across follow-up MPPages? Sure, put the vardef inside \startMPinclusions: or \startMPdefinitions ... \stopMPdefinitions (don't remember

Re: [NTG-context] Can I share METAPOST vardefs over multiple pages?

2020-03-13 Thread Taco Hoekwater
Hi, > On 13 Mar 2020, at 12:53, Gerben Wierda wrote: > > Suppose I have this code: > > > Can I reuse that varied across follow-up MPPages? Sure, put the vardef inside \startMPinclusions: \startMPinclusions vardef MyShape(expr w, h) = ... enddef ; \stopMPinclusions \startMPpage picture

[NTG-context] Can I share METAPOST vardefs over multiple pages?

2020-03-13 Thread Gerben Wierda
Suppose I have this code: \startMPpage vardef MyShape(expr w, h) = save pth; path pth ; save pic; picture pic; pth = fullsquare xysized (w, h); pic := image ( draw pth; % all kind of stuff here ); setbounds pic to pth; pic enddef ; picture s ; s :=

Re: [NTG-context] Problem with shading when using rotation (Metapost)

2020-03-03 Thread Fabrice Couvreur
Hi, No idea ? Thanks Fabrice Le sam. 29 févr. 2020 à 11:01, Fabrice Couvreur a écrit : > Hi, > Sorry to come back with my match problem. In fact, I do not understand > why a rotation of 90 influences the degraded color of the ends of the > matches. > Thank you. > Fabrice > > \starttext >

Re: [NTG-context] Question to installation ConTeXt from TeXlive

2020-03-01 Thread Tomas Hala
he Installer] # > # >+ Additional fonts # >+ ConTeXt etc. # >+ LuaTeX # >+ MetaPost and Metafont # # probably not as we have mplib buil tin # # >+ Recommended Fonts # >+ TeXWorks # # probably not unless you use it # # >+ Auxillary programmes for W. # # mkiv ... i gu

Re: [NTG-context] Up-to-date documentation / tutorials. Where?

2020-02-29 Thread Wolfgang Schuster
On Sat, 29 Feb 2020 12:10:13 +0100 Gerben Wierda wrote: > Hello community, > > I have been (unsuccessfully) hunting for up-to-date tutorials/documentation > on ConTeXt/LuaTeX/METAPOST. What I find is sites that for instance end in > 2011. documentation that is from 2013, o

[NTG-context] Up-to-date documentation / tutorials. Where?

2020-02-29 Thread Gerben Wierda
Hello community, I have been (unsuccessfully) hunting for up-to-date tutorials/documentation on ConTeXt/LuaTeX/METAPOST. What I find is sites that for instance end in 2011. documentation that is from 2013, or on Pragme-ADE a show-man.pdf PDF with an overview of documentation that doesn’t open

[NTG-context] Problem with shading when using rotation (Metapost)

2020-02-29 Thread Fabrice Couvreur
Hi, Sorry to come back with my match problem. In fact, I do not understand why a rotation of 90 influences the degraded color of the ends of the matches. Thank you. Fabrice \starttext \startMPcode def match (expr alpha, pos) = numeric l; l = 4.6cm; picture pic; pic = image (

Re: [NTG-context] Quick question about dual output pdf and epub

2020-02-28 Thread Hans Hagen
On 2/28/2020 2:52 PM, Christoph Hintermüller wrote: Second am i right that i have to use also startmode and stopmode to include svg image instead of metapost image in epub or is there some other trick to make metapost image in epub. What would be the keywords to use on wiki search

Re: [NTG-context] Error in MetaFun LMTX

2020-02-25 Thread Marcus Vinicius Mesquita
should be D := instead of D : = On Tue, Feb 25, 2020 at 2:35 PM Jan-Erik Hägglöf wrote: > The following code gives an error, my goal is to draw 4 different arrows > but only three functions successfully. > > The error log shows > > metapost> initializing number mod

Re: [NTG-context] Error in MetaFun LMTX

2020-02-25 Thread Hans Hagen
On 2/25/2020 6:34 PM, Jan-Erik Hägglöf wrote: The following code gives an error, my goal is to draw 4 different arrows but only three functions successfully. The error log shows metapost        > initializing number mode 'scaled' metapost log    > metapost log    > loading metafun,

Re: [NTG-context] Error in MetaFun LMTX

2020-02-25 Thread Jan-Erik Hägglöf
successfully. > > The error log shows > > metapost> initializing number mode 'scaled' > metapost log> > metapost log> loading metafun, including plain.mp version 1.004 for > metafun iv and xl > metapost log > > metapost log> >&

[NTG-context] Error in MetaFun LMTX

2020-02-25 Thread Jan-Erik Hägglöf
The following code gives an error, my goal is to draw 4 different arrows but only three functions successfully. The error log shows metapost> initializing number mode 'scaled' metapost log> metapost log> loading metafun, including plain.mp version 1.004 for metafun

Re: [NTG-context] metapost: remapping colors of an SVG picture

2020-02-20 Thread Hans Hagen
On 2/20/2020 10:29 AM, Jan U. Hasecke wrote: Am 18.02.20 um 19:24 schrieb Jan U. Hasecke: Am 18.02.20 um 19:17 schrieb mf: Il 18/02/20 19:07, Jan U. Hasecke ha scritto: Am 18.02.20 um 14:53 schrieb Hans Hagen: \setupcolors[rgb=no] \startMPcode draw lmt_svg [ filename = "sample.svg" ]

Re: [NTG-context] Howto metapost textext set or change basepoint (origin) baseline of text

2020-02-20 Thread Christoph Hintermüller
Hi Hans On Thu, 2020-02-20 at 10:28 +0100, Hans Hagen wrote: > On 2/20/2020 10:15 AM, Christoph Hintermüller wrote: > > You can append a palcement suffix, like: > >textext.dflt > > you can try: > >lft rt bot top ulft urt llft lrt d dflt drt origin raw > Thanks again. textext.origin

Re: [NTG-context] Howto metapost textext set or change basepoint (origin) baseline of text

2020-02-20 Thread Christoph Hintermüller
Hi Hans On Thu, 2020-02-20 at 10:28 +0100, Hans Hagen wrote: > On 2/20/2020 10:15 AM, Christoph Hintermüller wrote: > > > You can append a palcement suffix, like: > >textext.dflt > > you can try: > >lft rt bot top ulft urt llft lrt d dflt drt origin raw > Thank you very much, that

Re: [NTG-context] metapost: remapping colors of an SVG picture

2020-02-20 Thread Jan U. Hasecke
Am 18.02.20 um 19:24 schrieb Jan U. Hasecke: > Am 18.02.20 um 19:17 schrieb mf: >> Il 18/02/20 19:07, Jan U. Hasecke ha scritto: >>> Am 18.02.20 um 14:53 schrieb Hans Hagen: >>> \setupcolors[rgb=no] \startMPcode draw lmt_svg [ filename = "sample.svg" ] ; \stopMPcode >>> I

Re: [NTG-context] Howto metapost textext set or change basepoint (origin) baseline of text

2020-02-20 Thread Hans Hagen
On 2/20/2020 10:15 AM, Christoph Hintermüller wrote: Hi I have the following problem. I convert a eps file using pstoedit into meta post file. When running this file through mptopdf the resulting pdf image is as expected. When i include, using the input command, the file within a startMPcode

[NTG-context] Howto metapost textext set or change basepoint (origin) baseline of text

2020-02-20 Thread Christoph Hintermüller
Hi I have the following problem. I convert a eps file using pstoedit into meta post file. When running this file through mptopdf the resulting pdf image is as expected. When i include, using the input command, the file within a startMPcode endMPcode or startMPpage stopMPpage after replacing

Re: [NTG-context] metapost: remapping colors of an SVG picture

2020-02-18 Thread Jan U. Hasecke
Am 18.02.20 um 19:17 schrieb mf: > Il 18/02/20 19:07, Jan U. Hasecke ha scritto: >> Am 18.02.20 um 14:53 schrieb Hans Hagen: >> >>> \setupcolors[rgb=no] >>> \startMPcode >>> draw lmt_svg [ filename = "sample.svg" ] ; >>> \stopMPcode >> I get this error. >> >> ! Not implemented: (unknown

Re: [NTG-context] metapost: remapping colors of an SVG picture

2020-02-18 Thread mf
Il 18/02/20 19:07, Jan U. Hasecke ha scritto: Am 18.02.20 um 14:53 schrieb Hans Hagen: \setupcolors[rgb=no] \startMPcode     draw lmt_svg [ filename = "sample.svg" ] ; \stopMPcode I get this error. ! Not implemented: (unknown numeric)=(string). ] <*> ... ; p := lmt_svg [ filename =

Re: [NTG-context] metapost: remapping colors of an SVG picture

2020-02-18 Thread Jan U. Hasecke
Am 18.02.20 um 14:53 schrieb Hans Hagen: > > \setupcolors[rgb=no] > \startMPcode >     draw lmt_svg [ filename = "sample.svg" ] ; > \stopMPcode I get this error. ! Not implemented: (unknown numeric)=(string). ] <*> ... ; p := lmt_svg [ filename = "sample.svg" ] juh

Re: [NTG-context] Question to installation ConTeXt from TeXlive

2020-02-18 Thread Hans Hagen
or possible to use with ConTeXt MkIV (on W.). (The aim is not to install unusable stuff.) Legend: %=I guess no +=I guess yes ?=I am not sure [translated from the Czech version of the Installer] + Additional fonts + ConTeXt etc. + LuaTeX + MetaPost and Metafont probably not as we have mplib buil tin

Re: [NTG-context] metapost: remapping colors of an SVG picture

2020-02-18 Thread Hans Hagen
p ; draw p shifted ( bbwidth(p) + 5mm, 0) ; \stopMPcode \stoptext \setupcolors[rgb=no] \startMPcode draw lmt_svg [ filename = "sample.svg" ] ; \stopMPcode but recolor gives an error: metapost log    > >> picture metapost log    > ! Wrong picture color model: redpart of gre

[NTG-context] Question to installation ConTeXt from TeXlive

2020-02-18 Thread Tomas Hala
.). (The aim is not to install unusable stuff.) Legend: %=I guess no +=I guess yes ?=I am not sure [translated from the Czech version of the Installer] + Additional fonts + ConTeXt etc. + LuaTeX + MetaPost and Metafont + Recommended Fonts + TeXWorks + Auxillary programmes for W. % Additional

[NTG-context] metapost: remapping colors of an SVG picture

2020-02-18 Thread mf
) + 5mm, 0) ; \stopMPcode \stoptext but recolor gives an error: metapost log> >> picture metapost log> ! Wrong picture color model: redpart of grey object. metapost log> _f_:=(redpart(EXPR0), metapost log> greenpart(EXPR0),bluepart(EXPR0));if.bou... metapost log

Re: [NTG-context] Any plans for an active color management?

2020-02-17 Thread Henning Hraban Ramm
t to CMYK with the above cited profile chain? Mmm, no. Acrobat Pro can do proper profile conversions of graphics. Don’t know another tool. > Or shall I tell the designer: These are the values I need as CMYK, just > do it. Exactly ;) Unfortunately they can’t really do that with Inkscape.

Re: [NTG-context] Any plans for an active color management?

2020-02-17 Thread Jan U. Hasecke
to CMYK with the above cited profile chain? Or shall I tell the designer: These are the values I need as CMYK, just do it. > Colors that you define in TeX or Metapost are a different problem. I > *think* they should use the output intent as their profile. But I > don’t know if the intent option

Re: [NTG-context] Any plans for an active color management?

2020-02-17 Thread Henning Hraban Ramm
system that will work world-wide, even if HKS is still usual in Germany and Toyo in Japan.) It could also work to use spot colors and have the printshop convert them to “their” CMYK profile. Colors that you define in TeX or Metapost are a different problem. I *think* they should use the output

Re: [NTG-context] Metapost and TikZ color code equivalent

2020-02-15 Thread Hans Hagen
On 2/15/2020 12:25 PM, Fabrice Couvreur wrote: Hi Henri, Why does the blue path not rotate 90 with the draw command but rotate with the fill command? compare draw origin -- (0,0.2cm) -- (4cm,0.2cm) -- (4cm,0) -- (4.1cm,-0.05cm) -- (0.1cm,-0.05cm) -- cycle rotated alpha withcolor red;

Re: [NTG-context] Metapost and TikZ color code equivalent

2020-02-15 Thread Floris van Manen
On 15-02-2020 12:25, Fabrice Couvreur wrote: > Hi Henri, > Why does the blue path not rotate 90 with the draw command but rotate > with the fill command? > Why not draw the match as a picture first, then rotate and shift that picture? Also, if you use a local scale unit, it will be easier to

Re: [NTG-context] Metapost and TikZ color code equivalent

2020-02-15 Thread Fabrice Couvreur
en. 14 févr. 2020 à 16:43, Fabrice L a > écrit : > >> Hi, >> >> Le 13 févr. 2020 à 16:45, Fabrice Couvreur >> a écrit : >> >> >> How to have the color defined by {yellow!60!black} with Metapost

Re: [NTG-context] Metapost and TikZ color code equivalent

2020-02-14 Thread Fabrice Couvreur
it : > Hi, > > Le 13 févr. 2020 à 16:45, Fabrice Couvreur > a écrit : > > > How to have the color defined by {yellow!60!black} with Metapost ? > > > color MyColor ; MyColor := .6[yellow,black] ; > > See metafun manual, section 1.13. >

Re: [NTG-context] Metapost and TikZ color code equivalent

2020-02-14 Thread Fabrice L
Hi, > Le 13 févr. 2020 à 16:45, Fabrice Couvreur a > écrit : > How to have the color defined by {yellow!60!black} with Metapost ? color MyColor ; MyColor := .6[yellow,black] ; See metafun manual, section 1.13. > Thank you. > Fabrice Fabri

Re: [NTG-context] Metapost and TikZ color code equivalent

2020-02-14 Thread Fabrice Couvreur
i Henri, Thank you for your answer. The idea is to make the graph as an attachment. I converted to Metapost but the road is still long! The code is from percusse on StackExchange. As you can see, there is a problem with the ellipse. How do I fix this ? Thank you Fabrice \usemodule[tikz

Re: [NTG-context] Metapost and TikZ color code equivalent

2020-02-13 Thread Henri Menke
On 2/14/20 10:45 AM, Fabrice Couvreur wrote: > Hi, > How to have the color defined by {yellow!60!black} with Metapost ? \usemodule[tikz] \starttext \startMPcode fill fullsquare scaled 1cm withcolor (.6yellow + black) ; \stopMPcode \starttikzpicture \fill[yellow!60!black] (0,0) rectangl

[NTG-context] Metapost and TikZ color code equivalent

2020-02-13 Thread Fabrice Couvreur
Hi, How to have the color defined by {yellow!60!black} with Metapost ? Thank you. Fabrice ___ If your question is of interest to others as well, please add an entry to the Wiki! maillist : ntg-context@ntg.nl / http

Re: [NTG-context] macro that does not work (Metapost)

2020-02-11 Thread Fabrice Couvreur
Hi Mikael, Thanks. Fabrice Le mar. 11 févr. 2020 à 14:01, Mikael P. Sundqvist a écrit : > On Tue, Feb 11, 2020 at 1:22 PM Fabrice Couvreur < > fabrice1.couvr...@gmail.com> wrote: > >> Hi Hans, >> I tried this but without success : >> >> \startMPcode >> suite{1,0}; >> suite{2,1}; >>

Re: [NTG-context] macro that does not work (Metapost)

2020-02-11 Thread Mikael P. Sundqvist
On Tue, Feb 11, 2020 at 1:22 PM Fabrice Couvreur < fabrice1.couvr...@gmail.com> wrote: > Hi Hans, > I tried this but without success : > > \startMPcode > suite{1,0}; > suite{2,1}; > \stopMPcode > > Fabrice > > Le mar. 11 févr. 2020 à 13:08, Hans Hagen a écrit : > >> On 2/11/2020

Re: [NTG-context] macro that does not work (Metapost)

2020-02-11 Thread Fabrice Couvreur
Hi Hans, I tried this but without success : \startMPcode suite{1,0}; suite{2,1}; \stopMPcode Fabrice Le mar. 11 févr. 2020 à 13:08, Hans Hagen a écrit : > On 2/11/2020 11:50 AM, Fabrice Couvreur wrote: > > Hi, > > I have some problems with the following macro : > > > > tex error

Re: [NTG-context] macro that does not work (Metapost)

2020-02-11 Thread Hans Hagen
On 2/11/2020 11:50 AM, Fabrice Couvreur wrote: Hi, I have some problems with the following macro : tex error       > mp error on line 23 in file /home/viserion/macro.tex: ! Missing argument to suite. { <*> suite{ 1,0}; suite(2,1); ; That macro has more parameters than you thought. I'll

[NTG-context] macro that does not work (Metapost)

2020-02-11 Thread Fabrice Couvreur
Hi, I have some problems with the following macro : tex error > mp error on line 23 in file /home/viserion/macro.tex: ! Missing argument to suite. { <*> suite{ 1,0}; suite(2,1); ; That macro has more parameters than you thought. I'll continue by pretending that each missing argument is

[NTG-context] New to metapost, could use some help with first steps

2020-02-02 Thread Gerben Wierda
Hans was so kind to help me with a setup for some generated output. I am trying to understand every line of his example so I can expand on his exmaple to make it fully functional. In his example there is: context('draw

Re: [NTG-context] A question about whatever (Metapost)

2020-01-26 Thread Alan Braslau
What error are you getting? (perhaps you need "save carre,p,a,b,c,d,N,P,M ;") A perpendicular line is also the line "rotated 90" (about the intersection point). Alan On Sun, 26 Jan 2020 00:09:38 +0100 Fabrice Couvreur wrote: > Hi, > The point M is such that the line (CM) is perpendicular to

[NTG-context] A question about whatever (Metapost)

2020-01-25 Thread Fabrice Couvreur
Hi, The point M is such that the line (CM) is perpendicular to the line (NP). I do not understand the error of this code. Thank you Fabrice \usecolors[xwi] \starttext \startMPcode path carre, p; carre = unitsquare scaled 138; pair a, b, c, d, N, P, M; a = point 0 of carre; b = point 1

Re: [NTG-context] Quotation dash issues with semantic markup

2019-12-30 Thread Hans Hagen
= true, width= 15, height = 2.1, depth= 0, ] ; lmt_registerglyph [ category = "symbols", unicode = "0x2015", code = "QuotationDash ;" ] ; \stopMPcalculation \definefontfeature[default][default][metapost=symbols] % \showg

Re: [NTG-context] How to use in Metafun, a function defined in Lua

2019-12-28 Thread Hans Hagen
n-example.tex Here one sees that the function « document.myfunction » is well defined in Lua and is known in ConTeXt, but I cannot use it in a Metapost code: how can one do that? you confuse lua and mp functions \startluacode function MP.myfunction(n,x) return math.sin(n*x)

[NTG-context] How to use in Metafun, a function defined in Lua

2019-12-28 Thread Otared Kavian
« document.myfunction » is well defined in Lua and is known in ConTeXt, but I cannot use it in a Metapost code: how can one do that? Thanks in advance for any help. Best regards: Otared ___ If your question is of i

Re: [NTG-context] Tent style cards

2019-12-22 Thread Pavneet Arora
-list daemon will let through a PDF, but I am enclosing the current (almost final) version of the table place card (with my daughter's name). The figure to the left is an Apollonius Gasket of tangential circles made with MetaPost signifying all the family connections that each partner brings

Re: [NTG-context] setting the color of cropmarks

2019-12-20 Thread mf
This is a dirty hack to change the color of the crop marks and the page number at the corner of a page when \setuplayout[marking=on]. Edit the file: tex/texmf-context/metapost/context/base/mpiv/mp-crop.mpiv in the distribution, changing two lines: - (here i'm reproducing only the last

Re: [NTG-context] setting the color of cropmarks

2019-12-19 Thread Henning Hraban Ramm
ound for the page. > I've seen there's something about that in the mailing list history. I'll look > into that. > > BTW, the MP file producing the marks is > > metapost/context/base/mpiv/mp-crop.mpiv Sorry for mixing up marks and markings. > Am 2019-12-19 um 19:08 schrieb Han

Re: [NTG-context] setting the color of cropmarks

2019-12-19 Thread mf
for the page. I've seen there's something about that in the mailing list history. I'll look into that. BTW, the MP file producing the marks is metapost/context/base/mpiv/mp-crop.mpiv Massi ___ If your question

Re: [NTG-context] problem with a new installation of LMTX

2019-12-08 Thread Mojca Miklavec
ed after mtxrun. > > > > "context —make" is running, but no format. > > > > I checked folders after the installation. > > Folders, texmf-cache, texmf-fonts, texmf-local, texmf-modules, > > texmf-project are empty. > > texmf folder contains {fonts

Re: [NTG-context] problem with a new installation of LMTX

2019-12-07 Thread Richard Mahoney | Indica et Buddhica
texmf-cache, texmf-fonts, texmf-local, texmf-modules, > texmf-project are empty. > texmf folder contains {fonts,metapost, tex,web2c} > texmf-context folder contains {colors,context,doc} > However, I couldn’t find base files, script files, etc. > Is it normal? Is it rela

Re: [NTG-context] problem with a new installation of LMTX

2019-12-07 Thread Otared Kavian
run. > > "context —make" is running, but no format. > > I checked folders after the installation. > Folders, texmf-cache, texmf-fonts, texmf-local, texmf-modules, texmf-project > are empty. > texmf folder contains {fonts,metapost, tex,web2c} > texmf-context folder con

Re: [NTG-context] problem with a new installation of LMTX

2019-12-07 Thread Hans Hagen
stallation. Folders, texmf-cache, texmf-fonts, texmf-local, texmf-modules, texmf-project are empty. texmf folder contains {fonts,metapost, tex,web2c} texmf-context folder contains {colors,context,doc} However, I couldn’t find base files, script files, etc. Is it normal? Is it related with Catalina? I ha

Re: [NTG-context] problem with a new installation of LMTX

2019-12-07 Thread Jeong Dal
exmf-local, texmf-modules, texmf-project are empty. texmf folder contains {fonts,metapost, tex,web2c} texmf-context folder contains {colors,context,doc} However, I couldn’t find base files, script files, etc. Is it normal? Is it related with Catalina? Have a nice weekend. Best regards,

[NTG-context] Impacts Project

2019-12-05 Thread Thangalin
in the timeline. Using MetaPost, the date for the timeline is read directly from the document, then plotted relative to the \overlaywidth. Changing the date in the Markdown document winds up repositioning the timeline dot automagically. https://impacts.to/ The book is going to be released under a CC

Re: [NTG-context] Transparency (Metapost)

2019-12-01 Thread Wolfgang Schuster
Fabrice Couvreur schrieb am 01.12.2019 um 21:56: Hi Hans, I updated lmtx, but your code does not compile except that the output is a pdf file where it is written ERROR. Can you clear the cache. Wolfgang ___ If

Re: [NTG-context] Transparency (Metapost)

2019-12-01 Thread Hans Hagen
On 12/1/2019 11:32 AM, Fabrice Couvreur wrote: Hello Thank you for your suggestion. However, it works with context and not with lmtx. Fabrice \starttext \startMPcode    defaultfont := "texgyrepagella-regular*default" ;    defaultscale :=0.8;    color brown;    brown = (0.128,0.00,0.00);

Re: [NTG-context] Transparency (Metapost)

2019-12-01 Thread Fabrice Couvreur
Hello Thank you for your suggestion. However, it works with context and not with lmtx. Fabrice \starttext \startMPcode defaultfont := "texgyrepagella-regular*default" ; defaultscale :=0.8; color brown; brown = (0.128,0.00,0.00); path twos, threes, sixes; twos = fullcircle

Re: [NTG-context] Transparency (Metapost)

2019-11-30 Thread Jeong Dal
> \ Dear Fabrice, I got color and transparency using the following command in LMTX(metafun). fill p withcolor yellow withtransparency(1, .75); I hope that it helps. Best regards, Dalyoung___ If your question is

[NTG-context] Transparency (Metapost)

2019-11-30 Thread Fabrice Couvreur
Hello, I have a little trouble with the management of transparency : the colors are not respected. Thank you. Fabrice \starttext \startMPcode defaultfont := "texgyrepagella-regular*default" ; defaultscale :=0.8; color brown; brown = (0.165,0.42,0.42); path twos, threes; twos =

[NTG-context] beta

2019-10-28 Thread Hans Hagen
[svgtest] \stopTEXpage \startTEXpage \includesvgbuffer[svgtest][offset=2bp] \stopTEXpage or in metapost disguise: \startMPpage vardef svg expr c = lmt_svg [ code = c ] enddef ; draw svg " " ; \stopMPpage It is not a replacement for metapost (which is more

Re: [NTG-context] LTMX crashes on OpenBSD 6.5 amd64

2019-10-20 Thread Hans Hagen
d in backend, 0 common vectors, 1 common hashes, load time 0.321 seconds mkiv lua stats > metapost: 0.005 seconds, loading: 0.122, execution: 0.004, n: 3, average: 0.043, instances: 1, luacalls: 223, memory: 3.265 M mkiv lua stats > graphics processing time: 0.005 seconds including tex, 1 p

[NTG-context] LTMX crashes on OpenBSD 6.5 amd64

2019-10-20 Thread Damien Thiriet
s, load time 0.321 seconds mkiv lua stats > metapost: 0.005 seconds, loading: 0.122, execution: 0.004, n: 3, average: 0.043, instances: 1, luacalls: 223, memory: 3.265 M mkiv lua stats > graphics processing time: 0.005 seconds including tex, 1 processed images, 1 unique asked, 1 bad names mkiv

[NTG-context] Problem inserting image within MP

2019-10-10 Thread context
> language 'en' is active open source > level 2, order 3, name 'D://Lukas/Jobs/_Px/Present/Px-2019/_/t.mkiv' fonts > preloading latin modern fonts (second stage) fonts > 'fallback modern-designsize rm 12pt' is loaded metapost > initializing i

Re: [NTG-context] After a long time I tried:

2019-10-07 Thread Hans Hagen
'context-test', input './context-test', result 'context-test' fonts   > 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 2, order 3, name './contex

[NTG-context] After a long time I tried:

2019-10-07 Thread Ursula Hermann
n modern fonts are not preloaded languages > language 'en' is active system > synctex functionality is enabled, expect 5-10 pct runtime overhead! open source > level 2, order 3, name './context-test.tex' fonts > preloading latin modern fonts (second stage) fo

[NTG-context] new (lmtx) beta

2019-10-04 Thread Hans Hagen
color[KindergartenEqual] [darkgreen] \definecolor[KindergartenPlus] [darkred] \definecolor[KindergartenMinus] [darkred] \definecolor[KindergartenTimes] [darkblue] \definecolor[KindergartenDivided][darkblue] \definefontfeature [mathextra] [metapost=kindergarten] \setupbodyfont[dejavu] \

Re: [NTG-context] general syntax for startparagraph command

2019-09-29 Thread Jeroen
gt; > I am trying to get the following with the 1 elevated and 2 above the = > > character. The square brackets and all in between I would like italic > > and OPT below both terms. > > > > *\startparagraph [.1..] [..,..2=..,..] ..**.\stopparagraph* > > > &g

Re: [NTG-context] general syntax for startparagraph command

2019-09-29 Thread Wolfgang Schuster
anybody be able to help. Would Metapost be needed here? When you look at the command definition in setup-en.pdf you can two lines below the command which refer to the two arguments. 1 2 \startparagraph [...] [..,..=..,..] ... \stopparagraph OPT

[NTG-context] general syntax for startparagraph command

2019-09-29 Thread Jeroen
Dear list members, I am trying to get the following with the 1 elevated and 2 above the = character. The square brackets and all in between I would like italic and OPT below both terms. *\startparagraph [.1..] [..,..2=..,..] ..**.\stopparagraph* Would anybody be able to help. Would Metapost

Re: [NTG-context] Size of the font (Metapost + xtable)

2019-09-23 Thread Wolfgang Schuster
Fabrice Couvreur schrieb am 23.09.2019 um 23:31: Hi Wolfgang, As I understand it, the following instructions have no effect on the figures defaultfont := "texgyrepagella-regular*default" ; defaultscale :=0.8 ; You change the font because you typeset your labels in math mode.

Re: [NTG-context] Size of the font (Metapost + xtable)

2019-09-23 Thread Wolfgang Schuster
Fabrice Couvreur schrieb am 23.09.2019 um 16:12: Hello, I can not change the font size of my figures in the table. \startxcell[foregroundstyle={\switchtobodyfont[...]}] or \setupxtable[smallbodyfont][foregroundstyle={\switchtobodyfont[...]}] \startxcell[smallbodyfont] Wolfgang

Re: [NTG-context] Size of the font (Metapost + xtable)

2019-09-23 Thread Thomas A. Schmitz
On 9/23/19 4:12 PM, Fabrice Couvreur wrote: Hello, I can not change the font size of my figures in the table. Thank you Fabrice Does changing \usecolors [xwi] to \usecolors [ema] help? All best Thomas ___

[NTG-context] Size of the font (Metapost + xtable)

2019-09-23 Thread Fabrice Couvreur
Hello, I can not change the font size of my figures in the table. Thank you Fabrice \usecolors[xwi] \startbuffer[myfigure] \dontleavehmode \startMPcode defaultfont := "texgyrepagella-regular*default" ; defaultscale :=0.8 ;

<    4   5   6   7   8   9   10   11   12   13   >