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

Re: [NTG-context] metafun 2

2019-08-14 Thread Hans Hagen
On 8/14/2019 12:18 PM, Henri Menke wrote: Dear Hans, I just wanted to ask, will LMTX and MetaFun remain valid implementations of TeX and MetaPost or do we have to expect incompatibilities? It depends on how you define 'valid' ... we're downward compatible ... but LMTX will use features

Re: [NTG-context] metafun 2

2019-08-14 Thread Henri Menke
Dear Hans, I just wanted to ask, will LMTX and MetaFun remain valid implementations of TeX and MetaPost or do we have to expect incompatibilities? Cheers, Henri On 14/08/19 9:54 PM, Hans Hagen wrote: > Hi, > > In the process of providing an additional (more abstract) interface t

[NTG-context] metafun 2

2019-08-14 Thread Hans Hagen
uot;, alternative = "curved", 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

Re: [NTG-context] Convert SVG to MetaPost

2019-08-13 Thread Hans Hagen
On 8/12/2019 1:33 PM, Jon Wong wrote: Hi Taco! Very enlightening! I’ll just use both MetaPost and SVG for their intended purposes. (SVG will come from workflow involving GIMP/Inkscape; MetaPost for logical, rather than graphical, figures.) if you have inkscape installed you can do

Re: [NTG-context] Convert SVG to MetaPost

2019-08-13 Thread Hans Hagen
On 8/12/2019 1:15 PM, Taco Hoekwater wrote: Hi, On 12 Aug 2019, at 12:10, Jon Wong wrote: Hi all, Is it possible to convert SVG to MetaPost? Currently, I have Bash scripts in my workflow to invoke Inkscape (converting SVG to PDF). I don’t like to allow shell access to TeX. If I can

Re: [NTG-context] Convert SVG to MetaPost

2019-08-12 Thread Jon Wong
Hi Taco! Very enlightening! I’ll just use both MetaPost and SVG for their intended purposes. (SVG will come from workflow involving GIMP/Inkscape; MetaPost for logical, rather than graphical, figures.) Regards Jon > On Aug 12, 2019, at 7:30 PM, luigi scarso wrote: > > > >

Re: [NTG-context] Convert SVG to MetaPost

2019-08-12 Thread luigi scarso
On Mon, Aug 12, 2019 at 12:11 PM Jon Wong wrote: > Hi all, > > Is it possible to convert SVG to MetaPost? > > Currently, I have Bash scripts in my workflow to invoke Inkscape > (converting SVG to PDF). I don’t like to allow shell access to TeX. > > If I can convert SVG to

Re: [NTG-context] Convert SVG to MetaPost

2019-08-12 Thread Taco Hoekwater
Hi, > On 12 Aug 2019, at 12:10, Jon Wong wrote: > > Hi all, > > Is it possible to convert SVG to MetaPost? > > Currently, I have Bash scripts in my workflow to invoke Inkscape (converting > SVG to PDF). I don’t like to allow shell access to TeX. > > If I

[NTG-context] Convert SVG to MetaPost

2019-08-12 Thread Jon Wong
Hi all, Is it possible to convert SVG to MetaPost? Currently, I have Bash scripts in my workflow to invoke Inkscape (converting SVG to PDF). I don’t like to allow shell access to TeX. If I can convert SVG to MetaPost, I will gladly Git-track MetaPost files instead of SVG files. That will do

Re: [NTG-context] Wrong MetaPost text output

2019-08-11 Thread Alan Braslau
On Sun, 11 Aug 2019 11:12:55 -0700 Henri Menke wrote: > Thank you for the quick repsonse. This looks good to me. However, > could you tell me a way to get the correct baseline with textext? When > I use > > \startMPpage > draw btex dummy etex shifted (0,0); > draw btex foo etex

Re: [NTG-context] Wrong MetaPost text output

2019-08-11 Thread Henri Menke
On 8/11/19 10:51 AM, Hans Hagen wrote: > I'll do this (lmtx): > > metapost> use 'textext(.)' instead of 'btex ..... etex' > metapost> rewrapping btex ... etex at the outer level [[dummy]] > metapost> rewrapping btex ... etex at the outer le

Re: [NTG-context] Wrong MetaPost text output

2019-08-11 Thread Hans Hagen
On 8/11/2019 6:09 PM, Henri Menke wrote: Dear devs, There seems to be a bug in the MetaPost integration of ConTeXt. The MWE below should produce three different labels “dummy foo bar” but instead produces “bar bar bar”. The same example works correctly in plain MetaPost. Originally reported

[NTG-context] Wrong MetaPost text output

2019-08-11 Thread Henri Menke
Dear devs, There seems to be a bug in the MetaPost integration of ConTeXt. The MWE below should produce three different labels “dummy foo bar” but instead produces “bar bar bar”. The same example works correctly in plain MetaPost. Originally reported on https://tex.stackexchange.com

Re: [NTG-context] Captions with background

2019-08-04 Thread Hans Hagen
On 8/3/2019 5:22 PM, Henning Hraban Ramm wrote: Hi, in my books I typeset captions onto full page images, therefore I need a background; in the attached example it’s just a white box, usually I use a MetaPost shadow (some of you helped me with that a few years ago, current code see https

[NTG-context] Captions with background

2019-08-03 Thread Henning Hraban Ramm
Hi, in my books I typeset captions onto full page images, therefore I need a background; in the attached example it’s just a white box, usually I use a MetaPost shadow (some of you helped me with that a few years ago, current code see https://wiki.contextgarden.net/Drop_shadows). Now

[NTG-context] ConTeXt Group Newsletter July 2019

2019-07-29 Thread Taco Hoekwater
to do a number of announcements about the future of ConTeXt, LuaTeX and MetaPost (LMTX) which should be exciting you as well! If you have not registered yet, please consider joining us at ’t Sjetootje, Bassenge-Boirs, Belgium on September 16–21, 2019. Some other ‘surprise' talks have been

Re: [NTG-context] Issue with \hbox attrSomeAttr=Val (LTMX only)

2019-07-19 Thread Hans Hagen
fixed the bug already but as I'm also are in the middle of some math and metapost experiments so it didn't make it into an update yet. Hans - Hans Hagen | PRAGMA ADE

Re: [NTG-context] I (metapost) can't handle numbers bigger than 32767.99998

2019-07-05 Thread Zhichu
every glyph carefully in a metapost file "cas-chars.mp": beginglyph(20013,1000,1000,0); % a lot of fillings and drawingsendglyph; then call them in a test file: \definemetafont[cas-logo][cas-chars.mp] \startTEXpage \definefont[cas][cas@cas-logo] \cas 中國科學院\stopTEXpage I

Re: [NTG-context] I (metapost) can't handle numbers bigger than 32767.99998

2019-07-05 Thread Hans Hagen
On 7/5/2019 8:32 AM, Zhichu wrote: Hi everyone, I was using metapost to generate some symbols, as in  "tex/texmf-context/metapost/context/fonts/mpiv/demo-symbols.tex" How do you use these symbols in a document? Do you call them up by number somehow? Using some glyph interface do

[NTG-context] I (metapost) can't handle numbers bigger than 32767.99998

2019-07-05 Thread Zhichu
Hi everyone, I was using metapost to generate some symbols, as in "tex/texmf-context/metapost/context/fonts/mpiv/demo-symbols.tex" Occasionally, I want to customize a glyph whose charcode is a little large, say the character "院": =

Re: [NTG-context] aligning rotated text in a natural table

2019-06-12 Thread Martin Althoff
used fixed values, in the actual document that would not be good - too many different cells. I am trying a further approach using MetaPost and OverlayBox. Seems possible (line wrapping also an issue), but quite involved... Thanks, Martin New MWS: \setupTABLE[c][1][width=20mm] \setupTABLE[c

Re: [NTG-context] (forw) Re: Strange behavior concerning pdf-output of externalfigures

2019-05-21 Thread Alan Braslau
On Fri, 17 May 2019 09:43:29 +0200 Rudolf Bahr wrote: > And then the same .png-image > to which I added a red frame by GIMP2.10. This one shows artefacts in > ConTeXt! I *always* use MetaPost to add features (and to clip) images. These features (arrows, labels, etc.) are then

Re: [NTG-context] about \startMPanimation

2019-05-13 Thread Jeong Dal
and thanks Wolfgang! Best regards, Dalyoung > 2019. 5. 13. 오후 10:04, Hans Hagen 작성: > > On 5/13/2019 2:14 PM, Jeong Dal wrote: >> Dear Wolfgang, >> I found the following code with a comment “code by Wolfgang” at >> https://adityam.github.io/context-blog/post/metapos

Re: [NTG-context] about \startMPanimation

2019-05-13 Thread Hans Hagen
On 5/13/2019 2:14 PM, Jeong Dal wrote: Dear Wolfgang, I found the following code with a comment “code by Wolfgang” at https://adityam.github.io/context-blog/post/metapost-animation/ |\unprotect| |\installnamespace{MPanimationvariables}\unexpanded\def\startMPanimation{\dodoublegroupempty

[NTG-context] about \startMPanimation

2019-05-13 Thread Jeong Dal
Dear Wolfgang, I found the following code with a comment “code by Wolfgang” at https://adityam.github.io/context-blog/post/metapost-animation/ <https://adityam.github.io/context-blog/post/metapost-animation/> \unprotect \installnamespace{MPanimationvariables} \unexpanded\def\startMPani

Re: [NTG-context] adjusting tikz pictures

2019-04-25 Thread Hans Hagen
On 4/25/2019 4:31 PM, Mojca Miklavec wrote: On Thu, 25 Apr 2019 at 16:23, Hans Hagen wrote: Ideally someone should fix Geogebra to allow outputting ConTeXt-friendly TikZ images. or just efficient metapost Oh, sure! (That might require a bit more work, but probably worth doing if someone

Re: [NTG-context] adjusting tikz pictures

2019-04-25 Thread Mojca Miklavec
On Thu, 25 Apr 2019 at 16:23, Hans Hagen wrote: > > > Ideally someone should fix Geogebra to allow outputting > > ConTeXt-friendly TikZ images. > > or just efficient metapost Oh, sure! (That might require a bit more work, but probably worth doing if someone wants to

Re: [NTG-context] adjusting tikz pictures

2019-04-25 Thread Hans Hagen
, but need some info how to adjust GeoGebra's TikZ output (suitable for LaTeX) for ConTeXt? Ideally someone should fix Geogebra to allow outputting ConTeXt-friendly TikZ images. or just efficient metapost The differences should be small enough that this should be doable. Hans

Re: [NTG-context] tikz is not found

2019-04-25 Thread Gour
it looks at > the colors defined in tex rather than colors defined in metapost. > This allows you to easily share the same colors in text and figures. That's great and desirable! > As an elegent example of this see this excellent imitation of Byrne's > Euclid: > https://github.com/

Re: [NTG-context] adjusting tikz pictures

2019-04-25 Thread Gour
c) to \start... \stop... pairs. There are a few other quirks which > have simple workarounds. I am not sure if they are documented > anywhere. OK. > If you are more comfortable using a visual tool like GeoGebra than > writing the tikz/metapost code by hand, then I'd say that simply > proc

Re: [NTG-context] tikz is not found

2019-04-24 Thread Aditya Mahajan
("A", A) withcolor "myblue"; dotlabel.rt ("B", B) withcolor "myblue"; dotlabel.bot("C", C) withcolor "myblue"; \stopMPpage \stoptext In ConTeXt, if you put quotes around the name of a color, it looks at the colors defined in te

Re: [NTG-context] tikz is not found

2019-04-24 Thread Gour
f-modules directory from a > standard context distribution to the lmtx tree. OK. Will try to do it. > If you are intending on preparing math exams, I may suggest that > native MetaPost IS better adapted for many reasons AND easier to use > in ConTeXt. I believe it is, but it seem

Re: [NTG-context] adjusting tikz pictures

2019-04-24 Thread Aditya Mahajan
quirks which have simple workarounds. I am not sure if they are documented anywhere. If you are more comfortable using a visual tool like GeoGebra than writing the tikz/metapost code by hand, then I'd say that simply process the generate latex code through latex to generate standalone pdfs

Re: [NTG-context] tikz is not found

2019-04-24 Thread Alan Braslau
stributed or installed (yet) by the lmtx install.sh script. All that you need to do is to copy the texmf-modules directory from a standard context distribution to the lmtx tree. If you are intending on preparing math exams, I may suggest that native MetaPost IS better adapted for many reasons AND easi

Re: [NTG-context] preparing math exams

2019-04-24 Thread Marcin Borkowski
On 2019-04-23, at 17:57, Fabrice L wrote: > Metapost (Metafun) is your best friend here. You can insert directly in Also, TikZ, which is more LaTeX-centric, but works with ConTeXt, too (at least it did when I last tried ConTeXt a few years ago). Hth, -- Marcin Borkowski http://mbork

Re: [NTG-context] preparing math exams

2019-04-24 Thread Gour
On Tue, 23 Apr 2019 11:57:34 -0400 Fabrice L wrote: > Metapost (Metafun) is your best friend here. You can insert directly > in context some MetaFun code, like this: > > \starttext > Lorem Ipsum… > > \startMPcode > draw ( (0,0) — (1,0) — (0,1)) with color red ; >

Re: [NTG-context] preparing math exams

2019-04-23 Thread Fabrice L
Hi, Le 23 avril 2019 à 11:10:11, Gour (g...@atmarama.com) a écrit: Hello, For regular formulas involving e.g. rational numbers, I'm sure that input language for math is quite sufficient, but wonder about drawing part? Metapost (Metafun) is your best friend here. You can insert directly

Re: [NTG-context] using metapost library makecirc with context.

2019-04-21 Thread Alan Braslau
On Sat, 20 Apr 2019 23:49:26 +0200 Hans Hagen wrote: > > let latex=textext ; > > That crashed here. In fact, when I used makecirc.mp, I just commented out the following few lines at the head of the file: %input latex; % % Commands definitions to do the labeled easier % %

Re: [NTG-context] Left frame on a block of text

2019-04-21 Thread Otared Kavian
Hi Aditya and Gilles, It seems to me that adding a bar in the margin either with framedtext or with MetaPost, lacks the ability to continue through a page break. Using the ConTeXt built-in sidebar mechanism has the advantage of continuing through a page break, but it is still not perfetct

Re: [NTG-context] using metapost library makecirc with context.

2019-04-20 Thread Hans Hagen
On 4/20/2019 11:16 PM, Alan Braslau wrote: On Sat, 20 Apr 2019 23:00:09 +0200 Hans Hagen wrote: On 4/20/2019 10:09 PM, Andrea De Michele wrote: I didn't understand the magic behind that but it's works. mp has no real text typesetting options so this hack provides it Why not let

Re: [NTG-context] using metapost library makecirc with context.

2019-04-20 Thread Alan Braslau
On Sat, 20 Apr 2019 23:00:09 +0200 Hans Hagen wrote: > On 4/20/2019 10:09 PM, Andrea De Michele wrote: > > > I didn't understand the magic behind that but it's works. > > mp has no real text typesetting options so this hack provides it Why not let latex=textext ; > > Another

Re: [NTG-context] using metapost library makecirc with context.

2019-04-20 Thread Hans Hagen
On 4/20/2019 10:09 PM, Andrea De Michele wrote: I didn't understand the magic behind that but it's works. mp has no real text typesetting options so this hack provides it Another question: there is a library to draw electrics circuit alternative to makecirc but more context/metafun

Re: [NTG-context] using metapost library makecirc with context.

2019-04-20 Thread Andrea De Michele
Hans Hagen writes: > On 4/19/2019 5:48 PM, Andrea De Michele wrote: >> >> I'm trying to use with Context makecirc a metapost library to draw >> electric circuits, but I have problems with the labels of the circuits >> element that are not displayed correctly. >

Re: [NTG-context] Left frame on a block of text

2019-04-20 Thread Gilles Waeber
Thanks, that's exactly what I needed. I got inspired by your post at https://adityam.github.io/context-blog/post/frame-with-solid-left-line/ for my original code. I just added linecap:=butt; at the beginning of the metapost code to get squared ends. Gilles > Framed does not provide eno

Re: [NTG-context] Left frame on a block of text

2019-04-20 Thread Aditya Mahajan
\startleftbartext \input knuth \stopleftbartext \stoptext Framed does not provide enough hooks to control the spaces. For something like this, you can also use metapost to draw the background: \showframe \showboxes \defineframedtext[leftbartext][ width=broad, frame=off

Re: [NTG-context] using metapost library makecirc with context.

2019-04-19 Thread Hans Hagen
On 4/19/2019 5:48 PM, Andrea De Michele wrote: I'm trying to use with Context makecirc a metapost library to draw electric circuits, but I have problems with the labels of the circuits element that are not displayed correctly. FIRST EXAMPLE (No labels are displayed) - \starttext

[NTG-context] using metapost library makecirc with context.

2019-04-19 Thread Andrea De Michele
I'm trying to use with Context makecirc a metapost library to draw electric circuits, but I have problems with the labels of the circuits element that are not displayed correctly. FIRST EXAMPLE (No labels are displayed) - \starttext \startMPinclusions input makecirc

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

2019-04-10 Thread Hans Hagen
'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 'default' metapost        > loading 'metafun' as '/home/user/context/tex/texmf-context/metapost/context/b

[NTG-context] gnuplot-module broken under lmtx

2019-04-10 Thread Christian Prim
(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-1-ctx.tex' metapost> initializing instance 'metafun:1' using format 'metaf

Re: [NTG-context] *** Spam *** Drawing scaled externalfigure in Metapost produces erroneous size in the latest beta

2019-04-04 Thread Lutz Haseloff
Hi Thorsten, I had the same problem a couple of months ago. Use sized instead of scaled now. The same goes for xscaled and yscaled. Greetings Lutz Am 4. April 2019 01:31:29 MESZ schrieb "Thorsten S." : >Hello! > >The simple Metapost code that follows worked fine until upgrad

Re: [NTG-context] Drawing scaled externalfigure in Metapost produces erroneous size in the latest beta

2019-04-04 Thread Hans Hagen
On 4/4/2019 1:31 AM, Thorsten S. wrote: Hello! The simple Metapost code that follows worked fine until upgrading to recent beta. I don't have a clue exactly when this behaviour was introduced since I switched just recently from the standard Texlive version available in Arch Linux

[NTG-context] Drawing scaled externalfigure in Metapost produces erroneous size in the latest beta

2019-04-04 Thread Thorsten S.
Hello! The simple Metapost code that follows worked fine until upgrading to recent beta. I don't have a clue exactly when this behaviour was introduced since I switched just recently from the standard Texlive version available in Arch Linux. \starttext \startMPcode draw externalfigure

Re: [NTG-context] Welcome to LMTX

2019-04-01 Thread Hans Hagen
on the current Context beta and luatex). Of course with the proper mwe's (tex, metapost, lua, or a combination of these) we will try to solve them all, we have been testing. In due time more about this project will be revealed. Hans Hagen & Alan Braslau Hi Hans, Thanks for the link to the code. A q

Re: [NTG-context] Welcome to LMTX

2019-04-01 Thread Joseph Wright
with the proper mwe's (tex, metapost, lua, or a combination of these) we will try to solve them all, we have been testing. In due time more about this project will be revealed. Hans Hagen & Alan Braslau Hi Hans, Thanks for the link to the code. A quick install suggests that a 'hello w

[NTG-context] Welcome to LMTX

2019-04-01 Thread Hans Hagen
://www.pragma-ade.nl/install.htm Of course you should keep your current installation too. We're sure that there will be issues so when you run into unexpected surprises, you can blame us (and fall-back on the current Context beta and luatex). Of course with the proper mwe's (tex, metapost, lua

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

2019-03-18 Thread Romain Diss
> In this minimal example, the frame doesn't appear (or if i set > > [frame=on,leftframe=off] all the frame is rendered) and the left and > > right offsets are not took into account. > > textbackground uses metapost for ALL backgrounds and the default metapost > code to draw the

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

2019-03-18 Thread Romain Diss
> > > examples). > > > I suppose Hans Hagen made use of metafun to do it but I encounter some > > > problems with 'textbackgrounds'. > > > > > > In this minimal example, the frame doesn't appear (or if i set > > > [frame=on,leftframe=off] al

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

2019-03-18 Thread Alan Braslau
kgrounds'. > > > > In this minimal example, the frame doesn't appear (or if i set > > [frame=on,leftframe=off] all the frame is rendered) and the left and > > right offsets are not took into account. > > textbackground uses metapost for ALL backgrounds and the default metap

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

2019-03-18 Thread Aditya Mahajan
afun to do it but I encounter some problems with 'textbackgrounds'. In this minimal example, the frame doesn't appear (or if i set [frame=on,leftframe=off] all the frame is rendered) and the left and right offsets are not took into account. textbackground uses metapost for ALL backgrounds and t

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

2019-03-14 Thread Hans Hagen
ATEXFUNCTIONALITY)") ; instead of numeric LUATEXFUNCTIONALITY ; LUATEXFUNCTIONALITY := runscript("mp.print(LUATEXFUNCTIONALITY)") ; Now I have tex/texmf-context/metapost/context/base/mpiv$ grep -r LUATEXFUNCTIONALITY mp-mlib.mpiv:%numeric LUATEXFUNCTIONALITY ; LUATEXFUNCTIONALITY := runscrip

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

2019-03-14 Thread luigi scarso
ecute[[ > boolean mplib ; mplib := true ; > input metafun.mp ; > ]] > > print(ret.log) > } > \bye > > in mp-mlib.mpiv it seems that we should have string LUATEXFUNCTIONALITY ; LUATEXFUNCTIONALITY := runscript("mp.print(LUATEXFUNCTIONALITY)") ; instead of numeri

[NTG-context] Fwd: Meptapost Drawing not showing-up in Context Letter Style

2019-03-12 Thread Jeroen
, Context NTG < context...@gmail.com> Context NTG schrieb am 10.03.19 um 16:59: > I am trying to get a metapost drawing as logo added to right upper > corner of a DIN B style letterhead, but it does not show up, just the > letter itself. Is there anything to change to the layers

Re: [NTG-context] Meptapost Drawing not showing-up in Context Letter Style

2019-03-11 Thread Wolfgang Schuster
Context NTG schrieb am 10.03.19 um 16:59: I am trying to get a metapost drawing as logo added to right upper corner of a DIN B style letterhead, but it does not show up, just the letter itself. Is there anything to change to the layers for the MP toe reveal itself? The letter module uses

[NTG-context] Meptapost Drawing not showing-up in Context Letter Style

2019-03-10 Thread Context NTG
I am trying to get a metapost drawing as logo added to right upper corner of a DIN B style letterhead, but it does not show up, just the letter itself. Is there anything to change to the layers for the MP toe reveal itself? Thanks, Jeroen % BEGIN MP LOGO SETUP \startuseMPgraphic{mpglogo} path

Re: [NTG-context] Showing value of a MP variable

2019-03-08 Thread Alan Braslau
e (context) log. show is a MetaPost command that will get included in the log with: \enabletrackers [metapost.showlog] Alan ___ If your question is of interest to others as well, please add an entry to the Wiki!

[NTG-context] textext within ConTeXt

2019-03-03 Thread Mohammad Hossein Bateni
;}initializations {\meta_f... \page_fitting_stop_command ...eter \c!command {#1} \page_fitting_stop_normal Is there a workaround here? Ultimately I want to replace "12" with a loop variable in MetaPost. Thanks, ~MHB ___

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

2019-02-21 Thread Damien Thiriet
tional. > >Every metapost graphic does at least this at its start: > >save x,y; >currentpicture := nullpicture; >currentpen:=defaultpen; > >so pair xx[]; would have worked just fine. > >In general, I would advice to stay away from single-let

Re: [NTG-context] troubles with \MPinclusions

2019-02-21 Thread Taco Hoekwater
“z" is defined as a shortcut for "(x,y)”. Both of these are traditional. Every metapost graphic does at least this at its start: save x,y; currentpicture := nullpicture; currentpen:=defaultpen; so pair xx[]; would have worked just fine. In general, I would adv

Re: [NTG-context] markdown module vs pandoc

2019-02-18 Thread Alan Braslau
of code, but you usually constantly need the user manual at hand, and > > doing something low level is more tricky. ConTeXt support might be > > occasionally broken. > > Thank you. It seems that metaPost/Fun is a way to go... MetaPost is native to luatex (MPlib is integrate

Re: [NTG-context] markdown module vs pandoc

2019-02-18 Thread Gour
e the same in a lot less lines > of code, but you usually constantly need the user manual at hand, and > doing something low level is more tricky. ConTeXt support might be > occasionally broken. Thank you. It seems that metaPost/Fun is a way to go... Sincerely, Gour -- As a lamp

Re: [NTG-context] markdown module vs pandoc

2019-02-18 Thread Mojca Miklavec
-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 when you

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

[NTG-context] upcoming current

2019-02-11 Thread Hans Hagen
), new metapost modules (alan is for instance working on a new graph module), some bidi-layout stuff, some (interfaces to) low level math configuration options (needs thinking). These will happen in the betas but they are unlikely to interfere with regular functionality. If something more drastic

Re: [NTG-context] Metapost graphic in setupbackground

2019-02-08 Thread Jan U. Hasecke
Thanks a lot Wolfgang and Marco. :-) juh Am 08.02.19 um 12:57 schrieb Wolfgang Schuster: > > > Jan U. Hasecke schrieb am 08.02.19 um 12:36: >> Hi all, >> >> I make my first steps with Metapost. >> >> I would like to set the background of all page

Re: [NTG-context] Metapost graphic in setupbackground

2019-02-08 Thread Wolfgang Schuster
Jan U. Hasecke schrieb am 08.02.19 um 12:36: Hi all, I make my first steps with Metapost. I would like to set the background of all pages to a Metapost graphic. But only the first page has the defined background. I also tried with \startuseMPgraphic with no success --- mwe

Re: [NTG-context] Metapost graphic in setupbackground

2019-02-08 Thread Marco Patzer
On Fri, 8 Feb 2019 12:36:16 +0100 "Jan U. Hasecke" wrote: > \definelayer[kreisbackground][width=70mm,height=70mm] \definelayer[kreisbackground][width=70mm,height=70mm, state=repeat] start: layer appears only on the current page stop : layer doesn't show up repeat : layer prints on

[NTG-context] Metapost graphic in setupbackground

2019-02-08 Thread Jan U. Hasecke
Hi all, I make my first steps with Metapost. I would like to set the background of all pages to a Metapost graphic. But only the first page has the defined background. I also tried with \startuseMPgraphic with no success --- mwe --- \startreusableMPgraphic{kreis} draw fullcircle scaled

Re: [NTG-context] text flowing around images

2019-02-06 Thread Henning Hraban Ramm
; See https://tex.stackexchange.com/a/32308/323 which is based on an example in > the metafun manual. Thank you all! I guess I can reduce the flow cases to <10 and use \parshape directly; thinking in lines looks a bit easier than the MetaPost way. Calculating the MP path from the TIFF alpha

Re: [NTG-context] About the macro path intersectionpoint path with Metapost

2019-02-04 Thread Fabrice L
Hi, I guess your problem is to find the two points of intersection between p and r ? If so, the problem is that intersectionpoint does return the same intersection when there is several, as it is the case here. So a quick solution that you can do is to find intersections for the two part. A

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

2019-02-04 Thread Fabrice Couvreur
Hi, @ Henri Thank you @ Alan How to use it in my code ? Thank you Fabrice Le dim. 3 févr. 2019 à 21:26, Alan Braslau a écrit : > On Mon, 4 Feb 2019 09:19:26 +1300 > Henri Menke wrote: > > > Use the infont operator. > > Easier yet, the string can contain the font switch \bf: > > draw

Re: [NTG-context] About the macro path intersectionpoint path with Metapost

2019-02-03 Thread Jeong Dal
Dear Fabrice, Metapost is great for drawiang figures but it is not easy for me to use it. > b:= fullcircle scaled 2cm shifted (0,-3cm); > pair A, B ; > A:= p intersectionpoint r ; > B:= p intersectionpoint r ; > path u ; > u:= A--B--cycle ; A and B are the same point.

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

2019-02-03 Thread Alan Braslau
On Mon, 4 Feb 2019 09:19:26 +1300 Henri Menke wrote: > Use the infont operator. Easier yet, the string can contain the font switch \bf: draw textext("\bf "(i)) ; ___ If your question is of interest to others as

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