[NTG-context] Text around a figure

2019-04-24 Thread Fabrice Couvreur
Hi, Why does bold text touch the figure ? Thank you. Fabrice \definefloat [recipe] [figure] \setupfloat [recipe] [default={right,none}] \starttext \placerecipe{}{ \setupbodyfont[8pt,pagella] \startMPcode path p, q ; p:= unitsquare xyscaled (1.5cm,1.5

[NTG-context] several blocks of text in the margin

2019-04-27 Thread Fabrice Couvreur
Hi How to put several blocks of text in the margin without them encroaching each other ? Thank. Fabrice \setuplayout [width=12cm, rightmargin=5cm] \definemathmatrix [pmatrix][matrix:parentheses][simplecommand=MATRIX] \unexpanded\def\pcent#1{#1\,\%} \defineuserdata [margintext] [alternative=

[NTG-context] Alignment

2019-05-13 Thread Fabrice Couvreur
Hi, Not having too many ideas, I did this: is there not a more elegant way ? Thank you. Fabrice \definemathmatrix [pmatrix][matrix:parentheses][simplecommand=MATRIX] \starttext \startmidaligned \startxtable[align={middle,lohi},frame=off,offset=0.8ex] \startxrow

[NTG-context] Some macros (Metafun)

2019-08-09 Thread Fabrice Couvreur
Hello, In the Metafun manual, Hans uses macros like drawpath p ; drawcontrollines p ; drawpoints p ; drawcontrolpoints p ... How to use them in a document ? Where to find source codes ? For example, the following code does not work : \starttext \startuseMPgraphic{path} path p ; p := (1cm,1cm)--

Re: [NTG-context] Some macros (Metafun)

2019-08-11 Thread Fabrice Couvreur
Hi Hans, Sorry but I did not see your email. What is the default color used to draw the path p ? Thank you. Le ven. 9 août 2019 à 13:12, Hans Hagen a écrit : > On 8/9/2019 10:57 AM, Fabrice Couvreur wrote: > > Hello, > > In the Metafun manual, Hans uses macros

[NTG-context] Frame with shadow for header

2019-08-26 Thread Fabrice Couvreur
Hello, How to make a frame with an offset shadow as the attached picture ? The text inside the frame is a variable. Thank you. Fabrice [image: frame.png] ___ If your question is of interest to others as well, please a

Re: [NTG-context] Frame with shadow for header

2019-08-27 Thread Fabrice Couvreur
no 7 : Dérivation} \stoptext Le lun. 26 août 2019 à 11:31, Mikael P. Sundqvist a écrit : > On Mon, Aug 26, 2019 at 10:25 AM Fabrice Couvreur < > fabrice1.couvr...@gmail.com> wrote: > >> Hello, >> How to make a frame with an offset shadow as the attached picture ? T

Re: [NTG-context] Frame with shadow for header

2019-08-28 Thread Fabrice Couvreur
Hi Mikael, Thank you, it works. Fabrice Le mar. 27 août 2019 à 19:11, Henning Hraban Ramm a écrit : > And here’s the code for a fuzzy shadow: > https://wiki.contextgarden.net/Drop_shadows > > Greetlings, Hraban > --- > https://www.fiee.net > http://wiki.contextgarden.net > https://www.dreivierte

[NTG-context] Problem of displaying a date with a macro

2019-08-28 Thread Fabrice Couvreur
Hello, The date display is incorrect : I get day 28 instead of day 2. Thank you Fabrice \defineframed [headerframed] [frame=off, height=fit, width=fit] \definecolor[ColorA][0.8(white)] \startsetups [headertext] \setupheadertexts [{\startframed [headerframed]

[NTG-context] Border in xtable

2019-09-01 Thread Fabrice Couvreur
Hello, In the table below, why the border of the first line is not drawn ? Thank you Fabrice \definecolor[ColorA][0.8(white)] \definecolor[ColorB][0.9(white)] \starttext \startxtable [align={lohi,middle}, width=2cm,bodyfont=11pt] \startxrow[background=color,backgroundcolor=ColorA,foregr

Re: [NTG-context] Problem of displaying a date with a macro

2019-09-09 Thread Fabrice Couvreur
Hello, I just updated my version of ConTeXt and the bug is still present. Can you confirm ? Thank you. Fabrice Le mer. 28 août 2019 à 16:34, Aditya Mahajan a écrit : > On Wed, 28 Aug 2019, Fabrice Couvreur wrote: > > > Hello, > > The date display is incorrect : I get day 2

[NTG-context] Size of the font (Metapost + xtable)

2019-09-23 Thread Fabrice Couvreur
Hello, I can not change the font size of my figures in the table. Thank you Fabrice \usecolors[xwi] \startbuffer[myfigure] \dontleavehmode \startMPcode defaultfont := "texgyrepagella-regular*default" ; defaultscale :=0.8 ;

[NTG-context] About \textrule [ ]

2019-10-01 Thread Fabrice Couvreur
Hello, The top line is in the text, how to fix this problem ? Thank you. Fabrice \setuptextrules[width=0.5cm] \define[1]\ProprieteHeadcommand {\textrule[top]{#1}} \defineenumeration [propriete] [text=Propriété, title=yes, headstyle={bold}, alternative=serried, style=italic,

Re: [NTG-context] About \textrule [ ]

2019-10-01 Thread Fabrice Couvreur
Thank you for your suggestions, Fabrice Le mar. 1 oct. 2019 à 11:35, Taco Hoekwater a écrit : > > > > On 1 Oct 2019, at 11:09, Fabrice Couvreur > wrote: > > > > Hello, > > The top line is in the text, how to fix this problem ? > > % alternative=ser

Re: [NTG-context] new (lmtx) beta

2019-10-05 Thread Fabrice Couvreur
Hi Hans, Where is this documentation ? Thank you. Fabrice Le ven. 4 oct. 2019 à 21:34, Mikael P. Sundqvist a écrit : > On Fri, Oct 4, 2019 at 6:11 PM Hans Hagen wrote: > >> Hi, >> >> I uploaded a new lmtx beta. Again some more metafun trickery (see >> luametafun manual). I attached an (lmtx o

Re: [NTG-context] new (lmtx) beta

2019-10-06 Thread Fabrice Couvreur
Hello, Thanks. Fabrice Le sam. 5 oct. 2019 à 12:53, Mikael P. Sundqvist a écrit : > Den lör 5 okt. 2019 09:45Wolfgang Schuster < > wolfgang.schuster.li...@gmail.com> skrev: > >> Fabrice Couvreur schrieb am 05.10.2019 um 09:39: >> >> Hi Hans, >> Where is t

[NTG-context] Unexpected symbol with Enumeration

2019-10-15 Thread Fabrice Couvreur
Hello, Why items are numbered with a square instead of a bullet ? Thanks. Fabrice \definecolor[MyColorC][s=0.8784] \definecolor[MyColorD][m=0.27,y=1] \defineframed [FrameTitle] [frame=off, foregroundstyle=\bfx\ss, foregroundcolor=white, background=color,

Re: [NTG-context] Unexpected symbol with Enumeration

2019-10-15 Thread Fabrice Couvreur
o define your own mixture of math fonts and text > fonts. > > Best regards: OK > > > On 15 Oct 2019, at 18:39, Fabrice Couvreur > wrote: > > La droite \m{(AM)} est {\bf une sécante} à la courbe > {\setupbodyfont[xits]\m{{\mathscript C}}} en \m{A}. > > > >

Re: [NTG-context] Unexpected symbol with Enumeration

2019-10-16 Thread Fabrice Couvreur
ce the command $\cal{C}$ the script font from > Asana Math is used, instead of from Lucida OT. > > Best regards: OK > > On 15 Oct 2019, at 21:57, Fabrice Couvreur > wrote: > > Hello, > Thanks to you two. > "Another solution is to define your own mixture of math fonts a

[NTG-context] Problem with the bottom line of a header

2019-10-22 Thread Fabrice Couvreur
Hello, I can not adjust the bottom line of my header even after playing with location= and boffset.= Thank you. Fabrice \definelayout [first] [topspace=1cm, backspace=3cm, cutspace=3cm, leftmargin=.75cm, leftmargindistance=.5cm, rightmargin=1.25cm, rightmargin

[NTG-context] A question about an algorithm environment

2019-10-28 Thread Fabrice Couvreur
Hi Wolfgang, Why in the first example, the indentation of my Python code that I wish is not respected and that I have to do as the second example to have what I want ? Thank you. Fabrice \defineframedtext [algorithmframe] [width=fit, location=middle, foregroundstyle={\tt\switchto

[NTG-context] Horizontal space and framedtext

2019-11-03 Thread Fabrice Couvreur
Hello, The \hspace [ ] command has no effect in an environment framedtext. Why ? Thank you. Fabrice \usecolors[xwi] \starttext \startframedtext[width=fit,frame=off, background=color,backgroundcolor=paleturquoise] {\it lancers}\unknown {\it dé}\unknown Tant que {\it dé}\unknown Faire \hspace[

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

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 \hspac

[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" } contex

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

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 problem i

[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 \startframedt

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 >

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

[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] 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 xscal

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

[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] 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. > > No,

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

[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] 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} \def

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

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

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

[NTG-context] Metapost and TikZ color code equivalent

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

Re: [NTG-context] 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

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-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 achieve &g

[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] 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] 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] 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] 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} )

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

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

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

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 > &

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

[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" } context.startxtable({"

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

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

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

2020-04-03 Thread Fabrice Couvreur
--autopdf 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: > >

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

[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 pgfplotsbinary.data.

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

2020-04-07 Thread Fabrice Couvreur
7 which is not the case by 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, > >

[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 \startframedtext

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

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

2020-04-08 Thread Fabrice Couvreur
exited abnormally with 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

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-13 Thread Fabrice Couvreur
9.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-13 Thread Fabrice Couvreur
2020 à 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

[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] Text around an image

2020-04-17 Thread Fabrice Couvreur
12:33, 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 [du

[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] Passing the parameters of a frame in an environment \startMPcode ... \stopMPcode

2020-04-20 Thread Fabrice Couvreur
crit : > 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

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 PM, Aditya Mahaja

[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]{\externalfigu

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 noticed

Re: [NTG-context] Image cropped

2021-09-12 Thread Fabrice Couvreur via ntg-context
t@ntg.nl> a écrit : > Fabrice Couvreur via ntg-context schrieb am 11.09.2021 um 17:52: > > Hi Wolfgang, > The red frame is the print area ? > > > The *green* frame are the margins of the A4 paper which is positioned in > the middle of the A3 paper. > > The larger pa

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

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

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

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

2021-12-28 Thread Fabrice Couvreur via ntg-context
Hi, In my file cours_premiere.tex if I indicate \startbodymatter \component[probabilites.tex] \stopbodymatter I get the following error message tex error > tex error on line 49 in file ./cours_premiere.tex: Undefined control sequence \pgfmath@settrigformat \pgfmath@settrigf

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 H

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

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

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

[NTG-context] Numbercommand and title

2022-08-12 Thread Fabrice Couvreur via ntg-context
Hello, How to make the period after the number be after the second parenthesis when there is a title like this Définition 1.1 (Title). ? Thanks Fabrice \definestructureconversionset [structure] [n, R, n, n, n] [n] \defineconversionset [digit] [] [

[NTG-context] Special numbering

2022-08-17 Thread Fabrice Couvreur via ntg-context
Hello, how to get this Définition 1.1. Proposition 1.2. Définition 1.3. Proposition 1.4. Thanks Fabrice \setupenumerations [before={\blank}, after={\blank}, alternative=serried, distance=0.5em, title=yes, titleleft=, titleright=, titlestyle=normal, prefix=yes, prefixs

Re: [NTG-context] Special numbering

2022-08-17 Thread Fabrice Couvreur via ntg-context
Hi Aditya, Thanks for your help, it works perfectly. Fabrice Le mer. 17 août 2022 à 17:48, Aditya Mahajan via ntg-context < ntg-context@ntg.nl> a écrit : > On Wed, 17 Aug 2022, Fabrice Couvreur via ntg-context wrote: > > > Hello, > > how to get this > > Défin

[NTG-context] Size of all subscripts

2022-08-22 Thread Fabrice Couvreur via ntg-context
Hello How to reduce the size of all subscripts in math mode ? Thanks Fabrice \usemodule[tikz] \protected\def\vector#1{% \starttikzpicture[baseline=(arg.base),>=stealth] \node[inner xsep=0pt] (arg) {\m{#1}}; \draw[thick,->,shorten >=-1pt] (arg.north west) -- (arg.north east); \s

[NTG-context] About macro numberstriped ()

2022-09-27 Thread Fabrice Couvreur via ntg-context
Hello, I notice a strange behavior of the macro numberstriped ( ). Thanks. Fabrice \starttext \switchtobodyfont[9pt] \startMPcode path p, q, r, b ; p := unitsquare xyscaled (4cm,4cm) ; z[0] = (2cm,0cm) ; z[1] = (2cm,4cm) ; z[2] = (0cm,2cm) ; q := llcorner p--z[0]--z[1]--z[2]--cycle

Re: [NTG-context] About macro numberstriped ()

2022-09-28 Thread Fabrice Couvreur via ntg-context
Hi Hans, Thank you for this solution which is an approach that I did not know. Fabrice PS : What is the exact meaning of the word "blobs" because my English is average ? Le mar. 27 sept. 2022 à 22:04, Hans Hagen via ntg-context < ntg-context@ntg.nl> a écrit : > On 9/27/20

Re: [NTG-context] About macro numberstriped ()

2022-10-01 Thread Fabrice Couvreur via ntg-context
-context@ntg.nl> a écrit : > Am 28.09.22 um 15:29 schrieb Hans Hagen via ntg-context: > > On 9/28/2022 3:11 PM, Fabrice Couvreur via ntg-context wrote: > >> PS : What is the exact meaning of the word "blobs" because my English > >> is average ? > > in or

Re: [NTG-context] About macro numberstriped ()

2022-10-02 Thread Fabrice Couvreur via ntg-context
? > > On Sat, Oct 1, 2022 at 7:43 PM Fabrice Couvreur via ntg-context > wrote: > > > > Hi Hans, > > When the rectangles are not identical, how to have the same type of > hatching in both ? > > Thanks. > > Fabrice > > > > > > \starttext >

Re: [NTG-context] About macro numberstriped ()

2022-10-02 Thread Fabrice Couvreur via ntg-context
p) ; label.ulft("A", p) ; label.urt("D", p) ; label.urt("F", lrcorner r) ; label.lft("E", llcorner r) ; label.top("G", urcorner r) ; \stopMPcode Le dim. 2 oct. 2022 à 11:21, Floris van Manen via ntg-context < ntg-conte

Re: [NTG-context] About macro numberstriped ()

2022-10-02 Thread Fabrice Couvreur via ntg-context
Hans Hagen via ntg-context a écrit : > On 10/2/2022 11:20 AM, Floris van Manen via ntg-context wrote: > > > > > > On 02/10/2022 10:55, Fabrice Couvreur via ntg-context wrote: > >> Initially, there was a bug with maro numberstriped() and Hans > >> suggested anot

Re: [NTG-context] About macro numberstriped ()

2022-10-02 Thread Fabrice Couvreur via ntg-context
Ok, it works very well. Without wanting to insist, how to have the same hatching with two different figures ? Thanks. Fabrice Le dim. 2 oct. 2022 à 13:38, Hans Hagen via ntg-context a écrit : > On 10/2/2022 1:02 PM, Fabrice Couvreur via ntg-context wrote: > > I just tried but I got

Re: [NTG-context] About macro numberstriped ()

2022-10-02 Thread Fabrice Couvreur via ntg-context
Hi Mikael, Great job ! Thanks Fabrice Le dim. 2 oct. 2022 à 15:37, Mikael Sundqvist via ntg-context < ntg-context@ntg.nl> a écrit : > Hi, > > On Sun, Oct 2, 2022 at 3:26 PM Hans Hagen via ntg-context > wrote: > > > > On 10/2/2022 3:13 PM, Fabrice Couvreur via n

[NTG-context] Create the values of a sequence with Lua

2022-10-31 Thread Fabrice Couvreur via ntg-context
Hi, The idea is to fill the array with the sequence defined by p(0) = 0.3 and p(n + 1) = 0.3 + 0.7*p(n) The problem is that I don't really master Lua but I will learn when I have some time! Thanks for your help. Fabrice \starttext \startluacode context.startxtable({"align={middle,lohi},width=2cm,b

<    2   3   4   5   6   7   8   >