Re: [NTG-context] Importing pdf into MPpage

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

Re: [NTG-context] Importing pdf into MPpage

2022-06-11 Thread Fabrice L via ntg-context
d I approach this? Like this ? \startMPpage draw externalfigure "thefile.pdf"; (… other commands…) \stopMPpage > > Sincerely, > Stefan Fabrice. > ___ > If your question is o

Re: [NTG-context] Problem with a defined colour in MetaFun

2022-04-28 Thread Fabrice L via ntg-context
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, >> >

Re: [NTG-context] Problem with a defined colour in MetaFun

2022-04-28 Thread Fabrice L via ntg-context
urntSienna},white]); fill unitsquare xscaled 5cm yscaled .5cm shifted (7cm,i*cm) withcolor(r[\MPcolor{myColor1}, white]); fill unitsquare xscaled 5cm yscaled .5cm shifted (13cm,i*cm) withcolor(r[\MPcolor{"myColor1"}, wh

Re: [NTG-context] Font too small with a macro

2022-04-23 Thread Fabrice Couvreur via ntg-context
Hi, I didn't know that \exp was already defined. Thanks Fabrice Le sam. 23 avr. 2022 à 15:28, Mikael Sundqvist via ntg-context < ntg-context@ntg.nl> a écrit : > On Sat, Apr 23, 2022 at 12:11 PM Fabrice Couvreur via ntg-context > wrote: > > > > Hello, > > If I com

[NTG-context] Font too small with a macro

2022-04-23 Thread Fabrice Couvreur via ntg-context
Hello, If I compile with context the expected result is correct but with lmtx the font under the square root is smaller. Thank you Fabrice \protected\def\exp{\text{\normal exp}} \starttext \startformula \sqrt{\exp(x)}=\exp\left(\frac{x}{2}\right). \stopformula \stoptext

[NTG-context] the resolver databases are not present or outdated

2022-03-05 Thread Fabrice Couvreur via ntg-context
Hello, Some files no longer compile, I tried updating lmtx but I get this. Thank you Fabrice viserion@archlinux LMTX]$ install install.sh install: opérande de fichier cible manquant après 'install.sh' Saisissez « install --help » pour plus d'informations. [viserion@archlinux LMTX]$ sh install.sh

Re: [NTG-context] new upload

2022-01-15 Thread Fabrice Couvreur via ntg-context
Hi Hans I just updated lmtx and this macro does not work although it did before. On the other hand, no problem with context. Thanks. Fabrice \protected\def\e#1{\math{{\rm e}^{#1}}\autoinsertnextspace} \starttext \startformula \e{a+b} \stopformula \stoptext Le sam. 15 janv. 2022 à 16:14, Hans

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

2022-01-11 Thread Fabrice L via ntg-context
ground is really deleted. You can try to select the text in any pdf view/editor, the text is gone ! Fabrice. > > > % \enablemode[solution] > > % Define "mysolution” for use independent of solution mode. > \definenarrower[mysolution] > [before=\blank\it, > after

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

2022-01-02 Thread Fabrice L via ntg-context
etafun editor, and if you need some help to set it up, I can describe my setup in details. Fabrice. > > ___ > If your question is of interest to others as well, please add an entry to the > Wiki! &g

[NTG-context] Strange behavior with \startbodymatter ... \stopbodymatter

2021-12-28 Thread Fabrice Couvreur via ntg-context
ut exited abnormally with code 1 at Tue Dec 28 15:31:31 On the other hand, if I indicate \component[probabilites.tex] the file compiles without error. Thanks Fabrice ___ If your question is of interest to others as well, p

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
rcleA xshifted 2in ; draw newcircleA withcolor darkgreen ; newcircleB := (circleB cutafter P1) -- (P1 -- P2) -- (circleB cutbefore P2 ) & cycle ; newcircleB := newcircleB xshifted 2in ; draw newcircleB withcolor black ; drawpoints newcircleA ; drawpointlabels newcircleA ; \stopMPpag

Re: [NTG-context] Status of Asymptote

2021-12-06 Thread Fabrice L via ntg-context
computational work. This is not easy, but the diagrams are super fast, > and I think they will always work. I would be very interested to see an example of a Metafun drawing made with the help of LuaTeX to speed up some calculations. Thanks

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
MWE — Blocks and modes usually works fine for me, but here, I do not understand my error. Thanks for any help ! Fabrice. Note : in case this way of doing things seems a bit silly, here are more explanations. I do use mode « CourseOne » here because in the real life, the cont

[NTG-context] Compilation error with the new version of lmtx

2021-10-16 Thread Fabrice Couvreur via ntg-context
Hi, The latest version of lmtx does not allow me to compile the following file although there was no problem before. Thank you Fabrice \startproduct[expertes-manual] \startfrontmatter \setuppagenumbering [location=] \definefont [ChapterTextStyle] [SansBold*default

[NTG-context] Framedtext : text out of frame

2021-09-26 Thread Fabrice Couvreur via ntg-context
Hi, How to fix the small problem in the code below where the text goes out of the frame ? Thanks Fabrice \usecolors[x11] \starttext \startframedtext[frame=off,width=\textwidth, align={broad,right},indenting={yes},background=color,backgroundcolor=navajowhite1] \startitemize[columns,three

Re: [NTG-context] Image cropped

2021-09-13 Thread Fabrice Couvreur via ntg-context
Hi Wolfgang, I had done the same thing but I thought this solution was not the most elegant, and I wanted to know what the specialists were going to do. Thank you. Fabrice Le dim. 12 sept. 2021 à 16:50, Wolfgang Schuster via ntg-context < ntg-context@ntg.nl> a écrit : > Fabrice Couvreu

Re: [NTG-context] Image cropped

2021-09-12 Thread Fabrice Couvreur via ntg-context
Hi Wolfgang, That's what I understood but the problem is that if I reduce the margin, the logo is too small in my opinion : what would you do ? Indeed the line is green but you will have understood: =) Fabrice Le sam. 11 sept. 2021 à 19:17, Wolfgang Schuster via ntg-context < ntg-context@ntg

Re: [NTG-context] Image cropped

2021-09-11 Thread Fabrice Couvreur via ntg-context
Hi Wolfgang, The red frame is the print area ? Le sam. 11 sept. 2021 à 16:43, Wolfgang Schuster via ntg-context < ntg-context@ntg.nl> a écrit : > Fabrice Couvreur via ntg-context schrieb am 11.09.2021 um 16:32: > > Hello, > I like to put a logo on my statements but I noti

[NTG-context] Image cropped

2021-09-11 Thread Fabrice Couvreur via ntg-context
Hello, I like to put a logo on my statements but I noticed that the image is cropped on the edge. I tried to change the printer's print settings but was unsuccessful. Thanks Fabrice \setuplayout[width=middle,height=middle] \setupfootertexts [margin] [] [{\offset[y=\strutdp

Re: [NTG-context] getting line numbers

2021-09-05 Thread Fabrice Couvreur via ntg-context
Hi, I am trying to test this file but without success. I just do context test.tex but I suspect that is not it. When you say > We compile and run: > Which command is it with ? Thanks Fabrice Le ven. 3 sept. 2021 à 18:26, Hans Hagen via ntg-context a écrit : > On 9/3/2021 3:53 P

Re: [NTG-context] Test for displaying a header

2021-08-26 Thread Fabrice Couvreur via ntg-context
}{\samplefile[lorem]r} \stoptext %%% Fabrice Le jeu. 26 août 2021 à 17:56, Wolfgang Schuster via ntg-context < ntg-context@ntg.nl> a écrit : > Taco Hoekwater via ntg-context schrieb am 26.08.2021 um 16:34: > > > > Hi, > > > >> On 26 Aug 2021, at 16:

[NTG-context] Test for displaying a header

2021-08-26 Thread Fabrice Couvreur via ntg-context
. Thanks 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.ntg.nl/mailman/listinfo/ntg-context webpage : http://www.pragma-ade.nl

[NTG-context] Place a logo at the bottom of the page with a layer

2021-08-24 Thread Fabrice Couvreur via ntg-context
Hi, I want to insert a logo at the bottom of the page on the right on the first page, on the left on the second, on the right on the third ... With the key repeat=yes, the logo is always at the bottom right Thanks Fabrice \useMPlibrary[dum] \definelayer [MyLogo] [x=0mm, y=0mm, width

[NTG-context] Adjustment for header and footer

2021-08-22 Thread Fabrice Couvreur via ntg-context
Hi, In the file below (not minimal, sorry!) I am using commands from Wolfgang in different threads. We can see that the top frame overflows into the text: how to correct this ? I would also like the top and bottom stroke to be adjusted to the width of the paper. Thanks Fabrice \useMPlibrary[dum

[NTG-context] Strange behavior of a macro

2021-08-16 Thread Fabrice Couvreur via ntg-context
Hello, I don't understand why this macro works with this simple example but return the following error if I use it for chapters in my book. Thanks Fabrice \setupbodyfont [newcomputermodern-book,11pt] \unexpanded\def\N{\math{\mathbb{N}}\autoinsertnextspace} \defineenumeration [test

Re: [NTG-context] How not to display the header of the chapter page on the page with the table of contents ?

2021-08-16 Thread Fabrice Couvreur via ntg-context
Le dim. 15 août 2021 à 19:03, Wolfgang Schuster via ntg-context < ntg-context@ntg.nl> a écrit : > Pablo Rodriguez via ntg-context schrieb am 15.08.2021 um 18:33: > > On 8/15/21 6:02 PM, Fabrice Couvreur via ntg-context wrote: > >> A small note : this method works if I comp

[NTG-context] Adjustment in the table of contents

2021-08-16 Thread Fabrice Couvreur via ntg-context
] \setuplist [section][margin=1em] \setuplist [subsection] [margin=2.75em] Thanks 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] How not to display the header of the chapter page on the page with the table of contents ?

2021-08-15 Thread Fabrice Couvreur via ntg-context
Hi Pablo, The second solution works as I want it to Thanks Fabrice Le dim. 15 août 2021 à 18:33, Pablo Rodriguez via ntg-context < ntg-context@ntg.nl> a écrit : > On 8/15/21 6:02 PM, Fabrice Couvreur via ntg-context wrote: > > A small note : this method works if I compile the p

Re: [NTG-context] How not to display the header of the chapter page on the page with the table of contents ?

2021-08-15 Thread Fabrice Couvreur via ntg-context
A small note : this method works if I compile the project but if I compile only one chapter, the header no longer appears. Le dim. 15 août 2021 à 17:01, Fabrice Couvreur a écrit : > Hi Pablo, > Thanks, it works. > Fabrice > > Le dim. 15 août 2021 à 16:20, Pablo Rodriguez via ntg-

Re: [NTG-context] How not to display the header of the chapter page on the page with the table of contents ?

2021-08-15 Thread Fabrice Couvreur via ntg-context
Hi Pablo, Thanks, it works. Fabrice Le dim. 15 août 2021 à 16:20, Pablo Rodriguez via ntg-context < ntg-context@ntg.nl> a écrit : > On 8/15/21 12:49 PM, Fabrice Couvreur via ntg-context wrote: > > Hello, > > Wolfgang created a > > heading https://mailman.ntg.nl/piperm

[NTG-context] How not to display the header of the chapter page on the page with the table of contents ?

2021-08-15 Thread Fabrice Couvreur via ntg-context
Hello, Wolfgang created a heading https://mailman.ntg.nl/pipermail/ntg-context/2021/102870.html for the chapters of my book. How can I prevent this header from appearing on the page with the table of contents ? Thanks Fabrice

Re: [NTG-context] Create an enumeration style

2021-08-11 Thread Fabrice Couvreur via ntg-context
I forgot this : how to reduce the font size for the exponents "er", "e" ? Thanks Fabrice Le mer. 11 août 2021 à 12:41, Fabrice Couvreur a écrit : > Hi Wolfgang, > Many thanks > Fabrice > > Le mer. 11 août 2021 à 10:23, Hans Hagen via ntg-context < > n

Re: [NTG-context] Create an enumeration style

2021-08-11 Thread Fabrice Couvreur via ntg-context
Hi Wolfgang, Many thanks Fabrice Le mer. 11 août 2021 à 10:23, Hans Hagen via ntg-context a écrit : > On 8/11/2021 10:09 AM, Otared Kavian via ntg-context wrote: > > > > > >> On 9 Aug 2021, at 18:10, Wolfgang Schuster via ntg-context < > ntg-context@ntg.nl>

[NTG-context] Create an enumeration style

2021-08-08 Thread Fabrice Couvreur via ntg-context
Hello, Is it possible to create an enumeration style to get this : 1 ^ {er} exemple 2 ^ {e} exemple 3 ^ {e} exemple Thanks Fabrice ___ If your question is of interest to others as well, please add an entry

Re: [NTG-context] Question about \groupedcommand{}{}

2021-07-28 Thread Fabrice Couvreur via ntg-context
Hi Wolfgang, Thank you for this nice solution. Fabrice Le mar. 27 juil. 2021 à 21:31, Wolfgang Schuster via ntg-context < ntg-context@ntg.nl> a écrit : > Fabrice Couvreur via ntg-context schrieb am 27.07.2021 um 18:57: > > Hi, > > The name of the environment must alway

[NTG-context] Question about \groupedcommand{}{}

2021-07-27 Thread Fabrice Couvreur via ntg-context
Hi, The name of the environment must always end with a dot both with a title and without title. How to do ? Thanks Fabrice \setupenumerations [before={\blank}, after={\blank}, alternative=serried, title=yes, titleleft={(}, titleright={)}, titlestyle=normal, titlecommand

[NTG-context] Macro that does not work in an environment

2021-07-27 Thread Fabrice Couvreur via ntg-context
Hello, How to make the macro work in the environment definition ? Thank you Fabrice \unexpanded\def\card#1{\math{\text{Card}\thinspace#1}} \defineenumeration [definition] [text=Définition, number=no, headcommand=\groupedcommand{}{.}, style=italic] \starttext

[NTG-context] Adjust the length of a frame

2021-07-27 Thread Fabrice Couvreur via ntg-context
-- Forwarded message - De : Fabrice Couvreur Date: lun. 26 juil. 2021 à 13:13 Subject: Texte source 30 / 5000 Résultats de traduction Adjust the length of a frame To: mailing list for ConTeXt users Hello, Following on from my previous questions for writing my book (thanks again

Re: [NTG-context] Adjust the length of a frame

2021-07-27 Thread Fabrice Couvreur via ntg-context
Le lun. 26 juil. 2021 à 13:13, Fabrice Couvreur a écrit : > Hello, > Following on from my previous questions for writing my book (thanks again > Wolfgang), I have to create a solution environment like the attached image. > My problem is adjusting the length of the frame. > Thank

[NTG-context] Texte source 30 / 5000 Résultats de traduction Adjust the length of a frame

2021-07-26 Thread Fabrice Couvreur via ntg-context
Hello, Following on from my previous questions for writing my book (thanks again Wolfgang), I have to create a solution environment like the attached image. My problem is adjusting the length of the frame. Thank you. Fabrice \setupbodyfont[newcomputermodern-book,11pt] \defineframed [ACFRAME

Re: [NTG-context] Metapost Animation of Sine

2021-07-21 Thread Fabrice L
> Here is another way to do your animation. This is doing something, but I guess not what you want. Could you describe what do you have in mind ? \starttext \dorecurse{7}{ % 3180 \startMPpage myvariable := #1 ; path p; numeric n, u;

Re: [NTG-context] Problem with chapter numbering

2021-07-15 Thread Fabrice Couvreur
Hi Bruce, Thanks for the suggestion, it works fine. Fabrice Le mer. 14 juil. 2021 à 22:54, Bruce Horrocks a écrit : > On 13 Jul 2021, at 18:47, Fabrice Couvreur > wrote: > > > > Hi, > > For my book, the header for each chapter should be like the attached > image.

[NTG-context] Problem with chapter numbering

2021-07-13 Thread Fabrice Couvreur
. Thanks. Fabrice ### \definecolor[MyColorA][r=0.8784, g=0.8784, b=0.8784] \defineframedtext [FramedText] [ offset=0.6em, style=, toffset=\lineheight, background=color, backgroundcolor

Re: [NTG-context] Header for a book

2021-07-13 Thread Fabrice Couvreur
Hi, My first solution is incorrect ; with the second solution, I don't understand why the first chapter is not numbered while the second is with number 1. Thanks. Fabrice \unexpanded\def\HeadTitle#1#2% { \FramedText{{\cap\labeltext{chapter}}\space#1 \\ \bfc#2} } \unexpanded

[NTG-context] Header for a book

2021-07-12 Thread Fabrice Couvreur
in the body of the text. Thanks for your help. Fabrice \definecolor[MyColorA][r=0.8784, g=0.8784, b=0.8784] \defineframedtext [FramedText] [ offset=0.6em, style=, toffset=\lineheight, background=color, backgroundcolor=MyColorA

Re: [NTG-context] Footer

2021-07-06 Thread Fabrice Couvreur
Hi Wolfgang, Thank you very much for this very nice solution ; my knowledge of ConTeXt is unfortunately not at this level. If I can afford I must do the following header [image: pied_3.png] Many thanks. Fabrice Le lun. 5 juil. 2021 à 20:20, Wolfgang Schuster < wolfgang.schuster.li...@gmail.

[NTG-context] Footer

2021-07-05 Thread Fabrice Couvreur
er. Thanks for your help. Fabrice \setupfootertexts [{\getmarking[chapter]}] [{\pagenumber}] [{\pagenumber}] [Chapter\space\pagenumber] \starttext \startchapter [title=First chapter] \dorecurse{10}{\input knuth} \stopchapter \startchapter [title=Second chapter] \dorecurse{10}{\i

Re: [NTG-context] upload / some new math stuff

2021-06-11 Thread Fabrice Couvreur
Hi Hans, I am not a font specialist and I use pagella and modern. I'm curious so I installed this new font in /home/viserion/LMTX/tex/texmf/fonts/opentype/public/newcomputermodern I tested your file and I get the following message Thank you Fabrice Running `lmtx' on `hans-33' with ``/home

[NTG-context] mathscript in math mode

2021-05-13 Thread Fabrice Couvreur
Hi, Is it possible to run the macro in math mode ? Thank you Fabrice \usebodyfont [stix] \setupbodyfont[modern] \setupmathematics[stylealternative=calligraphic] \unexpanded\def\CScript#1#2{\start\switchtobodyfont[stixtwo] \m{{\mathscript{#1}}_{#2}}\stop} \unexpanded\def\cscript#1{\start

[NTG-context] LuaMetaFun MPinclusions doublefun

2021-05-02 Thread Fabrice L
arch the making list for examples, but did not not found anything. 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 / h

Re: [NTG-context] Macro to write a letter with \ mathscript{}

2021-04-18 Thread Fabrice Couvreur
Hi Hans and Wolfgang, I have tried your suggestions and it seems to work. Thank you so much. Fabrice Le sam. 17 avr. 2021 à 19:04, Wolfgang Schuster < wolfgang.schuster.li...@gmail.com> a écrit : > Fabrice Couvreur schrieb am 17.04.2021 um 16:30: > > Hi, > This is goi

[NTG-context] Macro to write a letter with \ mathscript{}

2021-04-17 Thread Fabrice Couvreur
Hi, This is going to be difficult to explain because the code below works but in a project with many components does not. Actually the macro does not work in the definition environment in my project but in the same environment of this simple code yes. Thank you for your possible help. Fabrice

[NTG-context] Alignment with an enumeration

2021-04-12 Thread Fabrice Couvreur
Hi, Is it possible that the first item is on the baseline of the definition environment title ? Thank you. Fabrice \define\ItemCommand {\hskip\zeropoint\relax\autoinsertnextspace} \setupitemgroup [itemize] [color=darkred, style=bold, distance=\spaceamount] \setupitemgroup

[NTG-context] Center a text (Metafun)

2021-03-06 Thread Fabrice Couvreur
Hi Hans, Some time ago, you offered this code to respond to a specific request from me. I used this code again and wanted to know if it was possible for the title "Algorithm" to be automatically centered based on the content. Thank you Fabrice \definecolor[MyBlue][c=0.2 , m=0.03, y=0.

Re: [NTG-context] Lua code and table

2021-02-20 Thread Fabrice Couvreur
Hi Hans The xx.tex file works for me Thanks Fabrice Le ven. 19 févr. 2021 à 14:28, Hans Hagen a écrit : > On 2/19/2021 2:12 PM, Jano Kula wrote: > > Hi, > > > > On Fri, 19 Feb 2021 at 13:06, Hans Hagen > <mailto:j.ha...@xs4all.nl>> wrote: > > > >

Re: [NTG-context] Lua code and table

2021-02-19 Thread Fabrice Couvreur
Hi Hans, Thanks again for the ideas to improve my code. However, I am new to Lua and my level is far from sufficient to understand everything. Why in no table do the crosses appear in the cells; which was my original idea. Thank you. Fabrice Le jeu. 18 févr. 2021 à 16:28, Fabrice Couvreur

Re: [NTG-context] Lua code and table

2021-02-18 Thread Fabrice Couvreur
Hello Jano, Thanks. Fabrice Le jeu. 18 févr. 2021 à 16:27, Jano Kula a écrit : > Hello Fabrice, > > > > On Thu, 18 Feb 2021 at 16:19, Fabrice Couvreur < > fabrice1.couvr...@gmail.com> wrote: > >> Hi all, Thanks to you, I'm not at your level with Lua, but I'm lea

Re: [NTG-context] Lua code and table

2021-02-18 Thread Fabrice Couvreur
32 context.stopxcell() 33 end mtx-context | fatal error: return code: 256 TeX Output exited abnormally with code 1 at Thu Feb 18 16:13:29 Thank you very much Fabrice Le jeu. 18 févr. 2021 à 10:06, Hans Hagen a écrit : > On 2/18/2021 12:22 AM, Br

[NTG-context] Lua code and table

2021-02-17 Thread Fabrice Couvreur
Hi, The code works, but is it possible to make it shorter ? Thank you Fabrice \startuseMPgraphic{DiagonalRule} rulethickness := \frameddimension{rulethickness}; drawoptions( withpen pencircle scaled rulethickness withcolor \MPcolor{\framedparameter{framecolor}}); pair

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
re. I will be glad to contribute to the wiki in any way people think would be useful. > Hans > Fabrice. > - > Hans Hagen | PRAGMA ADE > Ridderstraat 27 |

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
give more details of the process. https://youtu.be/3x03g-eHFC8 <https://youtu.be/3x03g-eHFC8> Fabrice. > Le 3 févr. 2021 à 12:09, Hans Hagen a écrit : > > Hi, > > So, in context, we can do text, and we can do graphics, and also fonts, now > do we also need an inter

[NTG-context] Hatch a cell : meta:hash:left

2021-01-16 Thread Fabrice Couvreur
Hi, I seem to have seen a method for hatching the cell of a table, but maybe it's my imagination. The following code does not work. Thanks for your help. Fabrice ## hatching.tex # \setupcolors[state=start] \usemodule[xwi] \starttext \startxtable [align={lohi

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
; c := (10, 10) ; pair d ; d := (10, 1) ; path square ; square := (a--b--c--d--cycle) xsized .75TextWidth ; draw square xsized .75TextWidth; draw thelabel.lft("α",point 0 of square) ; draw thelabel.lft("β",point 1 of square) ; draw thelabel.top("γ",point 2 of squ

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

2020-12-25 Thread Fabrice L
ing like: pair checkintersec ; checkintersec := p[1] intersectiontimes p[2] ; If xpart(checkintersec) <> -1 : draw textext("yes »); else: draw textext(« non »); fi; Fabrice. > > Best regards, > > Jairo > _

[NTG-context] Problem with \dfrac{}{} with lmtx updated

2020-12-24 Thread Fabrice Couvreur
Hi, I just updated lmtx and I don't understand the error that occurs with the \dfrac{}{}. Thank you. Fabrice # \starttext \m{f(x)=\dfrac{a + b\ln(x)}{x}} \stoptext # tex error > tex error on line 2 in file ./hans_21.tex: Math error: parame

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

2020-12-09 Thread Fabrice L
cm withcolor blue ; draw (z1--z2) withcolor red ; \stopMPpage \stoptext Fabrice. > > Thanks for any help: Otared > > > ___ > If your question is of interest to others as well, please add

Re: [NTG-context] Several lines under a limit

2020-11-28 Thread Fabrice Couvreur
Hi Wolfgang, I knew the \substack command exists with latex but not with context, thanks a lot. Fabrice Le sam. 28 nov. 2020 à 16:29, Wolfgang Schuster < wolfgang.schuster.li...@gmail.com> a écrit : > Fabrice Couvreur schrieb am 28.11.2020 um 15:57: > > Hi, > > Is there

[NTG-context] Several lines under a limit

2020-11-28 Thread Fabrice Couvreur
Hi, Is there a command that allows to write multiple lines under the command \lim ? I tried but ... Cordially Fabrice \starttext \startformula \lim_{ \vbox{\startalign \NC x \to 2 \NR \NC x > 2 \NR \stopalign}}=+\infty \stopformula \stopt

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

  1   2   3   4   5   6   7   8   9   >