Re: [NTG-context] Import a metapost extension

2020-09-02 Thread Fabrice Couvreur
Sep 2020, at 16:46, Hans Hagen > wrote: > > On 9/1/2020 3:04 PM, Fabrice Couvreur wrote: > > Hi Taco, > Thank you for your help. I specify that this extension works perfectly by > compiling the following file. > > A logfile of a failed run would have been more helpfu

Re: [NTG-context] Import a metapost extension

2020-09-01 Thread Fabrice Couvreur
tchversion:=3; > …. > > If that also doesn’t work, perhaps attach the log file / terminal output > to a new message. > > Best wishes, > Taco > > > On 1 Sep 2020, at 13:07, Fabrice Couvreur > wrote: > > > > Hello > > Is it possible to import

[NTG-context] Import a metapost extension

2020-09-01 Thread Fabrice Couvreur
Hello Is it possible to import a metapost extension into a file compiled with the lmtx engine ? I tried unsuccessfully with this example : begin test.tex \starttext \startMPcode input mp-scratch; Scratchversion:=3; draw Drapeau; draw Repeter("4"); draw Avancer("50"); draw

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

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", style =

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

2020-08-23 Thread Fabrice Couvreur
Hello, For the title of the chapters I use the following command. \unexpanded\def\HeadTitle#1#2% {\framed [frame=off, width=fit, align=flushleft] {\color[darkgray]{\tfxx\cap\bf\labeltext{chapter}} \blank#1\blank#2} When I compile my project, I have the label

[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="Mycolor", s =

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

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,

[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

[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
Hi Hans, I updated the version of lmtx and wanted to test the following code \useMPlibrary[dum] \starttext \placefigure[right]{}{\externalfigure[dummy]} \input ward\par \placefigure[right]{}{\externalfigure[dummy]} {\bf \input ward} \par \stoptext This returns the error message runtime error :

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

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

2020-07-21 Thread Fabrice Couvreur
Hello, I am making progress and I almost get what I want to achieve but I still have two problems : how to color cells not containing numbers with the same color as the others ? how to color in salmon, for example, cells 1 2 ? 3

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 Dal

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
context.startxcell() \ctxlua{context(Binom(i,j))} context.stopxcell() end context.stopxrow() end context.stopxtable() \stopluacode \stoptext Le sam. 18 juil. 2020 à 20:32, Wolfgang Schuster < wolfgang.schuster.li...@gmail.com>

[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 == 0) then

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
topitemize > \stoptextbackground > > \stoptext > > Best regards: Otared K. > > > On 15 Jul 2020, at 22:13, Wolfgang Schuster < > wolfgang.schuster.li...@gmail.com> wrote: > > > > Fabrice Couvreur schrieb am 15.07.2020 um 19:54: > >> Hello,

[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
ble > \stopplacetable > > Best regards: Otared > > > On 14 Jul 2020, at 11:28, Fabrice Couvreur > wrote: > > 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.

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

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

2020-07-06 Thread Fabrice Couvreur
rginwidth] > \stopuserdata > \startchapter[title=First chapter] > \dorecurse{2}{\input knuth} > \stopchapter > \stoptext > > > > On 6 Jul 2020, at 16:18, Fabrice Couvreur > wrote: > > > > > > > > -- Forwarded message - > > De : Fabri

[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
Jul 2020 17:20:07 +0200 > Fabrice Couvreur wrote: > > Try: > > > \useMPlibrary[dum] > > > > \setuppapersize[A4] > > > > \setuplayout > > [width=12cm, > >rightmargin=5cm] > > > > \definemargindata[marginfigure][in

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

2020-07-02 Thread Fabrice Couvreur
Hello everyone and in particular to Wolfgang who has already provided me with the solution below. I will have to write a Mathematics book for my students and the remarks and graphics should be in the right margin. I got the code written by Wolfgang and tried to include the graphics in it. The

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

2020-05-07 Thread Fabrice Couvreur
Mahajan a écrit : > On Thu, 7 May 2020, Fabrice Couvreur wrote: > > > 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. >

[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
Mon, 4 May 2020, Fabrice Couvreur wrote: > > > Hi, > > Sorry to insist but I cannot fix this problem. > > Thanks for any help. > > I don't know the answer, but here is a simpler example without pgfplot > which fails (different calligraphic C's): > > > > \defin

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}

[NTG-context] Text size with lmt_text [ ]

2020-04-22 Thread Fabrice Couvreur
Hi, As an extension of this discussion https://mail.google.com/mail/u/0/#inbox/QgrcJHsNlRfcqCPHBTrnSFbJKjGPwjbJnLL?compose=CllgCJZWxJlpNNfzrPpFwWRqsFfdXqmnxkCwWVjvXKQJBwQmBfZGvchjMbsJDKXLtKldJtpWVqq (thanks to Wolfgang), I used the MetaFun interface with lmt_text [] ; I managed to pass the text

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

2020-04-20 Thread Fabrice Couvreur
: > Rudolf Bahr schrieb am 20.04.2020 um 10:23: > > On Mon, Apr 20, 2020 at 09:21:41AM +0200, Wolfgang Schuster wrote: > >> Fabrice Couvreur schrieb am 19.04.2020 um 22:55: > >>> Hi, > >>> I try to reproduce the figure as faithfully as possible. I tried for

[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
, Fabrice Couvreur a écrit : > 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] &g

[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
à 12:13, Aditya Mahajan a écrit : > On Mon, 13 Apr 2020, Fabrice Couvreur wrote: > > > 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 > &g

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

2020-04-13 Thread Fabrice Couvreur
2019.12.31 but fails with the most recent LMTX (same > error as > > below) using the same pgfplots module. > > > > Aditya > > > > On Wed, 8 Apr 2020, Fabrice Couvreur wrote: > > > >> Hi Henri, > >> Sorry ! > >> > >> \usemodule[pgfplot

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
; \stopMPcode} \input tufte \stophanging \stopframedtext \stoptext Le mer. 8 avr. 2020 à 10:45, Pablo Rodriguez a écrit : > On 4/8/20 10:19 AM, Fabrice Couvreur wrote: > > Hi, > > Is there a more elegant way to have a white background for the table? > > Hi Fabrice, >

[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
y default in > ConTeXt. I had a similar issue in PGF before and that was fixed by just > replacing the ^^ syntax with the ascii code constants from > syst-ini.mkxl. > > Cheers, Henri > > On 06/04/20, 22:23, Fabrice Couvreur wrote: > > Hi, > > Still with the idea of

[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 in file

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
ESSAI'' mtxrun | unknown script 'context.lua' or 'mtx-context.lua' TeX Output exited abnormally with code 1 at Fri Apr 3 19:15:18 Le ven. 3 avr. 2020 à 15:07, Pablo Rodriguez a écrit : > On 4/3/20 2:18 PM, Fabrice Couvreur wrote: > > Hi, > > > > I did the insta

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
Hi, I'm sorry but I didn't necessarily follow all the threads. I use to make my graphics Metapost or Metafun, but I also sometimes use TiKz. This file compiles with context but not with lmtx because the modules are not recognized. I am willing to use only lmtx which seems to be the future of

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 = { "1", "Année", "1998", "1999", "2000", "2001", "2002", "2003", "2004", "2005","2006" }

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
ION, alternative=serried, number=yes] Le mar. 17 mars 2020 à 22:14, Fabrice Couvreur a écrit : > 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 wrot

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 much. Fabrice

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
ikzpicture \shade[ball color=red] (0,0) ellipse (0.5cm and 0.44cm); \stoptikzpicture \stoptext Le mar. 25 févr. 2020 à 17:18, Wolfgang Schuster < wolfgang.schuster.li...@gmail.com> a écrit : > On Tue, 25 Feb 2020 12:34:00 +0100 > Fabrice Couvreur wrote: > > > Hi, > >

[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 "circular"

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
it : > 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. >

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

2020-02-14 Thread Fabrice Couvreur
and (1,.5) .. (0,0); \stoptikzpicture \stoptext Le ven. 14 févr. 2020 à 02:49, Henri Menke a écrit : > On 2/14/20 10:45 AM, Fabrice Couvreur wrote: > > Hi, > > How to have the color defined by {yellow!60!black} with Metapost ? > > \usemodule[tikz] > \starttext > \sta

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

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
Hi, I have some problems with the following macro : tex error > mp error on line 23 in file /home/viserion/macro.tex: ! Missing argument to suite. { <*> suite{ 1,0}; suite(2,1); ; That macro has more parameters than you thought. I'll continue by pretending that each missing argument is

[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

Re: [NTG-context] Eofill extension (Metafun)

2019-12-09 Thread Fabrice Couvreur
Hello, Thank you for these explanations. Fabrice Le lun. 9 déc. 2019 à 03:21, Henri Menke a écrit : > On 12/9/19 10:02 AM, Fabrice Couvreur wrote: > > Hello, > > Is it possible to use the eofill extension in this code ? I tried without > > success. Thank you. > > N

[NTG-context] Eofill extension (Metafun)

2019-12-08 Thread Fabrice Couvreur
Hello, Is it possible to use the eofill extension in this code ? I tried without success. Thank you. Fabrice \starttext \startMPcode path carre, disque; carre = fullsquare scaled 200; disque = fullcircle scaled 200; draw carre numberstriped (.25,15,5) withcolor \MPcolor{magenta};

Re: [NTG-context] Transparency (Metapost)

2019-12-01 Thread Fabrice Couvreur
me = "mp:green", y = 1 ] ; 9 10 path twos, threes ; 11 twos := fullcircle xscaled 4cm yscaled 2cm rotated 180 shifted 42 mtx-context | fatal error: return code: 256 Le dim. 1 déc. 2019 à 13:09, Hans Hagen a écrit : > On 12/1/2019 11:32 AM, Fabrice Cou

Re: [NTG-context] Transparency (Metapost)

2019-12-01 Thread Fabrice Couvreur
Hello Thank you for your suggestion. However, it works with context and not with lmtx. Fabrice \starttext \startMPcode defaultfont := "texgyrepagella-regular*default" ; defaultscale :=0.8; color brown; brown = (0.128,0.00,0.00); path twos, threes, sixes; twos = fullcircle

[NTG-context] Transparency (Metapost)

2019-11-30 Thread Fabrice Couvreur
Hello, I have a little trouble with the management of transparency : the colors are not respected. Thank you. Fabrice \starttext \startMPcode defaultfont := "texgyrepagella-regular*default" ; defaultscale :=0.8; color brown; brown = (0.165,0.42,0.42); path twos, threes; twos =

Re: [NTG-context] Text and tree side by side in a framedtext environment

2019-11-19 Thread Fabrice Couvreur
gt; > Best, Hraban > > > Am 2019-11-17 um 11:01 schrieb Fabrice Couvreur < > fabrice1.couvr...@gmail.com>: > > > > Hello, > > I am looking but without success ! > > I tried \ starthanging [location = right] {tree} \ stophanging but that > does not work

Re: [NTG-context] Text and tree side by side in a framedtext environment

2019-11-17 Thread Fabrice Couvreur
Hello, I am looking but without success ! I tried \ starthanging [location = right] {tree} \ stophanging but that does not work either. Fabrice Le sam. 16 nov. 2019 à 12:44, Fabrice Couvreur a écrit : > Hello, > I want to use a text frame to put text and a probability tree side by

[NTG-context] Text and tree side by side in a framedtext environment

2019-11-16 Thread Fabrice Couvreur
Hello, I want to use a text frame to put text and a probability tree side by side, but it does not work. Thanks for your help. Fabrice \usemodule[tikz] \usetikzlibrary[trees] \definefloat [recipe] [figure] \setupfloat [recipe] [default={right,nonumber}] \starttext

Re: [NTG-context] Number format with lua

2019-11-09 Thread Fabrice Couvreur
Hi Hans, In fact, I was talking about functions that seemed to me "complicated" for what I wanted to do. Fabrice Le sam. 9 nov. 2019 à 14:43, Hans Hagen a écrit : > On 11/9/2019 11:42 AM, Fabrice Couvreur wrote: > > Hi, > > Thank you for your suggestions, the prob

Re: [NTG-context] Number format with lua

2019-11-09 Thread Fabrice Couvreur
ote: > > On 11/9/19 10:38 AM, Fabrice Couvreur wrote: > >> Hi, > >> In the table below, how to have numbers with only three decimals? > > > > Hi Fabrice, > > > > at least in your sample "0.4g" seems the way to go, such as in: > > >

[NTG-context] Number format with lua

2019-11-09 Thread Fabrice Couvreur
Hi, In the table below, how to have numbers with only three decimals ? Thank you. Fabrice \starttext \startluacode local letters_1 = { "A", "B", "C", "D", "E", "F", "G", "H", "I", "J" } local letters_2 = { "1", "Année", "1998", "1999", "2000", "2001", "2002", "2003", "2004", "2005","2006" }

Re: [NTG-context] Horizontal space and framedtext

2019-11-03 Thread Fabrice Couvreur
Thanks ! Le dim. 3 nov. 2019 à 22:54, Wolfgang Schuster < wolfgang.schuster.li...@gmail.com> a écrit : > Fabrice Couvreur schrieb am 03.11.2019 um 22:46: > > Hi Wolfgang, > I know it takes a predefined argument, but I wanted to quote the name of > the command as such \h

Re: [NTG-context] Horizontal space and framedtext

2019-11-03 Thread Fabrice Couvreur
}\unknown {\it dé}\unknown Tant que {\it dé}\unknown Faire *\unknown* *\hspace[big]\unknow*n Fin Tant que \stopframedtext \stoptext Thanks. Fabrice Le dim. 3 nov. 2019 à 11:54, Wolfgang Schuster < wolfgang.schuster.li...@gmail.com> a écrit : > Fabrice Couvreur schrieb am 03.11.2019

  1   2   3   4   5   6   7   >