Re: [NTG-context] ! Missing = inserted for \ifnum.

2014-01-01 Thread Fabrice Couvreur
Hello, Thank you, the problem is solved. Fabrice 2014/1/1 Wolfgang Schuster schuster.wolfg...@gmail.com Am 01.01.2014 um 01:28 schrieb Fabrice couvreur.fabr...@wanadoo.fr: Hello, I discovered ConTeXt gradually, so be indulgent please. With the following command :

Re: [NTG-context] Problem to install Garamond font with mathdesign

2014-01-01 Thread Fabrice Couvreur
Hello, The fonts are already installed on my system since I compile my documents with LuaLaTeX. I'll try to install, and come back to you if it does not work. Fabrice 2014/1/1 Wolfgang Schuster schuster.wolfg...@gmail.com Am 31.12.2013 um 21:27 schrieb Fabrice couvreur.fabr...@wanadoo.fr:

Re: [NTG-context] Problem to install Garamond font with mathdesign

2014-01-01 Thread Fabrice Couvreur
= Thank you. 2014/1/2 Fabrice Couvreur fabrice1.couvr...@gmail.com Hello, The fonts are already installed on my system since I compile my documents with LuaLaTeX. I'll try to install, and come back to you if it does not work

[NTG-context] ConTeXt with Emacs

2014-01-10 Thread Fabrice Couvreur
Hello, I use Emacs as an editor and I compile my files with LuaLaTeX by adding the following lines to the end of the file: %%% Local Variables: %%% Mode: LaTeX %%% LaTeX-command LuaLaTeX-shell-escape %%% End: I discovered ConTeXt, and I would like to know which lines to add to the end of files.

Re: [NTG-context] ConTeXt with Emacs

2014-01-10 Thread Fabrice Couvreur
...@boede.nl in the simplest case a Context document consists of \starttext Your text \stoptext (commented) lines added after \stoptext are ignored. Willi On 10 jan. 2014, at 19:52, Fabrice Couvreur fabrice1.couvr...@gmail.com wrote: Hello, I use Emacs as an editor and I compile my files

Re: [NTG-context] ConTeXt with Emacs

2014-01-10 Thread Fabrice Couvreur
...@free.fr wrote: On Fri, Jan 10 2014, Fabrice Couvreur wrote: %%% Local Variables: %%% Mode: LaTeX %%% LaTeX-command LuaLaTeX-shell-escape %%% End: %%% Local Variables: %%% Mode: context %%% End: For using context instead of texexec, put this in your init-file: (eval-after-load 'tex

Re: [NTG-context] ConTeXt with Emacs

2014-01-10 Thread Fabrice Couvreur
Sorry Peter, but I do not understand what you mean by So just pressing up. 2014/1/10 Peter Münster pmli...@free.fr On Fri, Jan 10 2014, Fabrice Couvreur wrote: Only a second C-c C-c does not allow me to have 'Command : (default View)'. How ? http://www.ntg.nl/pipermail/ntg-context

Re: [NTG-context] ConTeXt with Emacs

2014-01-10 Thread Fabrice Couvreur
oops ! I just realized. Sorry for this useless post. 2014/1/11 Fabrice Couvreur fabrice1.couvr...@gmail.com Sorry Peter, but I do not understand what you mean by So just pressing up. 2014/1/10 Peter Münster pmli...@free.fr On Fri, Jan 10 2014, Fabrice Couvreur wrote: Only a second C

[NTG-context] New header

2014-01-18 Thread Fabrice Couvreur
Hi, I use the following header to my statements made with tittlesec package. \makeatletter \newcommand{\@classe}[1]{} \newcommand{\classe}[1]{\gdef\@classe{#1}} \newcommand{\@typedevoir}[1]{} \newcommand{\typedevoir}[1]{\gdef\@typedevoir{#1}} \newcommand{\@numerodevoir}[1]{}

[NTG-context] New header

2014-01-21 Thread Fabrice Couvreur
Hello, Thank you for your reply. I do not understand all of the code, even if I use MetaPost but with Asymptote. I would also fit the dimensions of my papers as I used to do (\usepackage [ a4paper, hmargin = 1.5cm, vmargin =1.5cm] {geometry}) Thank you. attachment.tex Description: TeX document

Re: [NTG-context] New header

2014-01-22 Thread Fabrice Couvreur
Hi Joshua, To the right and left but not up and down. I would like margin to 1.5cm on the right, left, up and down. Thank you. 2014/1/21 Joshua Krämer joshua.krae...@gmail.com Am Tue, 21 Jan 2014 20:02:19 +0100 schrieb Fabrice Couvreur fabrice1.couvr...@gmail.com: I would also fit

Re: [NTG-context] New header

2014-01-22 Thread Fabrice Couvreur
Thank you Wolfgang. With LuaLaTeX, for my header, I use the commands \footnotesize\itshape and \Large\scshape. Is there an equivalent with ConTeXt ? 2014/1/22 Wolfgang Schuster schuster.wolfg...@gmail.com You have to disable the header and footer by setting the values to 0pt. \setuplayout

Re: [NTG-context] New header

2014-01-23 Thread Fabrice Couvreur
, height = 5em, foregroundstyle = \Large \scshape \bf, background = whatever, frame = off, ] Thank you. 2014/1/22 Aditya Mahajan adit...@umich.edu On Wed, 22 Jan 2014, Fabrice Couvreur wrote: Thank you Wolfgang. With LuaLaTeX, for my

[NTG-context] Lucida fonts with ConTeXt

2014-01-29 Thread Fabrice Couvreur
Hi, I want to use the Lucida fonts. I understand that these are commercial fonts that I must buy. What should buy and where ? In the meantime, I tried to test the following file : \setuppapersize[A4] \setuplayout [backspace=15mm, width=middle, topspace=15mm, height=middle,

Re: [NTG-context] Lucida fonts with ConTeXt

2014-01-29 Thread Fabrice Couvreur
If you have the type1 fonts How do we know ? Sorry, but I'm not at all an expert font ! 2014-01-29 Aditya Mahajan adit...@umich.edu On Wed, 29 Jan 2014, Fabrice Couvreur wrote: Hi, I want to use the Lucida fonts. I understand that these are commercial fonts that I must buy. What should

Re: [NTG-context] Lucida fonts with ConTeXt

2014-01-30 Thread Fabrice Couvreur
Hi, Thank you to you for your answers. As I have to write text with math formulas, I'll probably buy them. Fabrice 2014-01-30 Hans Hagen pra...@wxs.nl On 1/29/2014 10:23 PM, Fabrice wrote: If you have the type1 fonts How do we know? Sorry, but I'm not at all an expert font ! just buy

[NTG-context] Hat with \widehat is not satisfactory

2014-02-05 Thread Fabrice Couvreur
Dear list, I think the symbol of the angles is too close to the letters. Is it possible to change this ? \enablemode[pxmath] \setupbodyfont[palatino,12pt] \starttext \startformula \sin\widehat{PAM}

Re: [NTG-context] OT: Reflections on usability ConTeXt for typesetting of mathematics

2014-02-10 Thread Fabrice Couvreur
Hi, I begin to migrate slowly to ConTeXt, and I think it works very well for writing mathematics. I have a question : what is the most complete Math Font to write mathematics with ConteXt course ? thank you, Fabrice 2014-02-10 9:45 GMT+01:00 Keith J. Schultz schul...@uni-trier.de: Hi Jaroslav,

Re: [NTG-context] OT: Reflections on usability ConTeXt for typesetting of mathematics

2014-02-11 Thread Fabrice Couvreur
Hi, Unless I am mistaken, Cambria is a font available for Windows. I'm using Linux, is it possible to install ? Is it free ? If yes, where can I download it ? Xits, I do not know. Is it possible to put the uppercase = right in math mode with Pagella ? thank you, Fabrice 2014-02-11 9:57

Re: [NTG-context] OT: Reflections on usability ConTeXt for typesetting of mathematics

2014-02-11 Thread Fabrice Couvreur
Hi Martin, Sorry, but I do not find fonts cambria and cambria math to install with Debian. thank you, Fabrice 2014-02-11 14:18 GMT+01:00 Mikael P. Sundqvist mic...@gmail.com: On Tue, Feb 11, 2014 at 11:33 AM, Keith J. Schultz schul...@uni-trier.dewrote: Am 11.02.2014 um 09:57 schrieb

[NTG-context] Too much space between the text and the beginning of the paragraph with the command \defineenumeration

2014-02-25 Thread Fabrice Couvreur
Hi, I find that there is too much space between the text and the beginning of the paragraph. \defineenumeration[ex] [text={\sc\bf Exercice}, location=left, stopper={\bf.}] For example, I use the \topset with LuaLaTeX order. Thank you.

[NTG-context] Too much space between the text and the beginning of the paragraph with the command \defineenumeration

2014-02-25 Thread Fabrice Couvreur
Sorry, but my question is unclear. In fact, I created a new environment with the package amsthm in LuaLaTeX like this : \newtheoremstyle{exa} {\topsep}{\topsep} {} {0pt} {\strut\bfseries} {} {\newline} {\rule[0pt]{1mm}{1mm} \thmname{#1}\thmnumber{ \textup

[NTG-context] Too much space between the text and the beginning of the paragraph with the command \defineenumeration

2014-02-25 Thread Fabrice Couvreur
Because I'm really starting with ConteXt, and if I compile with location = left or not, the result is the same (with minimal ConteXt). For cons, I understand better the role of the option alternative = left, right or top.

[NTG-context] Problem with Module Units

2014-02-27 Thread Fabrice Couvreur
Hi, I see that there is no space between the words pourand km. Regards, Fabrice \usemodule[units] \definetypeface [me] [rm] [serif] [pagella] [default] \definetypeface [me] [ss] [sans] [dejavu] [default] \definetypeface [me] [mm] [math] [xits][default] \setupbodyfont[me,12pt] \starttext

[NTG-context] Symbol euro

2014-02-27 Thread Fabrice Couvreur
Hi, I try to define the EURO symbol with : \definesymbol [euro] [\ getglyph{Euro} {\ char160}], but it does not work. Regards, Fabrice ___ If your question is of interest to others as well, please add an entry to the

[NTG-context] Presentation template

2014-03-03 Thread Fabrice Couvreur
Hi, I will try to rewrite some of my classes with ConTeXt. I would like to draw inspiration from this model http://www.pragma-ade.com/general/manuals/cont-eni.pdf How to start ? Is it possible to have the source code to understand ? Thank you.

[NTG-context] Problem with an environment

2014-03-06 Thread Fabrice Couvreur
I'm trying to built a template for evaluations of my students. I have a problem with the head environment that does not take into account the selected font and size. Regards, Fabrice \environment environ-2 \environment environ-3 \environment header \starttext \MyOtherHeader{Seconde

[NTG-context] PSTricks with ConTeXT

2014-03-20 Thread Fabrice Couvreur
Hi, After searching, it seems it is not possible to compile a file containing a PSTricks environment ? Is that correct ? Regards, Fabrice ___ If your question is of interest to others as well, please add an entry to

[NTG-context] Index notation in math mode

2014-03-24 Thread Fabrice Couvreur
Hi, I would like the f in \math{\cal C_f} is identical to that obtained with \math{f}. Regards, Fabrice ___ If your question is of interest to others as well, please add an entry to the Wiki! maillist :

[NTG-context] Table next to a text in an environment of type list

2014-03-29 Thread Fabrice Couvreur
Hi, How to improve this code to make the table to the right of the text in the environment list ? \midaligned{\tfb Cadres en entreprise} \blank On compte 67 femmes dans une entreprise de 160 personnes. Parmi les personnes de cette entreprise, il y a 32 cadres dont 15 femmes.

[NTG-context] Two figures are side by side

2014-04-16 Thread Fabrice Couvreur
Hi, How do the two figures are side by side ? \setupTABLE[row][1,2][width=1.5cm,align={middle,lohi}] \setupTABLE[c][1][width=3cm,align={middle,lohi}] \starttext \startcombination[2*1] {% \bTABLE[align={middle,lohi}] \bTR\bTD{}\eTD\bTD{$A$}\eTD\bTD{$\overline{A}$}\eTD\bTD{Total}\eTD\eTR

[NTG-context] Text and figure side by side

2014-04-24 Thread Fabrice Couvreur
Hi, Is it possible to put side by side text and a figure created in a TikZ environment ? Thank you, Fabrice \usemodule[tikz] \usetikzlibrary[calc] \starttext \def\smiley{% \starttikzpicture[baseline=-0.75ex,black] \filldraw[fill=orange] circle (2mm); \node[fill,circle,inner sep=0.5pt] (left eye)

[NTG-context] The spacing of the float interferes with the spacing of the itemgroup

2014-04-24 Thread Fabrice Couvreur
Why the vertical spacing is not observed between item 2 and item 3 ? Thank you, Fabrice \starttext \startitemize[n][stopper=),style=bold] \item \input knuth \item \input knuth \placefigure[right,none]{}{% \setupTABLE[c][1] [width=2.25cm] \setupTABLE[row][1,2][width=1.5cm]

[NTG-context] Problem with \starthanging ...\ stophanging

2014-04-24 Thread Fabrice Couvreur
Hello, I can not run text around the figure. thank you, Fabrice \starttext \starthanging[location=right] {\externalfigure[image.pdf][width=8cm]} \input knuth \input knuth \stophanging \stoptext ___ If your question

[NTG-context] Numbering in a frame with a new environment

2014-04-27 Thread Fabrice Couvreur
Hello, How to make the numbering is in the frame and red ? \defineenumeration [ac] [text={ \inframed[frame=off, width=fit, align={right}, background=color, backgroundcolor=lightgray]{Activité}}, headstyle={\bf\feature[+][f:smallcaps]},

[NTG-context] Subsection number independant of section

2014-05-02 Thread Fabrice Couvreur
Hi, I would get a dial like this : A. Section one 1. Subsection one With the code below, I get : A. Section one A. A. Subsection one \setupsection [section] [conversion=Character] \setuplabeltext [section={{},{.}}, subsection={{},{.}}] \setupsection [subsection]

[NTG-context] Some problems with a new style for the sections

2014-05-04 Thread Fabrice Couvreur
Hi, I encounter two problems : - Section numbers are not red ; - Calling the second section does not cause the creation of a new paragraph. Regards, Fabrice \setupcolors[state=start] \def\MySectionCommand#1#2% {\framed [frame=off, width=\textwidth, align={right},

[NTG-context] Bug with TikZ module ?

2014-05-15 Thread Fabrice Couvreur
Hi, Why the three words are not aligned on the baseline ? Regards, Fabrice \usemodule[tikz] \starttext \starttikzpicture[level/.style={sibling distance=10mm}] \node{}[grow=right] child{node{J}} child{node{R}} child{node{B} child{node{J}} child{node{R}} child{node{B} child{node{J}} child{node{R}}

[NTG-context] Define a new command from the command \periods[n]

2014-05-20 Thread Fabrice Couvreur
Hi, Is it possible to redefine the command \periods[n] to have a line that goes from the end of the word to the edge of the page without having to play on the number n ? Regards, Fabrice \starttext \startitemize[a][stopper=),style=bold] \item $x\mapsto -x^2+x+1$ : \periods[66] \item $x\mapsto

[NTG-context] Metapost and Metafun

2014-05-21 Thread Fabrice Couvreur
Hi, As PSTricks (which I prefer) is not yet well integrated, I decided to learn Metapost starting with a simple code. \starttext \startMPcode numeric xmin, xmax, ymin, ymax; xmin := -2.5; xmax := 2.5; ymax :=2.5 ;ymin:=-2.5; u := 2cm; vardef f(expr x) = -x*x+1 enddef; xinc := 0.001; path pts_f;

[NTG-context] Edit the arrows default Metapost

2014-05-22 Thread Fabrice Couvreur
Hello, Is it possible to change the appearance Metafun arrows default to make them resemble those of PSTricks that I find most beautiful. Regards, Fabrice ___ If your question is of interest to others as well, please

[NTG-context] Strange behavior with Metapost

2014-05-27 Thread Fabrice Couvreur
Hello, Why curve drawn is not that expected ? Fabrice \starttext \startMPcode input hvdm; l:=2.8mm; r:=0.6; alfa:=45; beta:=0; gamma:=0; defineDefaultArrow (l, r, alfa, beta, gamma); numeric xmin, xmax, ymin, ymax; xmin :=-2; xmax := 4; ymax :=5 ;ymin:=-1; u := 1cm;

[NTG-context] Itemize and framed

2014-08-29 Thread Fabrice Couvreur
Hi, Is this the best way to insert a list in a frame ? thank you, Fabrice \setupcolors[state=start] \definecolor[H1prime][c=0.50, m=0.00, y=1.00, k=0.00] \definecolor[H4][c=0.07, m=0.00, y=0.15, k=0.00] \starttext

[NTG-context] Strange behavior in a table.

2014-08-29 Thread Fabrice Couvreur
Everything is in the title, thank you. \starttext \`A l'aide du graphique, compléter les tableaux de correspondance suivants. \blank[small] {\setupTABLE[row][even][height=0.6cm] \setupTABLE[row][odd][height=0.6cm] \setupTABLE[1][1,2][width=3.2cm]

[NTG-context] Problem with embedding code TikZ code

2014-08-29 Thread Fabrice Couvreur
In the code below, I do not understand why the label Arbre 2 does not have the color you want, that is to say the same as the label Arbre 1. Thank you. \usemodule[tikz] \usetikzlibrary[calc] \definecolor[A2][c=0.60, m=0.00, y=0.00, k=0.10] \definecolor[H1prime][c=0.50, m=0.00, y=1.00, k=0.00]

[NTG-context] Placement of a figure

2014-09-02 Thread Fabrice Couvreur
Hi, In this code, the figure is placed on the base line. How to make the numbering at the top of the figure ? \starttext \startitemize[n][stopper=),style=bf] \item \midaligned{\externalfigure[figure1_reperage.pdf]} \startitemize[a][stopper=),style=bf] \item Donner les coordonnées des points $A$

[NTG-context] Change linewidth of a table

2014-09-17 Thread Fabrice Couvreur
Hi, How to complete the grid ? Thank you. Fabrice \setuppapersize[A4] \setuplayout[ backspace=5mm, width=middle, topspace=5mm, height=middle, header=0pt, footer=0pt, ] \definetypeface [me] [rm] [serif] [pagella] [default]

[NTG-context] Using \startframedtext with \startcombination

2014-09-29 Thread Fabrice Couvreur
Hi, Why the second frame is not displayed ? Best regards, Fabrice \definecolor[H1prime][c=0.50, m=0.00, y=1.00, k=0.00] \starttext \startcombination[2*1] {% \startframedtext[ width=0.45\textwidth, frame=on, framecolor=H1prime, location=left, background=color,

[NTG-context] (no subject)

2014-10-13 Thread Fabrice Couvreur
hi, In the following code, the default stopper is the point. \starttext \startitemize[columns,a,joinedup] \item $f(0)$ \item $g(0,3)$ \item $f(\sqrt 2)$ \item $g(-4)$ \stopitemize \stoptext How to have a break ? Best regards, Fabrice

[NTG-context] Stopper and itemize

2014-10-13 Thread Fabrice Couvreur
hi, In the following code, the default stopper is the point. \starttext \startitemize[columns,a,joinedup] \item $f(0)$ \item $g(0,3)$ \item $f(\sqrt 2)$ \item $g(-4)$ \stopitemize \stoptext How to have a break ? Best regards, Fabrice

[NTG-context] Module algorithmic

2014-10-18 Thread Fabrice Couvreur
Hi Wolfgang, How to reduce the size of the float ? Best regards, Fabrice \usemodule[algorithmic] \definefloat[algorithm][algorithms] \definecolor[H1prime][c=0.50, m=0.00, y=1.00, k=0.00] \definecolor[H4][c=0.07, m=0.00, y=0.15, k=0.00] \setupfloat [algorithm] [background=color,

[NTG-context] Extra line in a list

2014-10-21 Thread Fabrice Couvreur
Hi, In the code below, why is there an extra line in the first item ? Best regards, Fabrice \usesymbols[mvs] \setupsymbolset[europe] \starttext \startitemize[n][stopper={.},style=bold] \item \startitemize[a][stopper={.},style=bold] \item On pose $P_A=9$ et $P_B=7$. On a alors

[NTG-context] Package {tikz-cd} with ConTeXt

2014-10-28 Thread Fabrice Couvreur
Hi, The following code compiles with pdflatex : \documentclass{article} \usepackage{tikz} \usepackage{tikz-cd} \usetikzlibrary{3d,shapes} \begin{document} \tikzset{xzplane/.style={canvas is xz plane at y=#1, thick,shading=ball,ball color=red,draw=black}} \tikzset{yzplane/.style={canvas is yz

[NTG-context] Strange behavior with the command \color[]{}

2014-11-02 Thread Fabrice Couvreur
Hi, In the code below, if I comment the two lines, it's okay, but if I uncomment those two lines, the number of faces of the cubes is not white but black, and there are pieces of text green. Best regards, Fabrice \usemodule[tikz] \usetikzlibrary[calc] \usetikzlibrary[cd] \usetikzlibrary[3d]

[NTG-context] Numbering in a Table

2014-11-07 Thread Fabrice Couvreur
Hi, Is it possible to use an itemize environment in a table ? Best regards, Fabrice \starttext \startsetups[table:initialize] \setupTABLE[height=0.8cm,align={middle,lohi}] \setupTABLE[row][1][background=color,backgroundcolor=cyan] \setupTABLE[1][1][background=color,backgroundcolor=white]

[NTG-context] Create an item marker with a counter with Metapost

2014-11-10 Thread Fabrice Couvreur
Hi, With the book Metafun I created a marker with metapost. How to add a counter ? Best regards, Fabrice \startuseMPgraphic{itemize:fuzzy} numeric u; u:=0.5cm; save p; path p; p := fullcircle xyscaled (u,u) randomized 2pt; pickup pencircle scaled 1pt; fill p withcolor green; draw p withcolor

[NTG-context] Strange behavior of a macro with ConTeXt ver : 2014.11.12 9:46 p.m. MKIV beta

2014-11-15 Thread Fabrice Couvreur
Hi, Macro written by Hans does not work. Best regards, Fabrice % macros=mkvi \starttext \starttexdefinition MyOtherHeader #where #day #month #year #title \defineoverlay[whatever][\useMPgraphic{whatever}] \startuseMPgraphic{whatever} path p; p:=fullsquare xyscaled

[NTG-context] Space around a figure in a table

2014-11-28 Thread Fabrice Couvreur
Hi, Why up space and down space is not the same around each figure ? Best regards, Fabrice \definecolor[FondTableaux][c=0.00, m=0.00, y=0.20, k=0.00] \startsetups[table:initialize] \setupTABLE[column][1,2][offset=1ex,width=2cm] \setupTABLE[column][3][offset=1ex,width=10cm]

[NTG-context] Table and framedtext

2014-12-05 Thread Fabrice Couvreur
Hi, In the following code, I would like columns that contain the figures have a white background. Best regards, Fabrice \definecolor[mycolor][c=0.1, m=0.00, y=0.00, k=0.00] \setupcaptions[number=no] \starttext \startframedtext[ width=\textwidth, frame=on, location=middle,

[NTG-context] Strange behavior with itemize

2014-12-06 Thread Fabrice Couvreur
Hi, Why the first two items are not there ? Best regards, Fabrice \starttext \startitemize[n][stopper={.},style=bold] \item \startitemize[a][stopper={.},style=bold] \item Étudier le signe de $B^{\prime}(x)$ sur l'intervalle $\left[0\,;40\right]$. \item Dresser le tableau de variation de la

[NTG-context] Parameters of a table that interfere on another table

2014-12-09 Thread Fabrice Couvreur
Hi, I do not understand why the parameters of the first table apply to the second table. Best regards, Fabrice \setuppapersize[A4][A4] \setuplayout[ backspace=15mm, width=middle, topspace=15mm, height=middle, header=0pt, footer=0pt, ]

[NTG-context] Define a new type section with metafun

2014-12-26 Thread Fabrice Couvreur
Hi, I wish red separation is exactly in the middle of the dial and the title of the section. Then, the line is too long, it should not exceed the boundary of the ellipse. Best regards, Fabrice % macros=mkvi \setuppapersize[A4][A4] \setupcolors[state=start,cmyk=yes,mpcmyk=yes]

[NTG-context] Title and defineenumeration

2014-12-31 Thread Fabrice Couvreur
Dear list, Is it possible to remove the parentheses of the title ? Best regards, Fabrice \defineframed [ACFRAME] [frame=off, width=fit, align=flushleft, location=low, background=color, backgroundcolor=lightgray] \defineenumeration [ac] [text={Activité},

[NTG-context] Positioning an arrow between two values (Metapost)

2015-01-17 Thread Fabrice Couvreur
Hi, I went from PSTricks to Metapost (Metafun) gradually. For positioning arrows between two values in an array of variations, I used a command like this \ ncline {A}{B}, which avoids fumbling. Can we do the same with Metapost ? The idea would be to convert the value into a path or an image, much

[NTG-context] Bug with macro tightfunction (Metafun)

2015-02-16 Thread Fabrice Couvreur
Hi, This code generates an error while it was working fine a month ago. Best regards, Fabrice \definecolor[mycolor][c=.4,m=0,y=0,k=0] \starttext \start \switchtobodyfont[small] \startMPcode input hvdm; input tex; l:=3mm; r:=0.6; alfa:=45; beta:=0; gamma:=0;

[NTG-context] How to place text to the right of a brace

2015-02-01 Thread Fabrice Couvreur
Hi, Wolfgang wrote, there was some time already, a nice macro to draw a brace. In the code below, how to have the arrow and the text to the right of the brace ? Best regards, Fabrice \startuseMPgraphic{accolade} z1 = (-233,0) ; z2 = (-220,22) ; z3 = (-155,211) ; z4 = (-200,690) ; z5 =

[NTG-context] About the macro ulcircle

2015-01-09 Thread Fabrice Couvreur
Hi, I discovered some macro Metafun particular. I then wanted to outline, but it does not fit with the boundary of the quadrant. Can I have some explanation ? Best regards, Fabrice \starttext \startMPcode u:=1cm ; pickup pencircle scaled 1pt ; fill ulcircle scaled 8u withcolor lightgray ; fill

[NTG-context] Center horizontally and vertically a table with a graphic in a paragraph environment

2015-01-09 Thread Fabrice Couvreur
Hi, Is it possible to center horizontally and vertically the table with the graphics ? Best regards, Fabrice \defineparagraphs[TwoColumns][n=2] \setupparagraphs[TwoColumns][1][width=0.45\textwidth] \startsetups[table:initialize]

[NTG-context] Hatch an area with Metapost (Metafun)

2015-02-09 Thread Fabrice Couvreur
Hi, How hatched trapezoid MBCD ? Best regards, Fabrice \starttext \startMPcode path p ; p=unitsquare scaled 4cm ; draw p ; pair z ; z=point 3.6 of p ; draw z--urcorner p ; label.llft(btex B etex,llcorner p) ; label.lrt(btex C etex,lrcorner p) ; label.ulft(btex A etex,ulcorner p) ; label.urt(btex

[NTG-context] Alignment on the baseline in a itemize environment with \dfrac{}{}

2015-03-22 Thread Fabrice Couvreur
The alignment of the second item on the baseline is not correct if I use the command \dfrac{}{}. How to solve this problem without using the command \framed ? Best regards, Fabrice \starttext \startitemize[columns,A,joinedup,three][stopper={)},style=bold] \item $f^{\prime}(x) = \dfrac{- 1}{(x +

[NTG-context] Add labels to a grid (Metafun)

2015-03-06 Thread Fabrice Couvreur
To add labels to a grid, Hans wrote a macro hlintext (Min, Max, Step, Lenght , Format). I do not know what to put in Format. Best regards, Fabrice \definecolor[mycolor][c=.4,m=0,y=0,k=0] \starttext \start \switchtobodyfont[small] \startMPcode input tex; numeric xmin, xmax, ymin, ymax;

[NTG-context] Change the dots of the macro \periods[n]

2015-03-06 Thread Fabrice Couvreur
Hi, Is it possible to change the shape of the dots of macro \periods[n] to be like the dots of macro \definefiller[dots][left=\dontleavehmode, right=\hskip\ ZeroPoint\par] ? Best regards, Fabrice ___ If your question

[NTG-context] Problem in using vlingrid() and hlingrid() macros (Metafun)

2015-03-14 Thread Fabrice Couvreur
Hi, I encounter some problems in the use of vlingrid() and hlingrid() macros. In the code below, we see that the grid is not correct. Does the code can be improved ? thank you, Fabrice \starttext \startMPcode path p ; u := 2cm ; v:= 1cm ; p :=

[NTG-context] Problem after updating TeXlive 2014

2015-03-27 Thread Fabrice Couvreur
Hi, Following an update TeXlive 2014, the compilation of my old files causes the same error : loading : ConTeXt File Macros / Helpers ! LuaTeX error ...ab/texlive/2014/texmf-dist/tex/context/base/file-ini.lua:49: attempt to call local 'implement' (a nil value) stack traceback:

[NTG-context] Color in an environment

2015-03-29 Thread Fabrice Couvreur
Hi, 1. In the following code, the color is not included in the \startframedtext \stopframedtext environment 2. How can the height of the red square adapts to the height of the text ? 3. Can we improve the code ? Best regards, Fabrice \setupcolors[state=start] \definecolor[mycolor][c=0.00,

[NTG-context] Frame and rulethickness

2015-03-28 Thread Fabrice Couvreur
Hi, Is it possible to have a different line thickness right and bottom ? Best regards, Fabrice \defineframed [ACFRAME] [topframe=off, bottomframe=on, rightframe=off, leftframe=on, framecolor=green, rulethickness=2pt, width=fit, align=flushleft, location=low,

[NTG-context] Center two frames

2015-01-13 Thread Fabrice Couvreur
Hi, I wish the second frame is centered with the first frame. I guess this is the figure that prevents this. However, even by reducing the value of u, it does not work. Best regards, Fabrice \definecolor[Border][c=0.00, m=0.00, y=0.00, k=0.25] \defineframed [Myframed] [width=0.6\textwidth,

[NTG-context] Indentation inside environment

2015-01-30 Thread Fabrice Couvreur
Hi, I would have no indentation for the text (ward) thank you, Fabrice \starttext \startitemize[A][stopper={.},style=bold] \iem \blank[big] \input ward \startitemize[n][stopper={.},style=bold] \item \item \item \stopitemize \item \blank[big] \input ward \startitemize[n][stopper={.},style=bold]

[NTG-context] Latest beta : command that no longer works

2015-04-03 Thread Fabrice Couvreur
With the latest version of Context Standalone, this command \filler[dots] no longer works. Best regards, Fabrice \definefiller[dots][left=\dontleavehmode, right=\hskip\ZeroPoint\par] \starttext \dorecurse{4}{\filler[dots]} \stoptext fab@debian:~$ source context/tex/setuptex Setting

[NTG-context] Environment \starttikzpicture \stoptikzpicture like float

2015-05-24 Thread Fabrice Couvreur
Hi, Why the command \placerecipe{}{} does not with an environment \ starttikzpicture \stoptikzpicture ? Fabrice \setupexternalfigures[location={local,global,default}] \setuppagenumbering[location=] \usemodule[tikz] \usemodule[pgfplots] \pgfplotsset{compat=1.8} \definefloat [recipe]

[NTG-context] Title of the section that begins

2015-08-12 Thread Fabrice Couvreur
Hi, The first section begins, so the title appears footer on each page as the second section does not start. Then the second section starts and was the title of the second section as the third section does not start and so on. Thanks, Fabrice \setuppagenumbering [alternative=doublesided]

Re: [NTG-context] Title of the section that begins

2015-08-12 Thread Fabrice Couvreur
Hi Wolfgang, There is no question, I'm confused ! I will try to be clearer. At the bottom, I wish the title of the current chapter and title of the current section much like in the document Metafun. Fabrice 2015-08-12 18:15 GMT+02:00 Wolfgang Schuster schuster.wolfg...@gmail.com: Fabrice

Re: [NTG-context] Text around a figure in a framedtext

2015-08-13 Thread Fabrice Couvreur
Hi, Sorry to revive this discussion (which I initiated), but the text in the following code does not wrapped around the figure. Why ? Fabrice \setupcolors [state=start] \definecolor[MyColorB][c=0.00, m=0.62, y=1.00, k=0.00] \definecolor[MyColorA][.75(MyColorB,white)] \defineframedtext

[NTG-context] Structure : problem with an environment

2015-07-30 Thread Fabrice Couvreur
Hi, In my project, there is an env-03.tex file that contains this : \startenvironment env-03 \defineenumeration [def] [text={Définition}, headstyle={\bf\feature[+][f:smallcaps]}, width=fit, alternative=left, stopper={.}] \stopenvironment If I compile, I get this : open

[NTG-context] Some questions about an environment (Metafun)

2015-08-04 Thread Fabrice Couvreur
Hi, How to have Definition 1, Definition 2, Definition 3 ... ? Is it possible to translate the image p until the left edge of the text area ? Thank you, Fabrice \showframe \setupcolors[state=start,cmyk=yes] \definecolor[MyColor][c=0.00, m=0.10, y=0.20, k=0.00] \definecolor[myColor][c=0.00,

[NTG-context] Questions around my page design

2015-08-03 Thread Fabrice Couvreur
Hi, I wish the numérotion pages is reversed at each new page: right left right ... I wish the bottom of the title page of each section of the current page. Thanks for your help, Fabrice \setuppagenumbering [location=] \setupheadertexts [margin] [][\hfill\pagenumber\hfill]

[NTG-context] Floating dimensions that adapts automaticall

2015-08-03 Thread Fabrice Couvreur
Hi, In the code below, we can see that the table overflows. Of course, one can play on the table dimensions to adjust its position. However it is possible to define a floating whose dimensions automatically adapt to the available space ? Thank you, Fabrice \definefloat [MyFloat] [figure]

[NTG-context] Numbered page template

2015-07-30 Thread Fabrice Couvreur
In this manual, I like the numbered pages indicating each chapter. I suppose they are made with Metafun. Is it possible to have an explanation ? Thank You, Fabrice http://www.pragma-ade.nl/general/manuals/cont-enp.pdf

[NTG-context] Small problems with my columns

2015-07-30 Thread Fabrice Couvreur
Hi, In the code below, how to make the line hyphenation is in the first column and not in the second. Thank You. Fabrice \setupcolors[state=start] \definemixedcolumns [mycolumn] [ n=2, separator=rule, rulecolor=gray, rulethickness=1pt, balance=yes, ]

[NTG-context] Text around a figure in a framedtext

2015-08-07 Thread Fabrice Couvreur
Hi, Why the text does not move in the first framedtext like the second framedtext ? Thank you. Fabrice \definecolor[MyColorB][c=0.00, m=0.62, y=1.00, k=0.00] \definecolor[MyColorA][.75(MyColorB,white)] \defineframedtext [MyText] [frame=off, background=MyFrame, width=\textwidth,

Re: [NTG-context] Command that does not give the expected result (Metafun)

2015-08-11 Thread Fabrice Couvreur
Hi Wolfgang, I will follow your advice but I will try to understand, when I have the time , the difference between \unexpanded\def\ChapterCommand#1#2% et \def\ChapterCommand#1#2%. Fabrice 2015-08-10 22:38 GMT+02:00 Wolfgang Schuster schuster.wolfg...@gmail.com: Fabrice Couvreur fabrice1.couvr

[NTG-context] Command that does not give the expected result (Metafun)

2015-08-09 Thread Fabrice Couvreur
Hi Hans, In the document Metafun, you use commands that I like, and I try to understand the definition and operation, which is not always easy with TeX commands. Also, in the following code, this does not give the expected result. Thank you. Fabrice \showframe \setupcolors [state=start]

[NTG-context] Strange behavior (TikZ)

2015-08-11 Thread Fabrice Couvreur
Hi, Strange behavior: why is the colored text ? Thanks, Fabrice \usemodule[tikz] \startuniqueMPgraphic{titled} path p ; p := unitsquare xscaled OverlayWidth yscaled OverlayHeight ; pickup pencircle scaled 1mm ; drawoptions(withcolor .625yellow) ; draw llcorner p--lrcorner p ; setbounds

Re: [NTG-context] Some questions about an environment (Metafun)

2015-08-06 Thread Fabrice Couvreur
Fabrice Couvreur fabrice1.couvr...@gmail.com: Hi Aditya, Thank you, I have already thought of this solution, but I do not know to use with the environment that I created. Fabrice 2015-08-04 18:02 GMT+02:00 Aditya Mahajan adit...@umich.edu: On Tue, 4 Aug 2015, Fabrice Couvreur wrote: How

Re: [NTG-context] Some questions about an environment (Metafun)

2015-08-04 Thread Fabrice Couvreur
Hans Hagen pra...@wxs.nl: On 8/4/2015 5:04 PM, Fabrice Couvreur wrote: Hi, How to have Definition 1, Definition 2, Definition 3 ...? Is it possible to translate the image p until the left edge of the text area ? \startuseMPgraphic{MyFrame} picture p ; p := textext.rt(\MPstring

Re: [NTG-context] Some questions about an environment (Metafun)

2015-08-07 Thread Fabrice Couvreur
Hi Hans, Thank you for responding to my request, it's really nice. By cons I do not understand what you mean some day textext might handle it okay Fabrice 2015-08-07 14:26 GMT+02:00 Hans Hagen pra...@wxs.nl: On 8/6/2015 11:38 PM, Fabrice Couvreur wrote: Hi, The following code (Metafun

Re: [NTG-context] Text around a figure in a framedtext

2015-08-08 Thread Fabrice Couvreur
2015, at 00:49, Fabrice Couvreur fabrice1.couvr...@gmail.com wrote: Hi, Why the text does not move in the first framedtext like the second framedtext ? Thank you. Fabrice \definecolor[MyColorB][c=0.00, m=0.62, y=1.00, k=0.00] \definecolor[MyColorA][.75(MyColorB,white

Re: [NTG-context] Text around a figure in a framedtext

2015-08-09 Thread Fabrice Couvreur
Hi Wolfgang, Thank you for all these explanations that make me progress in the use of Context. Fabrice 2015-08-08 10:40 GMT+02:00 Wolfgang Schuster schuster.wolfg...@gmail.com: Fabrice Couvreur fabrice1.couvr...@gmail.com 8. August 2015 00:49 Hi, Why the text does not move in the first

Re: [NTG-context] Title of the section that begins

2015-08-13 Thread Fabrice Couvreur
\setupfootertexts[text][{\getmarking[section]}][{\getmarking[chapter]}] 2015-08-12 23:10 GMT+02:00 Fabrice Couvreur fabrice1.couvr...@gmail.com: Hi Wolfgang, There is no question, I'm confused ! I will try to be clearer. At the bottom, I wish the title of the current chapter and title

Re: [NTG-context] Text around a figure in a framedtext

2015-08-13 Thread Fabrice Couvreur
Hi, Well, I think I have solved the problem : it is because of the blank line. Why ? Fabrice 2015-08-13 17:19 GMT+02:00 Fabrice Couvreur fabrice1.couvr...@gmail.com: Hi, Sorry to revive this discussion (which I initiated), but the text in the following code does not wrapped around the figure

  1   2   3   4   5   6   7   8   >