Re: [NTG-context] Creating SVG: using MetaFun, exporting proper units, conversion to DXF

2017-02-16 Thread William Adams
t;>>> metapost -> svg -> dxf -> g-code >>>> for the first time. >>>> >>>> I have a few questions. >>>> >>>> (1) I love Hans' shortcuts in metafun, but I seem to remember that >>>> things >>>>

Re: [NTG-context] Customize a table with Metafun

2017-02-15 Thread Fabrice Couvreur
Hi Lutz, Thank you Fabrice 2017-02-14 17:04 GMT+01:00 Lutz Haseloff : > linecap:=butt ; > > > Am 14. Februar 2017 16:53:04 MEZ schrieb Fabrice Couvreur < > fabrice1.couvr...@gmail.com>: >> >> Hello, >> In the code below, the red vertical line extends beyond the edges of

Re: [NTG-context] Customize a table with Metafun

2017-02-14 Thread Lutz Haseloff
linecap:=butt ; Am 14. Februar 2017 16:53:04 MEZ schrieb Fabrice Couvreur : >Hello, >In the code below, the red vertical line extends beyond the edges of >the >cell. >Thank you >Fabrice > >\startuniqueMPgraphic{Vertical} > > linecap:=squared ; > path p ; p :=

[NTG-context] Customize a table with Metafun

2017-02-14 Thread Fabrice Couvreur
Hello, In the code below, the red vertical line extends beyond the edges of the cell. Thank you Fabrice \startuniqueMPgraphic{Vertical} linecap:=squared ; path p ; p := unitsquare xyscaled (OverlayWidth,OverlayHeight) ; drawoptions (withpen pencircle withcolor \MPcolor{red}) ; draw

Re: [NTG-context] sqrt(3)/2 with metafun

2017-02-02 Thread Fabrice Couvreur
Hi Michael, Thanks, it's ok. Fabrice 2017-02-02 22:02 GMT+01:00 Rogers, Michael K : > This seems to work in place of 0.866cm: sqrt(3)/2*cm > > Michael > > On Feb 2, 2017, at 3:54 PM, Fabrice Couvreur > wrote: > > Hello, > I wanted to use sqrt(3)/2

Re: [NTG-context] sqrt(3)/2 with metafun

2017-02-02 Thread Rogers, Michael K
This seems to work in place of 0.866cm: sqrt(3)/2*cm Michael On Feb 2, 2017, at 3:54 PM, Fabrice Couvreur > wrote: Hello, I wanted to use sqrt(3)/2 but without success. Instead, I replaced this value with an approximate value

[NTG-context] sqrt(3)/2 with metafun

2017-02-02 Thread Fabrice Couvreur
Hello, I wanted to use sqrt(3)/2 but without success. Instead, I replaced this value with an approximate value 0.866 How should it be done ? Thank you Fabrice \starttext \startMPcode draw fullcircle scaled 1cm withcolor magenta ; draw fullcircle scaled 1cm shifted (1cm,0) withcolor

Re: [NTG-context] A better \definesymbol sought

2017-01-24 Thread Hans Hagen
w) >> transparent, so that the background shows through along with >> anything else that lives on a lower layer? I’ve seen a method for >> constructed shapes, but nothing that I can apply to text glyphs. >> Undraw doesn’t do it. > > Undraw is simply draw using the backgr

Re: [NTG-context] A better \definesymbol sought

2017-01-23 Thread Rik
kground shows through along with >> anything else that lives on a lower layer? I’ve seen a method for >> constructed shapes, but nothing that I can apply to text glyphs. >> Undraw doesn’t do it. > > Undraw is simply draw using the background color. > > Transparency

Re: [NTG-context] A better \definesymbol sought

2017-01-23 Thread Rik Kabel
;> anything else that lives on a lower layer? I’ve seen a method for >> constructed shapes, but nothing that I can apply to text glyphs. >> Undraw doesn’t do it. > > Undraw is simply draw using the background color. > > Transparency is a MetaFun extension to MetaPost (so p

Re: [NTG-context] A better \definesymbol sought

2017-01-22 Thread Alan Braslau
ructed > shapes, but nothing that I can apply to text glyphs. Undraw doesn’t > do it. Undraw is simply draw using the background color. Transparency is a MetaFun extension to MetaPost (so part of ConTeXt). draw q withtransparency (1,0.5) ; % (metho

Re: [NTG-context] nested colors problem

2017-01-21 Thread Peter Rolf
colX,width=3cm]\hskip-1.5cm > \blackrule[color=colY,width=3cm] > \stopbuffer > > \getbuffer \par \color[colY]{\getbuffer} > > \setupcolors[rgb=no] > > \getbuffer \par \color[colY]{\getbuffer} > > \setupcolors[rgb=no,cmyk=no] > > \getbuffer \par \color[colY]{\getbuffer}

Re: [NTG-context] nested colors problem

2017-01-21 Thread Hans Hagen
it just happens that coming from mkii colors can have transparencies as Alan says: they are different things (also in metafun) \startMPcode fill fullcircle scaled 4cm withcolor "red" ; fill fullcircle scaled 3cm withtransparency (1,0.5) ; fill fullcircle

Re: [NTG-context] Asymptote or Metapost and ConTeXt parameters.

2016-12-20 Thread Aditya Mahajan
On Tue, 20 Dec 2016, Alan Braslau wrote: On Mon, 19 Dec 2016 08:19:25 -0800 Aditya Mahajan <adit...@umich.edu> wrote: The ability to pass parameters to metapost has been around since the beginning. See the metafun manual for details (search for MPvar). Hans has developed tools

Re: [NTG-context] Asymptote or Metapost and ConTeXt parameters.

2016-12-20 Thread Alan Braslau
On Mon, 19 Dec 2016 08:19:25 -0800 Aditya Mahajan <adit...@umich.edu> wrote: > The ability to pass parameters to metapost has been around since the > beginning. See the metafun manual for details (search for MPvar). Hans has developed tools making it quite easy to pass data ba

Re: [NTG-context] Asymptote or Metapost and ConTeXt parameters.

2016-12-20 Thread Jaroslav Hajtmar
ctures it would probably suffice The ability to pass parameters to metapost has been around since the beginning. See the metafun manual for details (search for MPvar). For simple images, you can also do: \define[1]\Circle{\startMPcode draw fullcircle scaled #1*cm;

Re: [NTG-context] Asymptote or Metapost and ConTeXt parameters.

2016-12-19 Thread Aditya Mahajan
On Mon, 19 Dec 2016, Jaroslav Hajtmar wrote: There is a similar possibility, at least in Metapost? For simpler pictures it would probably suffice The ability to pass parameters to metapost has been around since the beginning. See the metafun manual for details (search for MPvar

Re: [NTG-context] Overlays and layers documentation?

2016-12-06 Thread Willi Egger
Apart from the link given you might also read the Metafun manual and parts of the Details manual. Willi > On 22 Nov 2016, at 14:04, Henri Menke <henrime...@gmail.com> wrote: > > On 11/21/2016 07:44 PM, Jaroslav Hajtmar wrote: >> Hello ConTeXist. >> >> Is

Re: [NTG-context] Vim wiki page updated

2016-11-05 Thread Wolfgang Schuster
Nicola <mailto:nvitacolo...@gmail.com> 3. November 2016 um 11:25 On 03/11/2016 10:45, Hans Hagen wrote: On 11/2/2016 11:35 PM, Aditya Mahajan wrote: On Wed, 2 Nov 2016, Nicola wrote: The syntax scripts in Vim already cover all of MetaFun. MetaFun keywords are highlighted by default

Re: [NTG-context] Vim wiki page updated

2016-11-05 Thread Alan Braslau
need? > > I need the list of all macros, vardefs, internals, and global variables > from all MetaFun files. The format should be Vim's syntax format: > > https://github.com/vim/vim/blob/master/runtime/syntax/mp.vim > > Nicola

Re: [NTG-context] Vim wiki page updated

2016-11-03 Thread Nicola
, and global variables from all MetaFun files. The format should be Vim's syntax format: https://github.com/vim/vim/blob/master/runtime/syntax/mp.vim Nicola ___ If your question is of interest to others as well, please add

Re: [NTG-context] Vim wiki page updated

2016-11-03 Thread Hans Hagen
On 11/3/2016 11:25 AM, Nicola wrote: On 03/11/2016 10:45, Hans Hagen wrote: On 11/2/2016 11:35 PM, Aditya Mahajan wrote: On Wed, 2 Nov 2016, Nicola wrote: The syntax scripts in Vim already cover all of MetaFun. MetaFun keywords are highlighted by default inside ConTeXt documents

Re: [NTG-context] Vim wiki page updated

2016-11-03 Thread Nicola
On 03/11/2016 10:45, Hans Hagen wrote: On 11/2/2016 11:35 PM, Aditya Mahajan wrote: On Wed, 2 Nov 2016, Nicola wrote: The syntax scripts in Vim already cover all of MetaFun. MetaFun keywords are highlighted by default inside ConTeXt documents; for MetaPost files ('mp' filetype), you must put

Re: [NTG-context] Vim wiki page updated

2016-11-03 Thread Hans Hagen
On 11/2/2016 11:35 PM, Aditya Mahajan wrote: On Wed, 2 Nov 2016, Nicola wrote: The syntax scripts in Vim already cover all of MetaFun. MetaFun keywords are highlighted by default inside ConTeXt documents; for MetaPost files ('mp' filetype), you must put let g:mp_metafun_macros = 1

Re: [NTG-context] Vim wiki page updated

2016-11-02 Thread Aditya Mahajan
On Wed, 2 Nov 2016, Nicola wrote: The syntax scripts in Vim already cover all of MetaFun. MetaFun keywords are highlighted by default inside ConTeXt documents; for MetaPost files ('mp' filetype), you must put let g:mp_metafun_macros = 1 into your vimrc. Ah, great! > The indent f

Re: [NTG-context] Vim wiki page updated

2016-11-02 Thread Nicola
o remove that dependency... > The metapost syntax highlighting file defines a few keywords that are > used by > metafun. Could these be merged to your mp syntax highlighting file? The syntax scripts in Vim already cover all of MetaFun. MetaFun keywords are highlighted by default insid

Re: [NTG-context] Vim wiki page updated

2016-11-02 Thread Aditya Mahajan
syntax highlighting file defines a few keywords that are used by metafun. Could these be merged to your mp syntax highlighting file? The indent file is adapted from (I think) latex-suite's indent file with modificiations that suit my taste. I am not sure these should go into the default vim

Re: [NTG-context] Text editors

2016-10-27 Thread culleton-p-md
't used jEdit for a while). Too bad. >> - TextWrangler (shameless plug: I wrote decent syntax support for MetaPost/MetaFun); > > I’m still using that, too (but switching). Where can we find your support files? http://users.dimi.uniud.it/~nicola.vitacolonna/software/metapost-textw

Re: [NTG-context] Text editors

2016-10-25 Thread Nicola
I haven't used jEdit for a while). Too bad. >> - TextWrangler (shameless plug: I wrote decent syntax support for MetaPost/MetaFun); > > I’m still using that, too (but switching). Where can we find your support files? http://users.dimi.uniud.it/~nicola.vitacolonna/software/

Re: [NTG-context] Text editors

2016-10-25 Thread Henning Hraban Ramm
it didn’t for me years ago). For LilyPond there’s nothing better than Frescobaldi (except Emacs, vi and ed, of course). > - TextWrangler (shameless plug: I wrote decent syntax support for > MetaPost/MetaFun); I’m still using that, too (but switching). Where can we find your support files?

Re: [NTG-context] Text editors

2016-10-25 Thread Nicola
lude: - jEdit (http://www.jedit.org), good for TeX and LilyPond; - TextWrangler (shameless plug: I wrote decent syntax support for MetaPost/MetaFun); - Atom (https://atom.io): I have not used it much, but it has lots of plugins, so chances are that there is some goo

Re: [NTG-context] buffers inside startMPpage

2016-10-14 Thread Jan Willem Flamma
list members, >> >> I create all my MetaFun drawings in a separate environment file where each >> individual drawing sits inside a start/stopbuffer. This allows me to easily >> use those drawings in all my documents using \processMPbuffer[name]. Works >> just fine

Re: [NTG-context] buffers inside startMPpage

2016-10-14 Thread Wolfgang Schuster
Jan Willem Flamma <mailto:jwfregis...@icloud.com> 14. Oktober 2016 um 10:12 Dear list members, I create all my MetaFun drawings in a separate environment file where each individual drawing sits inside a start/stopbuffer. This allows me to easily use those drawings in all my documents

[NTG-context] buffers inside startMPpage

2016-10-14 Thread Jan Willem Flamma
Dear list members, I create all my MetaFun drawings in a separate environment file where each individual drawing sits inside a start/stopbuffer. This allows me to easily use those drawings in all my documents using \processMPbuffer[name]. Works just fine. However, I also wish to have all

Re: [NTG-context] [NTG-Context] Problem with \usemodule[graph] and El Capitan (mac OS)

2016-09-01 Thread Louis-solal Giboin
also come from a different version of ConText? Dear Hans, I would like to thank you for all your work on Metafun, as it is the tool I use now exclusively for all my scientific figures. Best regards, Louis-Solal 2016-09-01 11:43 GMT+02:00 Taco Hoekwater <t...@elvenkind.com>: > Hi, >

Re: [NTG-context] drawpathoptions and drawoptions

2016-08-08 Thread Mikael P. Sundqvist
On Mon, Aug 8, 2016 at 2:03 PM, Hans Hagen <pra...@wxs.nl> wrote: > On 8/5/2016 7:54 AM, Mikael P. Sundqvist wrote: >> >> On Tue, Aug 2, 2016 at 5:48 PM, Mikael P. Sundqvist <mic...@gmail.com> >> wrote: >>> >>> Hi, >>> >>>

Re: [NTG-context] drawpathoptions and drawoptions

2016-08-08 Thread Hans Hagen
On 8/5/2016 7:54 AM, Mikael P. Sundqvist wrote: On Tue, Aug 2, 2016 at 5:48 PM, Mikael P. Sundqvist <mic...@gmail.com> wrote: Hi, I have two questions: 1) In the metafun manual I found (p 57 in the version I browse) a setting drawpathoptions. I tried with \startMPpage drawpatho

Re: [NTG-context] drawpathoptions and drawoptions

2016-08-04 Thread Mikael P. Sundqvist
On Tue, Aug 2, 2016 at 5:48 PM, Mikael P. Sundqvist <mic...@gmail.com> wrote: > Hi, > > I have two questions: > > 1) In the metafun manual I found (p 57 in the version I browse) a > setting drawpathoptions. > > I tried with > > \startMPpage > drawpathop

[NTG-context] drawpathoptions and drawoptions

2016-08-02 Thread Mikael P. Sundqvist
Hi, I have two questions: 1) In the metafun manual I found (p 57 in the version I browse) a setting drawpathoptions. I tried with \startMPpage drawpathoptions(withcolor darkred); path p; p:= (0,0)--(1cm,1cm)--(1cm,0)--(0,1cm); draw p; \stopMPpage but the result turned out to be black. Isn't

Re: [NTG-context] Randomize control points in metapost/metafun?

2016-08-01 Thread Hans Hagen
On 8/1/2016 12:47 PM, Mikael P. Sundqvist wrote: Wow! That was fast! I just updated and it indeed works as expected. I hate to ask another thing when I just got this fast and nice help, but is there also a way to change the control points in such a way that no _new_ sharp corners occur?

Re: [NTG-context] Randomize control points in metapost/metafun?

2016-08-01 Thread Mikael P. Sundqvist
On Mon, Aug 1, 2016 at 10:12 AM, Hans Hagen wrote: > On 8/1/2016 8:03 AM, Mikael P. Sundqvist wrote: >> >> Hi! >> >> I look for a way to randomize control points of a path, leaving the >> coordinates themselves untouched. >> >> The reason is the following: I want to draw (for

Re: [NTG-context] Randomize control points in metapost/metafun?

2016-08-01 Thread Hans Hagen
On 8/1/2016 8:03 AM, Mikael P. Sundqvist wrote: Hi! I look for a way to randomize control points of a path, leaving the coordinates themselves untouched. The reason is the following: I want to draw (for example) a circle with a triangle inside, and I want them to look slightly randomized. If I

[NTG-context] Randomize control points in metapost/metafun?

2016-08-01 Thread Mikael P. Sundqvist
Hi! I look for a way to randomize control points of a path, leaving the coordinates themselves untouched. The reason is the following: I want to draw (for example) a circle with a triangle inside, and I want them to look slightly randomized. If I do (see attached pdf for a typical result of

Re: [NTG-context] Optimize code to create a environnementt with Metafun ?

2016-07-28 Thread Jean-Pierre Delange
This frame seems very nice in order to use it as a summary, or a chapter's conclusion. Thank you Fabrice, Wolfgang and Dalyoung ! Le 28/07/2016 à 15:36, Wolfgang Schuster a écrit : Jeong Dal 28. Juli 2016 um 15:17 Dear Fabrice and Wolfgang, I tried the following code

Re: [NTG-context] Optimize code to create a environnementt with Metafun ?

2016-07-28 Thread Jeong Dal
Dear Wolfgang, Thank you for the correction, It works fine. I couldn’t see extra ‘m’ when I check. Thanks again. Best regards, Dalyoung ___ If your question is of interest to others as well, please add an entry to

Re: [NTG-context] Optimize code to create a environnementt with Metafun ?

2016-07-28 Thread Wolfgang Schuster
Jeong Dal 28. Juli 2016 um 15:17 Dear Fabrice and Wolfgang, I tried the following code of yours, but I got “! undefined control sequence” error. Would you please tell me where I should to correct? Thank you so much, Best regards, Dalyoung %%%

Re: [NTG-context] Optimize code to create a environnementt with Metafun ?

2016-07-28 Thread Jeong Dal
Dear Fabrice and Wolfgang, I tried the following code of yours, but I got “! undefined control sequence” error. Would you please tell me where I should to correct? Thank you so much, Best regards, Dalyoung %%% \setupbodyfont[pagella,11pt] \setupcolors[state=start]

Re: [NTG-context] Optimize code to create a environnementt with Metafun ?

2016-07-26 Thread Fabrice Couvreur
Hi Wolfgang Thanks once again ! \startMyFrame[Title=Thanks ] \input knuth \stopMyFrame \startMyFrame[Title=once again !] \input knuth \stopMyFrame Fabrice 2016-07-26 21:49 GMT+02:00 Wolfgang Schuster : > Fabrice Couvreur > 26. Juli

Re: [NTG-context] Optimize code to create a environnementt with Metafun ?

2016-07-26 Thread Wolfgang Schuster
Fabrice Couvreur 26. Juli 2016 um 20:21 Hi Hans, I think I was not very clear. Title first framed : Hans Title second framed : Hagen You can pass a title to the optional framedtext argument (use camel case to avoid using existing key names) and access

Re: [NTG-context] Optimize code to create a environnementt with Metafun ?

2016-07-26 Thread Fabrice Couvreur
Pgraphic >> >> \defineoverlay >> [MyFrame] >> [\useMPgraphic{MyFrame}] >> >> \starttext >> >> >> \startSomeText{SomeText1} >> \input knuth >> \stopSomeText >> >> \startSomeText{SomeText2} >> \input knuth >> \stopSom

Re: [NTG-context] Optimize code to create a environnementt with Metafun ?

2016-07-26 Thread Hans Hagen
On 7/26/2016 2:20 PM, Fabrice Couvreur wrote: Hi Hans, So the code is "perfect"? : =) typography? sure, but more a discussion topic at the ctx meeting Seriously, where can we read the conference proceedings? such things don't end up in proceedings ... btw, it's those (and other)

Re: [NTG-context] Optimize code to create a environnementt with Metafun ?

2016-07-26 Thread Hans Hagen
...@wxs.nl>>: On 7/26/2016 10:18 AM, Fabrice Couvreur wrote: Hello, Hans and Wolfgang really helped me to create new environments with Metafun. I think Hans continuous development Metafun. So my question is simple: can we optimize this code?

Re: [NTG-context] Optimize code to create a environnementt with Metafun ?

2016-07-26 Thread Fabrice Couvreur
and Wolfgang really helped me to create new environments with >> Metafun. >> I think Hans continuous development Metafun. So my question is simple: >> can we optimize this code? >> > > in what sense ... > > speed? not much to gain > > correctness? mayhe use "

Re: [NTG-context] Optimize code to create a environnementt with Metafun ?

2016-07-26 Thread Fabrice Couvreur
r wrote: > >> Hello, >> Hans and Wolfgang really helped me to create new environments with >> Metafun. >> I think Hans continuous development Metafun. So my question is simple: >> can we optimize this code? >> > > in what sense ... > > speed

Re: [NTG-context] Optimize code to create a environnementt with Metafun ?

2016-07-26 Thread Hans Hagen
On 7/26/2016 10:18 AM, Fabrice Couvreur wrote: Hello, Hans and Wolfgang really helped me to create new environments with Metafun. I think Hans continuous development Metafun. So my question is simple: can we optimize this code? in what sense ... speed? not much to gain correctness? mayhe use

[NTG-context] Optimize code to create a environnementt with Metafun ?

2016-07-26 Thread Fabrice Couvreur
Hello, Hans and Wolfgang really helped me to create new environments with Metafun. I think Hans continuous development Metafun. So my question is simple: can we optimize this code ? Thanks, Fabrice \setupbodyfont[pagella,11pt] \setupcolors[state=start] \defineframedtext [MyDefinition

Re: [NTG-context] Place a text over an arrow (Metafun)

2016-07-25 Thread Otared Kavian
> On 25 Jul 2016, at 11:47, Fabrice Couvreur > wrote: > > Hi Hans and Otared, > I did not know this module (Context is so rich !), it's great ! > thanks > Fabrice Indeed… ConTeXt is so rich! Probably I use only one or two per cent of its capabilities, but still I

Re: [NTG-context] Place a text over an arrow (Metafun)

2016-07-25 Thread Fabrice Couvreur
Hi Hans and Otared, I did not know this module (Context is so rich !), it's great ! thanks Fabrice 2016-07-25 11:29 GMT+02:00 Otared Kavian : > Hi Fabrice, > > Do you know the step charts module in ConTeXt? I guess you can achieve > what you want as in the example below (sorry,

Re: [NTG-context] Place a text over an arrow (Metafun)

2016-07-25 Thread Otared Kavian
Hi Fabrice, Do you know the step charts module in ConTeXt? I guess you can achieve what you want as in the example below (sorry, I did not took your example, I am just copying an example from my archives…). %% \usemodule[steps] \starttext Pour voir que la composée de deux fonctions

Re: [NTG-context] Place a text over an arrow (Metafun)

2016-07-25 Thread Hans Hagen
On 7/25/2016 10:36 AM, Fabrice Couvreur wrote: Hello, My way is not very elegant but I would do this: Formula arrow text Formula arrow text Formula arrow text Formula #

[NTG-context] Place a text over an arrow (Metafun)

2016-07-25 Thread Fabrice Couvreur
Hello, My way is not very elegant but I would do this: Formula arrow text Formula arrow text Formula arrow text Formula # \startuseMPgraphic{MyArrow} path p ;

Re: [NTG-context] Remove files that are not needed (Metafun)

2016-07-12 Thread Fabrice Couvreur
Thanks Wolfgang and Aditya Fabrice 2016-07-12 21:04 GMT+02:00 Wolfgang Schuster : > Fabrice Couvreur > 12. Juli 2016 um 20:41 > > How filling the number ? > > \startusableMPgraphic{NumberHead} > draw outlinetext.b >

Re: [NTG-context] Remove files that are not needed (Metafun)

2016-07-12 Thread Wolfgang Schuster
Fabrice Couvreur 12. Juli 2016 um 20:41 How filling the number ? \startusableMPgraphic{NumberHead} draw outlinetext.b ("\bf\namedheadnumber{chapter}") (withcolor "lightgray") (withpen pencircle scaled .1) ysized 60pt ;

Re: [NTG-context] Remove files that are not needed (Metafun)

2016-07-12 Thread Aditya Mahajan
On Tue, 12 Jul 2016, Fabrice Couvreur wrote: this is more modern (the method, not the font): How filling the number ? \starttext \startMPpage draw outlinetext.d ("Hello") (withpen pencircle scaled 0.1bp withcolor red) ysized 60pt ; \stopMPpage

Re: [NTG-context] Remove files that are not needed (Metafun)

2016-07-12 Thread Fabrice Couvreur
> > this is more modern (the method, not the font): How filling the number ? 2016-07-12 17:56 GMT+02:00 Hans Hagen : > On 7/12/2016 5:21 PM, Fabrice Couvreur wrote: > >> Compiling this file returns files ntg46-mpgraph.log ntg46-mpgraph.tex >> ntg46-mpgraph.mpy ntg46-mpgraph.pdf

Re: [NTG-context] Remove files that are not needed (Metafun)

2016-07-12 Thread Hans Hagen
On 7/12/2016 5:21 PM, Fabrice Couvreur wrote: Compiling this file returns files ntg46-mpgraph.log ntg46-mpgraph.tex ntg46-mpgraph.mpy ntg46-mpgraph.pdf ntg46-mpgraph.tuc this is more modern (the method, not the font): \startusableMPgraphic{NumberHead} draw outlinetext.d

Re: [NTG-context] Remove files that are not needed (Metafun)

2016-07-12 Thread Fabrice Couvreur
Compiling this file returns files ntg46-mpgraph.log ntg46-mpgraph.tex ntg46-mpgraph.mpy ntg46-mpgraph.pdf ntg46-mpgraph.tuc % macros=mkvi \setuppagenumbering[location=footer] \startusableMPgraphic{NumberHead} picture r ; r := image ( graphictext

Re: [NTG-context] Remove files that are not needed (Metafun)

2016-07-12 Thread Hans Hagen
On 7/12/2016 3:30 PM, Fabrice Couvreur wrote: Thank youfor the information, but it remains to delete the files ... mpgraph.log fwiw, mkiv normally doesn't have such files Hans - Hans

Re: [NTG-context] Remove files that are not needed (Metafun)

2016-07-12 Thread Fabrice Couvreur
gt; > On 12 jul. 2016, at 12:44, Fabrice Couvreur <fabrice1.couvr...@gmail.com> > wrote: > > > > > > Hello, > > One of my command uses a macro build from Metafun. The compilation > generates many files. > > How to delete files in the formats mpgraph.log, mpgra

Re: [NTG-context] Remove files that are not needed (Metafun)

2016-07-12 Thread Willi Egger
context —purgeall is your friend. The pdfs you will have to delete manually. Willi > On 12 jul. 2016, at 12:44, Fabrice Couvreur <fabrice1.couvr...@gmail.com> > wrote: > > > Hello, > One of my command uses a macro build from Metafun. The compilation generates >

[NTG-context] Remove files that are not needed (Metafun)

2016-07-12 Thread Fabrice Couvreur
Hello, One of my command uses a macro build from Metafun. The compilation generates many files. How to delete files in the formats mpgraph.log, mpgraph.mpy, mpgraph.pdf, mpgraph.tex and mpgraph.tuc ? thank you, Fabrice

Re: [NTG-context] Baseline and framed

2016-07-06 Thread Fabrice Couvreur
ramed[width=fit,align=left,frame=off]{\darkred#1}% >> >> \inframed[width=fit,align=right,leftframe=on,rulethickness=4pt,framecolor=darkred]{#2}% >>\egroup} >> >> Thank you Hans, the code would be: >> Could I ask you how to have the chapter number is like the >

Re: [NTG-context] Baseline and framed

2016-07-06 Thread Fabrice Couvreur
s like the > http://www.pragma-ade.nl/general/manuals/cont-enp.pdf book? > This is a macro Metafun but I do not quite understand the mechanism. > thank you, > Fabrice > > 2016-07-06 15:03 GMT+02:00 Hans Hagen <pra...@wxs.nl>: > >> On 7/6/2016 1:37 PM, Fabrice Couvreur

Re: [NTG-context] Baseline and framed

2016-07-06 Thread Fabrice Couvreur
}% \egroup} Thank you Hans, the code would be: Could I ask you how to have the chapter number is like the http://www.pragma-ade.nl/general/manuals/cont-enp.pdf book? This is a macro Metafun but I do not quite understand the mechanism. thank you, Fabrice 2016-07-06 15:03 GMT+02:00 Hans Hagen <

Re: [NTG-context] Creating SVG: using MetaFun, exporting proper units, conversion to DXF

2016-06-30 Thread Hans Hagen
decided to try to use the super ugly route with metapost -> svg -> dxf -> g-code for the first time. I have a few questions. (1) I love Hans' shortcuts in metafun, but I seem to remember that things like input metafun; or perhaps input mp-tool; used to work, so that I d

Re: [NTG-context] Creating SVG: using MetaFun, exporting proper units, conversion to DXF

2016-06-29 Thread Jan Tosovsky
On 2016-06-29 Mojca Miklavec wrote: > > I want to play with CNC and don't yet have any experience with CAD > software (nor the licence for the expensive ones) other than perhaps > some Blender, so I decided to try to use the super ugly route with > metapost -> svg -> dxf -> g-code for the first

Re: [NTG-context] Creating SVG: using MetaFun, exporting proper units, conversion to DXF

2016-06-29 Thread Mojca Miklavec
ome Blender, so I decided to try to use the super ugly route with >> metapost -> svg -> dxf -> g-code >> for the first time. >> >> I have a few questions. >> >> (1) I love Hans' shortcuts in metafun, but I seem to remember that things >> like >&

Re: [NTG-context] Creating SVG: using MetaFun, exporting proper units, conversion to DXF

2016-06-29 Thread Hans Hagen
t; g-code for the first time. I have a few questions. (1) I love Hans' shortcuts in metafun, but I seem to remember that things like input metafun; or perhaps input mp-tool; used to work, so that I don't have to remember to use mpost -mem=metafun my-drawings.mp when compiling the graph

[NTG-context] Creating SVG: using MetaFun, exporting proper units, conversion to DXF

2016-06-29 Thread Mojca Miklavec
s. (1) I love Hans' shortcuts in metafun, but I seem to remember that things like input metafun; or perhaps input mp-tool; used to work, so that I don't have to remember to use mpost -mem=metafun my-drawings.mp when compiling the graphics. Did the method with "input" ever work

Re: [NTG-context] Package esvect and Context

2016-06-07 Thread Fabrice Couvreur
nts (second stage) fonts > 'fallback modern-designsize rm 12pt' is loaded metapost> initializing instance 'metafun' using format 'metafun' metapost> loading 'metafun' as '/home/fab/context/tex/texmf-context/metapost/context/base/mpiv/metafun.mpiv' using method 'd

Re: [NTG-context] guiding line in tabulate

2016-06-07 Thread Wolfgang Schuster
s from MetaFun (chapter 5 in the manual), a simpler TeX based solution is AFAIK not available because of the alignment numbers in the second column. Wolfgang ___ If your question is of interest to others as well, plea

Re: [NTG-context] Alignment/line break in a TABLE cell

2016-05-19 Thread Mari Voipio
with black outline and white fill (OK, I pinched most of it from the MetaFun manual...). This seems to work: \startuseMPgraphic{box3mm_filled} pickup pencircle scaled .02cm ; path p ; p := unitsquare scaled 3mm ; fill p withcolor white ; draw p withcolor black ; \stopuseMPgraphic

Re: [NTG-context] useMPgraphic scaling

2016-04-25 Thread Meer, Hans van der
ight=..] etc. Is such a scaling or separate height,width setting also possible with the placement of useMPgraphic? Or needs all scaling of thesebe done within the metapost/metafun code? \scale[...]{} Hans van der Meer ___ If y

Re: [NTG-context] useMPgraphic scaling

2016-04-25 Thread Hans Hagen
the metapost/metafun code? \scale[...]{} - Hans Hagen | PRAGMA ADE Ridderstraat 27 | 8061 GH Hasselt | The Netherlands tel: 038 477 53 69 | www.pragma-ade.com | www.pragma

[NTG-context] useMPgraphic scaling

2016-04-25 Thread Meer, Hans van der
With images one can scale them on placement, for example \externalfigure[][scale=250,height=..] etc. Is such a scaling or separate height,width setting also possible with the placement of useMPgraphic? Or needs all scaling of thesebe done within the metapost/metafun code? Hans van der Meer

Re: [NTG-context] \startuseMPgraphic

2016-04-11 Thread Alan BRASLAU
On Mon, 11 Apr 2016 22:10:02 +0900 Jeong Dal <hak...@me.com> wrote: > BTW, if I change “orange” to “red” or “green”, it is working fine. I > think that “orange” is not the predefined color. There is no color > “orange” in the MetaFun manual either. Defined MP colors are: col

[NTG-context] \startuseMPgraphic

2016-04-11 Thread Jeong Dal
Dear Hans van der Meer, Thank you for your sample code. I learned how to pass the value of the variables. BTW, if I change “orange” to “red” or “green”, it is working fine. I think that “orange” is not the predefined color. There is no color “orange” in the MetaFun manual either. Thank you

Re: [NTG-context] MPinstance

2016-04-07 Thread Meer, Hans van der
Alan Braslau wrote: For example, I work with a "3D" instance of MP: \defineMPinstance [three] [format=metafun, extensions=yes, initializations=yes, method=double] \startMPdefinitions{three} input three ; \stopMPdefinitions Where three.mp contains my 3D projection ma

Re: [NTG-context] MPinstance

2016-04-07 Thread Alan BRASLAU
0 > > [...] name > > format metafun mpost > > etc. > > > > I read this as: > > in the first argument one can specify a name presumably a name > > specified on \defineMPinstance. in the second argument > > [format=metafun] specifies the format. But the

Re: [NTG-context] MPinstance

2016-04-07 Thread Hans Hagen
On 4/7/2016 11:20 AM, dr. Hans van der Meer wrote: I do not understand the info in the ConTeXt wiki on setupMPinstance. The syntax is specified as \setupMPinstance[...][...,...=...,...0 [...] name format metafun mpost etc. I read this as: in the first argument one can specify a name presumably

[NTG-context] MPinstance

2016-04-07 Thread dr. Hans van der Meer
I do not understand the info in the ConTeXt wiki on setupMPinstance. The syntax is specified as \setupMPinstance[...][...,...=...,...0 [...] name format metafun mpost etc. I read this as: in the first argument one can specify a name presumably a name specified on \defineMPinstance

Re: [NTG-context] deprecated startMPenvironment

2016-04-04 Thread Wolfgang Schuster
\defineMPinstance[mp:local][metafun][setups=mp:smallfont,textcolor=red] \startsetups mp:smallfont \switchtobodyfont[small] \stopsetups \startMPpage and also \startMPpage[mp:local] % metafont code \stopMPpage \stoptext \endinput But nothing happens. How do I get the effect earlier obtained with startMPe

Re: [NTG-context] deprecated startMPenvironment

2016-04-04 Thread Meer, Hans van der
e not having to change may things all over the place. Now I learn from the ConTeXtgarden that startMPenvironment is deprecated and that I should use defineMPinstance and setupMPinstance instead. Thus I tried \defineMPinstance[mp:local][metafun][setups=mp:smallfont,textcolor=red] \startsetups

Re: [NTG-context] deprecated startMPenvironment

2016-04-03 Thread Hans Hagen
that startMPenvironment is deprecated and that I should use defineMPinstance and setupMPinstance instead. Thus I tried \defineMPinstance[mp:local][metafun][setups=mp:smallfont,textcolor=red] \startsetups mp:smallfont \switchtobodyfont[small] \stopsetups \startMPpage and also \startMPpage[mp:local

[NTG-context] deprecated startMPenvironment

2016-04-03 Thread Meer, Hans van der
use defineMPinstance and setupMPinstance instead. Thus I tried \defineMPinstance[mp:local][metafun][setups=mp:smallfont,textcolor=red] \startsetups mp:smallfont \switchtobodyfont[small] \stopsetups \startMPpage and also \startMPpage[mp:local] % metafont code \stopMPpage \stoptext \endinput

Re: [NTG-context] metafun

2016-03-24 Thread Hans Hagen
On 3/24/2016 6:24 PM, Piotr Kopszak wrote: P.S. For your conveniance, the minimal example: \startMPpositiongraphic{mypos:arrow} pair c[] ; initialize_box(\MPpos{\MPvar{self}}); c[1] := cxy ; initialize_box(\MPpos{\MPvar{to}}); c[2] := cxy ; drawarrow c[1] -- c[2]

Re: [NTG-context] metafun

2016-03-24 Thread luigi scarso
}{arrow}. > As with most things in \CONTEXT, marking these words is separated > from declaring what to do with those words. This paragraph is keyed > in as: > > \stoptext > > > context testsuite http://www.pragma-ade.nl/context/latest/cont-tst.7z doc/context/tests/mkiv/metafun/

Re: [NTG-context] metafun

2016-03-24 Thread Piotr Kopszak
P.S. For your conveniance, the minimal example: \startMPpositiongraphic{mypos:arrow} pair c[] ; initialize_box(\MPpos{\MPvar{self}}); c[1] := cxy ; initialize_box(\MPpos{\MPvar{to}}); c[2] := cxy ; drawarrow c[1] -- c[2] withpen pencircle scaled 2bp ; \stopMPpositiongraphic

Re: [NTG-context] metafun

2016-03-24 Thread Piotr Kopszak
Hello list, The solution shown here no longer works with recent beta (indeed, it probably ceased to work some time ago). How should it be corrected? Best Piotr 2010-10-24 0:14 GMT+02:00 Aditya Mahajan : > On Sat, 23 Oct 2010, Herbert Voss wrote: > >> It is a hard job to

[NTG-context] next beta

2016-02-25 Thread Hans Hagen
Hi, The next beta will have a more efficient metafun filldraw option named 'fillup' (flaw and drill were rejected as operator names): \starttext \startMPpage fill fullsquare scaled 4cm withpen pencircle scaled 1cm; draw fullsquare scaled 4cm withpen pencircle scaled

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