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
, 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.
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
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
>
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
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
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
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
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
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 ;
>
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
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
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
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
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
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
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
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
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
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
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
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
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-
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
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
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
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
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
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
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
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
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
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
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
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
, 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
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
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
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!
;}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
__
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
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
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).
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
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
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
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
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
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
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
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
; 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
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
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
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.
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
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
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
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
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
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 :
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
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
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 ;
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
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
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
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
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
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
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
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/
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
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
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
\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;
> >
>
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
>
>
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,
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)
;
>>>> % path RotPath ; RotPath := halfcircle rotatedaround (origin, 180) ;
>>>>\stopuseMPgraphic
>>>>
>>>>\followtokens{Just follow the tokens}
>>>>\stoptext
>>>>
>>>> How can I get both paths (in dive
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
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
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
> &
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
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
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
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
>
> 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
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
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
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
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
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
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
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
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
-
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
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
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
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).
1001 - 1100 of 4906 matches
Mail list logo