[NTG-context] Center a framedtext

2016-09-23 Thread Fabrice Couvreur
Hello, How to make the algorithm is centered vertically and horizontally ? thank you, Fabrice \defineframedtext [algorithmframe] [width=fit, background=color, backgroundcolor=lightgray, framecolor=darkred, corner=round] \definelines [algorithm] [space=on, before=\startalgor

Re: [NTG-context] Center a framedtext

2016-09-27 Thread Fabrice Couvreur
> > Hi Wolfgang, Thank you for your suggestion, but I think I was not clear enough. In fact, I want to place the algorithm as the image. Fabrice \defineframedtext [algorithmframe] [width=fit, background=color, backgroundcolor=lightgray, framecolor=darkred, corner=round] \definelin

Re: [NTG-context] Center a framedtext

2016-09-28 Thread Fabrice Couvreur
Hi Wolfgang, Thanks. Fabrice 2016-09-28 9:08 GMT+02:00 Wolfgang Schuster : > Fabrice Couvreur > 27. September 2016 um 22:02 > Hi Wolfgang, > Thank you for your suggestion, but I think I was not clear enough. In > fact, I want to place the algorithm as the image. > > Yo

[NTG-context] Question about natural tables

2016-10-09 Thread Fabrice Couvreur
Hello, I do not succeed in having two sub-columns of the same width in the third column. Thank you. Fabrice \useMPlibrary[dum] \startsetups[table:initialize] \setupTABLE[start][align={middle,lohi},offset=0.8ex] \setupTABLE[column][2][width=0.5\textwidth] \setupTABLE[column][3][width=0.4\tex

Re: [NTG-context] Question about natural tables

2016-10-09 Thread Fabrice Couvreur
Hi Wolfgang, Thanks Fabrice 2016-10-09 21:58 GMT+02:00 Wolfgang Schuster : > Fabrice Couvreur > 9. Oktober 2016 um 10:42 > > Hello, > I do not succeed in having two sub-columns of the same width in the third > column. > > Your table has four columns but you set only

[NTG-context] Question about structure

2016-10-21 Thread Fabrice Couvreur
Hello, How to compile the final chapter added (sequences/probabilites) without recompiling all the other chapters ? The command line is currently used context --purgeall cours.tex Thank you Fabrice \startproduct cours \project documents \startfrontmatter \component contents \stopfrontmatter

[NTG-context] A question about \startcombination[3*1] \stopcombination (again)

2016-10-25 Thread Fabrice Couvreur
Hello, I can not make three columns and one row. But three rows and one column, it is possible. Thank you Fabrice \defineframedtext [algorithmframe] [width=fit, bodyfont=8pt, background=color, location=middle, backgroundcolor=lightgray, framecolor=darkred, corner=round] \def

Re: [NTG-context] A question about \startcombination[3*1] \stopcombination (again)

2016-10-25 Thread Fabrice Couvreur
Hi Wolfgang, Thank you for your suggestion. But why use rather framed than framedtext ? Fabrice 2016-10-25 17:15 GMT+02:00 Wolfgang Schuster : > Fabrice Couvreur > 25. Oktober 2016 um 16:14 > Hello, > I can not make three columns and one row. But three rows and one column, it &

[NTG-context] Emacs24 + AucTeX + ConTeXt

2016-10-28 Thread Fabrice Couvreur
Hello, I just upgraded to emacs24 and am having problems compiling my files who compiled perfectly with emacs23. I installed AUCTeX with M-x-install package and that's it ! I deleted my old init.el file and start over ! The ~/.emacs.d only contains this : fab @ debian: ~ $ cd .emacs.d / fab @ debi

Re: [NTG-context] Emacs24 + AucTeX + ConTeXt

2016-10-28 Thread Fabrice Couvreur
: > I haven't checked in a while, since this is already set in my init.el > file, but auxtex was using mkii/texexec a few years ago. Have you checked > you're using mkiv/context? > > On October 28, 2016 6:04:27 AM PDT, Fabrice Couvreur < > fabrice1.couvr...@gmail

Re: [NTG-context] Emacs24 + AucTeX + ConTeXt

2016-10-29 Thread Fabrice Couvreur
TeX-run-TeX > nil > (context-mode) > :help "Run ConTeXt") > t)) > > I run emacs25 and auctex 11.89.5 without problems. > although i use auctex only for C-c C-c. > > Michael > > > On 28 Oct 2016, at 23:

Re: [NTG-context] Emacs24 + AucTeX + ConTeXt

2016-10-29 Thread Fabrice Couvreur
Hi, @Tobias If I add this to my .emacs I get (setenv "PATH"/Users/fab/tex/texmf-linux-64/bin/ ":$PATH" t) (add-to-list 'load-path "/home/fab/context/tex/texmf-linux-64/bin/context") Warning (initialization): An error occurred while loading `/home/fab/.emacs': Symbol's value as variable is void:

Re: [NTG-context] Emacs24 + AucTeX + ConTeXt

2016-10-30 Thread Fabrice Couvreur
iv lua stats > runtime: 0.587 seconds, 1 processed pages, 1 shipped pages, 1.704 pages/second system | total runtime: 0.831 seconds TeX Output finished at Sun Oct 30 10:09:20 ​Fabrice​ 2016-10-30 2:36 GMT+02:00 Michael Eidenbenz : > the command should be: > > (eval-after-load "te

Re: [NTG-context] Emacs24 + AucTeX + ConTeXt

2016-10-30 Thread Fabrice Couvreur
/bin/:$PATH“ > t) > (4) ;; (add-to-list 'load-path "/home/fab/context/tex/texmf- > linux-64/bin/context“) > (5) Restart Emacs > > C-c C-c should work, now. > > > ALOHA, tobber > > > > > > > > Am 29.10.2016 um 23:41 schrieb Fabrice Couvreu

Re: [NTG-context] Emacs24 + AucTeX + ConTeXt

2016-10-31 Thread Fabrice Couvreur
te-compile file RET RET’. > +++ > > (8) Switch from Mark II to Mark IV > > Now, Emacs should generally provide support to ConTeXt Mark IV. To compile > tex-files comfortable right out of Emacs via C-c C-c add: > > (9) (setenv "PATH" "/home/fab/tex/texmf-lin

Re: [NTG-context] Emacs24 + AucTeX + ConTeXt

2016-10-31 Thread Fabrice Couvreur
/home/fab/context/tex/texmf-linux-64/bin/context:/home/fab/bin:/usr/local/bin:/usr/bin:/bin:/usr/local/games:/usr/games:/texmf/tex/latex/tex4ebook-master/tex4ebook:/home/fab/texlive/2016/bin/x86_64-linux 2016-10-31 10:18 GMT+01:00 Peter Münster : > On Mon, Oct 31 2016, Fabrice Couvreur wr

Re: [NTG-context] Emacs24 + AucTeX + ConTeXt

2016-10-31 Thread Fabrice Couvreur
Hi Peter, It seems to work ! Thank you to Peter, Tobias, Michael and Mica for your help Fabrice 2016-10-31 11:59 GMT+01:00 Peter Münster : > On Mon, Oct 31 2016, Fabrice Couvreur wrote: > > > /home/fab/context/tex/texmf-linux-64/bin/context:... > > Please replace this with /ho

Re: [NTG-context] Emacs24 + AucTeX + ConTeXt

2016-10-31 Thread Fabrice Couvreur
Sorry, but I have one question: how to add the option -- purgeall ? Fabrice 2016-10-31 14:16 GMT+01:00 Fabrice Couvreur : > Hi Peter, > It seems to work ! > Thank you to Peter, Tobias, Michael and Mica for your help > Fabrice > > 2016-10-31 11:59 GMT+01:00 Peter Münster : &

Re: [NTG-context] Emacs24 + AucTeX + ConTeXt

2016-10-31 Thread Fabrice Couvreur
Hi Peter, Thank you very much. 2016-10-31 15:22 GMT+01:00 Peter Münster : > On Mon, Oct 31 2016, Fabrice Couvreur wrote: > > > how to add the option -- purgeall ? > > (setq ConTeXt-mode-hook > (lambda () (setq TeX-command-extra-options "--purgeall&quo

[NTG-context] Framedtext in a float

2016-10-31 Thread Fabrice Couvreur
Hello, How to make the width of framedtext automatically adapts to its contents. Fabrice \definefloat [recipe] [figure] \setupfloat [recipe] [default={right,none}] \definecolor[MyColorA][r=0.8784, g=0.8784, b=0.8784] \definecolor[MyColorB][c=0.00,m=0.27,y=1.00,k=0.00] \defineframed

Re: [NTG-context] Framedtext in a float

2016-11-01 Thread Fabrice Couvreur
Piotr Kopszak : > Just use > ... > \startMyFrame[Title=Info] > \setupalign[hyphenated,morehyphenation,verytolerant] > ... > > Piotr > > 2016-11-01 0:12 GMT+01:00 Fabrice Couvreur : > > Hello, > > How to make the width of framedtext automatically adapts to it

Re: [NTG-context] Framedtext in a float

2016-11-01 Thread Fabrice Couvreur
10:47 GMT+01:00 Fabrice Couvreur : > > Hello, > > The option align = tolerant rule one of the problems I may encounter. > But I > > wonder if it's possible that I should not choose myself width = 6cm to > fit > > the text. If I have to use the command several times with

Re: [NTG-context] Asymptote or Metapost and ConTeXt parameters.

2016-12-19 Thread Fabrice Couvreur
Hello, I do not answer the question, but I'm interested because I also use Asymptote. The following code works with context in texlive 2016 but does not work with standalone context. thank you, Fabrice % macros=mkvi \usemodule[filter] \defineexternalfilter [ASY] [ filter={asy -tex "con

[NTG-context] integral symbol

2016-12-28 Thread Fabrice Couvreur
Hello, The integral symbol is little in inline math mode. Is it possible to have it bigger ? thank you, Fabrice \definetypeface [mainface] [rm] [serif] [palatino][default] [encoding=texnansi] \definetypeface [mainface] [ss] [sans] [helvetica] [default] [encoding=texnansi] \defin

Re: [NTG-context] integral symbol

2016-12-28 Thread Fabrice Couvreur
Hi Henri, Thank you for your suggestion. Fabrice 2016-12-28 12:19 GMT+01:00 Henri Menke : > On 12/28/2016 11:39 AM, Fabrice Couvreur wrote: > > Hello, > > The integral symbol is little in inline math mode. Is it possible to > have it bigger ? > > thank you, > > F

Re: [NTG-context] integral symbol

2016-12-29 Thread Fabrice Couvreur
Hi Hans, Thanks for your solution. I created a macro, is it "robust" ? Fabrice \setupmathextensible[integral][rightoffset=-3mu,exact=yes,factor=2] \def\integ#1#2#3{\math{\autointegral{#1}{#2}{#3}\diff x}} \starttext \integ{4}{1}{g(x)} \stoptext 2016-12-28 18:40 GMT+01:00 Hans Hagen : > On 12/

[NTG-context] Table on two pages (natural tables)

2017-01-10 Thread Fabrice Couvreur
Hello, My table does not fit on the first page that contains the title of the evaluation and I would like it to continue on the second page. I tried using the key split = yes but my table moves to the second page and there is more than the title of the first. thank you, Fabrice

[NTG-context] Title without the parentheses

2017-01-29 Thread Fabrice Couvreur
Hello, I would like a title without the parentheses and the text "Exercice" in the frame with the number. Thank you. Fabrice \defineframed [EXFRAME] [frame=off, offset=0pt, location=low, width=\struttotal, background=color, backgroundcolor=darkred, foregroundcolor=white, f

Re: [NTG-context] Title without the parentheses

2017-01-29 Thread Fabrice Couvreur
instance \MyTextCommand and the say text = > \MyTextCommand > > Best regrads: OK > > On 29 Jan 2017, at 09:07, Fabrice Couvreur > wrote: > > Hello, > I would like a title without the parentheses and the text "Exercice" in > the frame with the number. > T

Re: [NTG-context] Title without the parentheses

2017-01-31 Thread Fabrice Couvreur
> > > \showgrid > \starttext > > \startex{Pour tous les candidats \hfill 5 points} > \input ward > \stopex > > \stoptext > %% end > > On 29 Jan 2017, at 23:04, Fabrice Couvreur > wrote: > > Hello Kavian, > Thank you for your answer, it's

[NTG-context] sqrt(3)/2 with metafun

2017-02-02 Thread Fabrice Couvreur
Hello, I wanted to use sqrt(3)/2 but without success. Instead, I replaced this value with an approximate value 0.866 How should it be done ? Thank you Fabrice \starttext \startMPcode draw fullcircle scaled 1cm withcolor magenta ; draw fullcircle scaled 1cm shifted (1cm,0) withcolor magent

Re: [NTG-context] sqrt(3)/2 with metafun

2017-02-02 Thread Fabrice Couvreur
Hi Michael, Thanks, it's ok. Fabrice 2017-02-02 22:02 GMT+01:00 Rogers, Michael K : > This seems to work in place of 0.866cm: sqrt(3)/2*cm > > Michael > > On Feb 2, 2017, at 3:54 PM, Fabrice Couvreur > wrote: > > Hello, > I wanted to use sqrt(3)/2 but without s

[NTG-context] Customize a table with Metafun

2017-02-14 Thread Fabrice Couvreur
Hello, In the code below, the red vertical line extends beyond the edges of the cell. Thank you Fabrice \startuniqueMPgraphic{Vertical} linecap:=squared ; path p ; p := unitsquare xyscaled (OverlayWidth,OverlayHeight) ; drawoptions (withpen pencircle withcolor \MPcolor{red}) ; draw .5[llc

[NTG-context] Vertical spacing in enumerations

2017-02-14 Thread Fabrice Couvreur
In the code below, the vertical spacing of the second level should be like that of the first level Thank you Fabrice \definecolor[MyBlue][c=0.06 , m=0.03, y=0.00, k=0.00] \defineframed [algorithmframe] [width=\textwidth, align=normal, strut=no, offset=1ex, foregroundstyle={\switch

Re: [NTG-context] Customize a table with Metafun

2017-02-15 Thread Fabrice Couvreur
Hi Lutz, Thank you Fabrice 2017-02-14 17:04 GMT+01:00 Lutz Haseloff : > linecap:=butt ; > > > Am 14. Februar 2017 16:53:04 MEZ schrieb Fabrice Couvreur < > fabrice1.couvr...@gmail.com>: >> >> Hello, >> In the code below, the red vertical line extends be

[NTG-context] Text around a figure

2017-04-14 Thread Fabrice Couvreur
Is it possible that the first line of text starts at the top of the figure? Blablablablablablablablablablablabla ## blablablablablablablabla Fig blablablablablablablabla ## blablablablablablablabla \starttext \placefigure [left,none] {} {\externalfigure[rafting.jpg][width=4cm

Re: [NTG-context] Text around a figure

2017-04-15 Thread Fabrice Couvreur
Hi Rik, Thank you, I did not follow the forum this week, I should have seen it. Fabrice 2017-04-14 18:44 GMT+02:00 Rik Kabel : > On 2017-04-14 10:36, Fabrice Couvreur wrote: > > Is it possible that the first line of text starts at the top of the figure? > > Blablablablablablabla

[NTG-context] Align an item with the top of a picture

2017-04-17 Thread Fabrice Couvreur
Hello, How to align item a. With the top of the picture? Thank you Fabrice \useMPlibrary[dum] \starttext \startlinecorrection[blank] \startmidaligned \startcombination[2*1] {\externalfigure[dummy][height=6cm]}{} {\framedtext[location=hang,width=5cm,frame=off]{\startitemize[a] \item \item \item \

[NTG-context] Real number with Lua

2017-04-19 Thread Fabrice Couvreur
Hello, I do not know Lua but I'll learn later. How to display only 3 digits after the decimal point ? thank you, Fabrice \starttext \startlinecorrection[blank] \startmidaligned \bTABLE[width=2cm,offset=0.8ex,align={lohi,middle}] \bTR \bTD \math{P} \eTD \bTD \m

Re: [NTG-context] Real number with Lua

2017-04-19 Thread Fabrice Couvreur
2017-04-19 16:04 GMT+02:00 Otared Kavian : > > \starttext > \ctxlua{x = math.floor(10^3*math.pi)/10^3; context(x)} > \stoptext > ​Hi Kavian (or Otared ?), ​Thank you very much, it works. Fabrice ___ If your question

[NTG-context] Strange behavior with Enumerations

2017-05-08 Thread Fabrice Couvreur
Hello, The alignment of the third level is incorrect, why ? ## \starttext \startitemize[n][stopper={.},style=bold,color=darkred] \item Soit \math{f} la fonction définie pour tout réel \m{x} différent de \m{-1} par \math{f(x)=\dfrac{x+2}

Re: [NTG-context] Strange behavior with Enumerations

2017-05-10 Thread Fabrice Couvreur
Hello, I just updated Context Standalone, but the problem still exists. With Texlive Context, it works. Fabrice Le 8 mai 2017 à 12:27, Fabrice Couvreur a écrit : > Hello, > The alignment of the third level is incorrec

[NTG-context] Bug with Enumeration and \dfrac{}{} with Standalone ?

2017-05-14 Thread Fabrice Couvreur
Hello, I am posting again on the same subject but with more precision. I use Standalone Context in its latest version. We can observe that the alignment is not correct with \dfrac{}{} but it is with {}\ over{}. But if I use Texlive 2016 there are no problems. Thank you Fabrice

[NTG-context] Package esvect and Context

2017-05-26 Thread Fabrice Couvreur
Hello, Hans suggested a macro to draw the vectors . It works well but I find that in some situations, the arrow is too big. thank you, Fabrice https://mailman.ntg.nl/pipermail/ntg-context/2016/085828.html \useMPlibrary[mat] \startMPextensions vardef math_stacker_arrow_shape = imag

Re: [NTG-context] Package esvect and Context

2017-05-27 Thread Fabrice Couvreur
Thanks Hans Fabrice 2017-05-27 0:09 GMT+02:00 Hans Hagen : > On 5/26/2017 12:53 PM, Fabrice Couvreur wrote: > >> Hello, >> Hans suggested a macro to draw the vectors . It works well but I find >> that in some situations, the arrow is too big. >> thank you, >&g

[NTG-context] About Layout

2017-07-29 Thread Fabrice Couvreur
Hello, With Latex, for my layout, I used this : \documentclass[a4paper,11pt]{article} \usepackage[left=2cm,right=2cm,top=2cm,bottom=2cm]{geometry} With Context, I did this : \setuppapersize[A4][A4] \setuplayout [ topspace=2cm, header=0pt, footer=1.5cm, bottomspace=0pt, backspac

Re: [NTG-context] About Layout

2017-07-31 Thread Fabrice Couvreur
9 one inch + \ voffset 10 \ topmargin = -52pt 11 \ headsep = 25pt 12 \ textwidth = 483pt 13 \ marginparwidth = 50pt 14 \ marginparpush = 5pt (not shown) 15 \ voffset = 0pt 16 \ paperheight = 845pt Fabrice 2017-07-29 13:03 GMT+02:00 Pablo Rodriguez : > On 07/29/2017 12:07 PM, Fabrice Couvre

[NTG-context] About \setupbackgrounds

2017-07-31 Thread Fabrice Couvreur
https://tex.stackexchange.com/questions/84425/fancyhdr-equivalent-in-context Hello, I considered the solution proposed by Aditya. How to have a larger space between the title and the bottomframe ? Thank you Fabrice \setupbodyfont[11pt] \setupcolors[state=start] \setuplayout [header=2\lineheight

Re: [NTG-context] About \setupbackgrounds

2017-08-01 Thread Fabrice Couvreur
hajan : > On Mon, 31 Jul 2017, Fabrice Couvreur wrote: > > https://tex.stackexchange.com/questions/84425/fancyhdr-equiv >> alent-in-context >> >> Hello, >> I considered the solution proposed by Aditya. How to have a larger space >> between the title and the bot

Re: [NTG-context] About \setupbackgrounds

2017-08-02 Thread Fabrice Couvreur
Hi Aditya, \defineframed [headerframed] [ ..., location=depth, ..., ] Fabrice 2017-08-01 12:21 GMT+02:00 Fabrice Couvreur : > Hi Aditya, > Neither command responds to what I'm trying to do. I will try to be > clearer. If we look at the letter J,

[NTG-context] About \setupbackgrounds (again)

2017-08-09 Thread Fabrice Couvreur
Hello, How do I make the header appear on the first page only ? Thank you Fabrice \setuplayout [header=2\lineheight, headerdistance=\lineheight, backspace=2cm, width=middle, topspace=\lineheight] \setupbackgrounds[header,state=start][text][frame=off, bottomframe=on,framecolor=gray,r

Re: [NTG-context] About \setupbackgrounds (again)

2017-08-09 Thread Fabrice Couvreur
HI Pablo, This works perfectly Thank you Fabrice 2017-08-09 16:23 GMT+02:00 Pablo Rodriguez : > On 08/09/2017 02:59 PM, Fabrice Couvreur wrote: > > Hello, > > How do I make the header appear on the first page only ? > > Thank you > > Fabrice > > Hello Fabr

[NTG-context] Space from bottom footer to bottom rim of paper

2017-08-09 Thread Fabrice Couvreur
I want topspace=bottomspace=2cm It works for topspace but not for bottomspace How to do ? Thanks Fabrice \setuplayout [header=26pt, headerdistance=25pt, backspace=2cm, width=middle, topspace=\dimexpr 2cm-\headerheight-\headerdistance\relax, footer=16pt, bottomspace=\dimexpr 2cm

Re: [NTG-context] Space from bottom footer to bottom rim of paper

2017-08-09 Thread Fabrice Couvreur
bottomframe=on, framecolor=gray, rulethickness=2pt] \defineframed[headerframed] [frame=off, location=depth, bottomoffset=\lineheight, align=middle,

[NTG-context] How can I add “page # of ##” on my document ?

2017-08-09 Thread Fabrice Couvreur
Hello, With Latex, I did this : \usepackage[colorlinks=true,pdfstartview=FitV,linkcolor=blue,citecolor=blue,urlcolor=blue]{hyperref} \rfoot{\scriptsize{\textsf{Page~\thepage{}~sur~\pageref{LastPage With Context, I tried this unsuccessfully ; \setupinteraction [state=start, style=,

Re: [NTG-context] How can I add “page # of ##” on my document ?

2017-08-10 Thread Fabrice Couvreur
Hi Hans and Pablo, \setuppagenumbering[alternative=] \setupfootertexts[Page \pagenumber\ sur\ \lastpage][] The behavior is not that expected: Page 1 sur 0 Page 2 sur 0 Page 3 sur 0 Thanks Fabrice 2017-08-10 9:57 GMT+02:00 Hans Hagen : > On 8/9/2017 11:42 PM, Fabrice Couvreur wr

Re: [NTG-context] How can I add “page # of ##” on my document ?

2017-08-10 Thread Fabrice Couvreur
ge \pagenumber\ sur\ \lastpage][] > > \starttext > > \dorecurse{5}{\input knuth.tex \page} > > \stoptext > > Best regards: OK > > On 10 Aug 2017, at 11:28, Fabrice Couvreur > wrote: > > Hi Hans and Pablo, > > \setuppagenumbering[alternative=] > > \s

Re: [NTG-context] How can I add “page # of ##” on my document ?

2017-08-10 Thread Fabrice Couvreur
Hi, @Aditya "You need multiple runs to resolve \lastpage" What you propose does not solve the problem @Pablo Very nice job ! Thanks Merci 2017-08-10 18:54 GMT+02:00 Pablo Rodriguez : > On 08/10/2017 12:35 PM, Fabrice Couvreur wrote: > > [...] > > How to make the las

Re: [NTG-context] How can I add “page # of ##” on my document ?

2017-08-11 Thread Fabrice Couvreur
Hi Peter and Aditya, "You run the command "ConTeXt Full" instead of "ConTeXt" It works ! Thank you Fabrice 2017-08-11 9:30 GMT+02:00 Peter Münster : > On Thu, Aug 10 2017, Aditya Mahajan wrote: > > > You need to remove the --once call from the context call. (Not sure > > how to do this in Emac

[NTG-context] STIX Two Text and Math

2017-08-12 Thread Fabrice Couvreur
Hi, Hello, Has anyone ever used these fonts ? If so, do you need to write a script to use them ? Thank you Fabrice ___ If your question is of interest to others as well, please add an entry to the Wiki! maillist : ntg

Re: [NTG-context] STIX Two Text and Math

2017-08-12 Thread Fabrice Couvreur
Hi Hans, I downloaded the fonts and it works perfectly. What do you think are the finest fonts for writing a book with mathematics ? Are Cambria fonts free ? If so where can they be downloaded ? Thank you Fabrice 2017-08-12 13:01 GMT+02:00 Hans Hagen : > On 8/12/2017 11:49 AM, Fabrice Couvr

[NTG-context] About formatting the "Fonts out of ConTEXT" manual

2017-08-15 Thread Fabrice Couvreur
Hi Hans, I love the style used for this manual. I tried to do the same thing, but it's a long way off ! I tried to find the source code to inspire me :-) I did this : \startuniqueMPgraphic{titled} path p ; p := unitsquare xscaled \overlaywidth yscaled \overlayheight ; pickup pencircle scaled

Re: [NTG-context] About formatting the "Fonts out of ConTEXT" manual

2017-08-16 Thread Fabrice Couvreur
Hi Henri, Thanks for the information. Fabrice 2017-08-16 2:16 GMT+02:00 Henri : > On Tue, 2017-08-15 at 12:35 +0200, Fabrice Couvreur wrote: > > Hi Hans, > > I love the style used for this manual. I tried to do the same thing, but > it's a long way off ! > > I tri

[NTG-context] About \setupheadertexts : simplify a code

2017-08-17 Thread Fabrice Couvreur
Hello, To get the alignment, I had to create three \vbox. Can we simplify this code a bit ? Thank you Fabrice % macros=mkvi \setuplayout [header=3\lineheight, headerdistance=\lineheight] \setupbackgrounds[header][text] [frame=off, bottomframe=on,

[NTG-context] Strange behavior with enumeration

2017-08-17 Thread Fabrice Couvreur
Hi, Level two items are not on the same baseline. Thank you Fabrice \starttext \startitemize[n] \item 15\,\% d'un stock de 12\,000 jouets sont des jouets \quotation{1\high{\tfxx er} âge}. Le nombre de jouets \quotation{1\high{\tfxx er} âge} est : \startitemize[columns,a,three] \item \math{\

[NTG-context] Strange behavior with the Garamond font

2017-08-17 Thread Fabrice Couvreur
Hello, I compiled the following document with Context Standalone and viewed the file with Evince, it is not readable ! Thanks Fabrice \loadtypescriptfile[mathdesign] \setupbodyfont[garamond] \starttext \input knuth \stoptext

Re: [NTG-context] Strange behavior with the Garamond font

2017-08-17 Thread Fabrice Couvreur
vngaramondno8 vngaramondno8reg ugmr8v.afm fab@debian:~$ Thanks Fabrice 2017-08-17 21:03 GMT+02:00 Pablo Rodriguez : > On 08/17/2017 08:28 PM, Fabrice Couvreur wrote: > > Hello, > > I compiled the following document with Context Standalone and viewed the > > file

Re: [NTG-context] About \setupheadertexts : simplify a code

2017-08-18 Thread Fabrice Couvreur
tya Mahajan wrote: > > > > On Fri, 18 Aug 2017, Henri wrote: > > > >> On Thu, 2017-08-17 at 15:25 +0200, Fabrice Couvreur wrote: > >>> Hello, > >>> To get the alignment, I had to create three \vbox. Can we simplify > this code a bit ? > >&g

Re: [NTG-context] About \setupheadertexts : simplify a code

2017-08-18 Thread Fabrice Couvreur
! Illegal parameter number in definition of \MyHeader > and stops typesetting pointing to the command \stoptexdefinition. > > What am I missing here? > Thanks for your attention: OK > > > On 18 Aug 2017, at 06:25, Aditya Mahajan wrote: > > > > On Fri, 18 Aug 2017, H

Re: [NTG-context] About \setupheadertexts : simplify a code

2017-08-18 Thread Fabrice Couvreur
mplains saying that > ! Illegal parameter number in definition of \MyHeader > and stops typesetting pointing to the command \stoptexdefinition. > > What am I missing here? > Thanks for your attention: OK > > > On 18 Aug 2017, at 06:25, Aditya Mahajan wrote: > > &g

Re: [NTG-context] About \setupheadertexts : simplify a code

2017-08-18 Thread Fabrice Couvreur
Hello, It's ok for me if I compile the Aditya file. I have another problem with a simple structure. I created the file MyLayout.tex containing the macro and I want to call this macro in the dm1.tex file, but it does not work. Thank you Fabrice # MyLayout.tex # % macros=mkvi \star

Re: [NTG-context] Strange behavior with the Garamond font

2017-08-18 Thread Fabrice Couvreur
-Regular CID Type 0C Identity-H yes yes yes 10 0 2017-08-18 20:17 GMT+02:00 Aditya Mahajan : > On Thu, 17 Aug 2017, Fabrice Couvreur wrote: > > When I speak of non-readable, I mean it looks like "hieroglyphics". >> > > Try > > mtxrun --

Re: [NTG-context] About \setupheadertexts : simplify a code

2017-08-18 Thread Fabrice Couvreur
Hi Rik, Can you clarify by editing my files ? Fabrice 2017-08-18 23:57 GMT+02:00 Rik Kabel : > On 2017-08-18 17:34, Fabrice Couvreur wrote: > > Hello, > It's ok for me if I compile the Aditya file. > I have another problem with a simple structure. I created the file > MyLa

Re: [NTG-context] About \setupheadertexts : simplify a code

2017-08-18 Thread Fabrice Couvreur
:14, Fabrice Couvreur wrote: > > Hi Rik, > Can you clarify by editing my files ? > Fabrice > > 2017-08-18 23:57 GMT+02:00 Rik Kabel : > >> On 2017-08-18 17:34, Fabrice Couvreur wrote: >> >> Hello, >> It's ok for me if I compile the Aditya file. >>

Re: [NTG-context] About \setupheadertexts : simplify a code

2017-08-18 Thread Fabrice Couvreur
Hi Aditya it does not work 2017-08-19 1:01 GMT+02:00 Fabrice Couvreur : > If I test this file, it does not work > > % macros=mkvi > > \startcomponent dm-1 > > \environment MyLayout > > \MyHeader{Seconde}{17}{08}{2017}{Devoir surveillé}{1}{1h\,30m} > &

Re: [NTG-context] About \setupheadertexts : simplify a code

2017-08-18 Thread Fabrice Couvreur
I turn around !! It does not work 2017-08-19 1:15 GMT+02:00 Rik : > On 2017-08-18 19:01, Fabrice Couvreur wrote: > > If I test this file, it does not work > > % macros=mkvi > > \startcomponent dm-1 > > \environment MyLayout > > \MyHeader{Seconde}{17}{08}{2

Re: [NTG-context] About \setupheadertexts : simplify a code

2017-08-19 Thread Fabrice Couvreur
Hello, I have tried many approaches, but it still does not work. Everything is passed to the dm-1.tex file (font, footer) but not the header. Have you tested the files, does it work for you ? Sorry to insist, but I really need this way of doingThank you Fabrice ## MyLayout.mkvi ##

Re: [NTG-context] About \setupheadertexts : simplify a code

2017-08-19 Thread Fabrice Couvreur
Hi Aditya, Thank you very much !! I did not know that it was necessary to use \environment instead of \component, it is probably in the documentation Fabrice 2017-08-19 12:35 GMT+02:00 Aditya Mahajan : > On Sat, 19 Aug 2017, Fabrice Couvreur wrote: > > Hello, >> I have tried many

[NTG-context] Alignment problem in a table

2017-08-22 Thread Fabrice Couvreur
Hello, How to align the text of the seventh line to the left ? Thanks Fabrice \unexpanded\def\pcent#1{\math{#1\,\%}} \startsetups [table:one] \setupTABLE[start][align={middle,lohi},width=2.2cm,offset=0.8ex] \setupTABLE[column][first][width=2.5cm,align={right}] \setupTABLE[1][1][frame=of

[NTG-context] Problem with placing a float and a tab

2017-08-22 Thread Fabrice Couvreur
Hello, How should the table be placed correctly ? Thanks Fabrice \unexpanded\def\pcent#1{\math{#1\,\%}} \startsetups [table:one] \setupTABLE[start][align={middle,lohi},width=2.2cm,offset=0.8ex] \setupTABLE[column][first][width=2cm,align={right}] \setupTABLE[1][1][frame=off] \setupTAB

[NTG-context] Background with rounded corners (Metafun)

2017-08-22 Thread Fabrice Couvreur
Hello, I would like to have three corners rounded as in the figure. Thank you Fabrice \definecolor[MyColorA][r=0.8784, g=0.8784, b=0.8784] \definecolor[MyColorB][c=0.00,m=0.27,y=1.00,k=0.00] \startuseMPgraphic{MyFrame} path b ; picture p ; p := textext.rt("\bf\tfx\white\framedtextparameter{Tit

Re: [NTG-context] Background with rounded corners (Metafun)

2017-08-22 Thread Fabrice Couvreur
Hi Aditya, Sorry I forgot to attach the image of what I want to do. I know corner=number parameter of framed and framed text but I wanted to do it with Metafun. Thank you Fabrice 2017-08-23 0:50 GMT+02:00 Aditya Mahajan : > On Wed, 23 Aug 2017, Fabrice Couvreur wrote: > > Hello, >&g

Re: [NTG-context] Background with rounded corners (Metafun)

2017-08-22 Thread Fabrice Couvreur
With your solution 'corner=01' 2017-08-23 1:01 GMT+02:00 Fabrice Couvreur : > Hi Aditya, > Sorry I forgot to attach the image of what I want to do. I know corner=number > parameter of framed and framed text but I wanted to do it with Metafun. > Thank you > Fabrice >

Re: [NTG-context] Background with rounded corners (Metafun)

2017-08-22 Thread Fabrice Couvreur
Sorry 'corner=00' ! 2017-08-23 1:01 GMT+02:00 Fabrice Couvreur : > Hi Aditya, > Sorry I forgot to attach the image of what I want to do. I know corner=number > parameter of framed and framed text but I wanted to do it with Metafun. > Thank you > Fabrice > > 2

[NTG-context] Some questions about my document

2017-08-24 Thread Fabrice Couvreur
Hello, I would like to have this : Chapitre I : Espaces probabilisés I.1 - Expérience aléatoire et univers Définition 1.1 Définition 1.2 Thank you Fabrice % \definestructureconversionset [structure] [numbers, Rom

[NTG-context] Draw a line under the headertext in ConTeXt except some pages

2017-08-24 Thread Fabrice Couvreur
Hi, How to proceed so that the text of the head is not on the page with the table of contents and pages with the title of the chapter ? Thanks Fabrice \setuplayout [ header=\lineheight, headerdistance=\lineheight, ] \setupbackgrounds[header][text][bottomframe=on] \setupheadertexts[{\

Re: [NTG-context] Draw a line under the headertext in ConTeXt except some pages

2017-08-24 Thread Fabrice Couvreur
-24 18:12 GMT+02:00 Pablo Rodriguez : > On 08/24/2017 05:10 PM, Fabrice Couvreur wrote: > > Hi, > > How to proceed so that the text of the head is not on the page with the > > table of contents and pages with the title of the chapter ? > > Hi Fabrice, > > to the

Re: [NTG-context] Strange behavior with the Garamond font

2017-08-24 Thread Fabrice Couvreur
ID - --- --- --- - AHYUQI+GaramondNo8-Regular CID Type 0C Identity-H yes yes yes 10 0 It still does not work ! Fabrice 2017-08-18 23:41 GMT+02:00 Fabrice Couvreur : > Hi, > @Aditya &g

Re: [NTG-context] Strange behavior with the Garamond font

2017-08-25 Thread Fabrice Couvreur
25 Aug 2017, Fabrice Couvreur wrote: > > Hello, >> I reinstalled the fonts in : >> >> fab@debian:~$ ls -l /home/fab/texmf/fonts/opentype/ >> total 16 >> drwxr-xr-x 2 fab fab 4096 août 25 02:14 ebgaramond >> drwxr-xr-x 5 fab fab 4096 avril 11 2016 fourier-GU

Re: [NTG-context] Some questions about my document

2017-08-26 Thread Fabrice Couvreur
[title={First section}] \dorecurse{3}{\startremark \input ward \stopremark} \stopsection \stopchapter \stoptext % 2017-08-24 14:53 GMT+02:00 Fabrice Couvreur : > Hello, > I would like to have this : > > > > Chapitre I : Es

Re: [NTG-context] Some questions about my document

2017-08-26 Thread Fabrice Couvreur
t for this Remark 1.1. Remark 1.2 Remark 1.3 I do not find ! Fabrice 2017-08-26 12:27 GMT+02:00 Fabrice Couvreur : > Hi, > I have simplified the code, but I get : > > Remark I.1. > Remark I.2. > Remark I.3. > > instead : > > Remark 1.1. > R

Re: [NTG-context] Some questions about my document

2017-08-27 Thread Fabrice Couvreur
.1. and I want this : Remark 1.1. Fabrice 2017-08-27 11:03 GMT+02:00 Pablo Rodriguez : > On 08/27/2017 12:14 AM, Fabrice Couvreur wrote: > > " I would like to have this : > > > > Chapitre I : Espaces probabilisés > > > > I.1 - Expérience aléatoire et univ

Re: [NTG-context] Some questions about my document

2017-08-27 Thread Fabrice Couvreur
Hi Pablo, Thank you, it's very clear and it finally corresponds to what I want. The road is long in the learning of this formidable tool ! Fabrice 2017-08-27 12:43 GMT+02:00 Pablo Rodriguez : > On 08/27/2017 12:29 PM, Fabrice Couvreur wrote: > > Hi Pablo, > > > >

Re: [NTG-context] Strange behavior with the Garamond font

2017-08-27 Thread Fabrice Couvreur
JIWHN+GaramondNo8-Regular CID Type 0C Identity-H yes yes yes 10 0 fab@debian:~$ 2017-08-25 12:03 GMT+02:00 Fabrice Couvreur : > Hi Aditya, > The first time I have downloaded since http://wiki. > contextgarden.net/URW_Garamond with the result you know. Then I did a >

Re: [NTG-context] Strange behavior with the Garamond font

2017-08-27 Thread Fabrice Couvreur
Is this an impression but, of equal size, it seems smaller than other fonts. 2017-08-27 13:10 GMT+02:00 Fabrice Couvreur : > Hi, > Here's what I get, is this correct ? > Thank you > Fabrice > > fab@debian:~$ pdffonts layout25.pdf > name

Re: [NTG-context] Background with rounded corners (Metafun)

2017-08-30 Thread Fabrice Couvreur
, ] to have my text wrapped around the ornament as in the figure but it does not work. Thanks Fabrice 2017-08-23 1:20 GMT+02:00 Fabrice Couvreur : > Sorry 'corner=00' ! > > 2017-08-23 1:01 GMT+02:00 Fabrice Couvreur : > >> Hi Aditya, >> Sorry I forgot to attach

Re: [NTG-context] Background with rounded corners (Metafun)

2017-08-30 Thread Fabrice Couvreur
Hi Pablo, I speak of the text in the frame as in the image https://mail.google.com/mail/u/0/?ui=2&ik=d5d294e54c&view=att&th=15e0c2d8c5b8cf7c&attid=0.1&disp=safe&realattid=f_j6o6zsx20&zw Fabrice 2017-08-30 22:45 GMT+02:00 Pablo Rodriguez : > On 08/30/2017 06:07 PM,

[NTG-context] Font DejaVu with a font for Mathematics

2017-09-06 Thread Fabrice Couvreur
Hello, I use for the documents of my students the font DejaVu because I find that it is very readable on paper. Unfortunately, this is not a font for writing Mathematics. I would like to use DejaVu font for text and a font to write mathematical formulas. What do you recommend ? Thank you. Fabrice _

Re: [NTG-context] Font DejaVu with a font for Mathematics

2017-09-06 Thread Fabrice Couvreur
Sorry for the noise ! It is true that \math{\cal N}, it is not very beautiful, so I will associate another font even if it should avoid, I believe, to write documents with different fonts Fabrice 2017-09-06 18:53 GMT+02:00 Herbert Voss : > > Fabrice Couvreur schrieb: > > >

[NTG-context] \setupheadertexts except on pages with title of chapter

2017-09-06 Thread Fabrice Couvreur
Hello, I would like that on the pages with the title of the chapter the header is empty. Fabrice \setupheadertexts[{\getmarking[section]}][pagenumber] [{\getmarking[chapter]}][pagenumber] \setuppagenumbering[alternative=,location=] \starttext \placelist[chapter,secti

<    1   2   3   4   5   6   7   8   >