Re: [NTG-context] About graphictext macro (Metafun)

2015-08-27 Thread Fabrice Couvreur
; > 2015-08-27 9:39 GMT+02:00 Hans Hagen : > >> On 8/26/2015 7:12 PM, Fabrice Couvreur wrote: >> >>> Hi, >>> I try to understand how this macro by testing a simple example. Why pdf >>> file is empty? >>> This question f

Re: [NTG-context] About graphictext macro (Metafun)

2015-08-27 Thread Fabrice Couvreur
: > On 8/26/2015 7:12 PM, Fabrice Couvreur wrote: > >> Hi, >> I try to understand how this macro by testing a simple example. Why pdf >> file is empty? >> This question follows my question Cover page (Metafun) >> http://www.ntg.nl/pipermail/ntg-c

Re: [NTG-context] About graphictext macro (Metafun)

2015-08-27 Thread Hans Hagen
On 8/26/2015 7:12 PM, Fabrice Couvreur wrote: Hi, I try to understand how this macro by testing a simple example. Why pdf file is empty? This question follows my question Cover page (Metafun) http://www.ntg.nl/pipermail/ntg-context/2015/083078.html Thank you. \setuppagenumbering[location

[NTG-context] About graphictext macro (Metafun)

2015-08-26 Thread Fabrice Couvreur
Hi, I try to understand how this macro by testing a simple example. Why pdf file is empty ? This question follows my question Cover page (Metafun) http://www.ntg.nl/pipermail/ntg-context/2015/083078.html Thank you. \setuppagenumbering[location=] \setupcolors [state=start] \setMPtext{text

[NTG-context] Cover page (Metafun)

2015-08-14 Thread Fabrice Couvreur
Hi Hans, To progress in the use of Metafun, I try to do the same cover page as your document 'Metafun ". Without looking at the code (but using the definitions of your colors), I managed to get the mosaic. I would write the word "MATHÉMATIQUES" as you did with the word &q

Re: [NTG-context] Command that does not give the expected result (Metafun)

2015-08-11 Thread Fabrice Couvreur
Hi Wolfgang, I will follow your advice but I will try to understand, when I have the time , the difference between \unexpanded\def\ChapterCommand#1#2% et \def\ChapterCommand#1#2%. Fabrice 2015-08-10 22:38 GMT+02:00 Wolfgang Schuster : > Fabrice Couvreur > 10. August 2015 09:13 > Dear Hans, > I t

Re: [NTG-context] Command that does not give the expected result (Metafun)

2015-08-10 Thread Wolfgang Schuster
Fabrice Couvreur 10. August 2015 09:13 Dear Hans, I tested without understanding what \unexpanded, and of course it works! You can use ConTeXt’s \define command where you don’t have to think about \unexpanded etc., e.g. \define[2]\ChapterCommand {\setbox\

Re: [NTG-context] Command that does not give the expected result (Metafun)

2015-08-10 Thread Fabrice Couvreur
Dear Hans, I tested without understanding what \unexpanded, and of course it works ! Thank you, Fabrice 2015-08-09 15:40 GMT+02:00 Hans Hagen : > On 8/9/2015 1:27 PM, Fabrice Couvreur wrote: > >> Hi Hans, >> In the document Metafun, you use commands that I like, and I try to

Re: [NTG-context] Command that does not give the expected result (Metafun)

2015-08-09 Thread Hans Hagen
On 8/9/2015 1:27 PM, Fabrice Couvreur wrote: Hi Hans, In the document Metafun, you use commands that I like, and I try to understand the definition and operation, which is not always easy with TeX commands. Also, in the following code, this does not give the expected result. Thank you. Fabrice

[NTG-context] Command that does not give the expected result (Metafun)

2015-08-09 Thread Fabrice Couvreur
Hi Hans, In the document Metafun, you use commands that I like, and I try to understand the definition and operation, which is not always easy with TeX commands. Also, in the following code, this does not give the expected result. Thank you. Fabrice \showframe \setupcolors [state=start

Re: [NTG-context] Some questions about an environment (Metafun)

2015-08-07 Thread Fabrice Couvreur
Hi Hans, Thank you for responding to my request, it's really nice. By cons I do not understand what you mean " some day textext might handle it okay" Fabrice 2015-08-07 14:26 GMT+02:00 Hans Hagen : > On 8/6/2015 11:38 PM, Fabrice Couvreur wrote: > >> Hi, >

Re: [NTG-context] Some questions about an environment (Metafun)

2015-08-07 Thread Hans Hagen
On 8/6/2015 11:38 PM, Fabrice Couvreur wrote: Hi, The following code (Metafun documentation, thanks again Hans !) is fully understood and works very well. Sorry if I insist, but can we create a counter to avoid writing \FrameTitle{Définition 1}, \FrameTitle{Définition 2}... ? Thus, the only

Re: [NTG-context] Some questions about an environment (Metafun)

2015-08-06 Thread Fabrice Couvreur
Hi, The following code (Metafun documentation, thanks again Hans !) is fully understood and works very well. Sorry if I insist, but can we create a counter to avoid writing \FrameTitle{Définition 1}, \FrameTitle{Définition 2}... ? Thus, the only invocation \startMyText ... \stopMyText

Re: [NTG-context] Some questions about an environment (Metafun)

2015-08-04 Thread Fabrice Couvreur
Hi Aditya, Thank you, I have already thought of this solution, but I do not know to use with the environment that I created. Fabrice 2015-08-04 18:02 GMT+02:00 Aditya Mahajan : > On Tue, 4 Aug 2015, Fabrice Couvreur wrote: > > How to have Definition 1, Definition 2, Definition 3 ... ? >> > > \def

Re: [NTG-context] Some questions about an environment (Metafun)

2015-08-04 Thread Fabrice Couvreur
Hi Hans, Thank you for your suggestion, but it's not what I want, but I probably misstated my request. For me, the image p contains the text "Définition 1", and this is what I want orange rectangle translate to the left edge of the text area. Am I more clearly ? Fabrice 2015-08-04 20:08 GMT+02:00

Re: [NTG-context] Some questions about an environment (Metafun)

2015-08-04 Thread Hans Hagen
On 8/4/2015 5:04 PM, Fabrice Couvreur wrote: Hi, How to have Definition 1, Definition 2, Definition 3 ...? Is it possible to translate the image p until the left edge of the text area ? \startuseMPgraphic{MyFrame} picture p ; p := textext.rt(\MPstring{MyFrame}) ; p := p shifted (0

Re: [NTG-context] Some questions about an environment (Metafun)

2015-08-04 Thread Aditya Mahajan
On Tue, 4 Aug 2015, Fabrice Couvreur wrote: How to have Definition 1, Definition 2, Definition 3 ... ? \defineenumeration[definition][text=Definition] Aditya ___ If your question is of interest to others as well,

[NTG-context] Some questions about an environment (Metafun)

2015-08-04 Thread Fabrice Couvreur
Hi, How to have Definition 1, Definition 2, Definition 3 ... ? Is it possible to translate the image p until the left edge of the text area ? Thank you, Fabrice \showframe \setupcolors[state=start,cmyk=yes] \definecolor[MyColor][c=0.00, m=0.10, y=0.20, k=0.00] \definecolor[myColor][c=0.00, m=

[NTG-context] [MetaFun] Decorating running text

2015-03-18 Thread Norbert Melzer
Hi there! I have some text (a single word) which I want to decorate using MP. In this special case, I want to put a little crown above the "g" in the word "Shogun". Also the crown and text should get scaled accordingly to the surrounding text. ```tex \define\Shogun{\startMPcode draw textext("Sho

Re: [NTG-context] Problem in using vlingrid() and hlingrid() macros (Metafun)

2015-03-15 Thread Fabrice
Hi, To solve my problem, I finally used a loop to draw a grid. Fabrice \starttext \start \switchtobodyfont[small] \startMPcode path p ; u := 2cm ; v:= 1cm ; p := (-u,-5v)--(3u,-5v)--(3u,4v)--(-u,4v)--cycle ; drawoptions(withpen pencircle scaled 0.5pt withcolor \MPcolor{mycolo

[NTG-context] Problem in using vlingrid() and hlingrid() macros (Metafun)

2015-03-14 Thread Fabrice Couvreur
Hi, I encounter some problems in the use of vlingrid() and hlingrid() macros. In the code below, we see that the grid is not correct. Does the code can be improved ? thank you, Fabrice \starttext \startMPcode path p ; u := 2cm ; v:= 1cm ; p := (-u,-5v)--(3u,-5v)--(3u,4v)--(-u,4v)--c

Re: [NTG-context] Add labels to a grid (Metafun)

2015-03-06 Thread Fabrice
thank you very much Alain, I think I understood for the format "@d" but for other formats, I will need documentation. Fabrice \definecolor[mycolor][c=.4,m=0,y=0,k=0] \starttext \start \switchtobodyfont[small] \startMPcode xmin := 0; xmax := 22; ymax :=460 ;ymin:=0; u := 0.5cm; v:= 0.025cm;

Re: [NTG-context] Add labels to a grid (Metafun)

2015-03-06 Thread Alan BRASLAU
, ... Since the % can sometimes cause problems being interpreted as a comment character, it is usually replaced in Metafun by @, as in "@g". Alan ___ If your question is of interest to others as well, please a

[NTG-context] Add labels to a grid (Metafun)

2015-03-06 Thread Fabrice Couvreur
To add labels to a grid, Hans wrote a macro hlintext (Min, Max, Step, Lenght , Format). I do not know what to put in "Format". Best regards, Fabrice \definecolor[mycolor][c=.4,m=0,y=0,k=0] \starttext \start \switchtobodyfont[small] \startMPcode input tex; numeric xmin, xmax, ymin, ymax;

Re: [NTG-context] Hatch an area with Metapost (Metafun)

2015-02-17 Thread Fabrice
Hi John, That's what I thought, some macros work indifferently in Metafun or Metapost, others not. Thank you for the interest in my question. Fabrice ___ If your question is of interest to others as well, pleas

Re: [NTG-context] Hatch an area with Metapost (Metafun)

2015-02-17 Thread John Kitzmiller
On Feb 16, 2015, at 3:21 PM, Fabrice Couvreur wrote: > > This does not work with : > > labeloffset := 2mm; On Feb 09, 2015, Hans Hagen wrote: \startMPpage[offset=2pt] path p, q, r ; pair z ; p := unitsquare scaled 4cm ; z := point 3.6 of p ; q := z--urcorner p ; r :=

Re: [NTG-context] Bug with macro tightfunction (Metafun)

2015-02-16 Thread Hans Hagen
On 2/16/2015 6:00 PM, Fabrice Couvreur wrote: Hi, This code generates an error while it was working fine a month ago. tightfunction was redundant, use curvedfunction instead (I have been cleaning up all that code as a prelude to an updat efor the metafun manual) Hans

Re: [NTG-context] Bug with macro tightfunction (Metafun)

2015-02-16 Thread Hans Hagen
On 2/16/2015 6:00 PM, Fabrice Couvreur wrote: Hi, This code generates an error while it was working fine a month ago. Best regards, Fabrice \definecolor[mycolor][c=.4,m=0,y=0,k=0] \starttext \start \switchtobodyfont[small] \startMPcode input hvdm; input tex; l:=3mm; r:=0.6; al

Re: [NTG-context] Bug with macro tightfunction (Metafun)

2015-02-16 Thread Pablo Rodriguez
On 02/16/2015 06:00 PM, Fabrice Couvreur wrote: > Hi, > This code generates an error while it was working fine a month ago. Hi Fabrice, MP is too much fun for me ;-)). I mean, this is all Greek to me. I can only report that I get an empty page with both the latest beta from 2015.02.03 23:55 and

Re: [NTG-context] Hatch an area with Metapost (Metafun)

2015-02-16 Thread Fabrice
Hi, This does not work with : labeloffset := 2mm; Fabrice ___ 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] Bug with macro tightfunction (Metafun)

2015-02-16 Thread Fabrice Couvreur
Hi, This code generates an error while it was working fine a month ago. Best regards, Fabrice \definecolor[mycolor][c=.4,m=0,y=0,k=0] \starttext \start \switchtobodyfont[small] \startMPcode input hvdm; input tex; l:=3mm; r:=0.6; alfa:=45; beta:=0; gamma:=0; defineDefaultArrow

Re: [NTG-context] Hatch an area with Metapost (Metafun)

2015-02-15 Thread John Kitzmiller
On Feb 15, 2015, at 6:00 AM, Fabrice mailto:couvreur.fabr...@wanadoo.fr>> wrote: > > Thank you for this new example. >> Try the mpost variable lableoffset := ? to adjust. > > This does not seem to workwith lableoffset := 2mm. > Fabrice I spelled it wrong, sorry! It is labeloffset := 2mm; __

Re: [NTG-context] Hatch an area with Metapost (Metafun)

2015-02-15 Thread Fabrice
Hi John, Sorry for the late reply! Thank you for this new example. Try the mpost variable lableoffset := ? to adjust. This does not seem to workwith lableoffset := 2mm. Fabrice ___ If your question is of interest to

Re: [NTG-context] Hatch an area with Metapost (Metafun)

2015-02-11 Thread John Kitzmiller
80,6) withcolor blue; draw p ; \stopMPpage (I have not yet found why the striped path q goes out of position. Looking at mp-tool may help.) > I just noticed that the position of labels is not quite the same when > using macros and macro Metafun Metapost: > I think the lab

Re: [NTG-context] Hatch an area with Metapost (Metafun)

2015-02-10 Thread Fabrice
Metafun Metapost: I think the labels are too near to the corners of the square with the macro Metafun. thank you, Fabrice ___ If your question is of interest to others as well, please add an entry to the Wiki

Re: [NTG-context] Hatch an area with Metapost (Metafun)

2015-02-10 Thread Fabrice
Hi John, Thank you for that other solution with Metapost. I am in front of learning Metapost and Metafun, I'm still far from mastering! Fabrice ___ If your question is of interest to others as well, please a

Re: [NTG-context] Hatch an area with Metapost (Metafun)

2015-02-09 Thread John Kitzmiller
On Feb 9, 2015, at 1:46 PM, Fabrice mailto:couvreur.fabr...@wanadoo.fr>> wrote: > > Great, but I did not know the macro numberstriped. Is it a Metapost or > Metafun macro? It is a MetaFun macro in mp-tool, afaik. The idea of filling a path is sometimes clipping to a path. Here

Re: [NTG-context] Hatch an area with Metapost (Metafun)

2015-02-09 Thread Hans Hagen
On 2/9/2015 7:22 PM, Fabrice wrote: Hi Hans, Great, but I did not know the macro numberstriped. Is it a Metapostor Metafun macro? yes - Hans Hagen | PRAGMA ADE Ridderstraat

Re: [NTG-context] Hatch an area with Metapost (Metafun)

2015-02-09 Thread Fabrice
Hi Hans, Great, but I did not know the macro numberstriped. Is it a Metapostor Metafun macro? Fabrice ___ If your question is of interest to others as well, please add an entry to the Wiki! maillist : ntg-context

Re: [NTG-context] Hatch an area with Metapost (Metafun)

2015-02-09 Thread Hans Hagen
On 2/9/2015 3:30 PM, Fabrice Couvreur wrote: Hi, How hatched trapezoid MBCD? Best regards, Fabrice \starttext \startMPcode path p ; p=unitsquare scaled 4cm ; draw p ; pair z ; z=point 3.6 of p ; draw z--urcorner p ; label.llft(btex B etex,llcorner p) ; label.lrt(btex C etex,lrcorner p) ; label.u

[NTG-context] Hatch an area with Metapost (Metafun)

2015-02-09 Thread Fabrice Couvreur
Hi, How hatched trapezoid MBCD ? Best regards, Fabrice \starttext \startMPcode path p ; p=unitsquare scaled 4cm ; draw p ; pair z ; z=point 3.6 of p ; draw z--urcorner p ; label.llft(btex B etex,llcorner p) ; label.lrt(btex C etex,lrcorner p) ; label.ulft(btex A etex,ulcorner p) ; label.urt(btex

Re: [NTG-context] Define a new type section with metafun

2014-12-29 Thread Fabrice
Hi Hans, Thank you for your answer, text placement is correct as long as the policy is not too great. For cons, I'll remove the red line separation because its placement is random. Best regards, Fabrice ___ If your

Re: [NTG-context] Define a new type section with metafun

2014-12-28 Thread Hans Hagen
On 12/28/2014 1:00 PM, Fabrice wrote: align={right}, align={flushright,lohi} - Hans Hagen | PRAGMA ADE Ridderstraat 27 | 8061 GH Hasselt | The Netherlands te

Re: [NTG-context] Define a new type section with metafun

2014-12-28 Thread Fabrice
Another worry: when the title is too long, there is a line break, which is normal, but what follows is under the dial. Thanks, Fabrice % macros=mkvi \setuppapersize[A4][A4] \setuphead [section] [sectionstopper={}, conversion=Characters, sectionsegments=section:section] \set

Re: [NTG-context] Define a new type section with metafun

2014-12-28 Thread Fabrice
Thank you to Akira and Hans for these solutions. How do now to the numbering and the title text are equidistant from the red line separation ? Fabrice ___ If your question is of interest to others as well, please add

Re: [NTG-context] Define a new type section with metafun

2014-12-27 Thread Hans Hagen
On 12/28/2014 12:01 AM, Akira Kakuto wrote: Dear Fabrice, A try and error method which you may not want: % macros=mkvi \setuppapersize[A4][A4] \setupcolors[state=start,cmyk=yes,mpcmyk=yes] \definecolor[mycolor][c=0.45,m=0.00,y=0.1,k=0.00] \definecolor[colortext][c=1,m=0.00,y=0.3,k=0.3] \start

[NTG-context] Define a new type section with metafun

2014-12-27 Thread Akira Kakuto
Dear Fabrice, A try and error method which you may not want: % macros=mkvi \setuppapersize[A4][A4] \setupcolors[state=start,cmyk=yes,mpcmyk=yes] \definecolor[mycolor][c=0.45,m=0.00,y=0.1,k=0.00] \definecolor[colortext][c=1,m=0.00,y=0.3,k=0.3] \starttext \startuniqueMPgraphic{funny} path p ; n

[NTG-context] Define a new type section with metafun

2014-12-26 Thread Fabrice Couvreur
Hi, I wish red separation is exactly in the middle of the dial and the title of the section. Then, the line is too long, it should not exceed the boundary of the ellipse. Best regards, Fabrice % macros=mkvi \setuppapersize[A4][A4] \setupcolors[state=start,cmyk=yes,mpcmyk=yes] \definecolor[mycolor

Re: [NTG-context] clipping in metafun has weird side effects

2014-11-02 Thread Tobias Columbus
On Sun, Nov 02, 2014 at 11:29:24AM +0100, Hans Hagen wrote: > On 10/31/2014 1:33 PM, Tobias Columbus wrote: > >On Fri, Oct 31, 2014 at 12:22:37PM +0100, Hans Hagen wrote: > >>On 10/31/2014 10:15 AM, Tobias Columbus wrote: > >> > >>def a_impl text t = > >> begingroup > >> save c ;

Re: [NTG-context] clipping in metafun has weird side effects

2014-11-02 Thread Hans Hagen
On 10/31/2014 1:33 PM, Tobias Columbus wrote: On Fri, Oct 31, 2014 at 12:22:37PM +0100, Hans Hagen wrote: On 10/31/2014 10:15 AM, Tobias Columbus wrote: def a_impl text t = begingroup save c ; picture c ; c := mycircle ; clip c to bbox c scaled 0.5 ; try this to see what happens

Re: [NTG-context] clipping in metafun has weird side effects

2014-10-31 Thread Tobias Columbus
On Fri, Oct 31, 2014 at 12:22:37PM +0100, Hans Hagen wrote: > On 10/31/2014 10:15 AM, Tobias Columbus wrote: > > def a_impl text t = > begingroup > save c ; picture c ; c := mycircle ; > clip c to bbox c scaled 0.5 ; > > try this to see what happens: > > % clip c to

Re: [NTG-context] clipping in metafun has weird side effects

2014-10-31 Thread Hans Hagen
On 10/31/2014 10:15 AM, Tobias Columbus wrote: def a_impl text t = begingroup save c ; picture c ; c := mycircle ; clip c to bbox c scaled 0.5 ; try this to see what happens: % clip c to bbox c scaled 0.5 ; draw bbox c scaled 0.5 ; and then this to solve it: clip c to bbox (c s

Re: [NTG-context] clipping in metafun has weird side effects

2014-10-31 Thread Hans Hagen
caused by the metafun format. According to the wiki page http://wiki.contextgarden.net/Command/defineMPinstance the instances "metapost" and "metafun" are predefined and can be used by \startMPcode{instance} ... \stopMPcode where metafun is the default instance, i.e. u

Re: [NTG-context] clipping in metafun has weird side effects

2014-10-31 Thread Tobias Columbus
gt; draw (0,0) -- (1cm,0) ; > \stopMPcode > > why the {metapost} I wanted to know if the impact of clipping is caused by the metafun format. According to the wiki page http://wiki.contextgarden.net/Command/defineMPinstance the instances "metapost" and "metafun" are predefi

Re: [NTG-context] clipping in metafun has weird side effects

2014-10-31 Thread Hans Hagen
_trial_run, mfun_first_run ; to texmf/metapost/base/mpost.mp resolved the issue for me. However, that may introduce other complications that I have no idea of. Tobias On Thu, Oct 30, 2014 at 08:56:34PM +0100, Tobias Columbus wrote: Dear all, I stumbled upon some very weird behaviour of clipping in metaf

Re: [NTG-context] clipping in metafun has weird side effects

2014-10-31 Thread Tobias Columbus
ce other complications that I have no idea of. Tobias On Thu, Oct 30, 2014 at 08:56:34PM +0100, Tobias Columbus wrote: > Dear all, > > I stumbled upon some very weird behaviour of clipping in metafun/context. > When I > add some clipped pictures to currentpicture and draw something

[NTG-context] clipping in metafun has weird side effects

2014-10-30 Thread Tobias Columbus
Dear all, I stumbled upon some very weird behaviour of clipping in metafun/context. When I add some clipped pictures to currentpicture and draw something dashed, some subsequent lines will also be drawn dashed. This behaviour only shows up with context but not with mptopdf or mpost. I attached a

[NTG-context] Metapost/Metafun: textext

2014-10-15 Thread Willi Egger
Hi all, In the course of a project I wanted to create a decorative border around a framed text. The border should be built from chosen glyphs which are placed along the border as pictures. For this purpose the textext macro is a good candidate. However I run into troubles. With help from Hans,

Re: [NTG-context] Metafun standalone and fonts

2014-09-29 Thread Alan BRASLAU
On Sat, 27 Sep 2014 14:50:10 +0200 Hans Hagen wrote: > just use mudraw to convert the bunch to individual svg images or pdftocairo to use the poppler library; You can also convert the pdf file to svg using inkscape. Alan __

Re: [NTG-context] Metafun error

2014-09-27 Thread Willi Egger
Hi Otared, thank you for this! - I do not understand correctly what has happened here. Now after rebooting it works again….. ;-( Thanks! Willi On 26 sep. 2014, at 23:09, Otared Kavian wrote: > Hi Willi, > > I just updated to > ConTeXt ver: 2014.09.26 11:42 MKIV beta fmt: 2014.9.26 i

Re: [NTG-context] Metafun standalone and fonts

2014-09-27 Thread Hans Hagen
On 9/27/2014 2:28 PM, Pol Stra wrote: Unfortunately, this only solve half of my problem: this outputs one pdf with all figures, while I try to output all figures in separated svg files. that would not give you the benefits of the context run (fonts and so) ... just use mudraw to convert the b

Re: [NTG-context] Metafun standalone and fonts

2014-09-27 Thread Pol Stra
Le samedi 27 septembre 2014, 12:23:47 Hans Hagen a écrit : > On 9/27/2014 10:21 AM, Pol Stra wrote: > > Hello! > > > > I have an mp file that I use with success in my document with mprun. > > > > But if I try to generate the figure alone with this comm

Re: [NTG-context] Metafun standalone and fonts

2014-09-27 Thread Hans Hagen
On 9/27/2014 10:21 AM, Pol Stra wrote: Hello! I have an mp file that I use with success in my document with mprun. But if I try to generate the figure alone with this command: mpost --mem=metafun myfigure.mp that will never work with metafun in mkiv as we have extensions just run context

[NTG-context] Metafun standalone and fonts

2014-09-27 Thread Pol Stra
Hello! I have an mp file that I use with success in my document with mprun. But if I try to generate the figure alone with this command: mpost --mem=metafun myfigure.mp I obtain this error: > ! Font cmr10 not usable: TFM file not found. > thelabel->...ture(EXPR3):infont.defaultfo

Re: [NTG-context] Metafun error

2014-09-26 Thread Otared Kavian
Hi Willi, I just updated to ConTeXt ver: 2014.09.26 11:42 MKIV beta fmt: 2014.9.26 int: english/english and tested again your example: everything works as expected here… So probably there is something strange happening on your side. Best regards: OK On 26 Sep 2014, at 16:22, Willi E

Re: [NTG-context] Metafun error

2014-09-26 Thread Willi Egger
Hi Otared, As mentioned in my first post I tested on ConTeXt ver: 2014.08.29 20:57 ConTeXt ver: 2014.09.26 11:42. strange! Willi On 26 sep. 2014, at 15:23, Otared Kavian wrote: > Hi Willi, > > I tested your example file: it works fine here with > ConTeXt ver: 2014.0

Re: [NTG-context] Metafun error

2014-09-26 Thread Otared Kavian
Hi Willi, I tested your example file: it works fine here with ConTeXt ver: 2014.09.25 18:58 MKIV beta fmt: 2014.9.25 int: english/english Which version are using? Best regards: OK On 26 Sep 2014, at 15:17, Willi Egger wrote: > Hello! > > Today I wanted to use an older tex file…. I

[NTG-context] Metafun error

2014-09-26 Thread Willi Egger
Hello! Today I wanted to use an older tex file…. I get the same error as in the following test. \startuniqueMPgraphic{test} path p; p := fullcircle scaled 5cm; draw p; label.bot(textext("Centre"), center p); \stopuniqueMPgraphic \starttext \startTEXpage

Re: [NTG-context] Metapost and Metafun

2014-05-21 Thread Fabrice
Hi Hans, Thank you for the code that is cleaner and certainly less long! Fabrice PS : What do you mean by: define 'improve' .. anyway: A step of 0.001 is not needed here and gives a*pretty large path*. ___ If yo

Re: [NTG-context] Metapost and Metafun

2014-05-21 Thread Hans Hagen
-- (0,ymax)*u; drawarrow axe_x; drawarrow axe_y; draw pts_f withpen pencircle scaled 1; clip currentpicture to screen; \stopMPcode \stoptext Are there any routines with Metafun to improve this code? define 'improve' .. anyway: \starttext \startMPpage numeric xmin, xmax, ymin, ymax

[NTG-context] Metapost and Metafun

2014-05-21 Thread Fabrice Couvreur
; draw pts_f withpen pencircle scaled 1; clip currentpicture to screen; \stopMPcode \stoptext Are there any routines with Metafun to improve this code? thank you, Fabrice ___ If your question is of interest to others as well

Re: [NTG-context] Metafun: numeric=color

2014-01-30 Thread Hans Hagen
: Preloading the plain mem file, version 1.004 for metafun ii >> cyan >> (0,1,1) ! Equation cannot be performed (numeric=color). Unfortunately I cannot reproduce this error message in a minimal example, but can anyone tell me whether something has changed in MetaP

[NTG-context] Metafun: numeric=color

2014-01-29 Thread Otared Kavian
, version 1.004 for metafun ii >> cyan >> (0,1,1) ! Equation cannot be performed (numeric=color). Unfortunately I cannot reproduce this error message in a minimal example, but can anyone tell me whether something has changed in MetaPost? Best

Re: [NTG-context] runtime problem with metafun() code

2014-01-27 Thread Peter Rolf
;> sadly fails (no path visible after call). The code seems to be >>>>>> executed >>>>>> later (the output from 'show pid;' appears somewhere later in the >>>>>> log). >>>>>> >>>>>> How can I en

Re: [NTG-context] runtime problem with metafun() code

2014-01-27 Thread Hans Hagen
but isn't there a metafun("draw p;") missing then? Setting the bounding box has the same effect, as drawing something. Both methods avoid that the emtpy graphic is ignored by ConTeXt. Anyhow, the MP path is not available in metapost.variables after the function call. If t

Re: [NTG-context] runtime problem with metafun() code

2014-01-25 Thread Peter Rolf
gt;>> >>>> How can I ensure that the code is executed at runtime? >>> >>> I don't understand the issue but isn't there a >>> >>> metafun("draw p;") >>> >>> missing then? >>> >> Setting the bo

Re: [NTG-context] runtime problem with metafun() code

2014-01-24 Thread Hans Hagen
after call). The code seems to be executed later (the output from 'show pid;' appears somewhere later in the log). How can I ensure that the code is executed at runtime? I don't understand the issue but isn't there a metafun("draw p;") missing then? Setting

Re: [NTG-context] runtime problem with metafun() code

2014-01-24 Thread Peter Rolf
sible after call). The code seems to be executed >> later (the output from 'show pid;' appears somewhere later in the log). >> >> How can I ensure that the code is executed at runtime? > > I don't understand the issue but isn't there a > > metaf

Re: [NTG-context] runtime problem with metafun() code

2014-01-24 Thread Hans Hagen
w pid;' appears somewhere later in the log). How can I ensure that the code is executed at runtime? I don't understand the issue but isn't there a metafun("draw p;") missing then? -

[NTG-context] runtime problem with metafun() code

2014-01-24 Thread Peter Rolf
How can I ensure that the code is executed at runtime? Peter thirddata= thirddataor { } thirddata.drops = thirddata.drops or { } local drops = thirddata.drops local metafun = context.metafun local format,todimen = string.format, string.todimen local floor =

Re: [NTG-context] [***SPAM***] Scaling large (annotated) MetaFun drawing

2013-06-18 Thread Hans Hagen
PS, and then include it? What I am hoping is to get a best practises workflow from the list so that I can simply adopt it. advTHANKSance. Sample: A MWE is found below: \setuppapersize[tabloid,landscape][tabloid,landscape] \starttext \setupMPinstance [metafun] [extensions=yes,

[NTG-context] [***SPAM***] Scaling large (annotated) MetaFun drawing

2013-06-18 Thread Pavneet Arora
below: \setuppapersize[tabloid,landscape][tabloid,landscape] \starttext \setupMPinstance [metafun] [extensions=yes, initializations=yes, textstyle=bold] \startMPpage u:=1cm; pickup pencircle scaled 1pt; draw (5u,0u) {dir 90}..(0u,5u) {dir 180}; draw (0u,5u) .

Re: [NTG-context] METAFUN+CONTEXT+CUSTOMIZE

2013-05-02 Thread Wolfgang Schuster
Am 03.05.2013 um 00:45 schrieb MANUEL GONZALEZ SUAREZ : > I use TeXLive 2011 and I get the following error (the file name is custo.tex): Use this definition \define[2]\ChapterCommand {\framed [frame=off,bottomframe=on,framecolor=orange,width=fit] {#1\hspace[medium]#2}} In newer v

[NTG-context] METAFUN+CONTEXT+CUSTOMIZE

2013-05-02 Thread MANUEL GONZALEZ SUAREZ
\else \placestructureheadt... l.19 \chapter{This is a chapter} ? metapost> initializing instance 'metafun' using format 'metafun' metapost> loading 'metafun.mp' (experimental metapost version two) backend

Re: [NTG-context] METAFUN+CONTEXT+CUSTOMIZE

2013-05-02 Thread Wolfgang Schuster
Am 03.05.2013 um 00:27 schrieb MANUEL GONZALEZ SUAREZ : > Wolfgang Thanks for your help. > Your definition to customize the number of page works, but the command > definition \ ChapterCommand gives me a compilation error. (with LuaTeX and > MKIV). I guess you’re using a older context version

[NTG-context] METAFUN+CONTEXT+CUSTOMIZE

2013-05-02 Thread MANUEL GONZALEZ SUAREZ
Wolfgang Thanks for your help.Your definition to customize the number of page works, but the command definition \ ChapterCommand gives me a compilation error. (with LuaTeX and MKIV).Thank you again. Now I see that is a bit more complicated than I imagined.Greetings.-- Manuel González Suárez ___

Re: [NTG-context] METAFUN+CONTEXT+CUSTOMIZE

2013-05-02 Thread Wolfgang Schuster
Am 02.05.2013 um 23:31 schrieb MANUEL GONZALEZ SUAREZ : > > Hi everyone. > > I would like to pose the following question: I would like to know how I can > customize the page number using an embedded graphic made ​​with METAFUN. I > mean, I wish someone would send me a si

[NTG-context] METAFUN+CONTEXT+CUSTOMIZE

2013-05-02 Thread MANUEL GONZALEZ SUAREZ
Hi everyone. I would like to pose the following question: I would like to know how I can customize the page number using an embedded graphic made ​​with METAFUN. I mean, I wish someone would send me a simple example to do that, for example, a page number or headers (chapter, section, etc..)  may

Re: [NTG-context] Metafun textext()

2013-01-10 Thread Hans Hagen
On 1/10/2013 2:18 PM, Aditya Mahajan wrote: On Thu, 10 Jan 2013, Alan BRASLAU wrote: On Thu, 10 Jan 2013 06:51:50 -0500 Aditya Mahajan wrote: Since the beginning of MkIV, colors in metapost labels need to be set at the ConTeXt end (Untested): T := thelabel(textext("\color[blue]{I'm seeing d

Re: [NTG-context] Metafun textext()

2013-01-10 Thread Alan BRASLAU
On Thu, 10 Jan 2013 14:01:14 +0100 Alan BRASLAU wrote: > \startMPcode > label(textext("I'm seeing double"),origin) withcolor green ; > label(textext("I'm seeing double"),(-1mm,1mm)) withcolor blue ; > \stopMPcode > > DOES work. TESTED! ___

Re: [NTG-context] Metafun textext()

2013-01-10 Thread Aditya Mahajan
On Thu, 10 Jan 2013, Alan BRASLAU wrote: On Thu, 10 Jan 2013 06:51:50 -0500 Aditya Mahajan wrote: Since the beginning of MkIV, colors in metapost labels need to be set at the ConTeXt end (Untested): T := thelabel(textext("\color[blue]{I'm seeing double}"), origin); Aditya I don't believe

Re: [NTG-context] Metafun textext()

2013-01-10 Thread Mojca Miklavec
On Thu, Jan 10, 2013 at 2:01 PM, Alan BRASLAU wrote: > On Thu, 10 Jan 2013 06:51:50 -0500 > Aditya Mahajan wrote: > >> Since the beginning of MkIV, colors in metapost labels need to be set at >> the ConTeXt end (Untested): >> >> T := thelabel(textext("\color[blue]{I'm seeing double}"), origin); >>

Re: [NTG-context] Metafun textext()

2013-01-10 Thread Alan BRASLAU
On Thu, 10 Jan 2013 06:51:50 -0500 Aditya Mahajan wrote: > Since the beginning of MkIV, colors in metapost labels need to be set at > the ConTeXt end (Untested): > > T := thelabel(textext("\color[blue]{I'm seeing double}"), origin); > > Aditya I don't believe that this is true, but I am most

Re: [NTG-context] Metafun textext()

2013-01-10 Thread Aditya Mahajan
On Thu, 10 Jan 2013, Alan BRASLAU wrote: Metafun textext() has been changed in an attempt to be more efficient. However, this has a side effet that it now handles colors differently, among other things. The following example, intended to cause difficulties for the color blind, no longer works

[NTG-context] Metafun textext()

2013-01-10 Thread Alan BRASLAU
Metafun textext() has been changed in an attempt to be more efficient. However, this has a side effet that it now handles colors differently, among other things. The following example, intended to cause difficulties for the color blind, no longer works. Is this a bug or a feature? \starttext

Re: [NTG-context] OOP in Metafun.

2012-12-11 Thread Nicola
In article , Andre Caldas wrote: > >> But I would like to use some "object oriented" like approach. > >> [...] > >> How do I do that in METAFUN/METAPOST? > > > > You may want to take a look at my attempt: > > > > http://users.dimi.u

Re: [NTG-context] OOP in Metafun.

2012-12-10 Thread Andre Caldas
>> But I would like to use some "object oriented" like approach. >> [...] >> How do I do that in METAFUN/METAPOST? > > You may want to take a look at my attempt: > > http://users.dimi.uniud.it/~nicola.vitacolonna/home/content/metappeal Looks nice! I

Re: [NTG-context] OOP in Metafun.

2012-12-10 Thread Nicola
In article , Andre Caldas wrote: > Hello, list! > > I am writing down a macro package for commutative diagrams using metafun. > This is my first try: > https://bitbucket.org/andrecaldas/math-video-classes/src/9a050eab20348c9a9c9e5 > 0740618173648979f45/src/environments/diagr

Re: [NTG-context] OOP in Metafun.

2012-12-09 Thread Andre Caldas
> But I would like to use some "object oriented" like approach. I have done some OOP like coding... https://bitbucket.org/andrecaldas/math-video-classes/src/77036fe1001ede35e301305700943ac952089d32/src/environments/diagrams.tex?at=default This is my first METAFUN experience. Comm

[NTG-context] OOP in Metafun.

2012-12-09 Thread Andre Caldas
Hello, list! I am writing down a macro package for commutative diagrams using metafun. This is my first try: https://bitbucket.org/andrecaldas/math-video-classes/src/9a050eab20348c9a9c9e50740618173648979f45/src/environments/diagrams.tex?at=default Used here: https://bitbucket.org/andrecaldas

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