Re: [NTG-context] Metafun scaling problem

2018-10-02 Thread Lutz Haseloff
On Windows, I got it working again with current Context (20180404) and current luatex from win32tex (1.07 development ID 6686) On linux-armhf I did a fresh "./first-setup.sh --engine=luatex" and got: mtx-context | ConTeXt Process Management 1.02 mtx-context | mtx-context | main

Re: [NTG-context] Metafun scaling problem

2018-10-01 Thread luigi scarso
On Tue, Oct 2, 2018 at 7:03 AM Lutz Haseloff wrote: > Hi Hans, hi all, > > I think, that recent context has a problem with scaling included pdf files. > My minimal file: > > \startMPpage > draw externalfigure "cow.pdf" ; > \stopMPpage > > The resulting pdf is, as the original, 97x70.6 mm, all

Re: [NTG-context] Metafun: Finding intersection between characters

2018-09-28 Thread Jeong Dal
Dear Hans, Thank you so much for a new code which works fine. It can be used for the title of chapters. I will play with this to make a nice title. Thank you again. Best regards, Dalyoung > 2018. 9. 28. 오전 12:43, Hans Hagen 작성: > > On 9/27/2018 5:06 PM, Jeong Dal wrote: >> Dear Hans, >>

Re: [NTG-context] Metafun: Finding intersection between characters

2018-09-27 Thread Hans Hagen
On 9/27/2018 5:06 PM, Jeong Dal wrote: Dear Hans, First, I appreciate for your concerning and sharing your valuable time on this matter. I think that there is no one who has an interest in outlining Korean letters. It is my self-interest to use outlined text for titles of chapters. As we

Re: [NTG-context] Metafun: Finding intersection between characters

2018-09-27 Thread Jeong Dal
Dear Hans, First, I appreciate for your concerning and sharing your valuable time on this matter. I think that there is no one who has an interest in outlining Korean letters. It is my self-interest to use outlined text for titles of chapters. As we know, Korean letters are different from

Re: [NTG-context] Metafun: Finding intersection between characters

2018-09-27 Thread Hans Hagen
On 9/26/2018 11:38 PM, Jeong Dal wrote: Dear Hans, 2018. 9. 26. 오후 9:24, Hans Hagen > 작성: On 9/26/2018 2:14 PM, Jeong Dal wrote: Dear Hans, I tested for more characters and found an interesting fact. If the first consonant and the vowels are connected in a glyph,

Re: [NTG-context] Metafun: Finding intersection between characters

2018-09-26 Thread Jeong Dal
Dear Hans,2018. 9. 26. 오후 9:24, Hans Hagen 작성:On 9/26/2018 2:14 PM, Jeong Dal wrote:Dear Hans,I tested for more characters and found an interesting fact.If the first consonant and the vowels are connected in a glyph, then the outlining works OK, otherwise, it makes outline of

Re: [NTG-context] Metafun: Finding intersection between characters

2018-09-26 Thread Hans Hagen
On 9/26/2018 2:14 PM, Jeong Dal wrote: Dear Hans, I tested for more characters and found an interesting fact. If the first consonant and the vowels are connected in a glyph, then the outlining works OK, otherwise, it makes outline of the first consonant only. you need to send a file not

Re: [NTG-context] Metafun: Finding intersection between characters

2018-09-26 Thread Jeong Dal
Dear Hans, I tested for more characters and found an interesting fact. If the first consonant and the vowels are connected in a glyph, then the outlining works OK, otherwise, it makes outline of the first consonant only. Here is a MWE. Thank you. Best regards, Dalyoung %

Re: [NTG-context] Metafun: Finding intersection between characters

2018-09-26 Thread Jeong Dal
Dear Hans, I have tested using your code. I just replace “N”, “T” with Korean letters. Here is an MWE which is a simplified version of your code. I tested using two fonts, and the outputs are different. Thank you for your concern. Best regards, Dalyoung %%%

Re: [NTG-context] Metafun: Finding intersection between characters

2018-09-26 Thread Hans Hagen
On 9/26/2018 1:48 AM, Jeong Dal wrote: Dear Hans, First, it is great to know a new method of drawing an outlined font! I have applied it to Korean fonts. As you know, every Korean character is composed with “consonant+vowel(+consonant)” type. If consonant and vowel are connected (for

Re: [NTG-context] Metafun: Finding intersection between characters

2018-09-26 Thread Hans Hagen
On 9/26/2018 1:48 AM, Jeong Dal wrote: Dear Hans, First, it is great to know a new method of drawing an outlined font! I have applied it to Korean fonts. As you know, every Korean character is composed with “consonant+vowel(+consonant)” type. If consonant and vowel are connected (for

Re: [NTG-context] Metafun: Finding intersection between characters

2018-09-25 Thread Jeong Dal
Dear Hans, First, it is great to know a new method of drawing an outlined font! I have applied it to Korean fonts. As you know, every Korean character is composed with “consonant+vowel(+consonant)” type. If consonant and vowel are connected (for example, “호”), then it draws correctly,

Re: [NTG-context] MetaFun: nofmultipars wrong?

2018-09-25 Thread Hans Hagen
On 9/25/2018 3:24 AM, Henri Menke wrote: Dear list, I used to be under the impression that when you wanted a background frame around a piece of text, you'd use a loop over nofmultipars. However, I realized that even when the contained material breaks across pages, the counter remains 1 on the

Re: [NTG-context] Metafun: Finding intersection between characters

2018-09-22 Thread Hans Hagen
On 9/22/2018 3:41 PM, Alan Braslau wrote: On Sat, 22 Sep 2018 13:45:17 +0200 Hans Hagen wrote: On 9/22/2018 12:08 PM, Floris van Manen wrote: It does not seem to work for all character combinations. e.g. B works, C works, C works, but N does not work. not N Why would that be? Thanks .Floris

Re: [NTG-context] Metafun: Finding intersection between characters

2018-09-22 Thread Alan Braslau
On Sat, 22 Sep 2018 13:45:17 +0200 Hans Hagen wrote: > On 9/22/2018 12:08 PM, Floris van Manen wrote: > > It does not seem to work for all character combinations. > > e.g. B works, C works, C works, but N does not work. > > not N > > Why would that be? > > Thanks > > .Floris > > > > > > > >

Re: [NTG-context] Metafun: Finding intersection between characters

2018-09-22 Thread Hans Hagen
On 9/22/2018 12:08 PM, Floris van Manen wrote: It does not seem to work for all character combinations. e.g. B works, C works, C works, but N does not work. not N Why would that be? Thanks .Floris On 22 Sep 2018, at 11:27, Hans Hagen > wrote: On 9/22/2018 10:35

Re: [NTG-context] Metafun: Finding intersection between characters

2018-09-22 Thread Floris van Manen
It does not seem to work for all character combinations. e.g. B works, C works, C works, but N does not work. not N Why would that be? Thanks .Floris > On 22 Sep 2018, at 11:27, Hans Hagen wrote: > > On 9/22/2018 10:35 AM, Henri Menke wrote: >> Dear list, >> Challanged by a very old TeX.SX

Re: [NTG-context] Metafun: Finding intersection between characters

2018-09-22 Thread Hans Hagen
On 9/22/2018 10:35 AM, Henri Menke wrote: Dear list, Challanged by a very old TeX.SX question https://tex.stackexchange.com/questions/180510 I wanted to calculate all the intersection points between two characters. Therefore I ripped off the \showshape macro to load the outlines from the font

Re: [NTG-context] MetaFun: How to draw bent paths?

2018-09-19 Thread Alan Braslau
On Wed, 19 Sep 2018 11:18:30 +1200 Henri Menke wrote: > On 18/09/18 21:23, Henri Menke wrote: > > On 9/18/18 7:57 PM, Hans Hagen wrote: > >> On 9/16/2018 10:28 AM, Henri Menke wrote: > >>> Dear list, > >>> > >>> I want to draw paths between points which are bent by a certain angle. > >>> The

Re: [NTG-context] MetaFun: How to draw bent paths?

2018-09-18 Thread Henri Menke
On 18/09/18 21:23, Henri Menke wrote: > On 9/18/18 7:57 PM, Hans Hagen wrote: >> On 9/16/2018 10:28 AM, Henri Menke wrote: >>> Dear list, >>> >>> I want to draw paths between points which are bent by a certain angle. >>> The code in the MWE below works well but I was thinking that the expert >>>

Re: [NTG-context] MetaFun: How to draw bent paths?

2018-09-18 Thread Henri Menke
On 9/18/18 7:57 PM, Hans Hagen wrote: > On 9/16/2018 10:28 AM, Henri Menke wrote: >> Dear list, >> >> I want to draw paths between points which are bent by a certain angle. >> The code in the MWE below works well but I was thinking that the expert >> here can surely improve it and suggest a nicer

Re: [NTG-context] MetaFun: How to draw bent paths?

2018-09-18 Thread Hans Hagen
On 9/16/2018 10:28 AM, Henri Menke wrote: Dear list, I want to draw paths between points which are bent by a certain angle. The code in the MWE below works well but I was thinking that the expert here can surely improve it and suggest a nicer syntax. looks like a challenge for Alan ... isn't

Re: [NTG-context] metafun: error when I call the same function twice consecutively.

2018-06-01 Thread Jeong Dal
Dear Alan, Thank you for the clear explanation about z. I tought that z is a special variable different from other pairs. Now, I know that it is an equation. Thank you again. Best regards, Dalyoung > 2018. 6. 1. 오후 11:24, Alan Braslau 작성: > > On Fri, 01 Jun 2018 20:29:41 +0900 > Jeong Dal

Re: [NTG-context] metafun: error when I call the same function twice consecutively.

2018-06-01 Thread Alan Braslau
On Fri, 01 Jun 2018 20:29:41 +0900 Jeong Dal wrote: > After inserting a line “save x, y;”, it works. This is also defined as "clearxy ;" For those learning MetaPost, simplifying, z is defined as "(x,y)" so one can write z = (a,b) ; This is an EQUATION in MetaPost (x,y) = (a,b)

Re: [NTG-context] metafun: error when I call the same function twice consecutively.

2018-06-01 Thread Jeong Dal
Dear Henri Menke, Thank you for the solution. After inserting a line “save x, y;”, it works. Thank you so much. Best regards, Dalyoung ___ If your question is of interest to others as well, please add an entry to

Re: [NTG-context] metafun: error when I call the same function twice consecutively.

2018-05-31 Thread Henri Menke
On 01/06/18 14:22, Jeong Dal wrote: Hi, I defined a function using MetaFun, and call it to draw a figure. It is OK when I call it once. But there is an error when it runs the same function second time. (it stops when it call fap(3,2) after fap(2,2)) I have no idea what is wrong and how to

Re: [NTG-context] MetaFun: Rotate picture without rotating labels

2018-04-05 Thread Henri Menke
On Fri, 2018-04-06 at 11:05 +1200, Henri Menke wrote: > Dear list, > > In the MWE below I would like py to be px rotated by 90 degrees but the labels > should not be rotated.  Is it possible? > > Cheers, Henri > > --- I thought of using vardef but that is kind of verbose because I gave to

Re: [NTG-context] Metafun "Structure-Trees"

2017-09-18 Thread luigi scarso
On Mon, Sep 18, 2017 at 10:57 AM, Hans Hagen wrote: > On 9/18/2017 10:25 AM, Ursula Hermann wrote: >> >> Hello! >> >> I have tried an example: >> >> 1 \starttext >> 2 This is me >> 3 \startMPcode >> 4 u:=0.4cm; >> 5 dirlabel:=90; >> 6

Re: [NTG-context] Metafun "Structure-Trees"

2017-09-18 Thread Hans Hagen
On 9/18/2017 10:25 AM, Ursula Hermann wrote: Hello! I have tried an example: 1 \starttext 2 This is me 3 \startMPcode 4 u:=0.4cm; 5 dirlabel:=90; 6 abscoord:=true; 7 endlabelspace:=0.5cm; 8 draw startlable ("S") 9 draw

Re: [NTG-context] Metafun "Structure-Trees"

2017-09-18 Thread Ursula Hermann
startlable ("S") 9 draw tree[1][1]((-5.5u,4u)(5.5u,8u)) ("NP","","VP",""] 10 >> \stopMPcode 11 \stoptext 12 ? -Ursprüngliche Nachricht- Von: ntg-context [mailto:ntg-context-boun...@ntg.nl] Im Auftrag von Ursula

Re: [NTG-context] Metafun "Structure-Trees"

2017-09-14 Thread Ursula Hermann
2017 20:26 An: mailing list for ConTeXt users Betreff: Re: [NTG-context] Metafun "Structure-Trees" What exactly do you mean? (we can build tree diagrams with Metapost) Alan > On 13 Sep 2017, at 12:43, Ursula Hermann <ursula.herm...@univie.ac.at> wrote: > >

Re: [NTG-context] Metafun "Structure-Trees"

2017-09-13 Thread Alan Braslau
What exactly do you mean? (we can build tree diagrams with Metapost) Alan > On 13 Sep 2017, at 12:43, Ursula Hermann wrote: > > Hello! > > My question is: Is it possible to make „Structure Trees“ for English > Sentences with „Categorial Grammar“? Sorry, I have

Re: [NTG-context] Metafun: setting pen size in properties

2017-07-25 Thread Aditya Mahajan
On Mon, 24 Jul 2017, Alan Braslau wrote: On Mon, 24 Jul 2017 10:26:25 +0200 Hans Hagen wrote: On 7/24/2017 1:40 AM, Aditya Mahajan wrote: Hi, Is it possible to set pen width using properties(...)? The following does not work (the color is set, but not the pen width):

Re: [NTG-context] Metafun: setting pen size in properties

2017-07-24 Thread Alan Braslau
On Mon, 24 Jul 2017 10:26:25 +0200 Hans Hagen wrote: > On 7/24/2017 1:40 AM, Aditya Mahajan wrote: > > Hi, > > > > Is it possible to set pen width using properties(...)? The > > following does not work (the color is set, but not the pen width): > > > > \starttext > >

Re: [NTG-context] Metafun: setting pen size in properties

2017-07-24 Thread Hans Hagen
On 7/24/2017 1:40 AM, Aditya Mahajan wrote: Hi, Is it possible to set pen width using properties(...)? The following does not work (the color is set, but not the pen width): \starttext \startMPcode property p[] ; p[1] := properties(withcolor red withpen pencircle scaled 1bp); p[2] :=

Re: [NTG-context] Metafun: setting pen size in properties

2017-07-23 Thread Alan Braslau
withproperties is an experimental, metafun extension that appears to cover color and pre/postscripts. It could be extended to cover withpen, etc. Look at mp-mplib.mkiv. properties() returns an image object that can hold many things. The graph package does similar tricks. Alan On Sun, 23 Jul

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
On Thu, Mar 24, 2016 at 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]

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

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

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:

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

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

2014-01-30 Thread Hans Hagen
On 1/29/2014 9:41 PM, Otared Kavian wrote: Hi, With the latest beta, ConTeXt ver: 2013.06.07 17:34 MKII fmt: 2014.1.29 in a file typeset with mkii I have a bunch of metapost macros (drawing a logo…) which used to typeset correctly until last week, I get an error message saying:

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 a

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

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]

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

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] MetaFun: MetaPost example works with `mpost` but not embedded in ConTeXt: `! Redundant equation.`

2011-12-11 Thread Marco
On 2011-12-11 Paul Menzel paulepan...@users.sourceforge.net wrote: […] I then copied it into `\{start,stop}useMPgraphic`, removed the `end ;` and `{begin,end}fig` and replaced `{e,b}tex` by `textext()` but still get the following error. I didn't check you code (try to make a

Re: [NTG-context] MetaFun: Is the maximum of `vloggrid` limited to 10?

2011-12-09 Thread Hans Hagen
On 8-12-2011 16:45, Paul Menzel wrote: Am Donnerstag, den 08.12.2011, 16:40 +0100 schrieb Hans Hagen: On 8-12-2011 14:54, Paul Menzel wrote: To create grid like the log-log grid in [2] I guess I need to compose the bigger grid from these “basic” grids then? at some point it runs off your

Re: [NTG-context] MetaFun: Is the maximum of `vloggrid` limited to 10?

2011-12-08 Thread Hans Hagen
On 8-12-2011 14:54, Paul Menzel wrote: To create grid like the log-log grid in [2] I guess I need to compose the bigger grid from these “basic” grids then? at some point it runs off your page i guess \starttext \startMPcode draw vloggrid(0, 10, 10, 10cm, 6cm) withcolor red ; draw

Re: [NTG-context] MetaFun: Is the maximum of `vloggrid` limited to 10?

2011-12-08 Thread Paul Menzel
Am Donnerstag, den 08.12.2011, 16:40 +0100 schrieb Hans Hagen: On 8-12-2011 14:54, Paul Menzel wrote: To create grid like the log-log grid in [2] I guess I need to compose the bigger grid from these “basic” grids then? at some point it runs off your page i guess But the width parameter

Re: [NTG-context] Metafun manual section titles

2011-11-13 Thread Andreas Harder
On 13.11.2011, at 23:24, Romain Diss wrote: Hello, I'm trying to make some section titles which look like the ones of the metafun manual: title and number underlined, with number in margin. I thougth it would not be too hard but I can't do it. Actually, I'm using a frame with an

Re: [NTG-context] MetaFun: Confusion with `function()` and `xyscaled`

2011-10-22 Thread Hans Hagen
On 21-10-2011 22:53, Aditya Mahajan wrote: Could someone please explain to me how `xyscaled` works in this case please. I though `xyscaled (αcm, ζcm)` would set the object/path to a width of α cm and a height of ζ cm. IIRC, xysized does that. (I am usually confused between ..sized and

Re: [NTG-context] MetaFun: Confusion with `function()` and `xyscaled`

2011-10-21 Thread Paul Menzel
Am Freitag, den 21.10.2011, 01:14 +0200 schrieb Paul Menzel: Dear ConTeXt/MetaFun folks, looking at the example for grid and functions in the MetaFun manual [1] section 9.3 drawoptions(withpen pencircle scaled .25pt withcolor .5white) ; draw hlingrid(0, 20, .2, 20cm,

Re: [NTG-context] MetaFun: Confusion with `function()` and `xyscaled`

2011-10-21 Thread Peter Rolf
Hi Paul, I agree, this is confusing on the first sight. But scaling is not meant as 'scaling to' a dimension. In fact is is just a simple multiplication. The reason why it seems to work this way with 'fullsquare' and such predefined paths is, that they have a 'neutral' size/scale (bounding box

Re: [NTG-context] MetaFun: Confusion with `function()` and `xyscaled`

2011-10-21 Thread Aditya Mahajan
Could someone please explain to me how `xyscaled` works in this case please. I though `xyscaled (αcm, ζcm)` would set the object/path to a width of α cm and a height of ζ cm. IIRC, xysized does that. (I am usually confused between ..sized and ..scaled, but one of them scales to the given

Re: [NTG-context] MetaFun: hlintext: `! Missing `)' has been inserted.`, `formatstr: ! Not implemented: (pair)-(unknown numeric).`

2011-10-14 Thread Hans Hagen
On 14-10-2011 08:02, Paul Menzel wrote: Dear ConTeXt folks, trying to draw a grid and label it, I get an error when using the (alsa attached) example from the MetaFun manual [1]. Fixed in next beta (however, instead of mp formatting lua formatting is used, a prelude to the graph rewrite

Re: [NTG-context] metafun shared code

2011-09-19 Thread Aditya Mahajan
On Mon, 19 Sep 2011, Marcin Borkowski wrote: I'd like to have some MP code shared between unique graphics (in MkIV). One example: I'd like to have drawoptions something for all graphics. \startMPinclusions drawoptions(...) ; \stopMPinclusions Another one: I'd like to have two similar

Re: [NTG-context] metafun shared code

2011-09-19 Thread Meer, H. van der
I am using code between \startMPinclusions .. \stopMPinclusions while later additions can be accumulated with \startMPinclusions[+] .. \stopMPinclusions Hans van der Meer On 19 sep. 2011, at 17:01, Marcin Borkowski wrote: Hi all, I'd like to have some MP code shared between unique graphics

Re: [NTG-context] metafun shared code

2011-09-19 Thread Peter Rolf
Am 19.09.2011 17:01, schrieb Marcin Borkowski: Hi all, I'd like to have some MP code shared between unique graphics (in MkIV). One example: I'd like to have drawoptions something for all graphics. Another one: I'd like to have two similar (but different) unique graphics, and I'd like

Re: [NTG-context] metafun shared code

2011-09-19 Thread Marcin Borkowski
Dnia 2011-09-19, pon o godzinie 11:19 -0400, Aditya Mahajan pisze: On Mon, 19 Sep 2011, Marcin Borkowski wrote: I'd like to have some MP code shared between unique graphics (in MkIV). One example: I'd like to have drawoptions something for all graphics. \startMPinclusions

Re: [NTG-context] metafun shared code

2011-09-19 Thread Aditya Mahajan
On Mon, 19 Sep 2011, Marcin Borkowski wrote: Dnia 2011-09-19, pon o godzinie 11:19 -0400, Aditya Mahajan pisze: On Mon, 19 Sep 2011, Marcin Borkowski wrote: I'd like to have some MP code shared between unique graphics (in MkIV). One example: I'd like to have drawoptions something for all

Re: [NTG-context] metafun shared code

2011-09-19 Thread Marcin Borkowski
Dnia 2011-09-19, o godz. 17:43:29 Aditya Mahajan adit...@umich.edu napisał(a): On Mon, 19 Sep 2011, Marcin Borkowski wrote: Dnia 2011-09-19, pon o godzinie 11:19 -0400, Aditya Mahajan pisze: On Mon, 19 Sep 2011, Marcin Borkowski wrote: I'd like to have some MP code shared between

Re: [NTG-context] Metafun shifting pictures - again

2011-06-24 Thread dalyoung
Dear Hans, Thank you for the suggestion to use setbounds. And sorry to send you a untested sample file which is not working. However, I couldn't succeed because of my lack of knowledge on setbounds, boundingbox. Instead, I try to use addto and get a wanted result. There is a better way to do

Re: [NTG-context] Metafun shifting pictures - again

2011-06-24 Thread Hans Hagen
On 24-6-2011 8:32, dalyoung wrote: Dear Hans, Thank you for the suggestion to use setbounds. And sorry to send you a untested sample file which is not working. However, I couldn't succeed because of my lack of knowledge on setbounds, boundingbox. Instead, I try to use addto and get a wanted

Re: [NTG-context] Metafun shifting pictures - again

2011-06-23 Thread Hans Hagen
On 23-6-2011 6:32, Jeong Dalyoung wrote: Hi all, I got the reason why the pictures locate in different position. rotation causes the problem. I defined domino as follows. It is not the exact code but just show the form of the codes. def domino (a, b, c, d ) save pic;

Re: [NTG-context] Metafun: shifting picture-solved with experiments.

2011-06-22 Thread dalyoung
Hi, Changing the code as following, it moves to the correct location. There may be a problem using pic := currentpicture; Instead of using draw pic scaled DieSize shifted (dx,dy); apply the shift directly to draw pips. I just guess that some number are not cleared when I use

Re: [NTG-context] Metafun shifting pictures - again

2011-06-22 Thread Jeong Dalyoung
Hi all, I got the reason why the pictures locate in different position. rotation causes the problem. I defined domino as follows. It is not the exact code but just show the form of the codes. ... def domino (a, b, c, d ) save pic; picture pic; draw something 1;

Re: [NTG-context] [metafun] MPenvironment / font switching

2011-06-10 Thread Mojca Miklavec
On Thu, Jun 9, 2011 at 23:20, Philipp Gesang wrote: Hi all, I’m struggling with the font used in metapost. The only way to actually change it appears to be enclosing the mp graphic in two statements of \setupbodyfont[…] -- which I need to avoid. In the following example, the background text

Re: [NTG-context] [metafun] MPenvironment / font switching

2011-06-09 Thread Wolfgang Schuster
Am 09.06.2011 um 23:20 schrieb Philipp Gesang: Hi all, I’m struggling with the font used in metapost. The only way to actually change it appears to be enclosing the mp graphic in two statements of \setupbodyfont[…] -- which I need to avoid. In the following example, the background text

Re: [NTG-context] [metafun] MPenvironment / font switching

2011-06-09 Thread Philipp Gesang
On 2011-06-09 23:31:49, Wolfgang Schuster wrote: Am 09.06.2011 um 23:20 schrieb Philipp Gesang: snip/ · \startMPenvironment %[global] \switchtobodyfont[sans] %\setupbodyfont[sans] \stopMPenvironment

Re: [NTG-context] Metafun Label and externalfigure Problem

2011-03-08 Thread Lutz Haseloff
Akiras luatex.dll rev 4090 updated on 20110303 works again as expected. 2011/3/3 Lutz Haseloff lutz.hasel...@googlemail.com: 2011/3/2 Taco Hoekwater t...@elvenkind.com: Hi, Not having blblogo.pdf, I used cow.pdf for the tests below. I use luatex 0.66.0 (rev 4090) hand-built on linux32, and

Re: [NTG-context] Metafun Label and externalfigure Problem

2011-03-02 Thread Jeong Dalyoung
Dear Lutz, After replacing blblogo.pdf with a figure file in my system and tested it. Otherwise, it shows a gray rectangle. I got no error and the output is fine.( Test and the figure are well shown) I don't know rev 4090 but here is the version of ConTeXt minimal in my system. ... This is

Re: [NTG-context] Metafun Label and externalfigure Problem

2011-03-02 Thread Taco Hoekwater
Hi, Not having blblogo.pdf, I used cow.pdf for the tests below. I use luatex 0.66.0 (rev 4090) hand-built on linux32, and Context 2011.02.25 22:03 MKIV (received privately from Hans) With that configuration, all three tests function exactly as they should, so it is almost certainly not luatex

Re: [NTG-context] Metafun Label and externalfigure Problem

2011-03-02 Thread Lutz Haseloff
2011/3/2 Taco Hoekwater t...@elvenkind.com: Hi, Not having blblogo.pdf, I used cow.pdf for the tests below. I use luatex 0.66.0 (rev 4090) hand-built on linux32, and Context 2011.02.25 22:03 MKIV (received privately from Hans) With that configuration, all three tests function exactly as

Re: [NTG-context] Metafun Label and externalfigure Problem

2011-03-01 Thread luigi scarso
On Tue, Mar 1, 2011 at 11:17 AM, Lutz Haseloff lutz.hasel...@googlemail.com wrote: Hi all, with latest ConTeXt MKIV Metapost Labels doesn't work for me anymore. My Code: \starttext \startMPcode label(textext(Test),origin); \stopMPcode \stoptext The Output only shows the word mpout as

Re: [NTG-context] Metafun Label and externalfigure Problem

2011-03-01 Thread Lutz Haseloff
not here with current version: 2011.02.25 22:03 %%test \starttext \startTEXpage \startMPcode draw origin-(20,0) .. origin+(0,20) .. origin+(20,0) .. origin+(0,-20) .. cycle; label(textext(Test),origin); \stopMPcode \stopTEXpage \stoptext The problem occures with luatex rev 4088, no

Re: [NTG-context] Metafun Label and externalfigure Problem

2011-03-01 Thread luigi scarso
On Tue, Mar 1, 2011 at 12:23 PM, Lutz Haseloff lutz.hasel...@googlemail.com wrote: not here with current version: 2011.02.25 22:03 %%test \starttext \startTEXpage \startMPcode draw origin-(20,0) .. origin+(0,20) .. origin+(20,0) .. origin+(0,-20) .. cycle; label(textext(Test),origin);

Re: [NTG-context] Metafun Label and externalfigure Problem

2011-03-01 Thread Hans Hagen
On 1-3-2011 11:17, Lutz Haseloff wrote: Hi all, with latest ConTeXt MKIV Metapost Labels doesn't work for me anymore. My Code: \starttext \startMPcode label(textext(Test),origin); \stopMPcode \stoptext The Output only shows the word mpout as the Label. works ok here There seems to be a

Re: [NTG-context] Metafun Label and externalfigure Problem

2011-03-01 Thread Lutz Haseloff
I just tested luatex rev 4090: -- \starttext \startMPpage externalfigure blblogo.pdf scaled .4 ; %label(textext(Test),origin); \stopMPpage \stoptext -- gives no error message and an empty pdf 1mmx5mm -- \starttext \startMPpage %externalfigure blblogo.pdf scaled

Re: [NTG-context] metafun- how to pass array as an argument

2011-01-24 Thread Peter Rolf
Am 24.01.2011 13:18, schrieb dalyoung: \startbuffer[a] path p; numeric bwidth, u, lastpoint; u :=1cm; p := fullcircle scaled .3u; lastpoint := 0; def draw_balls = %(expr s) def draw_balls(text s) = draw (0,0) -- (0, u); for i=3,5,0,2,1,7: for i=s: for j = 1 upto i:

Re: [NTG-context] metafun- how to pass array as an argument

2011-01-24 Thread Peter Rolf
Am 24.01.2011 13:50, schrieb Peter Rolf: Am 24.01.2011 13:18, schrieb dalyoung: \startbuffer[a] path p; numeric bwidth, u, lastpoint; u :=1cm; p := fullcircle scaled .3u; lastpoint := 0; def draw_balls = %(expr s) def draw_balls(text s) = draw (0,0) -- (0, u); for

Re: [NTG-context] metafun- how to pass array as an argument

2011-01-24 Thread dalyoung
Dear Peter, Thank you for your help. By changing (expr s) to (text s), it works! I am using ConTeXt Minimal and the luatex version is This is LuaTeX, Version beta-0.61.0-2010072816 Thank you again. Dalyoung

Re: [NTG-context] metafun: formatting numbers

2010-12-12 Thread Hans Hagen
On 12-12-2010 12:49, Peter Münster wrote: Hello, Formatting numbers seems to be buggy: \starttext \startMPcode drawoptions(withpen pencircle scaled .25pt withcolor .5white) ; draw hlingrid (0, 20, 1, 20cm, 10cm) ; fmt_pictures := false ; % use TeX as formatting engine draw hlintext.lft(0, 20,

Re: [NTG-context] Metafun and MetaObj in MKIV

2010-11-29 Thread Hans Hagen
On 27-11-2010 9:12, Martin Scholz wrote: Dear Mr. Hagen, is there a problem in MKIV, I try to use the included MetaObj in ConTeXt-Minimals, what I get is that a sample script under MKII builds but not under MKIV, there it is not produced and the MetaFun objects after it are also not produced.

Re: [NTG-context] metafun

2010-10-23 Thread Alan BRASLAU
On Friday 22 October 2010 16:06:06 Taco Hoekwater wrote: On 10/21/2010 12:42 AM, Kevin D. Robbins wrote: Hi Hans, Is the new MetaFun manual available for download? The only PDFs I could find of the MetaFun manual were dated to 2002. The new version is on the web site now. Hello

Re: [NTG-context] metafun

2010-10-23 Thread Aditya Mahajan
On Sat, 23 Oct 2010, Herbert Voss wrote: It is a hard job to understand how all works ... I agree. That chapter is confusing if you do not know already how the mechanism works. I tried to create the first example of the documentation Page 257 Anchors and layers, but failed with mkii and iv.

Re: [NTG-context] metafun

2010-10-22 Thread Taco Hoekwater
On 10/21/2010 12:42 AM, Kevin D. Robbins wrote: Hi Hans, Is the new MetaFun manual available for download? The only PDFs I could find of the MetaFun manual were dated to 2002. The new version is on the web site now. Best wishes, Taco

Re: [NTG-context] metafun

2010-10-22 Thread Taco Hoekwater
On 10/22/2010 04:20 PM, Hans Hagen wrote: On 22-10-2010 4:06, Taco Hoekwater wrote: On 10/21/2010 12:42 AM, Kevin D. Robbins wrote: Hi Hans, Is the new MetaFun manual available for download? The only PDFs I could find of the MetaFun manual were dated to 2002. The new version is on the web

Re: [NTG-context] metafun

2010-10-22 Thread Wolfgang Schuster
Am 22.10.2010 um 16:20 schrieb Hans Hagen: The screen version (no change in the interface) looks nice on an ipad. Indeed, S6 is the perfect page size on the ipad but what happened with the randomized „MetaFun“ in the text? Wolfgang

<    1   2   3   >