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] ConTeXt support for Atom or other text editors

2020-01-21 Thread Hans Hagen
highlighting for ConTeXt is that I had to write my own script to extract ConTeXt-specific and MetaFun-specific keywords from source code. Is there any way to do it with ConTeXt? there are ways to extract it from the interface specifications ... which is done for scite, vscode, ... (btw, in scite

Re: [NTG-context] ConTeXt support for Atom or other text editors

2020-01-21 Thread Nicola
hlighting for ConTeXt is that I had to write my own script to extract ConTeXt-specific and MetaFun-specific keywords from source code. Is there any way to do it with ConTeXt? Nicola ___ If your question is of inter

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

2019-12-30 Thread Hans Hagen
tandard font(s): [\char"2015]. \stopsection \stoptext I bet that Wolfgang has the answers to the speech setup so I'll do the font part. Assuming that you use context lmtx (the luametatex branch), you can use some of the new metafun magic. \startMPcalculation{simplefun} vardef Quotatio

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

2019-12-28 Thread Hans Hagen
On 12/28/2019 4:22 PM, Otared Kavian wrote: Hi all, I would like to use a math function defined in lua in Metafun in order to draw its graph, together with the graphs of some other functions. As a simple example consider the following: %%% begin lua-metafun-example.tex \startluacode

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

2019-12-28 Thread Otared Kavian
Hi all, I would like to use a math function defined in lua in Metafun in order to draw its graph, together with the graphs of some other functions. As a simple example consider the following: %%% begin lua-metafun-example.tex \startluacode function document.myfunction(n,x

[NTG-context] Using lmtx and new metafun

2019-12-12 Thread Otared Kavian
Hi Aditya, Following your explanations in https://adityam.github.io/context-blog/post/new-metafun-interface/ I wrote an environment in order to display the graph of a function on a grid which can be adapted to each case. Assuming that I have an MPinstance named GridAxis (for example

Re: [NTG-context] Eofill extension (Metafun)

2019-12-09 Thread Fabrice Couvreur
Hello, Thank you for these explanations. Fabrice Le lun. 9 déc. 2019 à 03:21, Henri Menke a écrit : > On 12/9/19 10:02 AM, Fabrice Couvreur wrote: > > Hello, > > Is it possible to use the eofill extension in this code ? I tried without > > success. Thank you. > > No, eofill is basically just a

Re: [NTG-context] Eofill extension (Metafun)

2019-12-08 Thread Henri Menke
On 12/9/19 10:02 AM, Fabrice Couvreur wrote: Hello, Is it possible to use the eofill extension in this code ? I tried without success. Thank you. No, eofill is basically just a frontend for the PDF primitive eofill, which works on a single connected path that intersects itself. If that wasn't

[NTG-context] Eofill extension (Metafun)

2019-12-08 Thread Fabrice Couvreur
Hello, Is it possible to use the eofill extension in this code ? I tried without success. Thank you. Fabrice \starttext \startMPcode path carre, disque; carre = fullsquare scaled 200; disque = fullcircle scaled 200; draw carre numberstriped (.25,15,5) withcolor \MPcolor{magenta};

Re: [NTG-context] Transparency (Metapost)

2019-12-01 Thread Fabrice Couvreur
ntext | fatal error: return code: 256 Le dim. 1 déc. 2019 à 00:34, Jeong Dal a écrit : > \ > > > Dear Fabrice, > > I got color and transparency using the following command in LMTX(metafun). > >

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 quest

[NTG-context] new beta

2019-10-11 Thread Hans Hagen
(on the average) a bit more efficient. It's somewhat tricky to satisfy viewers but at my end things work ok. It should also work in a cmyk only mode. As usual it's work in progress (and in this case very likely lmtx only). Also some first (runtime) metafun (2) font creation support has been added

[NTG-context] howto create labels with multiple lines ?

2019-10-10 Thread Floris van Manen
List, In the metafun-p document, there is the example creating a clock with labels placed at the dots. pair destination ; for whereto = 0 step 30 until 330 : destination := dir(whereto) * 1.5cm ; freedotlabel(decimal whereto, destination, origin) ; drawarrow origin -- destination withpen

[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] Printing catchword or kustode

2019-10-08 Thread Henning Hraban Ramm
v as it was lmtx) Ah, sorry. Then I added it at the meeting to my list of modules. I could have sworn I saw it before. But I had the same dèjá vu with the metafun xl manual… Greetlings, Hraban --- https://www.fiee.net http://wiki.contextgarden.net https://

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

2019-10-07 Thread Hans Hagen
t-test.tex' fonts   > preloading latin modern fonts (second stage) fonts       > 'fallback modern-designsize rm 12pt' is loaded metapost    > initializing instance 'metafun:1' using format 'metafun' and method 'default' metapost    > loading 'metafun' as

[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

Re: [NTG-context] new (lmtx) beta

2019-10-05 Thread Fabrice Couvreur
Hi Hans, Where is this documentation ? Thank you. Fabrice Le ven. 4 oct. 2019 à 21:34, Mikael P. Sundqvist a écrit : > On Fri, Oct 4, 2019 at 6:11 PM Hans Hagen wrote: > >> Hi, >> >> I uploaded a new lmtx beta. Again some more metafun trickery (see >> luametafu

Re: [NTG-context] new (lmtx) beta

2019-10-04 Thread Mikael P. Sundqvist
On Fri, Oct 4, 2019 at 6:11 PM Hans Hagen wrote: > Hi, > > I uploaded a new lmtx beta. Again some more metafun trickery (see > luametafun manual). I attached an (lmtx only) example of some experiment > code, dedicated to Alan Braslau (teacher among other th

[NTG-context] new (lmtx) beta

2019-10-04 Thread Hans Hagen
Hi, I uploaded a new lmtx beta. Again some more metafun trickery (see luametafun manual). I attached an (lmtx only) example of some experiment code, dedicated to Alan Braslau (teacher among other things). Hans

Re: [NTG-context] beta

2019-10-02 Thread Hans van der Meer
pending code is now being moved > >> into the distribution. Part is font related (lmtx only, not relevant > >> for most users), most is metafun (luametafun or metafun xl or whatever > >> name suits) related (including a new preliminary manual) which uses > >> some new int

Re: [NTG-context] beta

2019-10-02 Thread Alan Bowen
de is now being moved > >> into the distribution. Part is font related (lmtx only, not relevant > >> for most users), most is metafun (luametafun or metafun xl or whatever > >> name suits) related (including a new preliminary manual) which uses > >> some new interfa

Re: [NTG-context] beta

2019-10-02 Thread Hans Hagen
moved into the distribution. Part is font related (lmtx only, not relevant for most users), most is metafun (luametafun or metafun xl or whatever name suits) related (including a new preliminary manual) which uses some new interfaces and therefore (currently) is lmtx only. Hi Hans, I just

Re: [NTG-context] beta

2019-09-30 Thread Thomas A. Schmitz
related (lmtx only, not relevant for most users), most is metafun (luametafun or metafun xl or whatever name suits) related (including a new preliminary manual) which uses some new interfaces and therefore (currently) is lmtx only. Hi Hans, I just updated. I had to delete the cache for context

[NTG-context] beta

2019-09-29 Thread Hans Hagen
users), most is metafun (luametafun or metafun xl or whatever name suits) related (including a new preliminary manual) which uses some new interfaces and therefore (currently) is lmtx only. At the meeting Mojca and Harald did some experiments with the whole range of raspberry pi's (as part

Re: [NTG-context] colors in MetaPost

2019-09-11 Thread Hans Hagen
ullcircle scaled 4cm, direction = "right", domain= { 0, 2 }, colors= { "MyColor3", "MyColor4" }, ] ; but tweaking shades will never be easy Hans (working in the metafun xl manual, more soon) -

[NTG-context] colors in MetaPost

2019-09-11 Thread Henning Hraban Ramm
ing I sometimes got a few more stripes in the top and bottom area, can’t reproduce any more. I also tried RGB and hex (HTML) definitions. Predefined colors work. According to the MetaFun manual, either \MPcolor{name} or just "name" should work. What’s wrong? Greetlin

Re: [NTG-context] typo in metafun manual

2019-09-10 Thread Michael Hallgren
Le 2019-09-10 07:36, Damien Thiriet a écrit : Hi, There may be a typo in metafun manual, page 104 Hopefully the next explains a bit how it works (you can find explanations zon the internet). Sounds too Dutch for me… Looks like :). And 'the Internet' usually uppercase. mh Regards

[NTG-context] typo in metafun manual

2019-09-09 Thread Damien Thiriet
Hi, There may be a typo in metafun manual, page 104 Hopefully the next explains a bit how it works (you can find explanations zon the internet). Sounds too Dutch for me… Regards, Damien Thiriet ___ If your

Re: [NTG-context] metafun 2

2019-09-08 Thread Aditya Mahajan
On Sun, 8 Sep 2019, Otared Kavian wrote: Hi Aditya, I wanted also to point out a typo on that page (two occurrences), namely "ploles" instead of "poles", in the explanations before the actual code. Thanks. Fixed. Aditya

Re: [NTG-context] Arithmetic overflow on placing an external figure in MP

2019-09-08 Thread Hans Hagen
On 9/7/2019 10:47 PM, Henning Hraban Ramm wrote: Bear with me, I still got no experience in MetaPost… I’m trying to place a pixel image on a MP page. According to the MetaFun manual this should work: \startMPpage draw externalfigure "mill.png" scaled 5cm shifted (-6cm,0) ; \

Re: [NTG-context] metafun 2

2019-09-08 Thread Otared Kavian
regard: > On 8 Sep 2019, at 10:42, Aditya Mahajan wrote: > > On Wed, 14 Aug 2019, Hans Hagen wrote: > >> Hi, >> >> In the process of providing an additional (more abstract) interface to some >> of the old and also new MetaFun code we wonder what k

Re: [NTG-context] metafun 2

2019-09-08 Thread Aditya Mahajan
On Wed, 14 Aug 2019, Hans Hagen wrote: Hi, In the process of providing an additional (more abstract) interface to some of the old and also new MetaFun code we wonder what kind of features users would like to see. http://www.pragma-ade.com/general/magazines/mag-1104-mkiv.pdf Finally got

Re: [NTG-context] Arithmetic overflow on placing an external figure in MP

2019-09-07 Thread Fabrice L
Hi, > Le 7 sept. 2019 à 16:47, Henning Hraban Ramm a écrit : > > Bear with me, I still got no experience in MetaPost… > > I’m trying to place a pixel image on a MP page. > > According to the MetaFun manual this should work: > > \startMPpage > draw externalfigure

[NTG-context] Arithmetic overflow on placing an external figure in MP

2019-09-07 Thread Henning Hraban Ramm
Bear with me, I still got no experience in MetaPost… I’m trying to place a pixel image on a MP page. According to the MetaFun manual this should work: \startMPpage draw externalfigure "mill.png" scaled 5cm shifted (-6cm,0) ; \stopMPpage And it works with mill.png (copied into m

Re: [NTG-context] startnarrower and framed?

2019-08-21 Thread Jon Wong
xtgarden.net/TextBackground >> <https://www.contextgarden.net/TextBackground> >> >> Can I have a 2-segment (2 vboxes) TextBackground (presumably with 2 >> TextBackgrounds, zero vspace between them)? >> >> For the top segment, I want rounded corners

Re: [NTG-context] startnarrower and framed?

2019-08-21 Thread Jon Wong
m)? > > For the top segment, I want rounded corners only for top corners (corner=03 > with \framed). > > Seems I really should dig into MetaFun and TextBackground. Looks really fun > and useful. > > Sorry for the noise. Am a little carried away exploring the Garden. :-P

Re: [NTG-context] startnarrower and framed?

2019-08-21 Thread Jon Wong
I want rounded corners only for top corners (corner=03 with \framed). Seems I really should dig into MetaFun and TextBackground. Looks really fun and useful. Sorry for the noise. Am a little carried away exploring the Garden. :-P Regards Jon > On Aug 21, 2019, at 9:25 PM, Jon Wong wrote: &g

Re: [NTG-context] startnarrower and framed?

2019-08-21 Thread Jon Wong
lly? > \startnarrower > \dontleavehmode\framed[width=local]{testing} > > Since this works for left offset: \framed[width=local]{testing} > \endnarrower > > So, how do I do a gradient background? Yeah, I know I have to dive into > MetaPost and MetaFun some time. Is that where the

Re: [NTG-context] startnarrower and framed?

2019-08-21 Thread Jon Wong
have to dive into MetaPost and MetaFun some time. Is that where the solution is? Regards Jon > On Aug 21, 2019, at 8:14 PM, Jon Wong wrote: > > Hi all, > > I want to have a \startnarrower effect. But I also want that segment to have > a border (hopefully a gradient ba

Re: [NTG-context] startnarrower and framed?

2019-08-21 Thread Hans Hagen
startnarrower commands. \startlinecorrection \dontleavehmode \framed{testing} \stoplinecorrection \stopnarrower \stoptext for gradients, see metafun and example sin test suite

[NTG-context] Fwd: metafun 2

2019-08-19 Thread Mikael P. Sundqvist
t I mention it since I did not see it > > in the pdf. > > no, but that is rather trivial to add > Good! > > > Again, it is very nice that you work on extending MetaPost/MetaFun > further!! > wel, mp is ... fun (and these extension are somewhat challenging) > > Hans &

Re: [NTG-context] metafun 2

2019-08-19 Thread Jorge Manuel
uot;, xlabels = "yes", ylabels = "yes", ycaption = "\strut\tfd \rotate[rotation=90]{vertical}", xcaption = "\strut\tfd horizontal", pointsymbol = "dot", pointsize = 4, pointcolor = "orange", sx = 2mm, sy = 4mm, li

Re: [NTG-context] metafun 2

2019-08-17 Thread Adam Reviczky
Hi Hans, Alan, This is really cool! Not sure how I missed this feature, works exactly for my use-case. Thanks a lot for pointing this out, I was able to find it in the MAPS as well. Cheers, Adam On Sat, Aug 17, 2019 at 9:52 AM Hans Hagen wrote: > On 8/17/2019 3:27 AM, Alan Braslau wrote: > >

Re: [NTG-context] metafun 2

2019-08-17 Thread Hans Hagen
On 8/17/2019 3:27 AM, Alan Braslau wrote: We have eofill in MP (in pdf/ps in fact) and that likely will do what you need. You forgot the MWD (Minimal Working Demo): \starttext \startMPpage path p ; p := fullcircle scaled 1cm ; path q ; q := fullcircle scaled .5cm ; nofill p ; eofill q ;

Re: [NTG-context] metafun 2

2019-08-16 Thread Alan Braslau
Adam > > > On Wed, Aug 14, 2019 at 10:57 AM Hans Hagen wrote: > > > Hi, > > > > In the process of providing an additional (more abstract) interface to > > some of the old and also new MetaFun code we wonder what kind of > > features users would l

Re: [NTG-context] metafun 2

2019-08-16 Thread Adam Reviczky
AM Hans Hagen wrote: > Hi, > > In the process of providing an additional (more abstract) interface to > some of the old and also new MetaFun code we wonder what kind of > features users would like to see. > > http://www.pragma-ade.com/general/magazines/mag-1104-mkiv.pdf >

Re: [NTG-context] metafun 2

2019-08-15 Thread Arthur Reutenauer
On Wed, Aug 14, 2019 at 10:18:19PM +1200, Henri Menke wrote: > I just wanted to ask, will LMTX and MetaFun remain valid implementations > of TeX and MetaPost or do we have to expect incompatibilities? If you mean “will luametatex pass the trip test”, the answer is probably no: LuaTeX a

Re: [NTG-context] metafun 2

2019-08-14 Thread Hans Hagen
er trivial to add Again, it is very nice that you work on extending MetaPost/MetaFun further!! wel, mp is ... fun (and these extension are somewhat challenging) Hans - Hans Hagen |

Re: [NTG-context] metafun 2

2019-08-14 Thread Hans Hagen
On 8/14/2019 4:58 PM, Otared Kavian wrote: On 14 Aug 2019, at 16:53, Aditya Mahajan wrote: […] This looks like a typical .. vs -- issue. I think there is a way to change how the points are connected, but I'll have to look at the code again. Aditya Indeed, this seems the right

Re: [NTG-context] metafun 2

2019-08-14 Thread Wolfgang Schuster
Otared Kavian schrieb am 14.08.2019 um 16:58: On 14 Aug 2019, at 16:53, Aditya Mahajan wrote: […] This looks like a typical .. vs -- issue. I think there is a way to change how the points are connected, but I'll have to look at the code again. Aditya Indeed, this seems the right

Re: [NTG-context] metafun 2

2019-08-14 Thread Mikael P. Sundqvist
On Wed, Aug 14, 2019 at 11:55 AM Hans Hagen wrote: > Hi, > > In the process of providing an additional (more abstract) interface to > some of the old and also new MetaFun code we wonder what kind of > features users would like to see. > > http://www.pragma-ade.com/gener

Re: [NTG-context] metafun 2

2019-08-14 Thread Otared Kavian
> On 14 Aug 2019, at 16:53, Aditya Mahajan wrote: > > […] > This looks like a typical .. vs -- issue. I think there is a way to change > how the points are connected, but I'll have to look at the code again. > > Aditya Indeed, this seems the right explanation. @ Hans: would it be possible

Re: [NTG-context] metafun 2

2019-08-14 Thread Aditya Mahajan
to the fact that metafun2 is interpolating between points in a way which is not correct. For instance, in the following example (which is a slight modification of yours), the curve drawn is not a graph, in the sense that for some values of x it seems to be two or more values of y. How does metafun 2

Re: [NTG-context] metafun 2

2019-08-14 Thread Hans Hagen
to the fact that metafun2 is interpolating between points in a way which is not correct. For instance, in the following example (which is a slight modification of yours), the curve drawn is not a graph, in the sense that for some values of x it seems to be two or more values of y. How does metafun 2

Re: [NTG-context] metafun 2

2019-08-14 Thread Otared Kavian
points in a way which is not correct. For instance, in the following example (which is a slight modification of yours), the curve drawn is not a graph, in the sense that for some values of x it seems to be two or more values of y. How does metafun 2 traces the curve between two discretization

Re: [NTG-context] metafun 2

2019-08-14 Thread Hans Hagen
On 8/14/2019 1:31 PM, Floris van Manen wrote: where can i find the steps to install lmtx next to my current context luatex ? http://pragma-ade.nl/install.htm - Hans Hagen | PRAGMA ADE

Re: [NTG-context] metafun 2

2019-08-14 Thread Floris van Manen
where can i find the steps to install lmtx next to my current context luatex ? .F pEpkey.asc Description: application/pgp-keys ___ If your question is of interest to others as well, please add an entry to the Wiki!

Re: [NTG-context] metafun 2

2019-08-14 Thread Hans Hagen
On 8/14/2019 12:18 PM, Henri Menke wrote: Dear Hans, I just wanted to ask, will LMTX and MetaFun remain valid implementations of TeX and MetaPost or do we have to expect incompatibilities? It depends on how you define 'valid' ... we're downward compatible ... but LMTX will use features

Re: [NTG-context] metafun 2

2019-08-14 Thread Henri Menke
Dear Hans, I just wanted to ask, will LMTX and MetaFun remain valid implementations of TeX and MetaPost or do we have to expect incompatibilities? Cheers, Henri On 14/08/19 9:54 PM, Hans Hagen wrote: > Hi, > > In the process of providing an additional (more abstract) interface t

[NTG-context] metafun 2

2019-08-14 Thread Hans Hagen
Hi, In the process of providing an additional (more abstract) interface to some of the old and also new MetaFun code we wonder what kind of features users would like to see. http://www.pragma-ade.com/general/magazines/mag-1104-mkiv.pdf As a teaser I uploaded a MyWay document that shows some

Re: [NTG-context] Some macros (Metafun)

2019-08-11 Thread Hans Hagen
On 8/12/2019 12:40 AM, Fabrice Couvreur wrote: Hi Hans, Sorry but I did not see your email. What is the default color used to draw the path p ? drawlineoptions (withpen pencircle scaled 1.0 drawoptionsfactor withcolor .5white) ; drawpointoptions (withpen pencircle scaled 4.0

Re: [NTG-context] Some macros (Metafun)

2019-08-11 Thread Fabrice Couvreur
Hi Hans, Sorry but I did not see your email. What is the default color used to draw the path p ? Thank you. Le ven. 9 août 2019 à 13:12, Hans Hagen a écrit : > On 8/9/2019 10:57 AM, Fabrice Couvreur wrote: > > Hello, > > In the Metafun manual, Hans uses macros

Re: [NTG-context] Wrong MetaPost text output

2019-08-11 Thread Alan Braslau
the text bounding box at y=0. Without any @# suffix, the text bounding box gets centered at y=0. Metafun has a few *new* suffixes defined, so you can use textext.d(), textext.dlft(), textext.drt(), I BELIEVE, to position with respect to the tex baseline. (you need to check this). Alan ___

Re: [NTG-context] Some macros (Metafun)

2019-08-09 Thread Hans Hagen
On 8/9/2019 10:57 AM, Fabrice Couvreur wrote: Hello, In the Metafun manual, Hans uses macros like drawpath p ; drawcontrollines p ; drawpoints p ; drawcontrolpoints p ... How to use them in a document ? Where to find source codes ? For example, the following code does not work : \starttext

[NTG-context] Some macros (Metafun)

2019-08-09 Thread Fabrice Couvreur
Hello, In the Metafun manual, Hans uses macros like drawpath p ; drawcontrollines p ; drawpoints p ; drawcontrolpoints p ... How to use them in a document ? Where to find source codes ? For example, the following code does not work : \starttext \startuseMPgraphic{path} path p ; p := (1cm,1cm

[NTG-context] lmtx

2019-08-05 Thread Hans Hagen
and often issues can be solved fast. - As we're experimenting with metafun (and luagraph and ...) we also explore new interfaces. This results in a different codebase but should go unnoticed for existing code. Of course metafun 2.0 (hip and modern internet version speak) can bring interesting n

Re: [NTG-context] suggestion for LMTX

2019-04-27 Thread Pablo Rodriguez
functionality only > available when you use LMTX, but that is something Wolfgang and I need > to figure out wrr the interface specification. Also, Alan and I need to > deal with in the MetaFun code and documentation. At some point Taco and > Mojca might want granularity in the Wiki. We'

Re: [NTG-context] suggestion for LMTX

2019-04-27 Thread Hans Hagen
to figure out wrr the interface specification. Also, Alan and I need to deal with in the MetaFun code and documentation. At some point Taco and Mojca might want granularity in the Wiki. We'll see. I have no clue when users will have switched to lmtx for production anyway, as it's not something we

Re: [NTG-context] tikz is not found

2019-04-24 Thread Gour
input './mp', result 'mp' fonts > latin modern fonts are not preloaded languages > language 'en' is active open source > level 2, order 3, name '/home/gour/prj/tex/mp.tex' fonts > preloading latin modern fonts (second stage) fonts > 'fallba

Re: [NTG-context] preparing math exams

2019-04-24 Thread Marcin Borkowski
On 2019-04-23, at 17:57, Fabrice L wrote: > Metapost (Metafun) is your best friend here. You can insert directly in Also, TikZ, which is more LaTeX-centric, but works with ConTeXt, too (at least it did when I last tried ConTeXt a few years ago). Hth, -- Marcin Borkowski http://mbork

Re: [NTG-context] preparing math exams

2019-04-24 Thread Gour
On Tue, 23 Apr 2019 11:57:34 -0400 Fabrice L wrote: > Metapost (Metafun) is your best friend here. You can insert directly > in context some MetaFun code, like this: > > \starttext > Lorem Ipsum… > > \startMPcode > draw ( (0,0) — (1,0) — (0,1)) with color red ; >

[NTG-context] Text on curves

2019-04-23 Thread Keith McKay
I have been trying to typeset text onto curves and have been successful with the help of the MetaFun manual, and the followtext command which I saw in some correspondence between dr Hans van der Meer and Hans Hagen on the mailing list in January this year ( the subject was Double Follow Tokens

Re: [NTG-context] preparing math exams

2019-04-23 Thread Fabrice L
Hi, Le 23 avril 2019 à 11:10:11, Gour (g...@atmarama.com) a écrit: Hello, For regular formulas involving e.g. rational numbers, I'm sure that input language for math is quite sufficient, but wonder about drawing part? Metapost (Metafun) is your best friend here. You can insert directly

Re: [NTG-context] using metapost library makecirc with context.

2019-04-20 Thread Hans Hagen
latex=textext ; That crashed here. Another question: there is a library to draw electrics circuit alternative to makecirc but more context/metafun friendly? the node library but it lacks things for drawing resistors ... i'll discuss this whith alan I played with makecirc a while back (and I

Re: [NTG-context] using metapost library makecirc with context.

2019-04-20 Thread Alan Braslau
ext ; > > Another question: there is a library to draw electrics circuit > > alternative to makecirc but more context/metafun friendly? > the node library but it lacks things for drawing resistors ... i'll > discuss this whith alan I played with makecirc a while back (and I

Re: [NTG-context] using metapost library makecirc with context.

2019-04-20 Thread Hans Hagen
On 4/20/2019 10:09 PM, Andrea De Michele wrote: I didn't understand the magic behind that but it's works. mp has no real text typesetting options so this hack provides it Another question: there is a library to draw electrics circuit alternative to makecirc but more context/metafun

Re: [NTG-context] using metapost library makecirc with context.

2019-04-20 Thread Andrea De Michele
l/mailman/listinfo/ntg-context > webpage : http://www.pragma-ade.nl / http://context.aanhet.net > archive : https://bitbucket.org/phg/context-mirror/commits/ > wiki : http://contextgarden.net >

Re: [NTG-context] gnuplot-module broken under lmtx

2019-04-10 Thread Hans Hagen
'gnuplot-gnuplot-1-ctx.tex' close source    > level 3, order 6, name 'gnuplot-gnuplot-1-ctx.tex' metapost        > initializing instance 'metafun:1' using format 'metafun' and method 'default' metapost        > loading 'metafun' as '/home/user/context/tex/texmf-context/metapost/context/b

[NTG-context] gnuplot-module broken under lmtx

2019-04-10 Thread Christian Prim
(second stage) fonts > 'fallback modern-designsize rm 12pt' is loaded open source > level 3, order 6, name 'gnuplot-gnuplot-1-ctx.tex' close source> level 3, order 6, name 'gnuplot-gnuplot-1-ctx.tex' metapost > initializing instance 'metafun:1' using format 'metaf

Re: [NTG-context] Background under bibliography (like in mkiv-publications.pdf)

2019-03-18 Thread Romain Diss
to make something similar to the frames in the > > "mkiv-publications.pdf" manual (page 6 or 22 for a bibliography for > > examples). > > I suppose Hans Hagen made use of metafun to do it but I encounter some > > problems with 'textbackgrounds'. > > >

Re: [NTG-context] Background under bibliography (like in mkiv-publications.pdf)

2019-03-18 Thread Romain Diss
grounds or textbackgrounds. > > > Thank you but I still can't achieve what I want to do whith this > > > command. > > > > > > I try to make something similar to the frames in the > > > "mkiv-publications.pdf" manual (page 6 or 22 for a bibliography for

Re: [NTG-context] Background under bibliography (like in mkiv-publications.pdf)

2019-03-18 Thread Alan Braslau
ommand. > > > > I try to make something similar to the frames in the > > "mkiv-publications.pdf" manual (page 6 or 22 for a bibliography for > > examples). > > I suppose Hans Hagen made use of metafun to do it but I encounter some > > problems with 'textbac

Re: [NTG-context] Background under bibliography (like in mkiv-publications.pdf)

2019-03-18 Thread Aditya Mahajan
on I read. Use backgrounds or textbackgrounds. Thank you but I still can't achieve what I want to do whith this command. I try to make something similar to the frames in the "mkiv-publications.pdf" manual (page 6 or 22 for a bibliography for examples). I suppose Hans Hagen made use of met

Re: [NTG-context] Background under bibliography (like in mkiv-publications.pdf)

2019-03-18 Thread Romain Diss
ounds or textbackgrounds. Thank you but I still can't achieve what I want to do whith this command. I try to make something similar to the frames in the "mkiv-publications.pdf" manual (page 6 or 22 for a bibliography for examples). I suppose Hans Hagen made use of metafun to d

Re: [NTG-context] Can't use MetaFun with mplib anymore

2019-03-14 Thread luigi scarso
On Thu, Mar 14, 2019 at 10:52 AM Hans Hagen wrote: > as currently the variable is isn't used we can also comment it > > > seems so I have commented the line, and all formats and the plain test run. -- luigi ___ If

Re: [NTG-context] Can't use MetaFun with mplib anymore

2019-03-14 Thread Hans Hagen
On 3/14/2019 10:00 AM, Henri Menke wrote: On 3/14/19 8:49 PM, Hans Hagen wrote: On 3/14/2019 5:56 AM, Henri Menke wrote: Dear list, Something has changed in MetaFun and it can no longer be used in plain LuaTeX, with neither of luatex test.tex mtxrun --script plain test.tex

Re: [NTG-context] Can't use MetaFun with mplib anymore

2019-03-14 Thread Hans Hagen
On 3/14/2019 8:51 AM, luigi scarso wrote: On Thu, Mar 14, 2019 at 5:56 AM Henri Menke <mailto:henrime...@gmail.com>> wrote: Dear list, Something has changed in MetaFun and it can no longer be used in plain LuaTeX, with neither of     luatex test.tex  

Re: [NTG-context] Can't use MetaFun with mplib anymore

2019-03-14 Thread Henri Menke
On 3/14/19 8:49 PM, Hans Hagen wrote: > On 3/14/2019 5:56 AM, Henri Menke wrote: >> >> Dear list, >> >> Something has changed in MetaFun and it can no longer be used in plain >> LuaTeX, >> with neither of >> >> luatex test.tex >>   

Re: [NTG-context] Can't use MetaFun with mplib anymore

2019-03-14 Thread luigi scarso
On Thu, Mar 14, 2019 at 5:56 AM Henri Menke wrote: > > Dear list, > > Something has changed in MetaFun and it can no longer be used in plain > LuaTeX, > with neither of > > luatex test.tex > mtxrun --script plain test.tex > > This is the erro

Re: [NTG-context] Can't use MetaFun with mplib anymore

2019-03-14 Thread Hans Hagen
On 3/14/2019 5:56 AM, Henri Menke wrote: Dear list, Something has changed in MetaFun and it can no longer be used in plain LuaTeX, with neither of luatex test.tex mtxrun --script plain test.tex This is the error: >> LUATEXFUNCTIONALITY >> "mp.print(LU

[NTG-context] Can't use MetaFun with mplib anymore

2019-03-13 Thread Henri Menke
Dear list, Something has changed in MetaFun and it can no longer be used in plain LuaTeX, with neither of luatex test.tex mtxrun --script plain test.tex This is the error: >> LUATEXFUNCTIONALITY >> "mp.print(LUATEXFUNCTIONALITY)" ! Equation cannot

Re: [NTG-context] about the color of sidebar

2019-02-25 Thread Jeong Dal
plefile{knuth} \stopsidebar \stoptext % The reason of putting “\definecolor…” is that “[rulecolor=(.4green)]” is not working as in MetaFun, while [rulecolor=green] is working well. Because of this, I can remove my definition of sidebar from my environment. Tha

Re: [NTG-context] getdocumentargument in Metafun

2019-02-22 Thread Fabrice L
Le 22 février 2019 à 11:08:51, Aditya Mahajan (adit...@umich.edu) a écrit: Untested. Add quotes around FileName: > string FileName ; > FileName := "\getdocumentargument{File}" ; And not tested successfully ! Thanks a lot Aditya ! Fabrice.

Re: [NTG-context] getdocumentargument in Metafun

2019-02-22 Thread Aditya Mahajan
On Fri, 22 Feb 2019, Fabrice L wrote: Dear list, I wish to do several zoom from a picture made in MetaFun, from a pdf file which name is given on the commande line, like: context zoom.tex —File=EntryFile —Page=9 —result=OutFile.pdf Untested. Add quotes around FileName: string FileName

[NTG-context] getdocumentargument in Metafun

2019-02-22 Thread Fabrice L
Dear list, I wish to do several zoom from a picture made in MetaFun, from a pdf file which name is given on the commande line, like: context zoom.tex —File=EntryFile —Page=9 —result=OutFile.pdf Minimal example: \starttext \startMPpage numeric ThePage ; string FileName ; FileName

Re: [NTG-context] troubles with \MPinclusions (Taco Hoekwater)

2019-02-21 Thread Damien Thiriet
ter >variable names inside MPinclusions, and use CamelCase >to avoid clashes with metafun internals. > So, got one more z-related error in Metapost. I bet this is absolutely the n.1 on help-lists. Btw, if I were a scientist, I'd realized that defining x as a pair is quite heretic… A

Re: [NTG-context] troubles with \MPinclusions

2019-02-21 Thread Taco Hoekwater
ice to stay away from single-letter variable names inside MPinclusions, and use CamelCase to avoid clashes with metafun internals. 2. You need a bigger pen to actually see the dots even if you change the variable name. :) Best wishes, Taco > I can't understand why can MPincl

Re: [NTG-context] markdown module vs pandoc

2019-02-18 Thread Mojca Miklavec
-presentation, do you recommend learning > MetaPost/MetaFun over .eg. TikZ if one wants to focus on single > (probably my learning plate is already quite full to go into something > else considering the need to learn ConTeXt itself) package? I use both. MetaPost/Fun is really cool when you

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