Re: [NTG-context] Conditional text appearing in a fixed vertical space

2022-01-11 Thread Fabrice L via ntg-context
> 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 >

Re: [NTG-context] Documentation about CTX installation on MacOS X

2022-01-02 Thread Fabrice L 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

Re: [NTG-context] MP: problem connecting paths.

2021-12-20 Thread Fabrice L via ntg-context
ic ! 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 &

Re: [NTG-context] MP: problem connecting paths.

2021-12-20 Thread Fabrice L via ntg-context
& 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-context<ntg-context@ntg.nl>

[NTG-context] MP: problem connecting paths.

2021-12-19 Thread Fabrice L via ntg-context
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

Re: [NTG-context] Status of Asymptote

2021-12-06 Thread Fabrice L via ntg-context
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

Re: [NTG-context] Blocks inside a conditional mode.

2021-11-29 Thread Fabrice L via ntg-context
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,

Re: [NTG-context] Blocks inside a conditional mode.

2021-11-28 Thread Fabrice L via ntg-context
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

[NTG-context] Blocks inside a conditional mode.

2021-11-28 Thread Fabrice L via ntg-context
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

Re: [NTG-context] Metapost Animation of Sine

2021-07-21 Thread Fabrice L
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; >

[NTG-context] LuaMetaFun MPinclusions doublefun

2021-05-02 Thread Fabrice L
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

Re: [NTG-context] midi

2021-02-04 Thread Fabrice L
> 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

Re: [NTG-context] midi

2021-02-03 Thread Fabrice L
> 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 >>

Re: [NTG-context] midi

2021-02-03 Thread Fabrice L
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

Re: [NTG-context] midi

2021-02-03 Thread Fabrice L
> 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

Re: [NTG-context] midi

2021-02-03 Thread 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 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

Re: [NTG-context] printing the current date

2021-01-10 Thread Fabrice L
> 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

Re: [NTG-context] MetaFun labels and xsized

2020-12-25 Thread Fabrice L
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) ; >

Re: [NTG-context] Check if two paths intersect in Metafun

2020-12-25 Thread Fabrice L
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

Re: [NTG-context] Metafun: how to draw a straight line past the end points

2020-12-09 Thread Fabrice L
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

Re: [NTG-context] Units of xpart and ypart of a pair in MetaFun

2020-11-26 Thread Fabrice L
hanks > 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 keith, >

Re: [NTG-context] Units of xpart and ypart of a pair in MetaFun

2020-11-26 Thread Fabrice L
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

Re: [NTG-context] startCSV Wiki, Natural Table

2020-11-24 Thread Fabrice L
> 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, >

Re: [NTG-context] startCSV Wiki, Natural Table

2020-11-24 Thread Fabrice L
> 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

[NTG-context] startCSV Wiki, Natural Table

2020-11-24 Thread Fabrice L
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

Re: [NTG-context] MacOS+TeXlive: installation problems

2020-11-17 Thread Fabrice L
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

Re: [NTG-context] Filter module for R

2020-06-15 Thread Fabrice L
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] >

[NTG-context] Filter module for R

2020-06-14 Thread Fabrice L
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

Re: [NTG-context] start/stop executed conditionally on mode ?

2020-06-09 Thread Fabrice L
> 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

Re: [NTG-context] start/stop executed conditionally on mode ?

2020-06-08 Thread Fabrice L
> 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

Re: [NTG-context] start/stop executed conditionally on mode ?

2020-06-08 Thread Fabrice L
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 on

[NTG-context] start/stop executed conditionally on mode ?

2020-06-07 Thread Fabrice L
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

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

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

Re: [NTG-context] R module

2019-11-23 Thread Fabrice L
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

[NTG-context] R module

2019-11-22 Thread Fabrice L
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

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 "mill.png" scaled 5cm shifted

[NTG-context] Syntax hightlighting

2019-08-28 Thread Fabrice L
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

Re: [NTG-context] Why is the list so quiet these days?

2019-07-02 Thread Fabrice L
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

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 in

Re: [NTG-context] getdocumentargument in Metafun

2019-02-22 Thread Fabrice L
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.

[NTG-context] getdocumentargument in Metafun

2019-02-22 Thread Fabrice L
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 :=

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] Variable instance identifiers exhausted

2018-09-21 Thread Fabrice L
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

Re: [NTG-context] Variable instance identifiers exhausted

2018-09-18 Thread Fabrice L
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: >

Re: [NTG-context] Variable instance identifiers exhausted

2018-09-18 Thread Fabrice L
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:

[NTG-context] Variable instance identifiers exhausted

2018-09-17 Thread Fabrice L
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,

Re: [NTG-context] roadmap

2018-05-16 Thread Fabrice L
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

Re: [NTG-context] Border matrix

2018-04-19 Thread Fabrice L
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 F

Re: [NTG-context] Border matrix

2018-04-19 Thread Fabrice L
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,

Re: [NTG-context] Border matrix

2017-08-28 Thread Fabrice L
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 abl

[NTG-context] Border matrix

2017-08-28 Thread Fabrice L
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

Re: [NTG-context] Steps in presentation

2015-01-02 Thread Fabrice L.
pol stra ryzz at hotmail.fr writes: Hello,I tried to use some steps in a presentation.  In the following conversationhttp://www.mail-archive.com/ntg-context at ntg.nl/msg53524.html, Wolfgang saysthat we can use the pre-60 module.  So I tried this snippet:\usemodule[pre-