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

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

2015-08-27 Thread Fabrice Couvreur
pra...@wxs.nl: 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

[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 CONTEXTEN. Thank you, Fabrice

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 schuster.wolfg...@gmail.com: Fabrice Couvreur

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

2015-08-10 Thread Wolfgang Schuster
Fabrice Couvreur mailto:fabrice1.couvr...@gmail.com 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

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 pra...@wxs.nl: 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

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

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 pra...@wxs.nl: On 8/6/2015 11:38 PM, Fabrice Couvreur wrote: Hi, The following code (Metafun

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

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

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

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 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] [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(Shogun)

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

[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 :=

[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] 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
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 add an entry to the Wiki! maillist : ntg

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, please add

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 := q

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

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 /

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

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

2015-02-15 Thread John Kitzmiller
On Feb 15, 2015, at 6:00 AM, Fabrice couvreur.fabr...@wanadoo.fr 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

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

2015-02-11 Thread John Kitzmiller
; 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 labels are too near to the corners

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 add

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

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

[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] Hatch an area with Metapost (Metafun)

2015-02-09 Thread John Kitzmiller
On Feb 9, 2015, at 1:46 PM, Fabrice couvreur.fabr...@wanadoo.fr 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

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

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]

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

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

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

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

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 ; picture c ; c := mycircle ;

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

2014-10-31 Thread Tobias Columbus
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 dashed, some subsequent lines will also

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

2014-10-31 Thread Hans Hagen
, 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 metafun/context

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

2014-10-31 Thread Tobias Columbus
is currently not usable out of the box: \startMPcode{metapost} draw (0,0) -- (1cm,0) ; \stopMPcode produces the error message \startMPcode draw (0,0) -- (1cm,0) ; \stopMPcode why the {metapost} I wanted to know if the impact of clipping is caused by the metafun format

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

2014-10-31 Thread Hans Hagen
is 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. used when there is no instance

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

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 bbox c scaled 0.5 ; draw

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

[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.defaultfont.scaled

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

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 command: mpost --mem=metafun myfigure.mp

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

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 ota...@gmail.com wrote: Hi Willi, I just updated to ConTeXt ver: 2014.09.26 11:42 MKIV beta fmt:

[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] 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 cont...@boede.nl wrote: Hello! Today I wanted to use an

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 ota...@gmail.com wrote: Hi Willi, I tested your example file: it works fine here with ConTeXt

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

[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] 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; xmin

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

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 MetaPost? fixed

[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 regards: OK

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

2014-01-27 Thread Hans Hagen
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 there is no other way I have

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

2014-01-27 Thread Peter Rolf
at runtime? I don't understand the issue 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

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

2014-01-25 Thread Peter Rolf
lua function 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 ensure that the code is executed at runtime? I don't understand the issue but isn't there a metafun(draw p;) missing

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

2014-01-24 Thread Peter Rolf
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 = math.floor

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

2014-01-24 Thread Hans Hagen
;' 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? - Hans Hagen

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

2014-01-24 Thread Peter Rolf
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 the bounding box has the same effect, as drawing something. Both

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 the bounding box has the same

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

2013-06-18 Thread Pavneet Arora
[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) .. (-1.5u,10.5u) {dir 90} .. (0u

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

2013-06-18 Thread Hans Hagen
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, initializations=yes

[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+CONTEXT+CUSTOMIZE

2013-05-02 Thread Wolfgang Schuster
Am 02.05.2013 um 23:31 schrieb MANUEL GONZALEZ SUAREZ gonzalezsman...@uniovi.es: 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

[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 03.05.2013 um 00:27 schrieb MANUEL GONZALEZ SUAREZ gonzalezsman...@uniovi.es: 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

[NTG-context] METAFUN+CONTEXT+CUSTOMIZE

2013-05-02 Thread MANUEL GONZALEZ SUAREZ
bertext ...uctureheadtitle } }\fi \endheadplacement {\g... \dohandlestructurehead ...structureheadnumbertext \else \placestructureheadt... l.19 \chapter{This is a chapter} ? metapost initializin

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

2013-05-02 Thread Wolfgang Schuster
Am 03.05.2013 um 00:45 schrieb MANUEL GONZALEZ SUAREZ gonzalezsman...@uniovi.es: 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]

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

Re: [NTG-context] Metafun textext()

2013-01-10 Thread Alan BRASLAU
On Thu, 10 Jan 2013 06:51:50 -0500 Aditya Mahajan adit...@umich.edu 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

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); Aditya I

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 adit...@umich.edu 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

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 adit...@umich.edu wrote: Since the beginning of MkIV, colors in metapost labels need to be set at the ConTeXt end (Untested): T :=

Re: [NTG-context] OOP in Metafun.

2012-12-11 Thread Nicola
In article CADVh14XYT3Mi6aPUOv4Py==_gjy=MAFEH-hQbmRVE=r_d-t...@mail.gmail.com, Andre Caldas andre.em.cal...@gmail.com 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

Re: [NTG-context] OOP in Metafun.

2012-12-10 Thread Nicola
In article cadvh14ul9igw6wyvymg80hymiaxxhzfoc0no_4+dr70knok...@mail.gmail.com, Andre Caldas andre.em.cal...@gmail.com 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

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 didn't find any license explaining the licensing terms

[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

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. Comments are very

Re: [NTG-context] using variable for subscript in math+lua (and math+MetaFun)

2012-10-25 Thread Jeong Dal
Dear Gesang and Hans, Your solution is working nicely. I may use lua to simplify my other work. I'd like to ask you one more thing. I tried to write a matrix using MetaFun to add some graphics as following: label(btex $a_{11}$ etex, ( , )); label(btex $a_{12}$ etex, ( , )); label(btex $a_{13

Re: [NTG-context] using variable for subscript in math+lua (and math+MetaFun)

2012-10-25 Thread Hans Hagen
On 25-10-2012 13:59, Jeong Dal wrote: Dear Gesang and Hans, Your solution is working nicely. I may use lua to simplify my other work. I'd like to ask you one more thing. I tried to write a matrix using MetaFun to add some graphics as following: label(btex $a_{11}$ etex

Re: [NTG-context] using variable for subscript in math+lua (and math+MetaFun)

2012-10-25 Thread Jeong Dal
Dear Hans, The structure of your code is very interesting. MP code) inside ConTeXt) inside Lua) inside ConTeXt) again! It is really useful. Thank you. Best regards, Dalyoung play with code like this \starttext \startluacode context.startMPcode() for i=1,10 do

Re: [NTG-context] Is it possible to generate eps files using metafun and context?

2012-06-18 Thread Hans Hagen
On 14-6-2012 19:07, Hongwen Qiu wrote: Hi, Is it possible to typeset the label with context and generate eps output files using the metafun format? If yes, then how? \startMPpage ... \stopMPpage or \startTEXpage ... \stopTEXpage and then use pstopdf to turn the pdf into an eps Hans

Re: [NTG-context] Is it possible to generate eps files using metafun and context?

2012-06-18 Thread Hongwen Qiu
On 06/18/2012 04:19 PM, Hans Hagen wrote: and then use pstopdf to turn the pdf into an eps You must mean pdftops, since pstopdf cannot convert pdf files into eps but pdftops can. I tried pdftops, the result quality is high, but since my desire is to provide eps figures to others that have to

[NTG-context] Is it possible to generate eps files using metafun and context?

2012-06-14 Thread Hongwen Qiu
Hi, Is it possible to typeset the label with context and generate eps output files using the metafun format? If yes, then how? TIA. ___ If your question is of interest to others as well, please add an entry

Re: [NTG-context] Metapost/Metafun Q: using variables and building blocks?

2012-05-07 Thread Mari Voipio
On Sun, May 6, 2012 at 4:52 PM, Hans Hagen pra...@wxs.nl wrote: You have seen this one, haven't you? Posted by Don Knuth: http://www.youtube.com/watch?v=YVuggGxeBVk So that's your next challenge. Yes, I've seen it, had to watch the whole thing, it is so fascinating. If I ever decide to

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