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

2020-11-26 Thread Fabrice L
Keith, > Le 26 nov. 2020 à 12:12, Keith McKay a écrit : > Thanks Fabrice and Hans. > > I now see I can simplify some lines of the code: > > pp := ((xpart a[i])/cf*cm, (ypart a[i])/cf*cm); now becomes pp:= a[i]; > > and > > pp := pp --- ((xpart a[i+1]/cf)*

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

2020-11-26 Thread Fabrice L
enna}]); > endfor; > StopPage; > \stopMPpage > \stoptext > %% > MetaPost (MetaFun) is taking care of everything regarding units. As you ave discovered, everything is translated to a unique

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
code came from, and the code below is just a copy for the wiki. It is supposed to make a table with three columns, but there is only one column in the resulting table… I admit I do not understand the code, but is there is missing \eTR somewhere ? Thanks for any help. Fabrice. Ps: in case

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

2020-11-17 Thread Fabrice L
support.apple.com/en-ca/guide/mac-help/mh40616/macAfter> > > Thanks in advance. > Best wishes, > Tomáš Fabrice.___ If your question is of interest to others as well, please add an entry to the Wiki!

Re: [NTG-context] Import a metapost extension

2020-09-02 Thread Fabrice Couvreur
Hello, That's okay, I'll compile the files with mpost and do an image insert. Thanks for your help. Fabrice Le mar. 1 sept. 2020 à 19:32, Wolfgang Schuster < wolfgang.schuster.li...@gmail.com> a écrit : > Taco Hoekwater schrieb am 01.09.2020 um 19:12: > > Hi, > > > On 1

Re: [NTG-context] Import a metapost extension

2020-09-01 Thread Fabrice Couvreur
eter; endfig; end But what you are proposing unfortunately does not work. Fabrice Le mar. 1 sept. 2020 à 14:25, Taco Hoekwater a écrit : > Hi, > > I think you need this: > > \startMPinclusions > input mp-scratch; > \stopMPinclusions > > \startMPcode > Scra

[NTG-context] Import a metapost extension

2020-09-01 Thread Fabrice Couvreur
uot;); draw Tournerd("90"); draw FinBlocRepeter; \stopMPcode \stoptext %%%% end test.tex Thanks Fabrice ___ If your question is of interest to others as well, please add an entry to the Wiki! mailli

Re: [NTG-context] Mathematical symbol of non-inclusion

2020-08-31 Thread Fabrice Couvreur
Hi Hans, Thank you for the clarification Fabrice Le dim. 30 août 2020 à 17:56, Hans Åberg a écrit : > > > On 30 Aug 2020, at 11:40, Fabrice Couvreur > wrote: > > > > @Hans My ignorance is total : how to write symbols from the keyboard ? > > I use text subs

Re: [NTG-context] Mathematical symbol of non-inclusion

2020-08-30 Thread Fabrice Couvreur
Hello, Thank you for your answers. @Hans My ignorance is total : how to write symbols from the keyboard ? Fabrice Le sam. 29 août 2020 à 20:41, Hans Åberg a écrit : > > > On 29 Aug 2020, at 19:58, Wolfgang Schuster < > wolfgang.schuster.li...@gmail.com> wrote: > > >

[NTG-context] Mathematical symbol of non-inclusion

2020-08-29 Thread Fabrice Couvreur
Hello, The result is not what you expected. How can I correct this problem? Thank you Fabrice \starttext \m{A \not\subset B} \stoptext ___ If your question is of interest to others as well, please add an entry

Re: [NTG-context] Label to delete in the table of contents

2020-08-24 Thread Fabrice Couvreur
Thanks !! Le lun. 24 août 2020 à 15:41, Wolfgang Schuster < wolfgang.schuster.li...@gmail.com> a écrit : > Fabrice Couvreur schrieb am 24.08.2020 um 15:32: > > Hi Wolfgang, > Thank you for your reply. Probably my fault but now I get the number 0 on > the word "Su

Re: [NTG-context] Label to delete in the table of contents

2020-08-24 Thread Fabrice Couvreur
Hi Wolfgang, Thank you for your reply. Probably my fault but now I get the number 0 on the word "Summary". Fabrice [image: contents.png] Le lun. 24 août 2020 à 15:12, Wolfgang Schuster < wolfgang.schuster.li...@gmail.com> a écrit : > Fabrice Couvreur schrieb am 23.08.2020

[NTG-context] Color specific cells in a table

2020-08-23 Thread Fabrice Couvreur
Hello, This table will be used to illustrate Pascal's triangle. I manage to color the cell (2,0) but I would also like to color the cells (2,1) and (3,1). Is it possible ? Thank you Fabrice \usecolors[X11] \starttext \startluacode local background_one = { align = "middle", sty

[NTG-context] Label to delete in the table of contents

2020-08-23 Thread Fabrice Couvreur
"Chapitre" above the word "Sommaire" in the table of contents : how to delete it ? Thanks for your help Fabrice ___ If your question is of interest to others as well, please add an entry to the W

[NTG-context] Chapter number with Luametafun

2020-08-18 Thread Fabrice Couvreur
Hello, How to get the number of the current chapter ? How to get the label "Chapitre" ? Thanks for your help. Fabrice %%% Begin example \mainlanguage[fr] \setcharacterspacing [frenchpunctuation] \setuplabeltext[fr][chapter=Chapitre~] \startuseMPgraphic{fun} definecolor[name=&q

Re: [NTG-context] About the numbering of theorems

2020-08-08 Thread Fabrice Couvreur
Hi Wolfgang, Thank you Fabrice Le ven. 7 août 2020 à 19:45, Wolfgang Schuster < wolfgang.schuster.li...@gmail.com> a écrit : > Fabrice Couvreur schrieb am 07.08.2020 um 16:30: > > Hello, > > I have a little problem with the numbering of theorems when there is no > &g

[NTG-context] About the numbering of theorems

2020-08-07 Thread Fabrice Couvreur
Hello, I have a little problem with the numbering of theorems when there is no subsection. I would like to know : Theorem 1.1 Theorem 1.2 Theorem 2.3 Theorem 2.4 Thank you Fabrice begin example \setuplabeltext[chapter=Chapitre~] \unexpanded\def\Title#1#2{\framed[frame=off,width=fit

Re: [NTG-context] Bug with \wordright in LMTX version 2020-08-03 14:25

2020-08-05 Thread Fabrice Couvreur
Hello, I also use a square to complete a demonstration. I tried this without success Thank you Fabrice \definesymbol[Fin][\mathematics{\square}] \def\qed{\strut\wordright{\symbol[Fin]}} \defineenumeration [proof] [text=Démonstration, alternative=serried, distance=\zeropoint, number

[NTG-context] Notation of the first derivative in mathematical mode (lmtx)

2020-08-03 Thread Fabrice Couvreur
Hello, I replaced the context engine with the lmtx engine but I find that the derivative symbol is too high regardless of the font used. I mainly use modern and pagella because I type many texts using mathematics: can we correct this problem, Thanks for your help. Fabrice \starttext \startitemize

[NTG-context] Height of parentheses in a matrix with lmtx

2020-07-28 Thread Fabrice Couvreur
Hi Hans, With the upgraded version of lmtx, the parentheses of the matrix are no longer adjusted to the content. Thank you. Fabrice \definemathmatrix [pmatrix][matrix:parentheses][simplecommand=MATRIX] \starttext \math{\MATRIX{\MPcode{draw (0,0) -- (1cm,0);} ;\MPcode{draw (0,0) -- (1cm,0

Re: [NTG-context] upload

2020-07-28 Thread Fabrice Couvreur
: input file 'ward}.tex' is not found, quitting mtx-context | fatal error: return code: 256 TeX Output exited abnormally with code 1 at Tue Jul 28 10:57:55 Thank you Fabrice Le lun. 27 juil. 2020 à 16:42, Hans Hagen a écrit : > Hi, > > Normally we don't report on successive

Re: [NTG-context] Fill an area defined by a subpath (Metafun)

2020-07-23 Thread Fabrice Couvreur
Hello Taco Thank you so much ; I did not know the reverse operator. Fabrice Le jeu. 23 juil. 2020 à 11:56, Taco Hoekwater a écrit : > > > > On 23 Jul 2020, at 11:48, Fabrice Couvreur > wrote: > > > > Hello, > > I have a little problem with coloring an area (

[NTG-context] Fill an area defined by a subpath (Metafun)

2020-07-23 Thread Fabrice Couvreur
Hello, I have a little problem with coloring an area (path b). Thanks for your help. Fabrice \starttext \startMPcode path circle, p, q, b; circle = fullcircle xscaled 6cm yscaled 3.5cm; p = (point 2 of circle .. (-0.15cm,1.5cm) ..(0,0)..(0.15cm,-1.5cm).. point 6 of circle); q = (subpath(0,2

[NTG-context] Bug with lmtx and color in table

2020-07-22 Thread Fabrice Couvreur
Hello, With the latest version of lmtx, the background color of cells does not work. Thank you. Fabrice \starttext \startxtable [align={middle,lohi}, offset=0.8ex,background=color, backgroundcolor=red,frame=off] \startxrow \startxcell \m{\displaystyle

Re: [NTG-context] Code lua in a table

2020-07-21 Thread Fabrice Couvreur
Thank you Fabrice \usecolors[X11] \startuseMPgraphic{DiagonalRule} rulethickness := \frameddimension{rulethickness}; drawoptions( withpen pencircle scaled rulethickness withcolor \MPcolor{\framedparameter{framecolor}}); pair leftcorner, rightcorner; leftcorner := (rulethickness

Re: [NTG-context] Code lua in a table

2020-07-20 Thread Fabrice Couvreur
Hi all, Thank you for your contributions, it allows me to progress. @Hans and Deal The code is impressive but does not correspond to the shape of the triangle that I have to make (by convention). Fabrice Le lun. 20 juil. 2020 à 10:36, Hans Hagen a écrit : > On 7/20/2020 7:56 AM, Jeong

Re: [NTG-context] Code lua in a table

2020-07-18 Thread Fabrice Couvreur
cell() end context.stopxrow() end context.stopxtable() \stopluacode \stoptext Le sam. 18 juil. 2020 à 22:25, Fabrice Couvreur a écrit : > Hi Wolfgang, > > It works but why did you ask this question since I finally use context ? > >> Are you sure yo

Re: [NTG-context] Code lua in a table

2020-07-18 Thread Fabrice Couvreur
Hi Wolfgang, It works but why did you ask this question since I finally use context ? > Are you sure you want to use context(...) here? > How not to display the .0 ? Fabrice Le sam. 18 juil. 2020 à 22:22, Wolfgang Schuster < wolfgang.schuster.li...@gmail.com> a écrit : > F

Re: [NTG-context] Code lua in a table

2020-07-18 Thread Fabrice Couvreur
Hi, I improved the code to be able to display the grid but I cannot display the coefficients. Thank you Fabrice \starttext \startluacode function Binom(n,k) if k > n then return 0 elseif (n == 0 or k == 0) then return 1 else ret

[NTG-context] Code lua in a table

2020-07-18 Thread Fabrice Couvreur
Hello, I want to display the values of Pascal's triangle in a table. Unfortunately my knowledge of Lua is not sufficient to run this code. Thank you. Fabrice \starttext \startluacode function Binom(n,k) if k > n then return 0 elseif (n == 0 or k =

Re: [NTG-context] Text around a figure

2020-07-16 Thread Fabrice Couvreur
Hi Otared and Wolfgang, It's great, the following code does the job! Thank you so much. Fabrice \useMPlibrary[dum] \definecolor[fondpaille][c=0,m=0,y=0.2,k=0] \setupfloats[freeregion=no] \definetextbackground[fondpaille] [background=color, backgroundcolor=fondpaille

Re: [NTG-context] Text around a figure

2020-07-16 Thread Fabrice Couvreur
Hi Otared and Wolfgang, Thanks for your help ; the result is almost what I want (the space between the text and the figure is not colored) but it is likely that we could not do better. Fabrice Le mer. 15 juil. 2020 à 22:25, Otared Kavian a écrit : > Hi Fabrice, > > I think what

[NTG-context] Text around a figure

2020-07-15 Thread Fabrice Couvreur
Hello, I always encounter difficulties with the placement of figures in such a way that the text envelops the figure. Thank you. Fabrice \useMPlibrary[dum] \definecolor[fondpaille][c=0,m=0,y=0.2,k=0] \starttext \startframedtext[width=max,background=color,backgroundcolor=fondpaille

Re: [NTG-context] Incorrect placement of a table with LMTX

2020-07-14 Thread Fabrice Couvreur
Hi Otared, Thanks, it works perfectly. Best regards. fabrice Le mar. 14 juil. 2020 à 12:23, Otared Kavian a écrit : > Hi Fabrice, > > You should enclose the table into \startplacetable... \stopplacetable as > in: > > \startplacetable[number=no] > % here put your xta

[NTG-context] Incorrect placement of a table with LMTX

2020-07-14 Thread Fabrice Couvreur
Hello, In my lessons, I often have to include tables, figures, ... in definitions, theorems ... With the context engine it works fine but not with lmtx. Thanks for your help. Fabrice \setupenumerations [before={\blank}, after={\blank}, alternative=serried, title=yes, titleleft

Re: [NTG-context] Symbol ' of the derived function + pagella + lmtx

2020-07-12 Thread Fabrice Couvreur
Hello, I found an intermediate solution but I find that the ' is too high. \m{f^{\prime}(x)=2x} Fabrice Le sam. 11 juil. 2020 à 12:46, Fabrice Couvreur a écrit : > Hello, > I am now using the lmtx engine and I have found that using the Pagella > font the writing of derived

[NTG-context] About the table of contents

2020-07-11 Thread Fabrice Couvreur
Hello, I would like to reduce the space between the numbering and the title of the chapters, sections and subsections. I would also like to have this: 1 My first chapter 1.1 My first section 1.1.1 My first subsection \setuplist [chapter] [style=bold,width=10mm] \starttext \placelist

[NTG-context] Symbol ' of the derived function + pagella + lmtx

2020-07-11 Thread Fabrice Couvreur
Hello, I am now using the lmtx engine and I have found that using the Pagella font the writing of derived functions is not very nice with the symbol '. Thank you. Fabrice \setupbodyfont [pagella,11pt] \starttext \startitemize[n] \startitem \math{f'(x)=x²+4x+4} \stopitem \startitem

Re: [NTG-context] Vertical space between label and title

2020-07-09 Thread Fabrice Couvreur
Hello, I know it works but ConteXt has so many commands with many keys that I thought there was a "cleaner" way. Fabrice Le mar. 7 juil. 2020 à 20:36, Henning Hraban Ramm a écrit : > > > > Am 07.07.2020 um 19:27 schrieb Fabrice Couvreur < > fabrice1.couvr...@gmai

[NTG-context] Vertical space between label and title

2020-07-07 Thread Fabrice Couvreur
Hello, I want a vertical space between the label and the chapter title: is this the right way to proceed ? Thank you. Fabrice \setuplabeltext[chapter=Chapitre~] \unexpanded\def\Title#1#2{\framed[frame=off,width=fit,align=flushleft]{#1\blank#2}} \setuphead [chapter] [style=\bfc, command

Re: [NTG-context] Store images and text in the right margin

2020-07-06 Thread Fabrice Couvreur
without worrying about the nature and that a single command does the job. What you are proposing goes in the right direction. However, I noticed a little problem with the hyphenation. Fabrice Le lun. 6 juil. 2020 à 16:35, Taco Hoekwater a écrit : > Hi Fabrice, > > Like this maybe? It depend

[NTG-context] Fwd: Store images and text in the right margin

2020-07-06 Thread Fabrice Couvreur
-- Forwarded message - De : Fabrice Couvreur Date: lun. 6 juil. 2020 à 12:10 Subject: Re: [NTG-context] Store images and text in the right margin To: Marco Hello, What has been proposed by Wolfgang and Marco works correctly but is it possible to define a single environment

Re: [NTG-context] Store images and text in the right margin

2020-07-03 Thread Fabrice Couvreur
Hi Marco, Thanks, it works but only for a comment and a picture. Indeed, if I add a comment and an image, the first image is placed on the second comment. Fabrice \starttext \startuserdata[margintext] \input ward \stopuserdata \marginfigure{\externalfigure[dummy][width=\rightmarginwidth,location

[NTG-context] Store images and text in the right margin

2020-07-02 Thread Fabrice Couvreur
in it. The result is not as expected because the graphic overflows on the text. The course will be written in A4 format with an 11 pts font. Thanks for your help. Fabrice \useMPlibrary[dum] \setuppapersize[A4] \setuplayout [width=12cm, rightmargin=5cm] \definemargindata[marginfigure][inright

Re: [NTG-context] Filter module for R

2020-06-15 Thread Fabrice L
onTeXt to new users. The alliance between R and LaTeX is a winning combination to a lot of my colleagues. Do you think this would be appropriate to do a simple page on the wiki explaining how R code can be done in ConTeXt, with eventual formatting, with some simple examples, or this is too much no

[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
other text... % Thanks for any help ! Fabrice.___ If your question is of interest to others as well, please add an entry to the Wiki! maillist : ntg-context@ntg.nl / http://www.n

Re: [NTG-context] Compile only one new component in a project

2020-05-07 Thread Fabrice Couvreur
Hi Aditya, It does not work ; the compilation encounters errors with each command that I created. I guess it comes from the components. Fabrice ##chapter-4-seconde.tex## \startcomponent chapter-4-seconde \startchapter[title=] ... \stopchapter \stopcomponent Le jeu. 7 mai 2020 à 16:01, Aditya

[NTG-context] Compile only one new component in a project

2020-05-07 Thread Fabrice Couvreur
Hi, Here is part of a project that is starting to be heavy ; when i add a chapter i do context seconde.tex How do I compile only the chapter I just added ? Thank you. Fabrice \startproduct Seconde \environment modules \environment specialite-style \environment specialite-macros

Re: [NTG-context] Changing the font size in an environment changes the behavior of a macro

2020-05-04 Thread Fabrice Couvreur
Hi Aditya, Thank you for your help ; this also works with pgfplots but the body of the text must be with the same font. I always use the pagella font but it doesn't allow you to use \mathscript{} that's why I use this macro. Are there other free fonts that allow you to do this ? Fabrice

Re: [NTG-context] Changing the font size in an environment changes the behavior of a macro

2020-05-04 Thread Fabrice Couvreur
Hi, Sorry to insist but I cannot fix this problem. Thanks for any help. Fabrice Le sam. 25 avr. 2020 à 00:13, Fabrice Couvreur a écrit : > Hi, > This macro was written by Otared and it works well unless I change the > size of the font (see the second graph). > How to correct

[NTG-context] \setupinteraction [ ...] do not work

2020-04-28 Thread Fabrice Couvreur
Hi, It seemed to me that it was necessary to proceed in this way to create a link in a pdf file; it does not work. Thank you. Fabrice \setupinteraction[state=start,color=darkred] \starttext \goto{vecteur directeur}[https://www.youtube.com/watch?v=6VdSz-0QT4Y] \stoptext

[NTG-context] Changing the font size in an environment changes the behavior of a macro

2020-04-24 Thread Fabrice Couvreur
Hi, This macro was written by Otared and it works well unless I change the size of the font (see the second graph). How to correct this problem ? Thanks for your help. Fabrice begin example \usemodule[pgfplots] \pgfplotsset{compat=newest} \define[2]\cscript{\start\switchtobodyfont[xitsbidi

[NTG-context] Text size with lmt_text [ ]

2020-04-22 Thread Fabrice Couvreur
and color parameters while I did not succeed using textext (). My problem is the size of the letters which is too small. Thank you. Fabrice \usecolors[xwi] \definecolor [prune] [r=1.29,g=.20,b=.83] \starttext \startMPcode vardef card(expr s, c) = image( draw fullsquare xyscaled (2cm,4cm

Re: [NTG-context] Passing the parameters of a frame in an environment \startMPcode ... \stopMPcode

2020-04-20 Thread Fabrice Couvreur
work. \startMPcode draw outlinetext.f ("\frameletter{A}") (withcolor darkred withpen pencircle scaled 1/10) rotated 5 xsized 2cm ; \stopMPcode Fabrice Le lun. 20 avr. 2020 à 10:36, Wolfgang Schuster < wolfgang.schuster.li...@gmail.com> a écrit

[NTG-context] Passing the parameters of a frame in an environment \startMPcode ... \stopMPcode

2020-04-19 Thread Fabrice Couvreur
Hi, I try to reproduce the figure as faithfully as possible. I tried for the rounded corners to put the key corner = round, but it does not work. Thanks for your help. Fabrice \usecolors[xwi] \definecolor [prune] [r=1.29,g=.20,b=.83] \starttext \setupframed[frameletter][corner=round,align=normal

Re: [NTG-context] Text around an image

2020-04-17 Thread Fabrice Couvreur
Hi, I found a way to solve it using the command \flushsidefloats Is this the best solution ? Thank you. Fabrice \startitem Programmer une fonction \m{A(x)} qui renvoie l'aire totale du terrain en fonction de la longueur \m{x}. \stopitem \flushsidefloats Le jeu. 16 avr. 2020 à 12:33

[NTG-context] Text around an image

2020-04-16 Thread Fabrice Couvreur
Hi, I know that this question has been raised several times (especially by me !), but the solutions provided sometimes work and sometimes not, especially in this example. Thanks for your help. Fabrice \useMPlibrary [dum] \define\ItemCommand {\hskip\zeropoint\relax\autoinsertnextspace

Re: [NTG-context] Lmtx + pgfplots compilation error

2020-04-13 Thread Fabrice Couvreur
Hi Aditya, Your solution seems to work even with the most complex files, it's a great idea! The only small disadvantage is that you have to place this file in each directory containing files using these modules. Thank you very much even if this solution is temporary. Fabrice Le lun. 13 avr. 2020

Re: [NTG-context] Lmtx + pgfplots compilation error

2020-04-13 Thread Fabrice Couvreur
Hi, Sorry to restart the discussion, but I have updated my entire system and the problem remains. I used the example of Aditya. Thank you. Fabrice \usemodule[pgfplots] \starttext \starttikzpicture \startaxis \addplot {x}; \stopaxis \stoptikzpicture \stoptext tex error >

Re: [NTG-context] Lmtx + pgfplots compilation error

2020-04-08 Thread Fabrice Couvreur
On 08/04/20, 11:52, Fabrice Couvreur wrote: > > Hi Henri, > > This file works well with context but does not work with lmtx. > > > > \usemodule[pgfplots] > > \usemodule[pgfpltstable] > > \pgfplotsset{compat=newest} > > \starttext > > \starttikzpictur

Re: [NTG-context] Lmtx + pgfplots compilation error

2020-04-08 Thread Fabrice Couvreur
th code 1 at Wed Apr 8 11:49:56 Le mer. 8 avr. 2020 à 11:21, Henri Menke a écrit : > Hi Fabrice, > > Could you provide a MWE, or maybe even open an issue on the bugtracker? > https://github.com/pgf-tikz/pgfplots/issues > > Cheers, Henri > > On 07/04/20, 14:22, Fab

Re: [NTG-context] Background color of a framedtext that covers floats

2020-04-08 Thread Fabrice Couvreur
Hi Pablo, Here a sample. Fabrice \useMPlibrary[dum] \definecolor[fondpaille][c=0,m=0,y=0.2,k=0] \starttext \startframedtext[width=max,background=color,backgroundcolor=fondpaille] \starthanging[location=right] {\startMPcode draw unitsquare scaled 2cm

[NTG-context] Background color of a framedtext that covers floats

2020-04-08 Thread Fabrice Couvreur
Hi, Is there a more elegant way to have a white background for the table ? In fact, my question is more general : if we insert an image, the background color envelops this image : how to solve this problem ? Thank you. Fabrice \definecolor[fondpaille][c=0,m=0,y=0.2,k=0] \starttext

Re: [NTG-context] Lmtx + pgfplots compilation error

2020-04-07 Thread Fabrice Couvreur
Hi Henri, Thank you for answering me. We're entering an area that I don't really know. I replaced all ^^ by ^ but I'm not sure I understood. I now have the following message : Thank you Fabrice tex error > tex error on line 5 in file pgfplotsbinary.data.code.tex: ! Undefined cont

[NTG-context] Lmtx + pgfplots compilation error

2020-04-06 Thread Fabrice Couvreur
Hi, Still with the idea of using lmtx, I get a compilation error when I use pgfplots. Thank you. Fabrice open source > level 9, order 92, name 'pgfplotsbinary.data.code.tex' tex error > tex error on line 42 i

Re: [NTG-context] Compile a file embedding modules with the lmtx engine

2020-04-03 Thread Fabrice Couvreur
Hi Pablo, It seems to be working, thanks for your help. Fabrice Le ven. 3 avr. 2020 à 22:22, Pablo Rodriguez a écrit : > On 4/3/20 7:21 PM, Fabrice Couvreur wrote: > > > > I reinstalled context and lmtx, followed your instructions because I got > > the same error message

Re: [NTG-context] Compile a file embedding modules with the lmtx engine

2020-04-03 Thread Fabrice Couvreur
I reinstalled context and lmtx, followed your instructions because I got the same error message but now I get another error message; my editor is Emacs. Thank you. Fabrice Running `LmtX' on `ESSAI' with ``/home/viserion/LMTX/tex/texmf-linux-64/bin/mtxrun --autogenerate --script context --autopdf

Re: [NTG-context] Compile a file embedding modules with the lmtx engine

2020-04-03 Thread Fabrice Couvreur
scripts source tex VERSION [viserion@archlinux texmf-modules]$ Fabrice Le ven. 3 avr. 2020 à 13:10, Pablo Rodriguez a écrit : > On 4/3/20 12:38 PM, Fabrice Couvreur wrote: > > Hi, > > I'm sorry but I didn't necessarily follow all the threads. I use to make > > my graphic

[NTG-context] Compile a file embedding modules with the lmtx engine

2020-04-03 Thread Fabrice Couvreur
of ConteXt, but how do I do that ? Thank you. Fabrice \usemodule[tikz] \usetikzlibrary[calc] \starttext \startlinecorrection[blank] \startmidaligned \starttikzpicture \draw[fill=orange!30e,draw=orange] (0,0) rectangle (5,5); \stoptikzpicture \stopmidaligned \stoplinecorrection

Re: [NTG-context] Bug (Lua) ?

2020-03-19 Thread Fabrice Couvreur
Hi mf, Thanks ! Fabrice Le jeu. 19 mars 2020 à 11:46, mf a écrit : > Il 19/03/20 11:20, Fabrice Couvreur ha scritto: > > Hi, > > this file did not pose any problems but today yes. > > Thank you. > > Fabrice > > > > \starttext > > \startluacode > &

[NTG-context] Bug (Lua) ?

2020-03-19 Thread Fabrice Couvreur
Hi, this file did not pose any problems but today yes. Thank you. Fabrice \starttext \startluacode local letters_1 = { "A", "B", "C", "D", "E", "F", "G", "H", "I", "J" } local letters_2 = { "

Re: [NTG-context] Exercise file with statements and correction

2020-03-17 Thread Fabrice Couvreur
Hi Otared, https://mailman.ntg.nl/pipermail/ntg-context/2016/087487.html Thanks Fabrice Le mar. 17 mars 2020 à 22:56, Fabrice Couvreur a écrit : > Hi Wolfgang, > Is it possible to adapt your code with the environment that you proposed > to me ? > Thank you. > Fa

Re: [NTG-context] Exercise file with statements and correction

2020-03-17 Thread Fabrice Couvreur
Hi Kavian, Thank you so much. I don't even have time to offer examples ! Fabrice Le mar. 17 mars 2020 à 22:56, Fabrice Couvreur a écrit : > Hi Wolfgang, > Is it possible to adapt your code with the environment that you proposed > to me ? > Thank you. > Fabrice > > h

Re: [NTG-context] Exercise file with statements and correction

2020-03-17 Thread Fabrice Couvreur
Hi Wolfgang, Is it possible to adapt your code with the environment that you proposed to me ? Thank you. Fabrice https://mailman.ntg.nl/pipermail/ntg-context/2016/087487.html \defineframed [EXFRAME] [frame=off, offset=0pt, location=low, width=\struttotal, background

Re: [NTG-context] Exercise file with statements and correction

2020-03-17 Thread Fabrice Couvreur
Hi Pablo, Thank you very much, it's a great base to start with. Fabrice Le mar. 17 mars 2020 à 22:09, Pablo Rodriguez a écrit : > On 3/17/20 9:14 PM, Fabrice Couvreur wrote: > > Hello, > > I would like to make files with statements of exercises and correction > > whe

[NTG-context] Exercise file with statements and correction

2020-03-17 Thread Fabrice Couvreur
Hello, I would like to make files with statements of exercises and correction where it would be enough to click on "correction" to access the correction at the end of the file. I'm running out of time, does anyone have a model to share ? Thank you so muc

Re: [NTG-context] Quizz

2020-03-16 Thread Fabrice Couvreur
Hi Hans, Thank you, I will try to use your file. Fabrice Le lun. 16 mars 2020 à 11:32, luigi scarso a écrit : > > > On Mon, Mar 16, 2020 at 11:14 AM Hans Hagen wrote: > >> On 3/15/2020 10:34 AM, Fabrice Couvreur wrote: >> > Hi, >> > With the Coronavirus pan

[NTG-context] Quizz

2020-03-15 Thread Fabrice Couvreur
Hi, With the Coronavirus pandemic, my school will close like all the others. We chose to work with Microsoft Teams. I know how to file Math exercises written with ConteXt and export to pdf format. Is it possible with ConteXt to create interactive Quizz? Thank you Fabrice

[NTG-context] Hatch color in a table cell

2020-03-12 Thread Fabrice Couvreur
Hi, I would like to hatch the cell green. Thank you. Fabrice \usecolors[xwi] \startuniqueMPgraphic{meta:hash}{linewidth,linecolor,angle,gap} if unknown context_back : input mp-back ; fi ; some_hash ( OverlayWidth, OverlayHeight , \MPvar{linewidth}, \MPvar{linecolor} , \MPvar{angle}, \MPvar{gap

Re: [NTG-context] Problem with shading when using rotation (Metapost)

2020-03-03 Thread Fabrice Couvreur
Hi, No idea ? Thanks Fabrice Le sam. 29 févr. 2020 à 11:01, Fabrice Couvreur a écrit : > Hi, > Sorry to come back with my match problem. In fact, I do not understand > why a rotation of 90 influences the degraded color of the ends of the > matches. > Thank you. > Fabr

[NTG-context] Problem with shading when using rotation (Metapost)

2020-02-29 Thread Fabrice Couvreur
Hi, Sorry to come back with my match problem. In fact, I do not understand why a rotation of 90 influences the degraded color of the ends of the matches. Thank you. Fabrice \starttext \startMPcode def match (expr alpha, pos) = numeric l; l = 4.6cm; picture pic; pic = image

Re: [NTG-context] Shading

2020-02-26 Thread Fabrice Couvreur
Hi Wolfgang, I would like the same result as the code with TikZ. Thank you. Fabrice \usemodule[tikz] \starttext \startMPcode fill fullcircle xscaled 1cm yscaled 0.88cm shaded withshademethod "circular" withshadefactor 0.75 withshadecolors (white,red); \stopMPcode \startt

[NTG-context] Shading

2020-02-25 Thread Fabrice Couvreur
Hi, In the Metafun documentation on page 410, there is a shaded bullet "fill fullcircle shaded cshade". I tried to reproduce the same effect, but it is not exactly the same result. Thank you. Fabrice \starttext \startMPcode fill fullcircle scaled 4cm shaded withshademethod

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

2020-02-15 Thread Fabrice Couvreur
ector (0,1) withshadecolors (red,white); enddef; match(0,(0,0)); match(90,(4.2cm,0)); match(90,(0,0)); match(0,(0,4.2cm)); \stopMPcode Le sam. 15 févr. 2020 à 00:01, Fabrice Couvreur a écrit : > Hi, > Hi, > I have corrected for the dimensions of the ellipse but I cannot achiev

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

2020-02-14 Thread Fabrice Couvreur
Hi, Hi, I have corrected for the dimensions of the ellipse but I cannot achieve the same effect for the red color. Thank you. Fabrice \startMPcode def match (expr pos) = fill unitsquare xscaled 4cm yscaled 0.2cm shifted pos withcolor yellow; fill origin -- (4cm,0) -- (4.1cm,-0.05cm

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 Fabri

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

2020-02-14 Thread Fabrice Couvreur
i Henri, Thank you for your answer. The idea is to make the graph as an attachment. I converted to Metapost but the road is still long! The code is from percusse on StackExchange. As you can see, there is a problem with the ellipse. How do I fix this ? Thank you Fabrice \usemodule[tikz

[NTG-context] Metapost and TikZ color code equivalent

2020-02-13 Thread Fabrice Couvreur
Hi, How to have the color defined by {yellow!60!black} with Metapost ? Thank you. Fabrice ___ If your question is of interest to others as well, please add an entry to the Wiki! maillist : ntg-context@ntg.nl / http

Re: [NTG-context] macro that does not work (Metapost)

2020-02-11 Thread Fabrice Couvreur
Hi Mikael, Thanks. Fabrice Le mar. 11 févr. 2020 à 14:01, Mikael P. Sundqvist a écrit : > On Tue, Feb 11, 2020 at 1:22 PM Fabrice Couvreur < > fabrice1.couvr...@gmail.com> wrote: > >> Hi Hans, >> I tried this but without success : >> >> \startMPcod

Re: [NTG-context] macro that does not work (Metapost)

2020-02-11 Thread Fabrice Couvreur
Hi Hans, I tried this but without success : \startMPcode suite{1,0}; suite{2,1}; \stopMPcode Fabrice Le mar. 11 févr. 2020 à 13:08, Hans Hagen a écrit : > On 2/11/2020 11:50 AM, Fabrice Couvreur wrote: > > Hi, > > I have some problems with the following macro : &g

[NTG-context] macro that does not work (Metapost)

2020-02-11 Thread Fabrice Couvreur
] {\startMPcode suite{1,0}; suite(2,1); \stopMPcode}{\tfxx \bf Suite 2} \stopcombination \stopmidaligned \stoplinecorrection \stoptext Thank you. Fabrice ___ If y

[NTG-context] page break

2020-02-09 Thread Fabrice Couvreur
Hi, Sorry if my minimal example is not, but I have to understand with your help what is wrong. For example, why a page break after the second item when there seems to be enough space to stay on this page ? Thanks Fabrice \define\starttikzpicture {\hbox\bgroup\forcecolorhack\tikzpicture

[NTG-context] Side effects with \startformula \stopformula

2020-02-09 Thread Fabrice Couvreur
Hi, I composed a large document and I often use \ startformula \ stopformula. I have the impression that this creates untimely page breaks or white spaces. Fabrice ___ If your question is of interest to others as well

[NTG-context] A question about whatever (Metapost)

2020-01-25 Thread Fabrice Couvreur
Hi, The point M is such that the line (CM) is perpendicular to the line (NP). I do not understand the error of this code. Thank you Fabrice \usecolors[xwi] \starttext \startMPcode path carre, p; carre = unitsquare scaled 138; pair a, b, c, d, N, P, M; a = point 0 of carre; b = point 1

  1   2   3   4   5   6   7   8   >