Re: [NTG-context] Question to installation ConTeXt from TeXlive

2020-03-01 Thread Tomas Hala
he Installer] # > # >+ Additional fonts # >+ ConTeXt etc. # >+ LuaTeX # >+ MetaPost and Metafont # # probably not as we have mplib buil tin # # >+ Recommended Fonts # >+ TeXWorks # # probably not unless you use it # # >+ Auxillary programmes for W. # # mkiv ... i gu

Re: [NTG-context] Up-to-date documentation / tutorials. Where?

2020-02-29 Thread Wolfgang Schuster
On Sat, 29 Feb 2020 12:10:13 +0100 Gerben Wierda wrote: > Hello community, > > I have been (unsuccessfully) hunting for up-to-date tutorials/documentation > on ConTeXt/LuaTeX/METAPOST. What I find is sites that for instance end in > 2011. documentation that is from 2013, o

[NTG-context] Up-to-date documentation / tutorials. Where?

2020-02-29 Thread Gerben Wierda
Hello community, I have been (unsuccessfully) hunting for up-to-date tutorials/documentation on ConTeXt/LuaTeX/METAPOST. What I find is sites that for instance end in 2011. documentation that is from 2013, or on Pragme-ADE a show-man.pdf PDF with an overview of documentation that doesn’t open

[NTG-context] Problem with shading when using rotation (Metapost)

2020-02-29 Thread Fabrice Couvreur
Hi, Sorry to come back with my match problem. In fact, I do not understand why a rotation of 90 influences the degraded color of the ends of the matches. Thank you. Fabrice \starttext \startMPcode def match (expr alpha, pos) = numeric l; l = 4.6cm; picture pic; pic = image (

Re: [NTG-context] Quick question about dual output pdf and epub

2020-02-28 Thread Hans Hagen
On 2/28/2020 2:52 PM, Christoph Hintermüller wrote: Second am i right that i have to use also startmode and stopmode to include svg image instead of metapost image in epub or is there some other trick to make metapost image in epub. What would be the keywords to use on wiki search

Re: [NTG-context] Error in MetaFun LMTX

2020-02-25 Thread Marcus Vinicius Mesquita
should be D := instead of D : = On Tue, Feb 25, 2020 at 2:35 PM Jan-Erik Hägglöf wrote: > The following code gives an error, my goal is to draw 4 different arrows > but only three functions successfully. > > The error log shows > > metapost> initializing number mod

Re: [NTG-context] Error in MetaFun LMTX

2020-02-25 Thread Hans Hagen
On 2/25/2020 6:34 PM, Jan-Erik Hägglöf wrote: The following code gives an error, my goal is to draw 4 different arrows but only three functions successfully. The error log shows metapost        > initializing number mode 'scaled' metapost log    > metapost log    > loading metafun,

Re: [NTG-context] Error in MetaFun LMTX

2020-02-25 Thread Jan-Erik Hägglöf
successfully. > > The error log shows > > metapost> initializing number mode 'scaled' > metapost log> > metapost log> loading metafun, including plain.mp version 1.004 for > metafun iv and xl > metapost log > > metapost log> >&

[NTG-context] Error in MetaFun LMTX

2020-02-25 Thread Jan-Erik Hägglöf
The following code gives an error, my goal is to draw 4 different arrows but only three functions successfully. The error log shows metapost> initializing number mode 'scaled' metapost log> metapost log> loading metafun, including plain.mp version 1.004 for metafun

Re: [NTG-context] metapost: remapping colors of an SVG picture

2020-02-20 Thread Hans Hagen
On 2/20/2020 10:29 AM, Jan U. Hasecke wrote: Am 18.02.20 um 19:24 schrieb Jan U. Hasecke: Am 18.02.20 um 19:17 schrieb mf: Il 18/02/20 19:07, Jan U. Hasecke ha scritto: Am 18.02.20 um 14:53 schrieb Hans Hagen: \setupcolors[rgb=no] \startMPcode draw lmt_svg [ filename = "sample.svg" ]

Re: [NTG-context] Howto metapost textext set or change basepoint (origin) baseline of text

2020-02-20 Thread Christoph Hintermüller
Hi Hans On Thu, 2020-02-20 at 10:28 +0100, Hans Hagen wrote: > On 2/20/2020 10:15 AM, Christoph Hintermüller wrote: > > You can append a palcement suffix, like: > >textext.dflt > > you can try: > >lft rt bot top ulft urt llft lrt d dflt drt origin raw > Thanks again. textext.origin

Re: [NTG-context] Howto metapost textext set or change basepoint (origin) baseline of text

2020-02-20 Thread Christoph Hintermüller
Hi Hans On Thu, 2020-02-20 at 10:28 +0100, Hans Hagen wrote: > On 2/20/2020 10:15 AM, Christoph Hintermüller wrote: > > > You can append a palcement suffix, like: > >textext.dflt > > you can try: > >lft rt bot top ulft urt llft lrt d dflt drt origin raw > Thank you very much, that

Re: [NTG-context] metapost: remapping colors of an SVG picture

2020-02-20 Thread Jan U. Hasecke
Am 18.02.20 um 19:24 schrieb Jan U. Hasecke: > Am 18.02.20 um 19:17 schrieb mf: >> Il 18/02/20 19:07, Jan U. Hasecke ha scritto: >>> Am 18.02.20 um 14:53 schrieb Hans Hagen: >>> \setupcolors[rgb=no] \startMPcode draw lmt_svg [ filename = "sample.svg" ] ; \stopMPcode >>> I

Re: [NTG-context] Howto metapost textext set or change basepoint (origin) baseline of text

2020-02-20 Thread Hans Hagen
On 2/20/2020 10:15 AM, Christoph Hintermüller wrote: Hi I have the following problem. I convert a eps file using pstoedit into meta post file. When running this file through mptopdf the resulting pdf image is as expected. When i include, using the input command, the file within a startMPcode

[NTG-context] Howto metapost textext set or change basepoint (origin) baseline of text

2020-02-20 Thread Christoph Hintermüller
Hi I have the following problem. I convert a eps file using pstoedit into meta post file. When running this file through mptopdf the resulting pdf image is as expected. When i include, using the input command, the file within a startMPcode endMPcode or startMPpage stopMPpage after replacing

Re: [NTG-context] metapost: remapping colors of an SVG picture

2020-02-18 Thread Jan U. Hasecke
Am 18.02.20 um 19:17 schrieb mf: > Il 18/02/20 19:07, Jan U. Hasecke ha scritto: >> Am 18.02.20 um 14:53 schrieb Hans Hagen: >> >>> \setupcolors[rgb=no] >>> \startMPcode >>> draw lmt_svg [ filename = "sample.svg" ] ; >>> \stopMPcode >> I get this error. >> >> ! Not implemented: (unknown

Re: [NTG-context] metapost: remapping colors of an SVG picture

2020-02-18 Thread mf
Il 18/02/20 19:07, Jan U. Hasecke ha scritto: Am 18.02.20 um 14:53 schrieb Hans Hagen: \setupcolors[rgb=no] \startMPcode     draw lmt_svg [ filename = "sample.svg" ] ; \stopMPcode I get this error. ! Not implemented: (unknown numeric)=(string). ] <*> ... ; p := lmt_svg [ filename =

Re: [NTG-context] metapost: remapping colors of an SVG picture

2020-02-18 Thread Jan U. Hasecke
Am 18.02.20 um 14:53 schrieb Hans Hagen: > > \setupcolors[rgb=no] > \startMPcode >     draw lmt_svg [ filename = "sample.svg" ] ; > \stopMPcode I get this error. ! Not implemented: (unknown numeric)=(string). ] <*> ... ; p := lmt_svg [ filename = "sample.svg" ] juh

Re: [NTG-context] Question to installation ConTeXt from TeXlive

2020-02-18 Thread Hans Hagen
or possible to use with ConTeXt MkIV (on W.). (The aim is not to install unusable stuff.) Legend: %=I guess no +=I guess yes ?=I am not sure [translated from the Czech version of the Installer] + Additional fonts + ConTeXt etc. + LuaTeX + MetaPost and Metafont probably not as we have mplib buil tin

Re: [NTG-context] metapost: remapping colors of an SVG picture

2020-02-18 Thread Hans Hagen
p ; draw p shifted ( bbwidth(p) + 5mm, 0) ; \stopMPcode \stoptext \setupcolors[rgb=no] \startMPcode draw lmt_svg [ filename = "sample.svg" ] ; \stopMPcode but recolor gives an error: metapost log    > >> picture metapost log    > ! Wrong picture color model: redpart of gre

[NTG-context] Question to installation ConTeXt from TeXlive

2020-02-18 Thread Tomas Hala
.). (The aim is not to install unusable stuff.) Legend: %=I guess no +=I guess yes ?=I am not sure [translated from the Czech version of the Installer] + Additional fonts + ConTeXt etc. + LuaTeX + MetaPost and Metafont + Recommended Fonts + TeXWorks + Auxillary programmes for W. % Additional

[NTG-context] metapost: remapping colors of an SVG picture

2020-02-18 Thread mf
) + 5mm, 0) ; \stopMPcode \stoptext but recolor gives an error: metapost log> >> picture metapost log> ! Wrong picture color model: redpart of grey object. metapost log> _f_:=(redpart(EXPR0), metapost log> greenpart(EXPR0),bluepart(EXPR0));if.bou... metapost log

Re: [NTG-context] Any plans for an active color management?

2020-02-17 Thread Henning Hraban Ramm
t to CMYK with the above cited profile chain? Mmm, no. Acrobat Pro can do proper profile conversions of graphics. Don’t know another tool. > Or shall I tell the designer: These are the values I need as CMYK, just > do it. Exactly ;) Unfortunately they can’t really do that with Inkscape.

Re: [NTG-context] Any plans for an active color management?

2020-02-17 Thread Jan U. Hasecke
to CMYK with the above cited profile chain? Or shall I tell the designer: These are the values I need as CMYK, just do it. > Colors that you define in TeX or Metapost are a different problem. I > *think* they should use the output intent as their profile. But I > don’t know if the intent option

Re: [NTG-context] Any plans for an active color management?

2020-02-17 Thread Henning Hraban Ramm
system that will work world-wide, even if HKS is still usual in Germany and Toyo in Japan.) It could also work to use spot colors and have the printshop convert them to “their” CMYK profile. Colors that you define in TeX or Metapost are a different problem. I *think* they should use the output

Re: [NTG-context] Metapost and TikZ color code equivalent

2020-02-15 Thread Hans Hagen
On 2/15/2020 12:25 PM, Fabrice Couvreur wrote: Hi Henri, Why does the blue path not rotate 90 with the draw command but rotate with the fill command? compare draw origin -- (0,0.2cm) -- (4cm,0.2cm) -- (4cm,0) -- (4.1cm,-0.05cm) -- (0.1cm,-0.05cm) -- cycle rotated alpha withcolor red;

Re: [NTG-context] Metapost and TikZ color code equivalent

2020-02-15 Thread Floris van Manen
On 15-02-2020 12:25, Fabrice Couvreur wrote: > Hi Henri, > Why does the blue path not rotate 90 with the draw command but rotate > with the fill command? > Why not draw the match as a picture first, then rotate and shift that picture? Also, if you use a local scale unit, it will be easier to

Re: [NTG-context] Metapost and TikZ color code equivalent

2020-02-15 Thread Fabrice Couvreur
en. 14 févr. 2020 à 16:43, Fabrice L a > écrit : > >> Hi, >> >> Le 13 févr. 2020 à 16:45, Fabrice Couvreur >> a écrit : >> >> >> How to have the color defined by {yellow!60!black} with Metapost

Re: [NTG-context] Metapost and TikZ color code equivalent

2020-02-14 Thread Fabrice Couvreur
it : > Hi, > > Le 13 févr. 2020 à 16:45, Fabrice Couvreur > a écrit : > > > How to have the color defined by {yellow!60!black} with Metapost ? > > > color MyColor ; MyColor := .6[yellow,black] ; > > See metafun manual, section 1.13. >

Re: [NTG-context] Metapost and TikZ color code equivalent

2020-02-14 Thread Fabrice L
Hi, > Le 13 févr. 2020 à 16:45, Fabrice Couvreur a > écrit : > How to have the color defined by {yellow!60!black} with Metapost ? color MyColor ; MyColor := .6[yellow,black] ; See metafun manual, section 1.13. > Thank you. > Fabrice Fabri

Re: [NTG-context] Metapost and TikZ color code equivalent

2020-02-14 Thread Fabrice Couvreur
i Henri, Thank you for your answer. The idea is to make the graph as an attachment. I converted to Metapost but the road is still long! The code is from percusse on StackExchange. As you can see, there is a problem with the ellipse. How do I fix this ? Thank you Fabrice \usemodule[tikz

Re: [NTG-context] Metapost and TikZ color code equivalent

2020-02-13 Thread Henri Menke
On 2/14/20 10:45 AM, Fabrice Couvreur wrote: > Hi, > How to have the color defined by {yellow!60!black} with Metapost ? \usemodule[tikz] \starttext \startMPcode fill fullsquare scaled 1cm withcolor (.6yellow + black) ; \stopMPcode \starttikzpicture \fill[yellow!60!black] (0,0) rectangl

[NTG-context] Metapost and TikZ color code equivalent

2020-02-13 Thread Fabrice Couvreur
Hi, How to have the color defined by {yellow!60!black} with Metapost ? Thank you. Fabrice ___ If your question is of interest to others as well, please add an entry to the Wiki! maillist : ntg-context@ntg.nl / http

Re: [NTG-context] macro that does not work (Metapost)

2020-02-11 Thread Fabrice Couvreur
Hi Mikael, Thanks. Fabrice Le mar. 11 févr. 2020 à 14:01, Mikael P. Sundqvist a écrit : > On Tue, Feb 11, 2020 at 1:22 PM Fabrice Couvreur < > fabrice1.couvr...@gmail.com> wrote: > >> Hi Hans, >> I tried this but without success : >> >> \startMPcode >> suite{1,0}; >> suite{2,1}; >>

Re: [NTG-context] macro that does not work (Metapost)

2020-02-11 Thread Mikael P. Sundqvist
On Tue, Feb 11, 2020 at 1:22 PM Fabrice Couvreur < fabrice1.couvr...@gmail.com> wrote: > Hi Hans, > I tried this but without success : > > \startMPcode > suite{1,0}; > suite{2,1}; > \stopMPcode > > Fabrice > > Le mar. 11 févr. 2020 à 13:08, Hans Hagen a écrit : > >> On 2/11/2020

Re: [NTG-context] macro that does not work (Metapost)

2020-02-11 Thread Fabrice Couvreur
Hi Hans, I tried this but without success : \startMPcode suite{1,0}; suite{2,1}; \stopMPcode Fabrice Le mar. 11 févr. 2020 à 13:08, Hans Hagen a écrit : > On 2/11/2020 11:50 AM, Fabrice Couvreur wrote: > > Hi, > > I have some problems with the following macro : > > > > tex error

Re: [NTG-context] macro that does not work (Metapost)

2020-02-11 Thread Hans Hagen
On 2/11/2020 11:50 AM, Fabrice Couvreur wrote: Hi, I have some problems with the following macro : tex error       > mp error on line 23 in file /home/viserion/macro.tex: ! Missing argument to suite. { <*> suite{ 1,0}; suite(2,1); ; That macro has more parameters than you thought. I'll

[NTG-context] macro that does not work (Metapost)

2020-02-11 Thread Fabrice Couvreur
Hi, I have some problems with the following macro : tex error > mp error on line 23 in file /home/viserion/macro.tex: ! Missing argument to suite. { <*> suite{ 1,0}; suite(2,1); ; That macro has more parameters than you thought. I'll continue by pretending that each missing argument is

[NTG-context] New to metapost, could use some help with first steps

2020-02-02 Thread Gerben Wierda
Hans was so kind to help me with a setup for some generated output. I am trying to understand every line of his example so I can expand on his exmaple to make it fully functional. In his example there is: context('draw

Re: [NTG-context] A question about whatever (Metapost)

2020-01-26 Thread Alan Braslau
What error are you getting? (perhaps you need "save carre,p,a,b,c,d,N,P,M ;") A perpendicular line is also the line "rotated 90" (about the intersection point). Alan On Sun, 26 Jan 2020 00:09:38 +0100 Fabrice Couvreur wrote: > Hi, > The point M is such that the line (CM) is perpendicular to

[NTG-context] A question about whatever (Metapost)

2020-01-25 Thread Fabrice Couvreur
Hi, The point M is such that the line (CM) is perpendicular to the line (NP). I do not understand the error of this code. Thank you Fabrice \usecolors[xwi] \starttext \startMPcode path carre, p; carre = unitsquare scaled 138; pair a, b, c, d, N, P, M; a = point 0 of carre; b = point 1

Re: [NTG-context] Quotation dash issues with semantic markup

2019-12-30 Thread Hans Hagen
= true, width= 15, height = 2.1, depth= 0, ] ; lmt_registerglyph [ category = "symbols", unicode = "0x2015", code = "QuotationDash ;" ] ; \stopMPcalculation \definefontfeature[default][default][metapost=symbols] % \showg

Re: [NTG-context] How to use in Metafun, a function defined in Lua

2019-12-28 Thread Hans Hagen
n-example.tex Here one sees that the function « document.myfunction » is well defined in Lua and is known in ConTeXt, but I cannot use it in a Metapost code: how can one do that? you confuse lua and mp functions \startluacode function MP.myfunction(n,x) return math.sin(n*x)

[NTG-context] How to use in Metafun, a function defined in Lua

2019-12-28 Thread Otared Kavian
« document.myfunction » is well defined in Lua and is known in ConTeXt, but I cannot use it in a Metapost code: how can one do that? Thanks in advance for any help. Best regards: Otared ___ If your question is of i

Re: [NTG-context] Tent style cards

2019-12-22 Thread Pavneet Arora
-list daemon will let through a PDF, but I am enclosing the current (almost final) version of the table place card (with my daughter's name). The figure to the left is an Apollonius Gasket of tangential circles made with MetaPost signifying all the family connections that each partner brings

Re: [NTG-context] setting the color of cropmarks

2019-12-20 Thread mf
This is a dirty hack to change the color of the crop marks and the page number at the corner of a page when \setuplayout[marking=on]. Edit the file: tex/texmf-context/metapost/context/base/mpiv/mp-crop.mpiv in the distribution, changing two lines: - (here i'm reproducing only the last

Re: [NTG-context] setting the color of cropmarks

2019-12-19 Thread Henning Hraban Ramm
ound for the page. > I've seen there's something about that in the mailing list history. I'll look > into that. > > BTW, the MP file producing the marks is > > metapost/context/base/mpiv/mp-crop.mpiv Sorry for mixing up marks and markings. > Am 2019-12-19 um 19:08 schrieb Han

Re: [NTG-context] setting the color of cropmarks

2019-12-19 Thread mf
for the page. I've seen there's something about that in the mailing list history. I'll look into that. BTW, the MP file producing the marks is metapost/context/base/mpiv/mp-crop.mpiv Massi ___ If your question

Re: [NTG-context] problem with a new installation of LMTX

2019-12-08 Thread Mojca Miklavec
ed after mtxrun. > > > > "context —make" is running, but no format. > > > > I checked folders after the installation. > > Folders, texmf-cache, texmf-fonts, texmf-local, texmf-modules, > > texmf-project are empty. > > texmf folder contains {fonts

Re: [NTG-context] problem with a new installation of LMTX

2019-12-07 Thread Richard Mahoney | Indica et Buddhica
texmf-cache, texmf-fonts, texmf-local, texmf-modules, > texmf-project are empty. > texmf folder contains {fonts,metapost, tex,web2c} > texmf-context folder contains {colors,context,doc} > However, I couldn’t find base files, script files, etc. > Is it normal? Is it rela

Re: [NTG-context] problem with a new installation of LMTX

2019-12-07 Thread Otared Kavian
run. > > "context —make" is running, but no format. > > I checked folders after the installation. > Folders, texmf-cache, texmf-fonts, texmf-local, texmf-modules, texmf-project > are empty. > texmf folder contains {fonts,metapost, tex,web2c} > texmf-context folder con

Re: [NTG-context] problem with a new installation of LMTX

2019-12-07 Thread Hans Hagen
stallation. Folders, texmf-cache, texmf-fonts, texmf-local, texmf-modules, texmf-project are empty. texmf folder contains {fonts,metapost, tex,web2c} texmf-context folder contains {colors,context,doc} However, I couldn’t find base files, script files, etc. Is it normal? Is it related with Catalina? I ha

Re: [NTG-context] problem with a new installation of LMTX

2019-12-07 Thread Jeong Dal
exmf-local, texmf-modules, texmf-project are empty. texmf folder contains {fonts,metapost, tex,web2c} texmf-context folder contains {colors,context,doc} However, I couldn’t find base files, script files, etc. Is it normal? Is it related with Catalina? Have a nice weekend. Best regards,

[NTG-context] Impacts Project

2019-12-05 Thread Thangalin
in the timeline. Using MetaPost, the date for the timeline is read directly from the document, then plotted relative to the \overlaywidth. Changing the date in the Markdown document winds up repositioning the timeline dot automagically. https://impacts.to/ The book is going to be released under a CC

Re: [NTG-context] Transparency (Metapost)

2019-12-01 Thread Wolfgang Schuster
Fabrice Couvreur schrieb am 01.12.2019 um 21:56: Hi Hans, I updated lmtx, but your code does not compile except that the output is a pdf file where it is written ERROR. Can you clear the cache. Wolfgang ___ If

Re: [NTG-context] Transparency (Metapost)

2019-12-01 Thread Hans Hagen
On 12/1/2019 11:32 AM, Fabrice Couvreur wrote: Hello Thank you for your suggestion. However, it works with context and not with lmtx. Fabrice \starttext \startMPcode    defaultfont := "texgyrepagella-regular*default" ;    defaultscale :=0.8;    color brown;    brown = (0.128,0.00,0.00);

Re: [NTG-context] Transparency (Metapost)

2019-12-01 Thread Fabrice Couvreur
Hello Thank you for your suggestion. However, it works with context and not with lmtx. Fabrice \starttext \startMPcode defaultfont := "texgyrepagella-regular*default" ; defaultscale :=0.8; color brown; brown = (0.128,0.00,0.00); path twos, threes, sixes; twos = fullcircle

Re: [NTG-context] Transparency (Metapost)

2019-11-30 Thread Jeong Dal
> \ Dear Fabrice, I got color and transparency using the following command in LMTX(metafun). fill p withcolor yellow withtransparency(1, .75); I hope that it helps. Best regards, Dalyoung___ If your question is

[NTG-context] Transparency (Metapost)

2019-11-30 Thread Fabrice Couvreur
Hello, I have a little trouble with the management of transparency : the colors are not respected. Thank you. Fabrice \starttext \startMPcode defaultfont := "texgyrepagella-regular*default" ; defaultscale :=0.8; color brown; brown = (0.165,0.42,0.42); path twos, threes; twos =

[NTG-context] beta

2019-10-28 Thread Hans Hagen
[svgtest] \stopTEXpage \startTEXpage \includesvgbuffer[svgtest][offset=2bp] \stopTEXpage or in metapost disguise: \startMPpage vardef svg expr c = lmt_svg [ code = c ] enddef ; draw svg " " ; \stopMPpage It is not a replacement for metapost (which is more

Re: [NTG-context] LTMX crashes on OpenBSD 6.5 amd64

2019-10-20 Thread Hans Hagen
d in backend, 0 common vectors, 1 common hashes, load time 0.321 seconds mkiv lua stats > metapost: 0.005 seconds, loading: 0.122, execution: 0.004, n: 3, average: 0.043, instances: 1, luacalls: 223, memory: 3.265 M mkiv lua stats > graphics processing time: 0.005 seconds including tex, 1 p

[NTG-context] LTMX crashes on OpenBSD 6.5 amd64

2019-10-20 Thread Damien Thiriet
s, load time 0.321 seconds mkiv lua stats > metapost: 0.005 seconds, loading: 0.122, execution: 0.004, n: 3, average: 0.043, instances: 1, luacalls: 223, memory: 3.265 M mkiv lua stats > graphics processing time: 0.005 seconds including tex, 1 processed images, 1 unique asked, 1 bad names mkiv

[NTG-context] Problem inserting image within MP

2019-10-10 Thread context
> language 'en' is active open source > level 2, order 3, name 'D://Lukas/Jobs/_Px/Present/Px-2019/_/t.mkiv' fonts > preloading latin modern fonts (second stage) fonts > 'fallback modern-designsize rm 12pt' is loaded metapost > initializing i

Re: [NTG-context] After a long time I tried:

2019-10-07 Thread Hans Hagen
'context-test', input './context-test', result 'context-test' fonts   > latin modern fonts are not preloaded languages   > language 'en' is active system  > synctex functionality is enabled, expect 5-10 pct runtime overhead! open source     > level 2, order 3, name './contex

[NTG-context] After a long time I tried:

2019-10-07 Thread Ursula Hermann
n modern fonts are not preloaded languages > language 'en' is active system > synctex functionality is enabled, expect 5-10 pct runtime overhead! open source > level 2, order 3, name './context-test.tex' fonts > preloading latin modern fonts (second stage) fo

[NTG-context] new (lmtx) beta

2019-10-04 Thread Hans Hagen
color[KindergartenEqual] [darkgreen] \definecolor[KindergartenPlus] [darkred] \definecolor[KindergartenMinus] [darkred] \definecolor[KindergartenTimes] [darkblue] \definecolor[KindergartenDivided][darkblue] \definefontfeature [mathextra] [metapost=kindergarten] \setupbodyfont[dejavu] \

Re: [NTG-context] general syntax for startparagraph command

2019-09-29 Thread Jeroen
gt; > I am trying to get the following with the 1 elevated and 2 above the = > > character. The square brackets and all in between I would like italic > > and OPT below both terms. > > > > *\startparagraph [.1..] [..,..2=..,..] ..**.\stopparagraph* > > > &g

Re: [NTG-context] general syntax for startparagraph command

2019-09-29 Thread Wolfgang Schuster
anybody be able to help. Would Metapost be needed here? When you look at the command definition in setup-en.pdf you can two lines below the command which refer to the two arguments. 1 2 \startparagraph [...] [..,..=..,..] ... \stopparagraph OPT

[NTG-context] general syntax for startparagraph command

2019-09-29 Thread Jeroen
Dear list members, I am trying to get the following with the 1 elevated and 2 above the = character. The square brackets and all in between I would like italic and OPT below both terms. *\startparagraph [.1..] [..,..2=..,..] ..**.\stopparagraph* Would anybody be able to help. Would Metapost

Re: [NTG-context] Size of the font (Metapost + xtable)

2019-09-23 Thread Wolfgang Schuster
Fabrice Couvreur schrieb am 23.09.2019 um 23:31: Hi Wolfgang, As I understand it, the following instructions have no effect on the figures defaultfont := "texgyrepagella-regular*default" ; defaultscale :=0.8 ; You change the font because you typeset your labels in math mode.

Re: [NTG-context] Size of the font (Metapost + xtable)

2019-09-23 Thread Wolfgang Schuster
Fabrice Couvreur schrieb am 23.09.2019 um 16:12: Hello, I can not change the font size of my figures in the table. \startxcell[foregroundstyle={\switchtobodyfont[...]}] or \setupxtable[smallbodyfont][foregroundstyle={\switchtobodyfont[...]}] \startxcell[smallbodyfont] Wolfgang

Re: [NTG-context] Size of the font (Metapost + xtable)

2019-09-23 Thread Thomas A. Schmitz
On 9/23/19 4:12 PM, Fabrice Couvreur wrote: Hello, I can not change the font size of my figures in the table. Thank you Fabrice Does changing \usecolors [xwi] to \usecolors [ema] help? All best Thomas ___

[NTG-context] Size of the font (Metapost + xtable)

2019-09-23 Thread Fabrice Couvreur
Hello, I can not change the font size of my figures in the table. Thank you Fabrice \usecolors[xwi] \startbuffer[myfigure] \dontleavehmode \startMPcode defaultfont := "texgyrepagella-regular*default" ; defaultscale :=0.8 ;

Re: [NTG-context] MetaPost with Multiple Variable Sections

2019-09-18 Thread Jeong Dal
Dear Jeroen, If you change “pair a;” to “numeric a;” in the second MPcode, it draws a circle without error. Best regards, Dalyoung > > \placefloatright{}{ > \startMPcode > pair a; numeric a; > a := 2cm; > draw fullcircle scaled (2*a); > \stopMPcode} > > \stoptext >

Re: [NTG-context] MetaPost with Multiple Variable Sections

2019-09-18 Thread Aditya Mahajan
On Wed, 18 Sep 2019, Jeroen wrote: \startMPcode pair a; a := 2cm; You define a to be a pair and then assign it to a number. Metapost is telling you that you cannot do that: (xpart a,ypart a) 56.6929 ! Equation cannot be performed (pair=numeric). ; <*> pair a; a := 2cm; draw full

[NTG-context] MetaPost with Multiple Variable Sections

2019-09-18 Thread Jeroen
I have been working with MetaPost as following, which worked fine with one startMPcode section with variables, but with 2 startMPcode Metapost sections, it keeps telling me the numbers dont add up: \definefloat [floatright][figure] \setupfloat [floatright][default={right,none

Re: [NTG-context] colors in MetaPost

2019-09-11 Thread Hans Hagen
On 9/11/2019 2:18 PM, Henning Hraban Ramm wrote: Am 2019-09-11 um 13:46 schrieb Henning Hraban Ramm : \definecolor[VerlaufVon][c=75,m=5,y=95,k=60] \definecolor[VerlaufNach][c=88,m=95,y=5,k=60] Of course I need values between 0 and 1. Sorry for the noise. I think I’m too tired... there is an

Re: [NTG-context] colors in MetaPost

2019-09-11 Thread Henning Hraban Ramm
Am 2019-09-11 um 13:46 schrieb Henning Hraban Ramm : > \definecolor[VerlaufVon][c=75,m=5,y=95,k=60] > \definecolor[VerlaufNach][c=88,m=95,y=5,k=60] Of course I need values between 0 and 1. Sorry for the noise. I think I’m too tired... Greetlings, Hraban --- https://www.fiee.net

[NTG-context] colors in MetaPost

2019-09-11 Thread Henning Hraban Ramm
Hi, I’m trying to get a linear shade in the background of my presentation. But it seems like MetaPost can’t handle my self-defined colors: \definecolor[VerlaufVon][c=75,m=5,y=95,k=60] \definecolor[VerlaufNach][c=88,m=95,y=5,k=60] \startuniqueMPgraphic{Verlauf} % old method, also doesn’t work

Re: [NTG-context] context (lmtx) segfaults on x86_64 linux

2019-09-11 Thread Vladimir Lomov
on of mkiv files are different but I suppose it is related to other "system" files of context). Is it "safe" to simply run always $ mtxrun --generate; context --make after each context/lmtx update? May be one should add there commands in 'install.sh'? > so what does the

Re: [NTG-context] Arithmetic overflow on placing an external figure in MP

2019-09-08 Thread Hans Hagen
On 9/7/2019 10:47 PM, Henning Hraban Ramm wrote: Bear with me, I still got no experience in MetaPost… I’m trying to place a pixel image on a MP page. According to the MetaFun manual this should work: \startMPpage draw externalfigure "mill.png" scaled 5cm shifted (-6cm,0) ; \

Re: [NTG-context] metafun 2

2019-09-08 Thread Otared Kavian
ind of features users >> would like to see. >> >> http://www.pragma-ade.com/general/magazines/mag-1104-mkiv.pdf > > Finally got around to playing around with the new interface. Here is an > example of how to define new key-value driven macros in metapost:

Re: [NTG-context] metafun 2

2019-09-08 Thread Aditya Mahajan
around to playing around with the new interface. Here is an example of how to define new key-value driven macros in metapost: https://adityam.github.io/context-blog/post/new-metafun-interface/ Aditya ___ If your

Re: [NTG-context] Arithmetic overflow on placing an external figure in MP

2019-09-07 Thread Fabrice L
Hi, > Le 7 sept. 2019 à 16:47, Henning Hraban Ramm a écrit : > > Bear with me, I still got no experience in MetaPost… > > I’m trying to place a pixel image on a MP page. > > According to the MetaFun manual this should work: > > \startMPpage > draw externalfigure

[NTG-context] Arithmetic overflow on placing an external figure in MP

2019-09-07 Thread Henning Hraban Ramm
Bear with me, I still got no experience in MetaPost… I’m trying to place a pixel image on a MP page. According to the MetaFun manual this should work: \startMPpage draw externalfigure "mill.png" scaled 5cm shifted (-6cm,0) ; \stopMPpage And it works with mill.png (copied into m

Re: [NTG-context] Frame with shadow for header

2019-08-27 Thread Mikael P. Sundqvist
On Tue, Aug 27, 2019 at 10:16 AM Fabrice Couvreur < fabrice1.couvr...@gmail.com> wrote: > Hi Mikael, > I did not think about using Metapost, I tried with the keys of the command > \framed without success. > I use the following code for my headings (thank you Aditya) and I would

Re: [NTG-context] Frame with shadow for header

2019-08-27 Thread Fabrice Couvreur
Hi Mikael, I did not think about using Metapost, I tried with the keys of the command \framed without success. I use the following code for my headings (thank you Aditya) and I would like to use your code instead. Thank you. Fabrice \setupbackgrounds [header] [text] [frame=off

Re: [NTG-context] startnarrower and framed?

2019-08-21 Thread Jon Wong
tely >>> positioning, and can’t be logically contained inside a \startnarrower? >>> >>> Regards >>> Jon >>> >>> >>>> On Aug 21, 2019, at 8:53 PM, Jon Wong >>> <mailto:jhannw...@gmail.com>> wrote: >>>> >

Re: [NTG-context] startnarrower and framed?

2019-08-21 Thread Jon Wong
gt;> >>> \setupnarrower[left=2cm, right=2cm] % what does middle do, actually? >>> \startnarrower >>> \dontleavehmode\framed[width=local]{testing} >>> >>> Since this works for left offset: \framed[width=local]{testing} >>> \endnarrower >&g

Re: [NTG-context] startnarrower and framed?

2019-08-21 Thread Jon Wong
> I got some progress! >> >> \setupnarrower[left=2cm, right=2cm] % what does middle do, actually? >> \startnarrower >> \dontleavehmode\framed[width=local]{testing} >> >> Since this works for left offset: \framed[width=local]{testing} >> \endnarrower >>

Re: [NTG-context] startnarrower and framed?

2019-08-21 Thread Jon Wong
lly? > \startnarrower > \dontleavehmode\framed[width=local]{testing} > > Since this works for left offset: \framed[width=local]{testing} > \endnarrower > > So, how do I do a gradient background? Yeah, I know I have to dive into > MetaPost and MetaFun some time. Is that where the

Re: [NTG-context] startnarrower and framed?

2019-08-21 Thread Jon Wong
have to dive into MetaPost and MetaFun some time. Is that where the solution is? Regards Jon > On Aug 21, 2019, at 8:14 PM, Jon Wong wrote: > > Hi all, > > I want to have a \startnarrower effect. But I also want that segment to have > a border (hopefully a gradient ba

[NTG-context] Fwd: metafun 2

2019-08-19 Thread Mikael P. Sundqvist
cult it is to implement this kind of graphics. Also, it could be useful to be able to input the equation f(x,y)=0 and to receive the curves as MetaPost paths. It seems that one can do contour plots with the help of lua if that is something that helps ( http://franko.github.io/graph-toolkit/contour.html).

Re: [NTG-context] metafun 2

2019-08-19 Thread Jorge Manuel
newidth = .025mm, offset = .1mm, ] xsized 8cm ; \stopMPcode The output error: loading metafun, including plain.mp version 1.004 for metafun iv and xl pages > flushing realpage 9, userpage 8, subpage 9 metapost log> ! Missing ':' has been inserted.

Re: [NTG-context] metafun 2

2019-08-16 Thread Alan Braslau
We have eofill in MP (in pdf/ps in fact) and that likely will do what you need. Alan On Sat, 17 Aug 2019 00:31:38 +0100 Adam Reviczky wrote: > Hi Hans, > > One MetaPost feature that I was looking forward to is the ability to create > a fill between two shapes. > Something li

Re: [NTG-context] metafun 2

2019-08-16 Thread Adam Reviczky
Hi Hans, One MetaPost feature that I was looking forward to is the ability to create a fill between two shapes. Something like a difference function of two path's. For logos I use the workaround with creating a path alongside the excluded areas but it is always cumbersome. I have briefly

Re: [NTG-context] metafun 2

2019-08-15 Thread Arthur Reutenauer
On Wed, Aug 14, 2019 at 10:18:19PM +1200, Henri Menke wrote: > I just wanted to ask, will LMTX and MetaFun remain valid implementations > of TeX and MetaPost or do we have to expect incompatibilities? If you mean “will luametatex pass the trip test”, the answer is probably no: LuaTeX a

Re: [NTG-context] metafun 2

2019-08-14 Thread Hans Hagen
er trivial to add Again, it is very nice that you work on extending MetaPost/MetaFun further!! wel, mp is ... fun (and these extension are somewhat challenging) Hans - Hans Hagen |

Re: [NTG-context] metafun 2

2019-08-14 Thread Mikael P. Sundqvist
path= fullcircle > scaled 3cm > shifted (3.5cm,0cm), > ] withcolor "darkblue" ; > > but of course the low level interface with its many variables for > tweaking stays around. Other examples are shown in the mentioned document. >

Re: [NTG-context] metafun 2

2019-08-14 Thread Otared Kavian
. Arrows can be drawn with > >draw lmt_arrow [ >kind= "draw", >location= "middle", >alternative = "curved", >path= fullcircle >scaled 3cm >shifted (3.5cm,0cm), >

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