Re: [NTG-context] markdown module vs pandoc

2019-02-16 Thread Gour
end learning MetaPost/MetaFun over .eg. TikZ if one wants to focus on single (probably my learning plate is already quite full to go into something else considering the need to learn ConTeXt itself) package? Sincerely, Gour -- When your intelligence has passed out of the dense forest of delusion, you

Re: [NTG-context] baseline of outlined font

2019-02-16 Thread Wolfgang Schuster
Jeong Dal schrieb am 16.02.19 um 12:07: Dear all, Recently, I used outlined font described in MetaFun for titles. But the baselines of the number and the title of chapter are different. What is wrong in the following code? Thank you for reading. Best regards, Dalyoung \definefont

[NTG-context] baseline of outlined font

2019-02-16 Thread Jeong Dal
Dear all, Recently, I used outlined font described in MetaFun for titles. But the baselines of the number and the title of chapter are different. What is wrong in the following code? Thank you for reading. Best regards, Dalyoung \definefont[BigFontOne][NotoSansCJKkr-Bold sa 4

Re: [NTG-context] outlined font using MetaFun

2019-02-08 Thread Wolfgang Schuster
Jeong Dal schrieb am 08.02.19 um 17:18: Dear all, The following code which is borrowed from MetaFun manual is working nicely. %% \setupMPvariables[outlineT][tt="Hello"] \startuseMPgraphic{outlineT} draw outlinetext.b (\MPvar{tt}) (withcolor .5white) (withcolor .625bl

[NTG-context] outlined font using MetaFun

2019-02-08 Thread Jeong Dal
Dear all, The following code which is borrowed from MetaFun manual is working nicely. %% \setupMPvariables[outlineT][tt="Hello"] \startuseMPgraphic{outlineT} draw outlinetext.b (\MPvar{tt}) (withcolor .5white) (withcolor .625blue withpen pencircle scaled .2pt)

Re: [NTG-context] text flowing around images

2019-02-06 Thread Henning Hraban Ramm
>>>> I’m quite sure I remember that it was possible to let text flow around >> shapes somehow, but I can’t find documentation or a sample. >>>>> I’d be thankful for hints. >>>>> >> The metafun manual should have a few examples. >> >

Re: [NTG-context] text flowing around images

2019-02-05 Thread Aditya Mahajan
the pictures as TIFFs with alpha channel, but of course I can change that. I’m quite sure I remember that it was possible to let text flow around shapes somehow, but I can’t find documentation or a sample. I’d be thankful for hints. The metafun manual should have a few examples. See https

Re: [NTG-context] text flowing around images

2019-02-05 Thread Wolfgang Schuster
The metafun manual should have a few examples. Wolfgang Alan Braslau schrieb am 05.02.19 um 21:48: \parshape On Tue, 5 Feb 2019 21:38:29 +0100 Henning Hraban Ramm wrote: No hints? If it’s not possible, I must redo the whole layout in InDesign. I’d like to avoid that (footnotes!). Best

Re: [NTG-context] Show the letters of the alphabet with a loop (Metapost)

2019-02-03 Thread Henri Menke
On 4/02/19 12:50 AM, Fabrice Couvreur wrote: > Sorry Henri, but I still have a question : how to have the letters in bold > type ? Use the infont operator. That info is a bit hidden in “2.10 Analyzing pictures” of the MetaFun manual. \starttext \startMPcode for i=0 upto 3 : f

[NTG-context] textext with plain MetaFun

2019-01-21 Thread Akira Kakuto
> You should see the text at the bottom left. > It seems that there is a string _s_ not initialized. If I remove all _s_ in mp-text.mpii, metafun test.mp worked for hobbiestextext := true; beginfig(1) draw textext("MetaFun") ; endfig; e

Re: [NTG-context] textext with plain MetaFun

2019-01-21 Thread luigi scarso
On Mon, Jan 21, 2019 at 10:47 AM Henri Menke wrote: > On 1/21/19 10:40 PM, luigi scarso wrote: > > On Mon, Jan 21, 2019 at 8:57 AM Henri Menke > wrote: > > > >> Dear list, > >> > >> When I process the short MetaFun example > >&g

Re: [NTG-context] textext with plain MetaFun

2019-01-21 Thread Henri Menke
On 1/21/19 10:40 PM, luigi scarso wrote: > On Mon, Jan 21, 2019 at 8:57 AM Henri Menke wrote: > >> Dear list, >> >> When I process the short MetaFun example >> >> beginfig(1) >> draw textext("MetaFun") ; >> endfig; >>

Re: [NTG-context] textext with plain MetaFun

2019-01-21 Thread luigi scarso
On Mon, Jan 21, 2019 at 8:57 AM Henri Menke wrote: > Dear list, > > When I process the short MetaFun example > > beginfig(1) > draw textext("MetaFun") ; > endfig; > end > > with plain MetaFun, i.e. > > mpost '' test.mp > >

Re: [NTG-context] textext with plain MetaFun

2019-01-21 Thread Hans van der Meer
21/2019 8:57 AM, Henri Menke wrote: >>> Dear list, >>> >>> When I process the short MetaFun example >>> >>> beginfig(1) >>> draw textext("MetaFun") ; >>> endfig; >>> end >>> >>> with

Re: [NTG-context] textext with plain MetaFun

2019-01-21 Thread Henri Menke
On 1/21/19 9:29 PM, Hans Hagen wrote: > On 1/21/2019 8:57 AM, Henri Menke wrote: >> Dear list, >> >> When I process the short MetaFun example >> >> beginfig(1) >> draw textext("MetaFun") ; >> endfig; >> e

Re: [NTG-context] textext with plain MetaFun

2019-01-21 Thread Hans Hagen
On 1/21/2019 8:57 AM, Henri Menke wrote: Dear list, When I process the short MetaFun example beginfig(1) draw textext("MetaFun") ; endfig; end with plain MetaFun, i.e. mpost '' test.mp the resulting file only contains “unknown”. How can I get the expec

[NTG-context] textext with plain MetaFun

2019-01-20 Thread Henri Menke
Dear list, When I process the short MetaFun example beginfig(1) draw textext("MetaFun") ; endfig; end with plain MetaFun, i.e. mpost '' test.mp the resulting file only contains “unknown”. How can I get the expected output? Che

Re: [NTG-context] MetaFun: how to check the number of arguments

2019-01-16 Thread Jeong Dal
Dear Hans, > vardef textlength(text t) = >save n ; n := 0 ; >for i = t : > n := n + 1 ; >endfor; >n > enddef; > Thank you for a good method! It can be used in another program. Best regards, Dalyoung

Re: [NTG-context] MetaFun: how to check the number of arguments

2019-01-16 Thread Hans Hagen
On 1/16/2019 12:53 AM, Jeong Dal wrote: Dear Hans, Thank you for a solution. In my memory, it is possible to check the argument in Lua, so I hope that there is a similar method in MetaFun. It may be easier to draw grid using lines instead of squares. vardef textlength(text t) = save n

Re: [NTG-context] MetaFun: how to check the number of arguments

2019-01-15 Thread Jeong Dal
Dear Hans, Thank you for a solution. In my memory, it is possible to check the argument in Lua, so I hope that there is a similar method in MetaFun. It may be easier to draw grid using lines instead of squares. Thank you again. Best regards, Dalyoung > 2019. 1. 16. 오전 2:04, Hans Hagen

Re: [NTG-context] MetaFun: how to check the number of arguments

2019-01-15 Thread Hans Hagen
On 1/14/2019 10:44 PM, Jeong Dal wrote: Dear all, In the following sample, it draws squares with label which is given. I’d like to know how to check the number of elements in the second argument? If it is 0, then I just draw grids only. Thank you for reading. Best regards, Dalyoung

[NTG-context] MetaFun: how to check the number of arguments

2019-01-14 Thread Jeong Dal
Dear all, In the following sample, it draws squares with label which is given. I’d like to know how to check the number of elements in the second argument? If it is 0, then I just draw grids only. Thank you for reading. Best regards, Dalyoung \startbuffer[defs] def drawGridF (expr

Re: [NTG-context] double followtokens?

2019-01-01 Thread Hans van der Meer
in the commented path above). >> I hope it is clearer now. > >path p ; p := reverse halfcircle scaled 5cm ; >path q ; q := reverse halfcircle scaled 5cm rotated 180 ; > >path q ; q := reverse halfcircle scaled 5cm rotated 180 ; > >\followtokens{~this way~} >

Re: [NTG-context] graphics

2018-12-05 Thread Alan Braslau
he world, but it would be nice if > > metafun had an ‘official’ way of setting up a scene. > sounds like a challenge for our meta-math-magician Alan Not a particularly hard problem (well known) but then one will want hidden line removal, (partial) transparency, shading, ... and whereas this is po

Re: [NTG-context] graphics

2018-12-05 Thread Hans Hagen
to map 3D coordinates to 2D coordinates with for a camera position with an orthogonal window. Not the most complicated thing in the world, but it would be nice if metafun had an ‘official’ way of setting up a scene. sounds like a challenge for our meta-math-magician

Re: [NTG-context] graphics

2018-12-05 Thread Taco Hoekwater
map 3D coordinates to 2D coordinates with for a camera position with an orthogonal window. Not the most complicated thing in the world, but it would be nice if metafun had an ‘official’ way of setting up a scene. Best wishes, Taco ___

Re: [NTG-context] Macro to write a vector with Metafun (again)

2018-12-04 Thread Hans Hagen
On 12/4/2018 4:38 PM, Fabrice Couvreur wrote: Hello Hans, The macro to draw a vector does not work even with the latest version of context standalone. Thank you Fabrice \useMPlibrary[mat] % will be in meta-imp-mat.mkiv just watch in there .. we redid these stackers with more control (and

[NTG-context] Macro to write a vector with Metafun (again)

2018-12-04 Thread Fabrice Couvreur
Hello Hans,The macro to draw a vector does not work even with the latest version of context standalone. Thank you Fabrice \useMPlibrary[mat] % will be in meta-imp-mat.mkiv \startMPextensions vardef math_stacker_arrow_shape = image ( drawarrow

Re: [NTG-context] Construct a matrix with Metafun

2018-10-14 Thread Wolfgang Schuster
Fabrice Couvreur schrieb am 14.10.18 um 10:46: Hi, I tried to use Metafun and \definemathmatrix [pmatrix] [matrix: parentheses] [simplecommand = MATRIX] to create two matrices, but that does not work. 1. You have a space in [matrix: parentheses] 2. When you have only simple

Re: [NTG-context] Construct a matrix with Metafun

2018-10-14 Thread Wolfgang Schuster
Fabrice Couvreur schrieb am 14.10.18 um 10:46: Hi, I tried to use Metafun and \definemathmatrix [pmatrix] [matrix: parentheses] [simplecommand = MATRIX] to create two matrices, but that does not work. 1. You have a space in [matrix: parentheses] 2. When you have only simple graphics like

[NTG-context] Construct a matrice with Metafun and \MATRIX{}

2018-10-14 Thread Fabrice Couvreur
Hi, I tried to use Metafun and \definemathmatrix [pmatrix] [matrix: parentheses] [simplecommand = MATRIX] to create two matrices, but that does not work. Thank you. http://image.noelshack.com/fichiers/2018/41/7/1539507927-matrice.jpg

[NTG-context] Construct a matrix with Metafun

2018-10-14 Thread Fabrice Couvreur
Hi, I tried to use Metafun and \definemathmatrix [pmatrix] [matrix: parentheses] [simplecommand = MATRIX] to create two matrices, but that does not work. Thank you. Fabrice [image: matrice.jpg] ___ If your question

Re: [NTG-context] Implicit plots/level curves possible?

2018-10-11 Thread Aditya Mahajan
demonstration, to complete the example. It demonstrates some fun lua+MP+ConTeXt tricks: Looking at lua-mplib.mpvi, isn't it better to use MP namespace (instead of mp) for user defined functions? The metafun manual says that one can omit the prefix `lua` and simply use `mp` or `MP`. That does not seem

Re: [NTG-context] Implicit plots/level curves possible?

2018-10-09 Thread Mikael P. Sundqvist
demo] > >>>> [...] > >>>> \stopbuffer > >>>> > >>>> \startTEXpage > >>>> \typesetbuffer[demo] > >>>> \stopTEXpage > >>>> \stoptext > >>>> > >>>> a next run the already pr

Re: [NTG-context] Implicit plots/level curves possible?

2018-10-08 Thread Hans Hagen
aken unles it has been changed. I thought that this will also be a good usecase of showing Lua+MP interaction. I wrote the code below following the metafun manual, but I cannot get it to compile. What am I missing? You need to put it into the mp namespace: Thanks. The metafun manual is

Re: [NTG-context] Implicit plots/level curves possible?

2018-10-08 Thread Aditya Mahajan
I thought that this will also be a good usecase of showing Lua+MP interaction. I wrote the code below following the metafun manual, but I cannot get it to compile. What am I missing? You need to put it into the mp namespace: Thanks. The metafun manual is confusing in this regard and I got the impressio

Re: [NTG-context] Implicit plots/level curves possible?

2018-10-08 Thread Alan Braslau
stopbuffer > > > > \startTEXpage > > \typesetbuffer[demo] > > \stopTEXpage > > \stoptext > > > > a next run the already prepared buffer will be taken unles it has been > > changed. > > I thought that this will also be a good usecase of show

Re: [NTG-context] Implicit plots/level curves possible?

2018-10-08 Thread Aditya Mahajan
tartbuffer[demo] [...] \stopbuffer \startTEXpage \typesetbuffer[demo] \stopTEXpage \stoptext a next run the already prepared buffer will be taken unles it has been changed. I thought that this will also be a good usecase of showing Lua+MP interaction. I wrote the code below following t

Re: [NTG-context] Implicit plots/level curves possible?

2018-10-07 Thread Mikael P. Sundqvist
lft(decimal (y-2),(y/2.5)[llcorner pic,ulcorner pic]) ; > endfor > \stopMPcode > \stopTEXpage > > > Alan Thanks both to luigi and to Alan! I'm impressed by your brute force method, Alan! In particular it learned me the "hide" command. I feel a bit ashamed. Earlier today

Re: [NTG-context] Implicit plots/level curves possible?

2018-10-07 Thread luigi scarso
On Sun, Oct 7, 2018 at 5:26 PM Mikael P. Sundqvist wrote: > Dear list, > > Is it possiblet to make implicit plots (i.e. ploting the curves > described by equations) in MetaFun? I cannot find anything about them > in the MetaFun manual. > > For example, in Mathematica I can

[NTG-context] Implicit plots/level curves possible?

2018-10-07 Thread Mikael P. Sundqvist
Dear list, Is it possiblet to make implicit plots (i.e. ploting the curves described by equations) in MetaFun? I cannot find anything about them in the MetaFun manual. For example, in Mathematica I can write something like ContourPlot[2 x^5 + x y + y^5 == 0, {x, 0, 2}, {y, -2, 1/2}] to get

Re: [NTG-context] filling overlap ?

2018-10-07 Thread Floris van Manen
t me to te way as how to fill only the overlap of three >> paths using metafun ? >> >> path p ; p := fullsquare xscaled 10mm yscaled 12mm superellipsed .7 ; >> path q ; q := fullsquare xscaled 9mm yscaled 11mm superellipsed .7 ; >> q := q shifted (3mm, -2mm); &g

Re: [NTG-context] filling overlap ?

2018-10-07 Thread Floris van Manen
thanks ! .F > > Hi! > > This is something similar as in page 304 of the manual > http://www.pragma-ade.com/general/manuals/metafun-p.pdf > > \startMPpage > path p ; p := fullsquare xscaled 10mm yscaled 12mm superellipsed .7 ; > path q ; q := fullsquare xscaled 9mm

Re: [NTG-context] filling overlap ?

2018-10-07 Thread Mikael P. Sundqvist
On Sun, Oct 7, 2018 at 1:10 PM Floris van Manen wrote: > > Could someone point me to te way as how to fill only the overlap of three > paths using metafun ? > > path p ; p := fullsquare xscaled 10mm yscaled 12mm superellipsed .7 ; > path q ; q := fullsquare xscaled

[NTG-context] filling overlap ?

2018-10-07 Thread Floris van Manen
Could someone point me to te way as how to fill only the overlap of three paths using metafun ? path p ; p := fullsquare xscaled 10mm yscaled 12mm superellipsed .7 ; path q ; q := fullsquare xscaled 9mm yscaled 11mm superellipsed .7 ; q := q shifted (3mm, -2mm); path r ; r := fullsquare xscaled

Re: [NTG-context] Metafun scaling problem

2018-10-02 Thread Hans Hagen
On 10/2/2018 1:05 PM, Lutz Haseloff wrote: xsized was the solution. I wonder why xscaled worked for me for years. because we used a 1bp image at that time (was needed in two-pass approach) ... we don't have that limitation now (and 1bp is pretty inaccurate anyway) Hans

Re: [NTG-context] Metafun scaling problem

2018-10-02 Thread Lutz Haseloff
xsized was the solution. I wonder why xscaled worked for me for years. Thanks for the fast help. Lutz Am 2. Oktober 2018 11:10:04 MESZ schrieb Hans Hagen : >On 10/2/2018 7:03 AM, Lutz Haseloff wrote: >> Hi Hans, hi all, >> >> I think, that recent context has a problem with scaling included pdf

Re: [NTG-context] Metafun scaling problem

2018-10-02 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. > > > Metapost traditional scaled math has a limited range, you can use doublefun or decimalfun (not more binaryfun) \starttext \startTEXpage

Re: [NTG-context] Metafun scaling problem

2018-10-02 Thread Hans Hagen
On 10/2/2018 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 ok. If I try to scale to

Re: [NTG-context] Metafun scaling problem

2018-10-02 Thread luigi scarso
On Tue, Oct 2, 2018 at 8:19 AM Lutz Haseloff wrote: > 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

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

[NTG-context] Metafun scaling problem

2018-10-01 Thread Lutz Haseloff
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 ok. If I try to scale to the original size, i get arithmetic overflow

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
, otherwise (for example, “하”) it draws only consonant. Is there a way to count all the paths in a character(even if it is not connected)? Thank you. Best regards, Dalyoung > > \starttext > > \startMPdefinitions > > % will be added to metafun: > > de

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

[NTG-context] MetaFun: nofmultipars wrong?

2018-09-24 Thread Henri Menke
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 second page. Another issue is that the

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

2018-09-22 Thread Hans Hagen
opMPpage \stoptext You migh find more when you go top double mode .. anyway, these intersection calculations are not that accurate so you normally need to apply some overkill. - a bit cleaned up outlinepath function - use document namespace - add helper for defineoutline - do 4 runs over the shape

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

2018-09-22 Thread Alan Braslau
(angle) withcolor .5[red,white]; > >>> path r; > >>> numeric n; n := 0; > >>> for i = 1 upto Bn: > >>>     for j = 1 upto Tn: > >>>         r := B[i]; > >>>         forever: > >>>             pair q; > >&g

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

2018-09-22 Thread Hans Hagen
so you normally need to apply some overkill. - a bit cleaned up outlinepath function - use document namespace - add helper for defineoutline - do 4 runs over the shapes (probably too many now) - more neutral fill code It makes a nice example for the metafun (although then I'd do it slightl

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

2018-09-22 Thread Floris van Manen
;> dotlabel.urt(textext("\tfx" & decimal n), q); >> endfor; >> endfor ; >> endfor ; >> \stopMPpage >> \stoptext > > You migh find more when you go top double mode .. anyway, these intersection > calculations are n

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

2018-09-22 Thread Hans Hagen
de .. anyway, these intersection calculations are not that accurate so you normally need to apply some overkill. - a bit cleaned up outlinepath function - use document namespace - add helper for defineoutline - do 4 runs over the shapes (probably too many now) - more neutral fill code It makes a

[NTG-context] Metafun: Finding intersection between characters

2018-09-22 Thread Henri Menke
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 and convert them to MetaPost paths. Then I

Re: [NTG-context] Variable instance identifiers exhausted

2018-09-21 Thread Hans Hagen
rce     > level 2, order 3, name '/Users/fabricel/Dropbox/Divers/Création/P030-Remplissage/0030-0018-minimal2.tex' fonts           > preloading latin modern fonts (second stage) fonts           > 'fallback modern-designsize rm 12pt' is loaded metapost        > initializing instance 'metafun' using

Re: [NTG-context] Variable instance identifiers exhausted

2018-09-21 Thread Fabrice L
languages > language 'en' is active open source > level 2, order 3, name '/Users/fabricel/Dropbox/Divers/Création/P030-Remplissage/0030-0018-minimal2.tex' fonts > preloading latin modern fonts (second stage) fonts > 'fallback modern-designsize rm 12pt' is lo

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

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

2018-09-16 Thread Henri Menke
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. Cheers, Henri --- \startMPpage vardef bend(expr a,b,phi) =

Re: [NTG-context] How to cite online websites (reloaded)

2018-09-03 Thread cryo shock
. Example: @ELECTRONIC{hh2010, author = hh, year = {2010}, title = {Metafun. \CONTEXT\ mkiv}, url = {http://www.pragma-ade.nl/general/manuals/metafun-s.pdf}, } This is the output from the PDF-file: *As [[error 2]] already indicated...* The output in the placelist section (no entries): *1

[NTG-context] Draw an ink imprint with Metafun

2018-08-30 Thread Fabrice Couvreur
Hello, The idea is to reproduce the ink mark of the figure below with Metafun [image: IMG_0691.jpg] Thank you Fabrice ___ If your question is of interest to others as well, please add an entry to the Wiki! maillist

Re: [NTG-context] Emacs + latest beta

2018-08-30 Thread Fabrice Couvreur
er 2, name > > > '/home/aragorn/context/tex/texmf-context/tex/context/base/mkiv/cont-new.mkiv' > > system > beware: some patches loaded from cont-new.mkiv > > close source> level 2, order 2, name > > > '/home/aragorn/context/tex/texmf-context/tex/co

Re: [NTG-context] Emacs + latest beta

2018-08-29 Thread Vladimir Lomov
age 'en' is active > open source > level 2, order 3, name '/home/aragorn/vladimir.tex' > system > synctex functionality is enabled, expect 5-10 pct runtime > overhead! > fonts > preloading latin modern fonts (second stage) > fonts > 'fallback

Re: [NTG-context] Emacs + latest beta

2018-08-29 Thread Fabrice Couvreur
tage) fonts > 'fallback modern-designsize rm 12pt' is loaded structure > sectioning > chapter @ level 2 : 0.1 -> First chapter metapost> initializing instance 'metafun:1' using format 'metafun' and method 'default' metapost> loading 'metafun' as '/h

Re: [NTG-context] Emacs + latest beta

2018-08-27 Thread Fabrice Couvreur
input './vladimir', result >> > 'vladimir' >> > fonts > latin modern fonts are not preloaded >> > languages > language 'en' is active >> > open source > level 2, order 3, name '/home/aragorn/vladimir.tex' >> > system >

Re: [NTG-context] Emacs + latest beta

2018-08-27 Thread Fabrice Couvreur
t-new.mkiv' > > system > files > jobname 'vladimir', input './vladimir', result > > 'vladimir' > > fonts > latin modern fonts are not preloaded > > languages > language 'en' is active > > open source > level 2, order 3, name

Re: [NTG-context] Emacs + latest beta

2018-08-26 Thread Vladimir Lomov
runtime > overhead! > fonts > preloading latin modern fonts (second stage) > fonts > 'fallback modern-designsize rm 12pt' is loaded > structure > sectioning > chapter @ level 2 : 0.1 -> First chapter > metapost> initializing instance 'metaf

Re: [NTG-context] Emacs + latest beta

2018-08-24 Thread Fabrice Couvreur
modern-designsize rm 12pt' is loaded structure > sectioning > chapter @ level 2 : 0.1 -> First chapter metapost> initializing instance 'metafun:1' using format 'metafun' and method 'default' metapost> loading 'metafun' as '/home/aragorn/context/tex/texmf-co

Re: [NTG-context] Emacs + latest beta

2018-08-23 Thread Wolfgang Schuster
ut './pouf', result 'pouf' fonts > latin modern fonts are not preloaded languages > language 'en' is active open source > level 2, order 3, name '/home/aragorn/pouf.tex' fonts > preloading latin modern fonts (second stage) fonts > 'fallback modern-des

Re: [NTG-context] Emacs + latest beta

2018-08-23 Thread Fabrice Couvreur
> preloading latin modern fonts (second stage) fonts > 'fallback modern-designsize rm 12pt' is loaded structure > sectioning > chapter @ level 2 : 0.1 -> First chapter metapost > initializing instance 'metafun:1' using format 'metafun' and method 'defau

[NTG-context] Emacs + latest beta

2018-08-22 Thread Fabrice Couvreur
pouf.tex' fonts > preloading latin modern fonts (second stage) fonts > 'fallback modern-designsize rm 12pt' is loaded structure > sectioning > chapter @ level 2 : 0.1 -> First chapter metapost> initializing instance 'metafun:1' using format 'metafun' and meth

[NTG-context] Latest beta

2018-08-20 Thread Fabrice Couvreur
; xmp > using file '/home/aragorn/context/tex/texmf-context/tex/context/base/mkiv/lpdf-pdx.xml' pages > flushing realpage 1, userpage 1, subpage 1 structure > sectioning > chapter @ level 2 : 0.1 -> Espaces probabilisés metapost> initializing instance

[NTG-context] Fwd: Problem of compiling a file with Emacs

2018-08-01 Thread Fabrice Couvreur
> preloading latin modern fonts (second stage) > > fonts > 'fallback modern-designsize rm 12pt' is loaded > > structure > sectioning > title @ level 2 : 0.0 -> Sommaire > > backend > xmp > using file > > '/home/aragorn/co

Re: [NTG-context] Problem of compiling a file with Emacs

2018-08-01 Thread Lizardo Reyna
> preloading latin modern fonts (second stage) > fonts   > 'fallback modern-designsize rm 12pt' is loaded > structure   > sectioning > title @ level 2 : 0.0 -> Sommaire > backend     > xmp > using file > '/home/aragorn/context/tex/texmf-context/tex

Re: [NTG-context] Compilation problem with the latest version of standalone context(Metafun)

2018-07-18 Thread Fabrice Couvreur
Hello, I just compiled the file with gvim and the expected result is the right one ; the problem is Emacs or my ~/.emacs file. Fabrice 2018-07-17 23:00 GMT+02:00 Alan Braslau : > \startusableMPgraphic ? > > > On 17 Jul 2018, at 14:46, Rik Kabel wrote: > > > > On 7/17/2018 16:40, Hans Hagen

Re: [NTG-context] Compilation problem with the latest version of standalone context(Metafun)

2018-07-17 Thread Hans Hagen
On 7/17/2018 11:00 PM, Alan Braslau wrote: \setuppagenumbering[location=footer] \startusableMPgraphic{NumberHead} draw outlinetext.f ("\bf\namedheadnumber{chapter}") (withcolor "lightgray") ysized 50pt ; \stopusableMPgraphic

Re: [NTG-context] Compilation problem with the latest version of standalone context(Metafun)

2018-07-17 Thread Alan Braslau
\startusableMPgraphic ? > On 17 Jul 2018, at 14:46, Rik Kabel wrote: > > On 7/17/2018 16:40, Hans Hagen wrote: >> On 7/17/2018 10:30 PM, Rik wrote: >>> On 7/16/2018 10:24, Fabrice Couvreur wrote: % macros=mkvi \setuppagenumbering[location=footer]

Re: [NTG-context] Compilation problem with the latest version of standalone context(Metafun)

2018-07-17 Thread Rik Kabel
On 7/17/2018 16:40, Hans Hagen wrote: On 7/17/2018 10:30 PM, Rik wrote: On 7/16/2018 10:24, Fabrice Couvreur wrote: % macros=mkvi \setuppagenumbering[location=footer] \startusableMPgraphic{NumberHead} draw outlinetext.f ("\bf\namedheadnumber{chapter}") (withcolor

Re: [NTG-context] Compilation problem with the latest version of standalone context(Metafun)

2018-07-17 Thread Hans Hagen
On 7/17/2018 10:30 PM, Rik wrote: On 7/16/2018 10:24, Fabrice Couvreur wrote: % macros=mkvi \setuppagenumbering[location=footer] \startusableMPgraphic{NumberHead} draw outlinetext.f ("\bf\namedheadnumber{chapter}") (withcolor "lightgray") ysized 50pt ;

Re: [NTG-context] Compilation problem with the latest version of standalone context(Metafun)

2018-07-17 Thread Fabrice Couvreur
Hi Pablo, I do not have win64, sorry ! I installed texlive 2018 and the file compiles without problem but in a console other than that of Emacs. I also get the expected result with the latest version of context standalone but still in a console other than that of Emacs. Should we conclude that the

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