Re: [NTG-context] gnuplot-module broken under lmtx

2019-04-10 Thread Hans Hagen
ze rm 12pt' is loaded open source     > level 3, order 6, name 'gnuplot-gnuplot-1-ctx.tex' close source    > level 3, order 6, name 'gnuplot-gnuplot-1-ctx.tex' metapost        > initializing instance 'metafun:1' using format 'metafun' and method

[NTG-context] gnuplot-module broken under lmtx

2019-04-10 Thread Christian Prim
kiv' fonts > preloading latin modern fonts (second stage) fonts > 'fallback modern-designsize rm 12pt' is loaded open source > level 3, order 6, name 'gnuplot-gnuplot-1-ctx.tex' close source> level 3, order 6, name 'gnuplot-gnuplot-

Re: [NTG-context] Background under bibliography (like in mkiv-publications.pdf)

2019-03-18 Thread Romain Diss
; > I try to make something similar to the frames in the > > "mkiv-publications.pdf" manual (page 6 or 22 for a bibliography for > > examples). > > I suppose Hans Hagen made use of metafun to do it but I encounter some > > problems with 'textbackgrounds&#x

Re: [NTG-context] Background under bibliography (like in mkiv-publications.pdf)

2019-03-18 Thread Romain Diss
; Use backgrounds or textbackgrounds. > > > Thank you but I still can't achieve what I want to do whith this > > > command. > > > > > > I try to make something similar to the frames in the > > > "mkiv-publications.pdf" manual (page 6 or 22 for a b

Re: [NTG-context] Background under bibliography (like in mkiv-publications.pdf)

2019-03-18 Thread Alan Braslau
his > > command. > > > > I try to make something similar to the frames in the > > "mkiv-publications.pdf" manual (page 6 or 22 for a bibliography for > > examples). > > I suppose Hans Hagen made use of metafun to do it but I encounter some > > problems w

Re: [NTG-context] Background under bibliography (like in mkiv-publications.pdf)

2019-03-18 Thread Aditya Mahajan
ocumentation I read. Use backgrounds or textbackgrounds. Thank you but I still can't achieve what I want to do whith this command. I try to make something similar to the frames in the "mkiv-publications.pdf" manual (page 6 or 22 for a bibliography for examples). I suppose Hans Hagen

Re: [NTG-context] Background under bibliography (like in mkiv-publications.pdf)

2019-03-18 Thread Romain Diss
Use backgrounds or textbackgrounds. Thank you but I still can't achieve what I want to do whith this command. I try to make something similar to the frames in the "mkiv-publications.pdf" manual (page 6 or 22 for a bibliography for examples). I suppose Hans Hagen made use of me

Re: [NTG-context] Can't use MetaFun with mplib anymore

2019-03-14 Thread luigi scarso
On Thu, Mar 14, 2019 at 10:52 AM Hans Hagen wrote: > as currently the variable is isn't used we can also comment it > > > seems so I have commented the line, and all formats and the plain test run. -- luigi ___ If

Re: [NTG-context] Can't use MetaFun with mplib anymore

2019-03-14 Thread Hans Hagen
On 3/14/2019 10:00 AM, Henri Menke wrote: On 3/14/19 8:49 PM, Hans Hagen wrote: On 3/14/2019 5:56 AM, Henri Menke wrote: Dear list, Something has changed in MetaFun and it can no longer be used in plain LuaTeX, with neither of luatex test.tex mtxrun --script plain test.tex This

Re: [NTG-context] Can't use MetaFun with mplib anymore

2019-03-14 Thread Hans Hagen
On 3/14/2019 8:51 AM, luigi scarso wrote: On Thu, Mar 14, 2019 at 5:56 AM Henri Menke <mailto:henrime...@gmail.com>> wrote: Dear list, Something has changed in MetaFun and it can no longer be used in plain LuaTeX, with neither of     luatex test.tex  

Re: [NTG-context] Can't use MetaFun with mplib anymore

2019-03-14 Thread Henri Menke
On 3/14/19 8:49 PM, Hans Hagen wrote: > On 3/14/2019 5:56 AM, Henri Menke wrote: >> >> Dear list, >> >> Something has changed in MetaFun and it can no longer be used in plain >> LuaTeX, >> with neither of >> >> luatex test.tex >>   

Re: [NTG-context] Can't use MetaFun with mplib anymore

2019-03-14 Thread luigi scarso
On Thu, Mar 14, 2019 at 5:56 AM Henri Menke wrote: > > Dear list, > > Something has changed in MetaFun and it can no longer be used in plain > LuaTeX, > with neither of > > luatex test.tex > mtxrun --script plain test.tex > > This is the erro

Re: [NTG-context] Can't use MetaFun with mplib anymore

2019-03-14 Thread Hans Hagen
On 3/14/2019 5:56 AM, Henri Menke wrote: Dear list, Something has changed in MetaFun and it can no longer be used in plain LuaTeX, with neither of luatex test.tex mtxrun --script plain test.tex This is the error: >> LUATEXFUNCTIONALITY >> "mp.print(LU

[NTG-context] Can't use MetaFun with mplib anymore

2019-03-13 Thread Henri Menke
Dear list, Something has changed in MetaFun and it can no longer be used in plain LuaTeX, with neither of luatex test.tex mtxrun --script plain test.tex This is the error: >> LUATEXFUNCTIONALITY >> "mp.print(LUATEXFUNCTIONALITY)" ! Equation cannot

Re: [NTG-context] about the color of sidebar

2019-02-25 Thread Jeong Dal
debar \samplefile{knuth} \stopsidebar \stoptext % The reason of putting “\definecolor…” is that “[rulecolor=(.4green)]” is not working as in MetaFun, while [rulecolor=green] is working well. Because of this, I can remove my definition of sidebar from my environ

Re: [NTG-context] getdocumentargument in Metafun

2019-02-22 Thread Fabrice L
Le 22 février 2019 à 11:08:51, Aditya Mahajan (adit...@umich.edu) a écrit: Untested. Add quotes around FileName: > string FileName ; > FileName := "\getdocumentargument{File}" ; And not tested successfully ! Thanks a lot Aditya ! Fabrice. Aditya_

Re: [NTG-context] getdocumentargument in Metafun

2019-02-22 Thread Aditya Mahajan
On Fri, 22 Feb 2019, Fabrice L wrote: Dear list, I wish to do several zoom from a picture made in MetaFun, from a pdf file which name is given on the commande line, like: context zoom.tex —File=EntryFile —Page=9 —result=OutFile.pdf Untested. Add quotes around FileName: string FileName

[NTG-context] getdocumentargument in Metafun

2019-02-22 Thread Fabrice L
Dear list, I wish to do several zoom from a picture made in MetaFun, from a pdf file which name is given on the commande line, like: context zoom.tex —File=EntryFile —Page=9 —result=OutFile.pdf Minimal example: \starttext \startMPpage numeric ThePage ; string FileName ; FileName

Re: [NTG-context] troubles with \MPinclusions (Taco Hoekwater)

2019-02-21 Thread Damien Thiriet
ter >variable names inside MPinclusions, and use CamelCase >to avoid clashes with metafun internals. > So, got one more z-related error in Metapost. I bet this is absolutely the n.1 on help-lists. Btw, if I were a scientist, I'd realized that defining x as a pair is quite heret

Re: [NTG-context] troubles with \MPinclusions

2019-02-21 Thread Taco Hoekwater
ice to stay away from single-letter variable names inside MPinclusions, and use CamelCase to avoid clashes with metafun internals. 2. You need a bigger pen to actually see the dots even if you change the variable name. :) Best wishes, Taco > I can't understand why can M

Re: [NTG-context] markdown module vs pandoc

2019-02-18 Thread Mojca Miklavec
slide-presentation, do you recommend 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? I use both. MetaPost/Fun is really cool whe

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
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 '&metafu

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

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; >> end >&

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 '&metafun' test.mp the resulting file only contains “unknown”. Ho

[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 '&metafun' test.mp the resulting file only contains “unknown”. How can I get the expecte

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

Re: [NTG-context] double followtokens?

2019-01-01 Thread Hans van der Meer
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
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
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 the

[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 (OverlayW

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 is

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

2018-10-11 Thread Aditya Mahajan
tya's 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`. Tha

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

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

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

2018-10-08 Thread Hans Hagen
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 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

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

2018-10-08 Thread Aditya Mahajan
ought 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 impr

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

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

2018-10-08 Thread Aditya Mahajan
t \startbuffer[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 follow

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

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 the

Re: [NTG-context] filling overlap ?

2018-10-07 Thread Floris van Manen
e 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 \st

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 the

Re: [NTG-context] Metafun scaling problem

2018-10-01 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 M

Re: [NTG-context] Metafun scaling problem

2018-10-01 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 conte

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

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

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

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

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 Engli

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

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 th

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 embed

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 % \definefontfeatur

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 %%% \usetypescriptfile[type-hcrlvt]

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 exampl

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 exampl

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 se

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

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

2018-09-22 Thread Hans Hagen
    endfor;     endfor ; endfor ; \stopMPpage \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

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

2018-09-22 Thread Alan Braslau
> fill T1 shifted (shift) rotated (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: > >>>  

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

2018-09-22 Thread Hans Hagen
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 nice example for the metaf

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

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

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

2018-09-22 Thread Hans Hagen
le 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 shapes (probably too many now) - more neutral fill code It mak

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

Re: [NTG-context] Variable instance identifiers exhausted

2018-09-21 Thread Hans Hagen
re not preloaded 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

Re: [NTG-context] Variable instance identifiers exhausted

2018-09-21 Thread Fabrice L
nimal2' fonts > latin modern fonts are not preloaded 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 m

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 s

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 it

[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) = a{dir(angle(b-a

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