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.

Re: [NTG-context] tikz is not found

2019-04-25 Thread Gour
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://g

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 >

Re: [NTG-context] tikz is not found

2019-04-24 Thread Aditya Mahajan
l.lft("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 tex ra

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

Re: [NTG-context] adjusting tikz pictures

2019-04-24 Thread Aditya Mahajan
other 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 standalon

Re: [NTG-context] tikz is not found

2019-04-24 Thread Alan Braslau
ibuted 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 direct

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 % % %LaTeXsetup:=La

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 questi

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 friendly

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. &g

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 provid

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

2019-04-20 Thread Aditya Mahajan
ttext \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, fram

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) - \star

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

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

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

Re: [NTG-context] Welcome to LMTX

2019-04-01 Thread Hans Hagen
ack 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 t

Re: [NTG-context] Welcome to LMTX

2019-04-01 Thread Joseph Wright
ourse 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

[NTG-context] Welcome to LMTX

2019-04-01 Thread Hans Hagen
http://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, me

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

2019-03-18 Thread Romain Diss
27;. > > > > 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 m

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

2019-03-18 Thread Romain Diss
ibliography for > > > 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 > > &g

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

2019-03-18 Thread Alan Braslau
ith '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 bac

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

2019-03-18 Thread Aditya Mahajan
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] all the frame is rendered) and the left and right offsets are not took into account. textbackground uses meta

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
ot; 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 integrated).

Re: [NTG-context] markdown module vs pandoc

2019-02-18 Thread Gour
achive 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 lam

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

[NTG-context] upcoming current

2019-02-11 Thread Hans Hagen
g (more for fun), 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 somethi

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

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 all

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

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 textext("\b

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 "&char(i)) ; ___ If your question is of interest to others a

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 : for j=0 upto

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

2019-02-03 Thread Fabrice Couvreur
Sorry Henri, but I still have a question : how to have the letters in bold type ? Thank you. Fabrice Le dim. 3 févr. 2019 à 10:12, Fabrice Couvreur a écrit : > Hi Henry > Thank you for everything. > Fabrice > > Le sam. 2 févr. 2019 à 20:58, Henri Menke a écrit : > >> On 2/2/19 11:49 PM, Fabrice

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

2019-02-03 Thread Fabrice Couvreur
Hi, I would like to reproduce the attached figure. My problem is to create the points of intersection between the circles. It seems that my approach is not the right one. Thank you. Fabrice \starttext \startMPcode path p, q, r, b ; p:= fullcircle scaled 6cm ; q:= fullcircle scaled 4cm shifte

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

2019-02-03 Thread Fabrice Couvreur
Hi Henry Thank you for everything. Fabrice Le sam. 2 févr. 2019 à 20:58, Henri Menke a écrit : > On 2/2/19 11:49 PM, Fabrice Couvreur wrote: > > Hi Henri, > > Great ! I would also like these letters to be randomly colored. > > You should play with randomseed, the starting color (here white) and

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

2019-02-02 Thread Henri Menke
On 2/2/19 11:49 PM, Fabrice Couvreur wrote: > Hi Henri, > Great ! I would also like these letters to be randomly colored. You should play with randomseed, the starting color (here white) and the randomization amplitude (1,1,1). You mileage may vary. \starttext \startMPcode for i=0 upto 3 :

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

2019-02-02 Thread Fabrice Couvreur
Hi Henri, Great ! I would also like these letters to be randomly colored. Thank you. Fabrice Le sam. 2 févr. 2019 à 11:16, Henri Menke a écrit : > On 2/2/19 10:47 PM, Fabrice Couvreur wrote: > > The idea is to display the first 25 letters of the alphabet. The code > below > > shows the letter a

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

2019-02-02 Thread Henri Menke
On 2/2/19 10:47 PM, Fabrice Couvreur wrote: > The idea is to display the first 25 letters of the alphabet. The code below > shows the letter a to show what I want to do. > Thank you. > Fabrice Use char and ASCII. \starttext \startMPcode for i=0 upto 3 : for j=0 upto 3 : draw un

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

2019-02-02 Thread Fabrice Couvreur
The idea is to display the first 25 letters of the alphabet. The code below shows the letter a to show what I want to do. Thank you. Fabrice \starttext \startMPcode for i=0 upto 3 : for j=0 upto 3 : draw unitsquare scaled 4cm shifted (4*i*cm,4*j*cm) ; endfor ; endfor ;

Re: [NTG-context] New logo proposal

2019-01-30 Thread Alan Braslau
On Tue, 29 Jan 2019 19:58:40 +0100 "Paul Schalck" wrote: > @Alan B: I've uploaded MetaPost files of the main version. MP produced using pstoedit is of little interest; it is not the same as generating a graphic naively using MetaPost. Also, writing good MP code is a simpl

Re: [NTG-context] New logo proposal

2019-01-30 Thread Procházka Lukáš Ing .
ubscript 'E' whenever I can in inline text. @Floris vM: Font, spacing, overall appealingness. No Helvetica/Nimbus Sans, which has less meaning to me for ConTeXt than a DIN-ish/technical one. Colors are fun. If you don't see it this way, it's perfectly fine. @Alan B: I've up

[NTG-context] New logo proposal

2019-01-30 Thread Paul Schalck
7;E' whenever I can in inline text. @Floris vM: Font, spacing, overall appealingness. No Helvetica/Nimbus Sans, which has less meaning to me for ConTeXt than a DIN-ish/technical one. Colors are fun. If you don't see it this way, it's perfectly fine. @Alan B: I've uploaded M

Re: [NTG-context] New logo proposal

2019-01-29 Thread Alan Braslau
t; etc.) But perhaps that is not what you wanted? AND, any logo should be produced using MetaPost... ___ If your question is of interest to others as well, please add an entry to the Wiki! maillist : ntg-context@n

Re: [NTG-context] Color a column (xtable, lua)

2019-01-26 Thread Fabrice Couvreur
xrow() ? Le dim. 27 janv. 2019 à 00:34, Henri Menke a écrit : > On 1/27/19 12:26 PM, Henri Menke wrote: > > On 1/27/19 12:08 PM, Fabrice Couvreur wrote: > >> Hi, > >> How to color the first column as I did for the first line ? > > > > Stolen from Wolfgang

Re: [NTG-context] Color a column (xtable, lua)

2019-01-26 Thread Henri Menke
aluate the conditional purely in MetaPost. I don't know if that would be faster, but it's a bit more readable to me. \startuseMPgraphic{tablebackground}{i,j} if (\MPvar{i} = 1) or (\MPvar{j} = 1): fill OverlayBox withcolor \MPcolor{fondpaille} ; fi; \stopuseMPgraphic \defineo

Re: [NTG-context] textext with plain MetaFun

2019-01-21 Thread Henri Menke
age : http://www.pragma-ade.nl / http://context.aanhet.net > archive : https://bitbucket.org/phg/context-mirror/commits/ > wiki : http://contextgarden.net > ___ > This is MetaPost, version 2.00 (TeX Live 2018) (kpathsea version 6.3.0) 21 JAN 2019 22:4

Re: [NTG-context] textext with plain MetaFun

2019-01-21 Thread Hans van der Meer
The following always worked for me: \starttext \startMPpage .. metapost code .. \stopMPpage \stoptext and delivered from a ConTeXt-run a separate pdf. dr. Hans van der Meer > On 21 Jan 2019, at 09:43, Henri Menke wrote: > > On 1/21/19 9:29 PM, Hans Hagen wrote: >> On 1/

Re: [NTG-context] textext with plain MetaFun

2019-01-21 Thread Henri Menke
gt; >> with plain MetaFun, i.e. >> >> mpost '&metafun' test.mp >> >> the resulting file only contains “unknown”.  How can I get the expected >> output? > context foo.mp > > (in mkii one could use mptopdf but i have no interest in figu

Re: [NTG-context] textext with plain MetaFun

2019-01-21 Thread Hans Hagen
w can I get the expected output? context foo.mp (in mkii one could use mptopdf but i have no interest in figuring out some pure metapost solution when we can do the job with simple wrapping in m

Re: [NTG-context] ! Declared variable conflicts with previous vardef [Metapost]

2019-01-03 Thread Taco Hoekwater
ction z := point > 3.6 of p ;) It works because of the "pair z” statement. Attempted explanation: Metapost variable names are built up hierarchically. When you say “path p” or “color V.Q” or “numeric z[]” or “vardef z”, it changes the type of just the last segment, not other segments

Re: [NTG-context] ! Declared variable conflicts with previous vardef [Metapost]

2019-01-03 Thread Fabrice Couvreur
\stopMPpage \stoptext Le jeu. 3 janv. 2019 à 07:12, Alan Braslau a écrit : > On Thu, 3 Jan 2019 16:22:06 +1300 (UTC) > Henri Menke wrote: > > > z is a MetaPost intrinsic, something along the lines of > > > > vardef z@#=(x@#,y@#) enddef; > > >

Re: [NTG-context] ! Declared variable conflicts with previous vardef [Metapost]

2019-01-02 Thread Alan Braslau
On Thu, 3 Jan 2019 16:22:06 +1300 (UTC) Henri Menke wrote: > z is a MetaPost intrinsic, something along the lines of > > vardef z@#=(x@#,y@#) enddef; > > so you can't use the same name for a pair. Actually you can simply > delete the declaration > >

Re: [NTG-context] ! Declared variable conflicts with previous vardef [Metapost]

2019-01-02 Thread Henri Menke
z is a MetaPost intrinsic, something along the lines of vardef z@#=(x@#,y@#) enddef; so you can't use the same name for a pair. Actually you can simply delete the declaration pair z[]; from your file and it will work as intended. If you insist on using your own declaration of z,

[NTG-context] ! Declared variable conflicts with previous vardef [Metapost]

2019-01-02 Thread Fabrice Couvreur
Hi, I have a problem compiling this file. Thanks. Fabrice ## test file \starttext \setupbodyfont [pagella,9pt] \startMPpage[offset=2pt] path p, q, r, b ; pair z[]; p := unitsquare xyscaled (9cm,5cm) ; z[0] = (2cm,0cm) ; z[1] = (2cm,2cm)

Re: [NTG-context] double followtokens?

2019-01-01 Thread Hans van der Meer
; >>>> % path RotPath ; RotPath := halfcircle rotatedaround (origin, 180) ; >>>>\stopuseMPgraphic >>>> >>>>\followtokens{Just follow the tokens} >>>>\stoptext >>>> >>>> How can I get both paths (in dive

Re: [NTG-context] Question about defining a path with Metapost

2018-12-20 Thread Alan Braslau
On Fri, 21 Dec 2018 00:17:25 +0100 Fabrice Couvreur wrote: > Why does the definition of the r path that Hans proposed give the > same result as what I propose ? Look at the definition of bottomboundary in mp-tool.mpiv Use whatever you prefer. You might also be interested in the modification tha

[NTG-context] Question about defining a path with Metapost

2018-12-20 Thread Fabrice Couvreur
Hi, I need to make a figure with shaded areas and I found this code proposed by Hans. Why does the definition of the r path that Hans proposed give the same result as what I propose ? Thank you. Fabrice \starttext \startMPpage[offset=2pt] path p, q, r ; pair z ; p := unitsquare scaled 4c

Re: [NTG-context] graphics

2018-12-07 Thread luigi scarso
ality. The > > (luatex) engine is also more of less finished or at least stable in > > terms of functionality. > > > > One possible area of further development is graphics so I'd like to know > > if there are (reasonable) demands for more graphics support using > &

Re: [NTG-context] graphics

2018-12-07 Thread Mikael P. Sundqvist
erms of functionality. > > One possible area of further development is graphics so I'd like to know > if there are (reasonable) demands for more graphics support using > metapost. Alan and I are on-and-off working on some extensions and one > of the things we discuss is visualiza

Re: [NTG-context] graphics

2018-12-05 Thread Procházka Lukáš Ing .
ke to know if there are (reasonable) demands for more graphics support using metapost. Alan and I are on-and-off working on some extensions and one of the things we discuss is visualization of data. The question is of course what should be done in the lua/mp/tex combination and what externally but th

Re: [NTG-context] graphics

2018-12-05 Thread Hans Hagen
On 12/5/2018 10:02 AM, Taco Hoekwater wrote: On 4 Dec 2018, at 19:54, Alan Braslau wrote: 2) to generalize the notion of user data space from the two-dimensional drawing space of MetaPost (and the represented page), and affine transformations of this 2D space to other coordinate systems and

Re: [NTG-context] graphics

2018-12-05 Thread Henri Menke
in terms of functionality. The > (luatex) engine is also more of less finished or at least stable in > terms of functionality. > > One possible area of further development is graphics so I'd like to know > if there are (reasonable) demands for more graphics support using >

Re: [NTG-context] graphics

2018-12-05 Thread Taco Hoekwater
> On 4 Dec 2018, at 19:54, Alan Braslau wrote: > > 2) to generalize the notion of user data space from the > two-dimensional drawing space of MetaPost (and the represented page), > and affine transformations of this 2D space to other coordinate > systems and dimensions. W

Re: [NTG-context] graphics

2018-12-04 Thread Alan Braslau
s of functionality. > > One possible area of further development is graphics so I'd like to > know if there are (reasonable) demands for more graphics support > using metapost. Alan and I are on-and-off working on some extensions > and one of the things we discuss is visua

[NTG-context] graphics

2018-12-04 Thread Hans Hagen
I'd like to know if there are (reasonable) demands for more graphics support using metapost. Alan and I are on-and-off working on some extensions and one of the things we discuss is visualization of data. The question is of course what should be done in the lua/mp/tex combination and

[NTG-context] custom environment for geographical pictures; new head or special float?

2018-11-24 Thread Damien Thiriet
one, since other slides are not considered as subsubsections. If I stick to this, should I use subsubsection as a default which it's derived from. * creating a float would be better, since this is a float. Would there be a way to insert automatically key to symbols under the met

Re: [NTG-context] ConTeXt mathematics macros

2018-10-16 Thread Wolfgang Schuster
The content of all mentioned modules has moved to the core years ago and there is no need to load another code although a few goodies like fancy arrow styles etc. (which use metapost graphics) have to loaded. To get a proper answer to your problems you should provide a example which shows what

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

2018-10-11 Thread Aditya Mahajan
discretization points ] The code is fairly fast. But be careful. As with all ConTeXt key-value assignment, `x = { ...}` is different from `x={...}`. I am being a bit lazy here, and haven't adapted the metapost code to draw the axes to adapt to the function. Hans and I played with Adi

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

2018-10-09 Thread Alan Braslau
of discretization points >] > > The code is fairly fast. But be careful. As with all ConTeXt key-value > assignment, `x = { ...}` is different from `x={...}`. I am being a bit > lazy here, and haven't adapted the metapost code to draw the axes to adapt > to the function. Ha

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

2018-10-09 Thread Mikael P. Sundqvist
Wow! This is cool! I must admit I do not get how the connections between MetaPost and Lua works, but it seem to work fine. Challenge: To do this for a more complicated closed and self-intersecting curve like the Bernoulli lemniscate, say (x^2+y^2)^2=x^2-y^2 (a good domain could be -1.5 wrote

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

2018-10-08 Thread Hans Hagen
take hm, my 3.4 gig laptop cpu needs 0.18 sec for the slightly more that i million steps ... it depends on the function too 1ms in any reasonable programming language. Metapost for loops work with macro expansion, which can be very expensive for large loops. generalized: \startluacode -

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

2018-10-08 Thread Aditya Mahajan
airly fast. But be careful. As with all ConTeXt key-value assignment, `x = { ...}` is different from `x={...}`. I am being a bit lazy here, and haven't adapted the metapost code to draw the axes to adapt to the function. \define\ContourPlot {\dosingleargument\doContourPlot} \def\d

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

2018-10-08 Thread Aditya Mahajan
ession that any lua namespace could be used. (then eps should be made a linear function of xi) Oh, I missed that. Thanks. (and, indeed this is much faster than calculating in MP) Yes. Iterating over 10^6 values on a 1GHz computer should roughly take 1ms in any reasonable programming languag

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

2018-10-07 Thread Mikael P. Sundqvist
attached figure. The closest I have found which is something MetaPost-like, is the levelcurve command in mfpic (see for example this answer https://tex.stackexchange.com/a/405527/52406). If this is not currently possible in MetaFun, what is the simplest way to proceed (I want the same style of

Re: [NTG-context] Can anyone connect context to R or python?

2018-10-06 Thread Aditya Mahajan
de to generate the step response in Lua/Metapost. But it quickly gets tiring and one essentially ends up creating a domain specific computational library in Lua. An alternative approach, is to use an existing library written in some other programming language (say Matlab or R or Julia or whatever).

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