Dear Aditya,
> Le 26 juin 2023 à 13:53, Aditya Mahajan via ntg-context
> a écrit :
>
> On Mon, 26 Jun 2023, Miguel Diaz via ntg-context wrote:
>
>> indeed it is a simple simulation of overleaf (for latex).
>
> FWIW, context works on overleaf as well!
>
> Simply create a `latexmkrc` file wit
Dear List,
I would like to insert a page using (ideally) start/stop instructions. The
problem is that this page should be inserted only in a certain mode. Consulting
the mailing list, I thought the following code was working, but it’s not ! The
code is executed in the mode as expected, but the
Dear Aditya,
> Le 7 juin 2020 à 23:19, Aditya Mahajan a écrit :
>
> On Sun, 7 Jun 2020, Fabrice L wrote:
>
>> Dear List,
>>
>> I would like to insert a page using (ideally) start/stop instructions. The
>> problem is that this page should be inserted only i
> Le 7 juin 2020 à 23:19, Aditya Mahajan a écrit :
>
> On Sun, 7 Jun 2020, Fabrice L wrote:
>
>> Dear List,
>>
>> I would like to insert a page using (ideally) start/stop instructions. The
>> problem is that this page should be inserted only in a cert
> Le 9 juin 2020 à 03:37, Hans Hagen a écrit :
>
> On 6/8/2020 9:53 PM, Fabrice L wrote:
>>> Le 7 juin 2020 à 23:19, Aditya Mahajan >> <mailto:adit...@umich.edu>> a écrit :
>>>
>>> On Sun, 7 Jun 2020, Fabrice L wrote:
>>>
&g
Hi,Following a question about the broken R module (R the statistical software), Aditya suggested me the filter module (thanks to him). I’m about to distribute a set of course notes to colleagues, and I need to deal with details now. I have one problem and two questions.1) the filter collect R code
Dear Aditya,
> Le 15 juin 2020 à 01:45, Aditya Mahajan a écrit :
>
> This is an adapted version of the code that I use for my course where I use
> the vim module to do the typesetting:
>
> \usemodule[filter]
> \usemodule[vim]
>
> \definecolor [darkblue] [r=0.1, g=0.11, b=0.84]
> \defineco
Hi,
> Le 17 nov. 2020 à 15:23, Tomas Hala a écrit :
>
> Hi all,
>
> one student of mine asked me for a help with installation TeXlive
> (from http://www.tug.org/mactex/mactex-download.html)
> on her MacBook Air 16 with macOS Catalina.
>
> Despite the fact that the site states
> "All install
Hi,
I was using in the past (MKII) a snippet of code to produce (natural) tables
from CSV. I was trying to compile my code with MKIV, but this does not work
anymore. As a matter of fact, it doe snot work at all, nor MKII, nor MKIV
(probably my error !).
So I came back to the wiki, where my co
> Le 24 nov. 2020 à 12:52, Wolfgang Schuster
> a écrit :
>
> Fabrice L schrieb am 24.11.2020 um 18:44:
>> Hi,
>> I was using in the past (MKII) a snippet of code to produce (natural) tables
>> from CSV. I was trying to compile my code with MKIV, but this d
> Le 24 nov. 2020 à 13:36, Wolfgang Schuster
> a écrit :
>
> Fabrice L schrieb am 24.11.2020 um 19:08:
>>> Le 24 nov. 2020 à 12:52, Wolfgang Schuster
>>> a écrit :
>>>
>>> Fabrice L schrieb am 24.11.2020 um 18:44:
>>>> Hi,
>
Hi keith,
> Le 26 nov. 2020 à 10:09, Keith McKay a écrit :
>
> Hi,
>
> I have been using xpart and ypart to extract these values from pairs of
> points in a path but I wasn't getting the correct result. I was expecting:
>
> pair (2cm, 11cm) to give xpart 2 and ypart 11
>
> However I was gett
t;
> Thanks
> Keith McKay
First « uniformdeviate(1) - 0.5 » could be modified to « uniformdeviate(0.5)».
To add noise, you can use the randomized function of Metafun. For exemple, you
can write:
draw pp randomized 1cm ;
Fabrice.
>
> On 26/11/2020 15:19, Fabrice L wrote:
>> Hi
Hi,
> Le 9 déc. 2020 à 10:57, Otared Kavian a écrit :
>
> Hi,
>
> I have a silly question: given two points in the plane
> z1 = (1cm,3cm) ;
> z2 = (5cm, 9cm) ;
> the command
> draw z1 -- z2 withpen pencircle scaled .5pt ;
> draws the line segment joining z1 and z2. How could I
Hi,
> Le 25 déc. 2020 à 08:48, Jairo A. del Rio a écrit :
>
> Hi, list. I've got a question about paths and intersections. The following:
>
> \starttext
> \startMPpage
> path p[];
>
> p[1] = fullcircle scaled 2cm;
> p[2] = unitsquare shifted (4cm,6cm);
>
> if (known (p[1] intersectionpoint p
Hi,
> Le 25 déc. 2020 à 12:30, Pablo Rodriguez a écrit :
>
> Dear list,
>
> I have this minimal MetaFun sample (the only one in my real document):
>
> \setupbodyfont[pagella]
> \starttext
> \startMPcode
> pair a ; a := (1, 1) ;
> pair b ; b := (1, 10) ;
> pair c ; c := (10, 10) ;
> pair
> Le 10 janv. 2021 à 13:23, Peter Münster a écrit :
>
> Hi,
>
> I would expect, that \currentdate prints the current date, but it does
> not:
>
> --8<---cut here---start->8---
> \starttext
> \date[d=1]% first day of this month, ok
>
> \date% again first da
Hi,
Off topic (I hope this is ok), an animation made 100% with ConTeXt / MetaFun.
Several elements in the 6 840 images are sync to the music (i.e images « react
» to music - although imperfectly). Theses thousand of pages are used to make a
3m49s animation. If somebody if ever interested I can
> Le 3 févr. 2021 à 15:50, Henning Hraban Ramm a écrit :
>
>> Am 03.02.2021 um 20:00 schrieb Fabrice L :
>>
>> Hi,
>>
>> Off topic (I hope this is ok), an animation made 100% with ConTeXt /
>> MetaFun. Several elements in the 6 840 images are sync
Le 3 févr. 2021 à 19:41, Hans Hagen a écrit :
>
> On 2/3/2021 9:33 PM, Jairo A. del Rio wrote:
>> Wow, that's great :)
>
> Whow indeed!
Thanks a lot for your nice words ! Hans, all your covers have been very
inspirational to me.. ! I use ConTeXt in my work day, and ConTeXt/Metafun to do
gener
> Le 3 févr. 2021 à 16:29, Henning Hraban Ramm a écrit :
>
>
>> Am 03.02.2021 um 22:14 schrieb Fabrice L :
>>>>
>>>> https://youtu.be/3x03g-eHFC8
>>>
>>> Great! Would you please write an article about that for our journal? Or
>>
> Le 4 févr. 2021 à 08:31, Henning Hraban Ramm a écrit :
>
>> Am 04.02.2021 um 04:15 schrieb Fabrice L :
>>
>> I usually do images ; if you or the list ever want to see more, the site
>> https://art-aleatoire.com is to show my work,
>
> Wow, this is grea
Dear list,
I’m experimenting LuaMetaFun. The following MWE example works as expected, but
stop to work as soon as I uncomment the « doublefun » commands, like :
\startMPinclusions{doublefun} (… )
\startMPpage[instance=doublefun]
% MWE ——
\startMPinclusions%{doublefun}
vardef M
Hi,
> Le 21 juill. 2021 à 10:08, Jeroen a écrit :
>
> I use this small animation to enlarge a circle
>
>
> \usemodule[animation]
> \setupinteraction[state=start]
> \starttext
> \startanimation[menu=yes,framerate=10]
> \dorecurse{7}{\expanded
> {\startframe
> \startMPcode
> path p;
>
Dear list,
I have a problem with tikzCalendar on a recent installation. This minimal
example :
8<
\usemodule[tikz]
\usetikzlibrary[calendar]
\starttext
This should works:
\blank
\tikz \calendar[dates=2000-01-01 to 2000-01-31,week list];
\blank
but this does not !
\stoptext
8< —
Dear Aditya,
> Le 5 sept. 2023 à 04:21, Aditya Mahajan a écrit :
>
> On Mon, 4 Sep 2023, Fabrice L wrote:
>
>> Dear list,
>>
>> I have a problem with tikzCalendar on a recent installation. This minimal
>> example :
>>
>> 8<
Hi,
Fabrice, you have a problem with the definition of the path b: this path
include q and b. To see this, replace your lines with :
draw q anglestriped (1,45,2) withcolor cyan;
draw b anglestriped (1,45,2) withcolor red;
And you will see that the path b is drawn twice : o
Hi,
It is fun fact very easy to do. You just use \startMPpage (…) \stopMPpage
multiple times. Here is an example which build an animation of a particle
moving according to a Brownian motion.
Fabrice.
% 8< ---
\usecolors[crayola]
\setupMPinstance
\
> >> path B; B = z5..z6;
> >> pair BStartPoint; BStartPoint = point 0 of B;
> >> pair BEndPoint; BEndPoint = point 1 of B;
> >> path C; C = AStartPoint..AEndPoint;
> >>
> >> p1:=image(
> >> draw A withcolor red;
> >> );
> >&
Dear Hans,
> Le 2 janv. 2024 à 05:35, Hans Hagen via ntg-context a
> écrit :
>
> On 1/1/2024 3:33 PM, vm via ntg-context wrote:
>> On 01/01/2024 13:28, Hans Hagen wrote:
>>> Of course it screams metapost but tex and lua are also involved. See it as
>>> compensation for the lack of an end-of-ye
Dear list, dear Hraban,
> Le 7 janv. 2024 à 13:58, Henning Hraban Ramm a écrit :
>
> Am 07.01.24 um 17:11 schrieb garulfo:
>> does this kind of poster would make sense ?
>> https://wiki.contextgarden.net/Cover_Pages#Poster_01_-_proposal_for_Libre_Planet_2021
>
> Thank you, that looks good but i
Dear Keith,
> Le 18 févr. 2024 à 11:44, Keith McKay a écrit :
>
> Hi all
> I went to use the lmt_shade function and it fails with two error messages.
> the first one is:
>
> metafun > log > error: Not a cycle
>
> followed by lots of trace messages, then:
>
> metafun > log > T
Hi,
I’have a lot of courses notes in MKII. I’m trying to move to MKIV. I have a
problem that I’m not able to resolve, to make a border matrix with
brackets. In MKII, I was using a macro, found somewhere, which works great,
but no longer works; here is the macro:
% Border matrix: first line and co
Thanks so much !
I’ll will add an entry to the wiki.
Fabrice.
Le 28 août 2017 à 13:29:55, Hans Hagen (pra...@wxs.nl) a écrit:
On 8/28/2017 6:33 PM, Fabrice L wrote:
> Hi,
>
> I’have a lot of courses notes in MKII. I’m trying to move to MKIV. I
> have a problem that I’m not able to
Dear list,
Some months ago, Hans wrote to this list (see below) a macro to do matrix
showing outside the brackets some informations (like we usually do for
Markov chains), but adapted some plain tex code, which worked in MKII). I
have used with success this code since then, but some weeks ago, the
remove it from
cont-new.mkiv.
2. To use the \equalign command you have to enable the special meaning of &
in math mode with \setupmathematics[ampersand=normal].
3. User the new mathalignment environment as replacement for \equalign
which avoids special characters like &.
Wolfgang
Fabrice L
1
Dear all,
> - Check what additional features users want (miss) and decide to what
extent and with what priority we will put effort in this.
As asked, I add a wish to the list...
One feature which I depend a lot on is to be able to do animations: I
actually use the Raw Steps module, by David Mung
pol stra hotmail.fr> writes:
> > Hello,I tried to use some steps in a presentation. In the following
conversationhttp://www.mail-archive.com/ntg-context
ntg.nl/msg53524.html, Wolfgang saysthat we can use the pre-60 module.
So I tried this snippet:\usemodule[pre-
stepwise]\starttext\StartSteps
Dear List,
I’m running into a problem in Metapost (using Context of course!)
creating (I think) too many objects; I got this error message:
variable instance identifiers exhausted
I have tried without success to find information and a solution.
Does somebody has a hint to solve this ?
Thanks, F
Le 18 septembre 2018 à 01:15:36, luigi scarso (luigi.sca...@gmail.com) a
écrit:
On Mon, Sep 17, 2018 at 9:18 PM Fabrice L wrote:
> Dear List,
>
> I’m running into a problem in Metapost (using Context of course!)
> creating (I think) too many objects; I got this error message:
Le 18 septembre 2018 à 03:11:40, Taco Hoekwater (t...@elvenkind.com) a
écrit:
> On 17 Sep 2018, at 21:17, Fabrice L wrote:
>
> Dear List,
>
> I’m running into a problem in Metapost (using Context of course!)
> creating (I think) too many objects; I got this error message:
>
Le 19 septembre 2018 à 15:47:07, Fabrice L (fabrice.al...@gmail.com) a
écrit:
Le 19 septembre 2018 à 15:28:54, Alan Braslau (braslau.l...@comcast.net
(mailto:braslau.l...@comcast.net)) a écrit:
> On Tue, 18 Sep 2018 19:21:31 -0700
> Fabrice L wrote:
>
> > The problem is that t
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
Dear list,
I wish to do several zoom from a picture made in MetaFun, from a pdf file
which name is given on the commande line, like:
context zoom.tex —File=EntryFile —Page=9 —result=OutFile.pdf
Minimal example:
\starttext
\startMPpage
numeric ThePage ;
string FileName ;
FileName := \getdocume
Le 22 février 2019 à 11:08:51, Aditya Mahajan (adit...@umich.edu) a écrit:
Untested. Add quotes around FileName:
> string FileName ;
> FileName := "\getdocumentargument{File}" ;
And not tested successfully !
Thanks a lot Aditya !
Fabrice.
Aditya_
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 in
cont
Le 2 juillet 2019 à 14:39:47, Andres Conrado Montoya (
andresconr...@gmail.com) a écrit:
Yes! I always get an answer, and I'm very grateful for that, and all the
work you all do. This is a great mail list, and ConTeXt is an amazing tool
that I very much enjoy working with. Thank you all!
I second
Dear list,
I’m using colored verbatim code (for course notes). In the past, I modified
verb-mp.mkii for the langage I need (SAS). This code works fine with MKII:
%——
\setupcolors[state=start]
\definetyping [MP] [option=MP]
\starttext
A example:
\startMP
draw (0,0) withpen pencircle 1in with
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 "mill.png" scaled 5cm shifted
Dear list,
I’m teaching with R this term, and I tried (without success) the
R-module (I think the path of R is not found). Having no time to test and find
out the problem, I have tried with success knitr (with is Rmarkdown code
converted to latex-beamer). But I’m missing Context… My und
Dear Aditya.
> Le 22 nov. 2019 à 17:49, Aditya Mahajan a écrit :
>
>> I’m teaching with R this term, and I tried (without success) the
>> R-module (I think the path of R is not found). Having no time to test and
>> find out the problem, I have tried with success knitr (with is Rmarkdown
Hi,
> Le 13 févr. 2020 à 16:45, Fabrice Couvreur a
> écrit :
> How to have the color defined by {yellow!60!black} with Metapost ?
color MyColor ; MyColor := .6[yellow,black] ;
See metafun manual, section 1.13.
> Thank you.
> Fabrice
Fabrice (another one !).
> ___
Dear list,
I have an error when I try to insert a block inside a conditional mode (but
there is two nested conditional mode.. is this the problem ?).
In my courses notes, I insert some blocks (named « Complement » in the minimal
exemple below) when in « Professor » mode. This works fine, as
Thanks Hraban for your answer,
> Le 28 nov. 2021 à 15:42, Henning Hraban Ramm via ntg-context
> a écrit :
>
> Am 28.11.21 um 19:39 schrieb Fabrice L via ntg-context:
>> I have an error when I try to insert a block inside a conditional mode (but
>> there is two nest
Dear Hans,
> Le 29 nov. 2021 à 03:54, Hans Hagen a écrit :
>
> On 11/29/2021 2:54 AM, Fabrice L via ntg-context wrote:
>
>> The only inconvenient of this solution if that I have to define 15 blocks
>> (one for each week of the term): ComplementOne, ComplementTwo,
Dear Gavin,
> Le 6 déc. 2021 à 10:11, Gavin via ntg-context a écrit :
>
> Hi Alex,
>
> I don’t know the status of Asymptote. I am using TikZ and pgfplots for 3D,
> with satisfactory results (example below). However, it is slow, so use the
> buffer mechanism to prevent redrawing with every run
Dear list,
I have a problem connecting path with the operator « & » (page 16 Metafun
manual). The problem is illustrated by the code (and the joined PDF) which
follows.
I draw random cycled forms (left part of the figure) and when they interact,
they are modified to « fit together » (right p
leB) cutbefore P2 cutafter P1) & cycle; newcircleA := newcircleA shifted(2in,-1.5in) ;draw newcircleA withcolor magenta ;drawpoints newcircleA ; drawpointlabels newcircleA ;\stopMPpage% ———Thanks for any help ! Fabrice./MikaelOn Mon, Dec 20, 2021 at 5:30 AM Fabrice L via ntg-conte
! I spent
hours to find a solution… but here is a solution !
Thanks a lot !
>
> /Mikael
Fabrice.
>
>
> On Mon, Dec 20, 2021 at 3:45 PM Fabrice L wrote:
>>
>> Thanks Mikael,
>>
>> Le 20 déc. 2021 à 02:21, Mikael Sundqvist via ntg-context
&
Hi,
> Le 2 janv. 2022 à 21:26, Jean-Pierre Delange via ntg-context
> a écrit :
>
> First of all : Happy New Year everybody (despite some difficulties due to
> public policies against the epidemic !
>
> Now my question : I want to try CTX (ConTeXt ver: 2021.12.30) on MacOS X
> (currently 10.
> Le 11 janv. 2022 à 17:56, Gavin via ntg-context a écrit :
>
> Thanks Hans! This is great. I made a slight change to add an additional
> feature. By moving the “mysolution” definition out of \startmode[solution], I
> can now use mysolution in either mode. I’d use this if I want to give my
>
Hi Keith,
> Le 28 avr. 2022 à 06:05, Keith McKay via ntg-context a
> écrit :
>
> Hi,
>
> In the MWE below I define an rgb colour, myColor1, using random numbers for
> the r, g and b components. I then use it to fill a unitsquare the size of the
> page, which works as expected. In the loop th
Sorry, I was a little too enthusiastic, here here is the code :
> Le 28 avr. 2022 à 08:41, Fabrice L a écrit :
>
> Hi Keith,
>
>> Le 28 avr. 2022 à 06:05, Keith McKay via ntg-context > <mailto:ntg-context@ntg.nl>> a écrit :
>>
>> Hi,
>>
>
Dear Stephan,
> Le 11 juin 2022 à 08:57, Stefan Nedeljkovic via ntg-context
> a écrit :
>
> Dear list,
>
> I would like to place a pdf file at (0, 0), centered at original size on a
> MPpage, and draw over it. But using the input command doesn't work. How
> should I approach this?
Like this
draw externalfigure "cow.pdf";
);
TheImage := TheImage shifted -center(TheImage);
draw TheImage ;
draw (0,0) withpen pencircle scaled .2in withcolor magenta ;
\stopMPpage
Fabrice.
>
> On Sat, Jun 11, 2022 at 4:46 PM Fabrice L &
> Le 5 juill. 2022 à 19:00, Henning Hraban Ramm via ntg-context
> a écrit :
>
> How can I change the font size of labels within one picture?
>
> Hraban
>
> \startMPpage
> defaultfont := "\truefontname{Sans}";
> defaultfontsize := \the\bodyfontsize;
>
> label.top(defaultfontsize, (0,0));
>
Dear list,
I’m doing animations in MetaFun, by simply using \startMPpage (…) \stopMPpage
for each frame of the animation. Here is an example:
https://youtu.be/yhxUbVQx9Uo (please note you can watch it in HD by adjusting
the setting in YouTube).
This works usually great, but when the number of
> Le 18 juill. 2022 à 12:31, Hans Hagen via ntg-context a
> écrit :
>
> On 7/18/2022 3:20 PM, Fabrice L via ntg-context wrote:
>> Dear list,
>> I’m doing animations in MetaFun, by simply using \startMPpage (…)
>> \stopMPpage for each frame of the animation.
Dear Bruce, dear list,
> Le 19 juill. 2022 à 07:42, Bruce Horrocks a écrit :
>
>> On 19 Jul 2022, at 04:28, Fabrice L via ntg-context
>> wrote:
>>
>> Complementary question : I saw that the « pos_a » « pos_b » of the example
>> could not take numerical v
Hi,Le 24 août 2022 à 22:50, fv leung via ntg-context a écrit :The following used to produce three parallel lines.Now it produces one straight line and two arcs.\starttext\startMPcode z0 = origin; z1 = 72dir(45); dotlabel.bot("z0", z0); draw z0--z1; draw (z0--z1) paralleled
70 matches
Mail list logo