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

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

<    1   2   3   4   5   6   7   8   9   10   >