[NTG-context] Appearance of ticks and grids with ConTeXt metapost graph module

2021-01-04 Thread Jean-Philippe Rey
Dear list,

Thanks to Hans, I am now able to use the ConTeXt graph module with LMTX. 
However, I noticed that the tick/grid labels are drawn with the same parameters 
as the tick/grid marks.

For example

   grid.bot("@d", 1) withcolor red;

will draw the grid line AND "1" in red. The original metapost graph module 
doesn't apply drawing instructions to the label. That seems a better choice as 
you usually don't want to apply special effect on the labels. If you really 
want to draw the label with specific parameters you can write, for example,

   grid.bot(image(draw textext(1) withcolor blue;), 1) withcolor red;

and get red lines and blue labels. With the ConTeXt version, both line and 
label would be red! 

What do you think about reverting to the original metapost behavior? If I am 
right, here is a patch to do it:

--- mp-grap.mpiv2021-01-04 18:29:15.0 +0100
+++ mp-grap-new.mpiv2021-01-04 20:47:36.0 +0100
@@ -882,7 +882,7 @@
 if c : graph_xyscale fi
 shifted (((.5 + mfun_laboff@# dotprod (.5,.5)) * mfun_laboff@#) 
graph_xyscale) ;
 image(draw p w ;
-label@#(if string f : format(f,u) else : f fi, point 0 of p) w)
+label@#(if string f : format(f,u) else : f fi, point 0 of p))
   fi
 enddef ;


Thanks for reading this far.

-- 
Jean-Philippe Rey
jean-philippe@centralesupelec.fr
91192 Gif-sur-Yvette Cedex - France
Empreinte PGP : 807A 5B2C 69E4 D4B5 783A 428A 1B5E E83E 261B BF51

___
If your question is of interest to others as well, please add an entry to the 
Wiki!

maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-context
webpage  : http://www.pragma-ade.nl / http://context.aanhet.net
archive  : https://bitbucket.org/phg/context-mirror/commits/
wiki : http://contextgarden.net
___


Re: [NTG-context] metapost graph and ConTeXt LMTX

2021-01-03 Thread Jean-Philippe Rey
Le 3 janv. 2021 à 19:21, Hans Hagen <j.ha...@xs4all.nl> a écrit :On 1/3/2021 7:12 PM, Jean-Philippe Rey wrote:Dear List,I have used TikZ and pgfplots for a few years and I am considering switching to metapost/metafun which appears more efficient with LMTX. I have already designed several figures with metapost/metafun and some with the help of metaobj and I am fully satisfied with the result.Alan rewrote graph in a more context way ... so, there is the m-grapph.mkiv module (I admit, not tested for a while).Thank you Hans for pointing to this module.I took a look at m-graph.mkiv and wrote the following ==\usemodule[graph]\starttext\startMPcode{graph}draw begingraph(150mm, 100mm);	gdraw "test-mpgraph.txt";	endgraph;\stopMPcode\stoptext==which fails with "error: Improper type" (see attached log file). Maybe I don't understand how to use the graph module.
-- Jean-Philippe Reyjean-philippe@centralesupelec.fr91192 Gif-sur-Yvette Cedex - FranceEmpreinte PGP : 807A 5B2C 69E4 D4B5 783A 428A 1B5E E83E 261B BF51



test-mpgraph.log
Description: Binary data
___
If your question is of interest to others as well, please add an entry to the 
Wiki!

maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-context
webpage  : http://www.pragma-ade.nl / http://context.aanhet.net
archive  : https://bitbucket.org/phg/context-mirror/commits/
wiki : http://contextgarden.net
___


[NTG-context] metapost graph and ConTeXt LMTX

2021-01-03 Thread Jean-Philippe Rey
Dear List,

I have used TikZ and pgfplots for a few years and I am considering switching to 
metapost/metafun which appears more efficient with LMTX. I have already 
designed several figures with metapost/metafun and some with the help of 
metaobj and I am fully satisfied with the result.

I am now trying to draw graphs with the metapost graph module, but I haven't 
been integrated to my ConTeXt LMTX document. The following example works 
perfectly well when compiled directly with metapost (from TeXlive 2020).

= mpost example =
beginfig(1)
input graph

draw begingraph(150mm, 100mm);
gdraw "test-mpgraph.txt";
endgraph;
endfig;
end
=

Here is my demo data file

 test-mpgraph.txt 
0 0
1 1
2 2
3 1
4 3
5 2
6 1
==

I tried the following to draw directly from a ConTeXt document

 LMTX example =
\starttext
\startMPcode
troffmode:=0;
prologues:=0;
input graph

draw begingraph(150mm, 100mm);
gdraw "test-mpgraph.txt";
endgraph;
\stopMPcode
\stoptext
===

I had to define troffmode and prologues, otherwise I get error messages about 
undecidable expressions and now I get an error that I don't understand (see 
attached log file).

I also tried \usemodule[graph] as documented on the wiki 
(https://wiki.contextgarden.net/MPgraph) but without success.

I guess I am doing something wrong. Could someone help me see my error?

Thanks,

-- 
Jean-Philippe Rey
jean-philippe@centralesupelec.fr
91192 Gif-sur-Yvette Cedex - France
Empreinte PGP : 807A 5B2C 69E4 D4B5 783A 428A 1B5E E83E 261B BF51


test-mpgraph.log
Description: Binary data
___
If your question is of interest to others as well, please add an entry to the 
Wiki!

maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-context
webpage  : http://www.pragma-ade.nl / http://context.aanhet.net
archive  : https://bitbucket.org/phg/context-mirror/commits/
wiki : http://contextgarden.net
___


[NTG-context] Problems with \unit

2020-12-26 Thread Jean-Philippe Rey
Dear list,

I have found two issues with the \unit command.

1) there is a typo in phys-dim.lua, Becquerel is written Bequerel (without the 
c)

2) tonne doesn't work anymore, I guess it interferes with the new "to" goodie

Here is a minimal example

=
\starttext
\unit{15 tonne} gives \quotation{15 -- nN} instead of \quotation{15 t}
\stoptext
=

Best regards,

-- 
Jean-Philippe Rey
jean-philippe@centralesupelec.fr
91192 Gif-sur-Yvette Cedex - France
Empreinte PGP : 807A 5B2C 69E4 D4B5 783A 428A 1B5E E83E 261B BF51

___
If your question is of interest to others as well, please add an entry to the 
Wiki!

maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-context
webpage  : http://www.pragma-ade.nl / http://context.aanhet.net
archive  : https://bitbucket.org/phg/context-mirror/commits/
wiki : http://contextgarden.net
___


[NTG-context] LMTX, PGF/TikZ absolute positioning

2020-12-22 Thread Jean-Philippe Rey
Dear list,

I have a problem with LMTX when I try to place a tikz drawing at an absolute 
location on the page. Here is a minimal failing example.

===
\usemodule[tikz]
\starttext
\starttikzpicture[remember picture, overlay]
\draw (current page.center) circle [radius=20mm];
\stoptikzpicture
\stoptext
===

The error is about \hoffset being undefined (see attached log file). Everything 
works fine with MkIV.

Thank you for any help.

-- 
Jean-Philippe Rey
jean-philippe@centralesupelec.fr
91192 Gif-sur-Yvette Cedex - France
Empreinte PGP : 807A 5B2C 69E4 D4B5 783A 428A 1B5E E83E 261B BF51


mfe-hoffset.log
Description: Binary data
___
If your question is of interest to others as well, please add an entry to the 
Wiki!

maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-context
webpage  : http://www.pragma-ade.nl / http://context.aanhet.net
archive  : https://bitbucket.org/phg/context-mirror/commits/
wiki : http://contextgarden.net
___


Re: [NTG-context] LMTX and addplot table

2020-12-12 Thread Jean-Philippe Rey


> Le 12 déc. 2020 à 13:20, Hans Hagen  a écrit :
> 
> On 12/12/2020 12:19 PM, Jean-Philippe Rey wrote:
>>> Le 12 déc. 2020 à 11:58, Hans Hagen >> <mailto:j.ha...@xs4all.nl>> a écrit :
>>> 
>>> On 12/12/2020 10:36 AM, Jean-Philippe Rey wrote:
>>>> Dear list,
>>>> I am unable to draw a plot using an external file with LMTX. Here is a 
>>>> minimal example
>>>> =
>>>> \usemodule[pgfplots]
>>>> \starttext
>>>> \starttikzpicture
>>>> \startaxis
>>>> \addplot table [x=t, y=E] {mfe-addplot.dat};
>>>> \stopaxis
>>>> \stoptikzpicture
>>>> \stoptext
>>>> =
>>>> The ConTeXt run fails with an "Undefined control sequence" error (see 
>>>> attached log file). I don't know if this is an LMTX or PGF issue. The 
>>>> example works fine with MkIV. I tried with the tikz version available on 
>>>> ConTeXt garden (pgf 3.0.1, pgfplots 1.16) and the last one from CTAN (pgf 
>>>> 3.1.7a, pgfplots 1.17) with the same result.
> 
> wipe t-tikz.* on your machine in order to use m-tikz.mkiv in the distribution 
> because it looks like it does a bad catcode table change ... that went 
> unnoticed because a chardef'd constant gets typeset (and when that happens 
> before \starttext you won't see it but it actually does introduce some funny 
> char); in lmtx we don't use chardef for that so that can give an error then 
> when loading
> 
> anyway, you're not suffering from that i think but better use the right 
> module loader anyway


I wiped t-tikz.  The only noticeable difference is that now I need to 
explicitly \usemodule[tikz] in order to use pgfplots. I checked and found the 
line

\usemodule[t][tikz]

in t-pgfplots.tex.  I guess that explains it.


> then you can define the \PackageError macro (I did it with some trial and 
> error but the next seems to work:
> 
> \let\PackageError\writestatus
> 
> so I'll add something like that to m-tikz.mkiv

As Wolfgang pointed out, \PackageError takes three parameters, the third is 
meant to be displayed when the user types H to an error prompt. I defined it as

\def/PackageError#1#2#3{\writestatus{#1}{#2 (#3)}}

that effectively displays the error message in the console and the log file.


> which still looks bad but at least you don't crash .. i'll look into that 
> later today (as i'm splitting mkiv/lmtx code i use a slightly different file 
> reader so maybe that's it)

I guess that you've pinpointed the problem.

By default, pgfplotstable breaks lines at white space (tab or space according 
to the pgfplotstable manual). I used tabs as column separators in my demo file. 
With MKiV, the columns are correctly split but with LMTX, pgfplotstable sees a 
single column.

I explicitly stated that the columns are separated with tabs:

\addplot table [x=t, y=E, col sep=tab] {mfe-addplot.dat};

and it works. I tried to change the columns separator to a space, instead of a 
tab and it also works.

I don't know what pgfplotstable uses to split columns, but the conclusion is 
that with MkIV 'col sep=space' means space or tab, whereas with LMTX it means 
strictly a space character.

Thank you very much for your help.

-- 
Jean-Philippe Rey
jean-philippe@centralesupelec.fr 
<mailto:jean-philippe@centralesupelec.fr>
91192 Gif-sur-Yvette Cedex - France
Empreinte PGP : 807A 5B2C 69E4 D4B5 783A 428A 1B5E E83E 261B BF51

___
If your question is of interest to others as well, please add an entry to the 
Wiki!

maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-context
webpage  : http://www.pragma-ade.nl / http://context.aanhet.net
archive  : https://bitbucket.org/phg/context-mirror/commits/
wiki : http://contextgarden.net
___


[NTG-context] LMTX and addplot table

2020-12-12 Thread Jean-Philippe Rey
Dear list,

I am unable to draw a plot using an external file with LMTX. Here is a minimal 
example

=
\usemodule[pgfplots]
\starttext
\starttikzpicture
\startaxis
\addplot table [x=t, y=E] {mfe-addplot.dat};
\stopaxis
\stoptikzpicture
\stoptext
=

The ConTeXt run fails with an "Undefined control sequence" error (see attached 
log file). I don't know if this is an LMTX or PGF issue. The example works fine 
with MkIV. I tried with the tikz version available on ConTeXt garden (pgf 
3.0.1, pgfplots 1.16) and the last one from CTAN (pgf 3.1.7a, pgfplots 1.17) 
with the same result.

The same example works fine if I provide the data inline. This looks like a 
problem while reading the data file.

Thanks for your insight.

Best regards,

-- 
Jean-Philippe Rey
jean-philippe@centralesupelec.fr
91192 Gif-sur-Yvette Cedex - France
Empreinte PGP : 807A 5B2C 69E4 D4B5 783A 428A 1B5E E83E 261B BF51
<>

mfe-addplot.log
Description: Binary data
___
If your question is of interest to others as well, please add an entry to the 
Wiki!

maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-context
webpage  : http://www.pragma-ade.nl / http://context.aanhet.net
archive  : https://bitbucket.org/phg/context-mirror/commits/
wiki : http://contextgarden.net
___


[NTG-context] LMTX, repeated caption

2020-12-10 Thread Jean-Philippe Rey
Dear list,

In some unclear circumstances, a figure caption is repeated above the figure, 
as with the following example.

==
\starttext
\placefigure
{This caption shouldn't be repeated}
{\hbox{anything here}}
\stoptext
==

The caption is not repeated for all figures. With a longer caption or a wider 
figure, the bug disappears. My guess is that it is triggered by a certain ratio 
between caption length and figure width!

I hope this helps.

Best regards,

-- 
Jean-Philippe Rey
jean-philippe@centralesupelec.fr
91192 Gif-sur-Yvette Cedex - France
Empreinte PGP : 807A 5B2C 69E4 D4B5 783A 428A 1B5E E83E 261B BF51


mfe-placetable.pdf
Description: Adobe PDF document


mfe-placetable.log
Description: Binary data
___
If your question is of interest to others as well, please add an entry to the 
Wiki!

maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-context
webpage  : http://www.pragma-ade.nl / http://context.aanhet.net
archive  : https://bitbucket.org/phg/context-mirror/commits/
wiki : http://contextgarden.net
___


Re: [NTG-context] mathmatrix and internal lines

2020-11-29 Thread Jean-Philippe Rey
I added some details and examples to the wiki, however, as you said, they are 
not typeset correctly.

> Le 29 nov. 2020 à 08:48, Otared Kavian  a écrit :
> 
>> On 26 Nov 2020, at 23:23, Hans Hagen > <mailto:j.ha...@xs4all.nl>> wrote:
>> […]
>> A bit more code needed but the next upload will have it. Of course you have 
>> to wikify it.
>> 
>> Hans
> 
> Hi,
> I created a page on the wiki:
>   https://wiki.contextgarden.net/Matrix_in_maths 
> <https://wiki.contextgarden.net/Matrix_in_maths>
> However the LMTX code is not typeset on the wiki. I'll see with taco whether 
> it is possible to have lmtx mode on the wiki.
> 
> Best regards: Otared K.

-- 
Jean-Philippe Rey
jean-philippe@centralesupelec.fr 
<mailto:jean-philippe@centralesupelec.fr>
91192 Gif-sur-Yvette Cedex - France
Empreinte PGP : 807A 5B2C 69E4 D4B5 783A 428A 1B5E E83E 261B BF51

___
If your question is of interest to others as well, please add an entry to the 
Wiki!

maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-context
webpage  : http://www.pragma-ade.nl / http://context.aanhet.net
archive  : https://bitbucket.org/phg/context-mirror/commits/
wiki : http://contextgarden.net
___


Re: [NTG-context] Testing for LMTX

2020-11-27 Thread Jean-Philippe Rey
Pablo, Jairo,

Thank you very much.

> Le 26 nov. 2020 à 21:01, Pablo Rodriguez  a écrit :
> 
> On 11/26/20 8:06 PM, Jean-Philippe Rey wrote:
>> [...]
>> Do you know a way to distinguish between LMTX and MkIV ?
> 
> Hi Jean-Philippe,
> 
> I guess this is what you are looking for:
> 
>  \starttext
>  \startTEXpage[offset=1em]
>  \startlmtxmode LMTX\stoplmtxmode
>  \startmkivmode MkIV\stopmkivmode
>  \stopTEXpage
>  \stoptext
> 
> Just in case it helps,
> 
> Pablo


-- 
Jean-Philippe Rey
jean-philippe@centralesupelec.fr 
<mailto:jean-philippe@centralesupelec.fr>
91192 Gif-sur-Yvette Cedex - France
Empreinte PGP : 807A 5B2C 69E4 D4B5 783A 428A 1B5E E83E 261B BF51

___
If your question is of interest to others as well, please add an entry to the 
Wiki!

maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-context
webpage  : http://www.pragma-ade.nl / http://context.aanhet.net
archive  : https://bitbucket.org/phg/context-mirror/commits/
wiki : http://contextgarden.net
___


[NTG-context] Testing for LMTX

2020-11-26 Thread Jean-Philippe Rey
Dear list,

I would like to determine if LMTX is being used. Mimicking system modes I tried

  \startmode[*lmtx] . . . \stopmode

however, LMTX doesn't define this mode but apparently defines *mkiv.

Do you know a way to distinguish between LMTX and MkIV ?

Thank you,

-- 
Jean-Philippe Rey
jean-philippe@centralesupelec.fr
91192 Gif-sur-Yvette Cedex - France
Empreinte PGP : 807A 5B2C 69E4 D4B5 783A 428A 1B5E E83E 261B BF51

___
If your question is of interest to others as well, please add an entry to the 
Wiki!

maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-context
webpage  : http://www.pragma-ade.nl / http://context.aanhet.net
archive  : https://bitbucket.org/phg/context-mirror/commits/
wiki : http://contextgarden.net
___


Re: [NTG-context] mathmatrix and internal lines

2020-11-26 Thread Jean-Philippe Rey
Hi Otared,

Thank you very much.

I used your example to write the following macros. They are far from perfect 
but suit my needs.  A few days ago, Hans warned not to use \noalign in LMTX, so 
I used the trick he gave to the list even if I don't really understand it.

=== LMTX version 
%D \macros{HR, VR}
%D \type{\HR} draws a horizontal rule between two rows of a matrix
%D \type{\VR} is used in place of \type{\NC} to draw a vertical rule between 
two columns of a matrix
%D each macro takes an optional parameter giving the rule dimensions
%D Example
%D  \type{\startmatrix \NC A \VR[depth 2mm] B \NR \HR[height 0.6pt] \NC C \VR D 
\NR \stopmatrix}
 
\pushoverloadmode
\noaligned\tolerant\protected\def\HR[#1]{\noalign{\hrule #1}}
\popoverloadmode

\def\VR{\dosingleempty\doVR}
\def\doVR[#1]{\NC \hskip-0.5em \vrule #1 \hskip-0.5em \NC}
===

=== MkIV version 
%D \macros{HR, VR}
%D \type{\HR} draws a horizontal rule between two rows of a matrix
%D \type{\VR} is used in place of \type{\NC} to draw a vertical rule between 
two columns of a matrix
%D it takes an optional parameter giving the rule dimensions
%D Example
%D  \type{\startmatrix \NC A \VR[depth 2mm] B \NR \HR \NC C \VR D \NR 
\stopmatrix}
 
\def\HR{\noalign{\hrule}}

\def\VR{\dosingleempty\doVR}
\def\doVR[#1]{\NC \hskip-0.5em \vrule #1 \hskip-0.5em \NC}
===

For the MkIV version I haven't been able to add an optional parameter to \HR 
the code

\def\HR{\dosingleempty\doHR}
\def\doHR[#1]{\noalign{\hrule #1}}

complains about "Misplaced \noalign"

Best regards,



> Le 26 nov. 2020 à 13:40, Otared Kavian  a écrit :
> 
> Hi Jean-Philippe,
> 
> The following is better than the one I sent earlier:
> 
> \definemathmatrix[mymatrix]
>   [left={\left(\,},
>   right={\ \right)}]
>   
> \starttext
> \startformula
>   \startmymatrix
>   \NC A \NC\hskip-.5em \vrule  \NC\hskip-.5em B \NR
>   \noalign{\hrule}
>   \NC C \NC \hskip-.5em\vrule \NC \hskip-.5em D \NR
>   \stopmymatrix
> \stopformula
> \stoptext
> 
> Best regards: Otared K.
> 
>> On 26 Nov 2020, at 10:19, Jean-Philippe Rey 
>>  wrote:
>> 
>> Dear list,
>> 
>> I would like to draw matrices with internal lines as can be done with LaTeX 
>> (cf pdf output) :
>> 
>> 
>> \documentclass{article}
>> \begin{document}
>> $M =\left( \begin{array}{c|c}
>> A & B \\
>> \hline
>> C & D \\
>> \end{array} \right)$
>> \end{document}
>> 
>> 
>> I didn't find out how to use mathmatrix to achieve this. My best result to 
>> date is 
>> 
>> 
>> \starttext
>> $M = \left( \bTABLE[frame=off]
>> \bTR
>>  \bTD[rightframe=on, bottomframe=on] $A$ \eTD
>>  \bTD[bottomframe=on] $B$ \eTD
>> \eTR\bTR
>>  \bTD[rightframe=on] $C$ \eTD
>>  \bTD $D$ \eTD
>> \eTR
>> \eTABLE \right)$
>> \stoptext
>> 
>> 
>> The code is rather ugly, and I get a spurious space at the bottom of the 
>> table.
>> 
>> Any hints?
>> 
>> Thank you,


-- 
Jean-Philippe Rey
jean-philippe@centralesupelec.fr 
<mailto:jean-philippe@centralesupelec.fr>
91192 Gif-sur-Yvette Cedex - France
Empreinte PGP : 807A 5B2C 69E4 D4B5 783A 428A 1B5E E83E 261B BF51

___
If your question is of interest to others as well, please add an entry to the 
Wiki!

maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-context
webpage  : http://www.pragma-ade.nl / http://context.aanhet.net
archive  : https://bitbucket.org/phg/context-mirror/commits/
wiki : http://contextgarden.net
___


[NTG-context] mathmatrix and internal lines

2020-11-26 Thread Jean-Philippe Rey
Dear list,

I would like to draw matrices with internal lines as can be done with LaTeX (cf 
pdf output) :


\documentclass{article}
\begin{document}
$M =\left( \begin{array}{c|c}
A & B \\
\hline
C & D \\
\end{array} \right)$
\end{document}


I didn't find out how to use mathmatrix to achieve this. My best result to date 
is 


\starttext
$M = \left( \bTABLE[frame=off]
\bTR
\bTD[rightframe=on, bottomframe=on] $A$ \eTD
\bTD[bottomframe=on] $B$ \eTD
\eTR\bTR
\bTD[rightframe=on] $C$ \eTD
\bTD $D$ \eTD
\eTR
\eTABLE \right)$
\stoptext


The code is rather ugly, and I get a spurious space at the bottom of the table.

Any hints?

Thank you,

-- 
Jean-Philippe Rey
jean-philippe@centralesupelec.fr
91192 Gif-sur-Yvette Cedex - France
Empreinte PGP : 807A 5B2C 69E4 D4B5 783A 428A 1B5E E83E 261B BF51


blocmatrices-latex.pdf
Description: Adobe PDF document


blocmatrices-context.pdf
Description: Adobe PDF document
___
If your question is of interest to others as well, please add an entry to the 
Wiki!

maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-context
webpage  : http://www.pragma-ade.nl / http://context.aanhet.net
archive  : https://bitbucket.org/phg/context-mirror/commits/
wiki : http://contextgarden.net
___


[NTG-context] Issue with LMTX and placeformula

2020-11-25 Thread Jean-Philippe Rey
Dear list,

\placeformula doesn't seem to work with LMTX.

==
\starttext
\placeformula[F]
\startformula
a^2 + b^2 = c^2
\stopformula

The \in[F] formula

\stoptext
==

Thank you for your help.

-- 
Jean-Philippe Rey
jean-philippe@centralesupelec.fr
91192 Gif-sur-Yvette Cedex - France
Empreinte PGP : 807A 5B2C 69E4 D4B5 783A 428A 1B5E E83E 261B BF51


mfe-placeformula.log
Description: Binary data


mfe-placeformula.pdf
Description: Adobe PDF document


mfe-placeformula.tex
Description: Binary data
___
If your question is of interest to others as well, please add an entry to the 
Wiki!

maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-context
webpage  : http://www.pragma-ade.nl / http://context.aanhet.net
archive  : https://bitbucket.org/phg/context-mirror/commits/
wiki : http://contextgarden.net
___


[NTG-context] LMTX and descriptions

2020-11-24 Thread Jean-Philippe Rey
Dear list,

I am switching from MLIV to LMTX and I've found a problem with descriptions. 
Here is an example of the problem.

==
\definedescription[D]

\starttext
\D{Label} description % Label is not printed

\startD{Label} % OK, but pb with the following table
description
\stopD

\bTABLE
\bTR
\bTH Label \eTH % The first line is located on the left at the bottom 
of the table, TD works OK.
\eTR\bTR
\bTD value \eTD
\eTR
\eTABLE

\stoptext
==

The short syntax  "\D{Label} description" doesn't print "Label" at all.

The syntax with \start, \stop works fine but has a nasty effect on the next 
TABLE if it uses TH (check attached pdf).

Thank you for your help

PS @Hans, thanks for adding \TB to \startcases, it works perfectly well.

-- 
Jean-Philippe Rey
jean-philippe@centralesupelec.fr
91192 Gif-sur-Yvette Cedex - France
Empreinte PGP : 807A 5B2C 69E4 D4B5 783A 428A 1B5E E83E 261B BF51


mfe-description.pdf
Description: Adobe PDF document


mfe-description.log
Description: Binary data


mfe-description.tex
Description: Binary data
___
If your question is of interest to others as well, please add an entry to the 
Wiki!

maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-context
webpage  : http://www.pragma-ade.nl / http://context.aanhet.net
archive  : https://bitbucket.org/phg/context-mirror/commits/
wiki : http://contextgarden.net
___


[NTG-context] LMTX, mathcases and noalign

2020-11-13 Thread Jean-Philippe Rey
Dear list,

I am trying to switch from MKIV to LMTX. I've just found a discrepancy with the 
following code which puts space between two lines in a math alignment. This 
minimum breaking example uses \startcases, but the same problem arises with 
other alignment macros.

\starttext
\startformula
\startcases
\NC 1 \NC if not null \NR
\noalign{\vskip2ex}
\NC 0 \NC if null \NR
\stopcases
\stopformula
\stoptext

This snippet works fine with MKIV but breaks in LMTX (see attached log file). 
Is this a bug in LMTX or is there another way to insert space between two lines?

I've already tried different other solutions, but none seems really appropriate:

- \intertext produces a vertical space of at least 3 lines and I haven't been 
able to make it smaller;

- adding an empty line (\NC \NR) produces a smaller space but I am unable to 
reduce its height below a minimum value (roughly a line);

- adding a \vrule to the above or below line works fine but it needs some 
calculation depending on the content of the line.

Thank you for your help,

-- 
Jean-Philippe Rey
jean-philippe@centralesupelec.fr
91192 Gif-sur-Yvette Cedex - France
Empreinte PGP : 807A 5B2C 69E4 D4B5 783A 428A 1B5E E83E 261B BF51


noalign-mfe.log
Description: Binary data


noalign-mfe-error.log
Description: Binary data
___
If your question is of interest to others as well, please add an entry to the 
Wiki!

maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-context
webpage  : http://www.pragma-ade.nl / http://context.aanhet.net
archive  : https://bitbucket.org/phg/context-mirror/commits/
wiki : http://contextgarden.net
___


[NTG-context] Pb with tikz, \pdfsavepos and friends

2019-09-10 Thread Jean-Philippe Rey
Dear all,

I just downloaded the last ConTeXt beta (ConTeXt  ver: 2019.09.09 13:44 MKIV 
beta) and encountered a problem with pgf/tikz. Here a minimum failing example :

   =
   \usemodule[tikz]
   \starttext
   \starttikzpicture[remember picture]
   \stoptikzpicture
   \stoptext
   =

which produces the following error (excerpt from the log file, see complete log 
attached)

   =
   tex error   > tex error on line 4 in file 
/Users/jprey/Projets/ConTeXt/bug-savepos.tex: ! Undefined control sequence


   \pgfsys@markposition #1->\pdfsavepos 
\edef \pgf@temp {#1}\expandafter 
\pgfut...
   \endpgfpicture ...ys@markposition {\pgfpictureid }
 }\fi \ifdim \pgf@picmaxx 
=...
   \stoptikzpicture ...st@from@global \endpgfpicture 
 \endgroup 
   l.4 \stoptikzpicture
   =


My previous ConTeXt version from September 2018 works fine with the same 
example. I searched the mailing list archives and found a thread from January 
2016 pertaining to the same problem. The workaround given by Hans works for me :

   \let \pdfsavepos   \savepos
   \let \pdflastxpos  \lastxpos
   \let \pdflastypos  \lastypos

I checked the pgf versions in my ConTeXt installations from 20180913 and 
20190909, they are the same : 3.0.1. So I suppose that the change comes from 
ConTeXt itself, that’s why I report the problem here.

Regards,

-- 
Jean-Philippe Rey
jean-philippe@centralesupelec.fr
91192 Gif-sur-Yvette Cedex - France
Empreinte PGP : 807A 5B2C 69E4 D4B5 783A 428A 1B5E E83E 261B BF51


bug-savepos.log
Description: Binary data
___
If your question is of interest to others as well, please add an entry to the 
Wiki!

maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-context
webpage  : http://www.pragma-ade.nl / http://context.aanhet.net
archive  : https://bitbucket.org/phg/context-mirror/commits/
wiki : http://contextgarden.net
___


Re: [NTG-context] serial letters

2019-05-24 Thread jean-philippe . rey
Thank you very much Wolfgang,

It works very well and perfectly suits my needs.

Thanks again,

> Le 24 mai 2019 à 18:05, Wolfgang Schuster  
> a écrit :
> 
> The problem is that you put the letter-environment in a command but the 
> environment uses the buffer mechanism to store the content which doesn't work 
> when it is used in a command definition.
> 
> What you have to do is to move the content of the letters out of the 
> \GenLetter command, you can use the lettercontent-environment for this. In 
> the \GenLetter command you now use the \placeletter command to flush the 
> content of the letter with the current values for the address etc.
> 
>  begin example
> \usemodule[letter]
> 
> \setupletter
>   [signature={JPR},
>  closing={Sincerely yours,}]
> 
> \setupletter
>   [   toname=\correspondenceparameter{to},
>toaddress=\correspondenceparameter{adr},
>  opening=\correspondenceparameter{civ}]
> 
> \startlettercontent
>   Blah blah \correspondenceparameter{civ}.
> \stoplettercontent
> 
> \def\GenLetter[#1]%
>   {\begingroup
>  \setupletter[#1]%
>  \placeletter
>\endgroup}
> 
> \starttext
> 
> \GenLetter[civ={M.}, to={Pierre Durand}, adr={Trifouillis-les-Oies}]
> 
> \stoptext
>  end example
> 
> Wolfgang


-- 
Jean-Philippe Rey
jean-philippe@centralesupelec.fr
91192 Gif-sur-Yvette Cedex - France
Empreinte PGP : 807A 5B2C 69E4 D4B5 783A 428A 1B5E E83E 261B BF51

___
If your question is of interest to others as well, please add an entry to the 
Wiki!

maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-context
webpage  : http://www.pragma-ade.nl / http://context.aanhet.net
archive  : https://bitbucket.org/phg/context-mirror/commits/
wiki : http://contextgarden.net
___


Re: [NTG-context] serial letters

2019-05-24 Thread Jean-Philippe Rey
 > 'fallback modern-designsize rm 12pt' is loaded

tex error   > tex error on line 23 in file 
/Users/jprey/SCA/Concours/2019/JURY/Confirmation fonction/letterTest.tex: ! 
Undefined control sequence

 ...v!letter \edef \p_correspondence_option_option 
 {\correspondenceoptionpara...
\correspondence_place ...\t_correspondence_before 
 \page \setuplayout [\c!met...
\correspondence_stop ...\correspondence_place [#1]
 \endgroup \stoptext 
l.23 ...{Pierre Durand}, adr={Trifouillis-les-Oies}]


13   opening={\GLciv},
14   ]
15 
16Blah blah \GLciv.
17 
18\stopletter
19 }
20 
21 \starttext
22 
23 >>  \GenLetter[civ={M.}, to={Pierre Durand}, adr={Trifouillis-les-Oies}]
24 
25 \stoptext
26 
=== End console output

-- 
Jean-Philippe Rey
jean-philippe@centralesupelec.fr
91192 Gif-sur-Yvette Cedex - France
Empreinte PGP : 807A 5B2C 69E4 D4B5 783A 428A 1B5E E83E 261B BF51

___
If your question is of interest to others as well, please add an entry to the 
Wiki!

maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-context
webpage  : http://www.pragma-ade.nl / http://context.aanhet.net
archive  : https://bitbucket.org/phg/context-mirror/commits/
wiki : http://contextgarden.net
___


[NTG-context] Broken (invisible) external cross-references

2014-12-05 Thread Jean-Philippe Rey
Hello,

I am using external cross-references (across multiple files) and this seems to 
have been broken for a few months.

Here is my minimal example:

% file test_crossref1.tex
\starttext
\chapter[lorem]{Lorem}
Lorem ipsum dolor sit amet, consectetur adipiscing elit \in{Chapter}[lorem].
\stoptext

% file test_crossref2.tex
\useexternaldocument[xref][test_crossref1]
\starttext
Lorem ipsum dolor sit amet, consectetur adipiscing elit 
\in{Chapter}[xref::lorem].
\stoptext


I get the correct reference Chapter 1. in test_crossref2 with a ConTeXt 
version from March:

This is LuaTeX, Version beta-0.78.2 (TeX Live 2014/dev) (rev 4746) 
ConTeXt  ver: 2014.03.22 15:31 MKIV beta  fmt: 2014.3.22  int: english/english

With more recent versions (including the last one downloaded this morning), the 
chapter number doesn't appear in test_crossref2, I only get Chapter ., not 
even ??. There isn't any error message in the log file. The internal cross 
reference (in test_crossref1) still works fine. I have the same faulty result 
with these three versions:

This is LuaTeX, Version beta-0.79.1 (TeX Live 2014/dev) (rev 4972) 
ConTeXt  ver: 2014.07.30 10:31 MKIV beta  fmt: 2014.8.9  int: english/english

This is LuaTeX, Version beta-0.79.1 (TeX Live 2014/dev) (rev 4972) 
ConTeXt  ver: 2014.09.06 20:59 MKIV beta  fmt: 2014.9.11  int: english/english

This is LuaTeX, Version beta-0.79.1 (TeX Live 2014/dev) (rev 4972) 
ConTeXt  ver: 2014.12.05 11:11 MKIV beta  fmt: 2014.12.5  int: english/english


Is this a bug or did something change in the way to build references from 
external files.

Thanks,

-- 
Jean-Philippe Rey Professeur - École Centrale Paris
jean-philippe@ecp.fr  92295 Châtenay-Malabry Cedex - France
Empreinte PGP : 807A 5B2C 69E4 D4B5 783A 428A 1B5E E83E 261B BF51

___
If your question is of interest to others as well, please add an entry to the 
Wiki!

maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-context
webpage  : http://www.pragma-ade.nl / http://tex.aanhet.net
archive  : http://foundry.supelec.fr/projects/contextrev/
wiki : http://contextgarden.net
___

[NTG-context] Wrong page break in sequence of headings

2014-09-11 Thread Jean-Philippe Rey
Dear all,

I have a problem with page breaking in a sequence of titles (for example 
chapter, section, subsection) : a page break can occur between titles. I tested 
this with the last beta version

  ConTeXt  ver: 2014.09.06 20:59 MKIV beta

with the following example

% - Start of example -
\setuphead[chapter][page=no]

\starttext

\chapter{Chap 1}

\section{Bryson}

\input bryson

\section{Davis}

\input davis

\section{filler 1}

Ipsam vero urbem Byzantiorum fuisse refertissimam atque ornatissimam signis quis
ignorat? Quae illi, exhausti sumptibus bellisque maximis, cum omnis 
Mithridaticos
impetus totumque Pontum armatum affervescentem in Asiam atque erumpentem,
ore repulsum et cervicibus interclusum suis sustinerent, tum, inquam, Byzantii 
et
postea signa illa et reliqua urbis ornanemta sanctissime custodita tenuerunt. 
Equitis
Romani autem esse filium criminis loco poni ab accusatoribus neque his 
iudicantibus
oportuit neque defendentibus nobis. Nam quod de pietate dixistis, est quidem 
ista
nostra existimatio, sed iudicium certe parentis; quid nos opinemur, audietis ex 
iuratis;
quid parentes sentiant, lacrimae matris incredibilisque maeror, squalor patris
%et haec praesens maestitia, quam cernitis, luctusque declarat. Vita est illis 
semper
%in fuga uxoresque mercenariae conductae ad tempus ex pacto atque, ut sit 
species
%matrimonii, dotis nomine futura coniunx hastam et tabernaculum offert marito,
%post statum diem si id elegerit discessura, et incredibile est quo ardore apud 
eos in
%venerem uterque solvitur sexus.

\chapter{Chap 2}

\section{Dawkins}

\input dawkins

\section{Douglas}

\input douglas

\section{filler 2}

Soleo saepe ante oculos ponere, idque libenter crebris usurpare sermonibus, 
omnis
%nostrorum imperatorum, omnis exterarum gentium potentissimorumque populorum,
%omnis clarissimorum regum res gestas, cum tuis nec contentionum magnitudine
%nec numero proeliorum nec varietate regionum nec celeritate conficiendi nec
%dissimilitudine bellorum posse conferri; nec vero disiunctissimas terras 
citius passibus
%cuiusquam potuisse peragrari, quam tuis non dicam cursibus, sed victoriis 
lustratae sunt.

\section{Group 1}

\subsection{Hawking}

\input hawking

\subsection{Knuth}

\input knuth

\section{Linden}

\input linden

\stoptext
% - End of example -


I get the Chap 2 title at the end of the first page, it should be on top of 
the second page. Similarly the Group 1 title is located at the bottom of the 
second page.

I tried to use \startsection ... \stopsection but got the same result.

Is there a setup to get the page breaks right ? Or is this a bug ?

Thank you for your help.

-- 
Jean-Philippe Rey Professeur - École Centrale Paris
jean-philippe@ecp.fr  92295 Châtenay-Malabry Cedex - France
Empreinte PGP : 807A 5B2C 69E4 D4B5 783A 428A 1B5E E83E 261B BF51

___
If your question is of interest to others as well, please add an entry to the 
Wiki!

maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-context
webpage  : http://www.pragma-ade.nl / http://tex.aanhet.net
archive  : http://foundry.supelec.fr/projects/contextrev/
wiki : http://contextgarden.net
___


Re: [NTG-context] Wrong page break in sequence of headings

2014-09-11 Thread Jean-Philippe Rey
Hi Pablo,

Le 11 sept. 2014 à 16:35, Pablo Rodriguez oi...@gmx.es a écrit :

 page breaks can occur after a heading command.
 
 Is there a setup to get the page breaks right ? Or is this a bug ?
 
 It isn’t a bug, it‘s just the way heads are defined in ConTeXt.

I thought it could have been a bug because I have never seen ConTeXt put a page 
break between a head and the following text when it is a standard paragraph 
(which is a sensible behavior). It seems odd to allow a page break between two 
heads, except in very exceptional situations (e.g. a very long list of heads).


 For chapters and sections, use:
 
 \setuphead[chapter][after={\blank[samepage, 2*big]}]
 \setuphead[section][after={\blank[samepage]}]
 
 I hope it helps,

It works perfectly well, thank you very much Pablo.

-- 
Jean-Philippe Rey Professeur - École Centrale Paris
jean-philippe@ecp.fr  92295 Châtenay-Malabry Cedex - France
Empreinte PGP : 807A 5B2C 69E4 D4B5 783A 428A 1B5E E83E 261B BF51

___
If your question is of interest to others as well, please add an entry to the 
Wiki!

maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-context
webpage  : http://www.pragma-ade.nl / http://tex.aanhet.net
archive  : http://foundry.supelec.fr/projects/contextrev/
wiki : http://contextgarden.net
___


[NTG-context] Placing arbitrary pdf bookmarks

2014-03-22 Thread Jean-Philippe Rey
Hello all,

I am willing to use ConTeXt to produce a bunch of stickers. My stickers are 
grouped into categories but I don't want any headers or titles to interfere 
with the layout of the stickers, so I didn't use \startchapter and the likes. 
However, I would like to add pdf bookmarks in order to quickly jump to the 
start of a category. After taking a look at strc-bkm.mkiv, I tried the following

\setupinteraction[state=start]
\definelist[building]
\definelist[aisle]
\placebookmarks[building,aisle]

\starttext

\bookmark[building]{B1}
\bookmark[aisle]{A1}

Sticker 1

Sticker 2

\page
\bookmark[aisle]{A2}

Sticker 3

Sticker 4

\page
\bookmark[building]{B2}
\bookmark[aisle]{A3}

Sticker 5

Sticker 6

\stoptext


But it didn't worked. I didn't get any error message but no bookmark either.

How can I directly add a bookmark to the pdf table of contents ? Previously I 
was using the ReportLab toolkit which provided for this purpose the 
bookmarkPage and addOutlineEntry functions. Is there a similar solution with 
ConTeXt ?

Thanks for your help,

-- 
Jean-Philippe Rey Professeur - École Centrale Paris
jean-philippe@ecp.fr  92295 Châtenay-Malabry Cedex - France
Empreinte PGP : 807A 5B2C 69E4 D4B5 783A 428A 1B5E E83E 261B BF51

___
If your question is of interest to others as well, please add an entry to the 
Wiki!

maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-context
webpage  : http://www.pragma-ade.nl / http://tex.aanhet.net
archive  : http://foundry.supelec.fr/projects/contextrev/
wiki : http://contextgarden.net
___


Re: [NTG-context] Placing arbitrary pdf bookmarks

2014-03-22 Thread Jean-Philippe Rey
Hi Pablo,

Le 22 mars 2014 à 17:31, Pablo Rodriguez oi...@gmx.es a écrit :

 On 03/22/2014 04:35 PM, Jean-Philippe Rey wrote:
 Hello all,
 
 I am willing to use ConTeXt to produce a bunch of stickers. My
 stickers are grouped into categories but I don't want any headers or
 titles to interfere with the layout of the stickers, so I didn't use
 \startchapter and the likes.
 
 I think there is workaround for your case: not placing heads in document.

Very good hint, thank you. It works perfectly fine with MkII. With MkIV, 
although the head is not printed, some whitespace is added that disturbs the 
layout. I tried

\setuphead[chapter,section][placehead=hidden]

and got rid of the spurious whitespace ... but also of the pdf bookmarks :-(

\setuphead[chapter,section][placehead=no,page=no,before=,after=]

don't work either.

Here is an example to demonstrate the problem (again, it works fine with MkII, 
unfortunately I am using lua to compose my stickers).


\setupinteraction[state=start]
\placebookmarks[chapter,section]
\setuphead[chapter,section][placehead=no]
\starttext

\chapter{B1}
\section{A1}

Sticker 1

Sticker 2

\page

Sticker 3

\section{A2}

Sticker 4

\page
\chapter{B2}

Sticker 5

\section{A3}

Sticker 6

\stoptext




-- 
Jean-Philippe Rey Professeur - École Centrale Paris
jean-philippe@ecp.fr  92295 Châtenay-Malabry Cedex - France
Empreinte PGP : 807A 5B2C 69E4 D4B5 783A 428A 1B5E E83E 261B BF51

___
If your question is of interest to others as well, please add an entry to the 
Wiki!

maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-context
webpage  : http://www.pragma-ade.nl / http://tex.aanhet.net
archive  : http://foundry.supelec.fr/projects/contextrev/
wiki : http://contextgarden.net
___


Re: [NTG-context] Placing arbitrary pdf bookmarks

2014-03-22 Thread Jean-Philippe Rey
Hello Pablo,

Le 22 mars 2014 à 20:00, Pablo Rodriguez oi...@gmx.es a écrit :

 my fault, this is the right head configuration:
 
\setuphead[chapter,section][placehead=empty,before=,after=,]

Works perfectly. Thank you very much.

-- 
Jean-Philippe Rey Professeur - École Centrale Paris
jean-philippe@ecp.fr  92295 Châtenay-Malabry Cedex - France
Empreinte PGP : 807A 5B2C 69E4 D4B5 783A 428A 1B5E E83E 261B BF51

___
If your question is of interest to others as well, please add an entry to the 
Wiki!

maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-context
webpage  : http://www.pragma-ade.nl / http://tex.aanhet.net
archive  : http://foundry.supelec.fr/projects/contextrev/
wiki : http://contextgarden.net
___


[NTG-context] French letter style and date

2013-06-21 Thread Jean-Philippe Rey
Dear all,

I can't manage to get the date on a french letter style. I am using

 ConTeXt  ver: 2013.04.07 01:04 MKIV beta  fmt: 2013.4.7  int: english/english

I also tried some older versions and with 

 ConTeXt  ver: 2011.05.18 18:04 MKIV  fmt: 2011.7.31  int: english/english

I get a date printed above the destination address. I also get a date with 
other styles. Did anything change in the letter module between this two 
versions?

Does anyone know how to get the date with the new version?

Here is my test file.


\usemodule[letter]
\useletterstyle[french]

\setupletter[
date={20 juin 2013},
toname={Jane Doe},
toaddress={24 rue des acacias\\63265 Trifoullis les Oies},
signature={John Doe},
opening={Mademoiselle,},
closing={Je vous prie de recevoir, Mademoiselle, mes meilleures 
salutations.}
]

\setupletterlayer[reference][list={date}]

\startletter

\input knuth

\stopletter


Thank you for your help.

-- 
Jean-Philippe Rey
jp...@noos.fr



___
If your question is of interest to others as well, please add an entry to the 
Wiki!

maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-context
webpage  : http://www.pragma-ade.nl / http://tex.aanhet.net
archive  : http://foundry.supelec.fr/projects/contextrev/
wiki : http://contextgarden.net
___


[NTG-context] setuphead command ! Argument of \xxx has an extra }.

2013-01-25 Thread Jean-Philippe Rey
Hi,

I am trying to use a homemade command to display chapter heads but I 
systematically get the following error:

! Argument of \ChapterHead has an extra }.

Here is my minimal example


\def\ChapterHead#1#2{#1 --- #2}
\setuphead[chapter][command=\ChapterHead]
\starttext
\chapter{Hello}
Some text
\stoptext


This example works fine with MKII and with the texlive 2012 version of MKIV 
(ConTeXt ver: 2012.05.30 11:26). It fails with the last beta (2013.01.24 16:47 
MKIV) and also with 2012.11.22 14:55 MKIV.

I tried \setuphead[chapter][alternative=command,command=\ChapterHead]
and  \startchapter ... \stopchapter
but still get the same error.

You will find below the content of the log file produced by my minimal example.

Thanks for your help.




(/Users/jprey/ConTeXt-2013.01.24/tex/texmf-context/tex/context/base/cont-yes.mkiv

ConTeXt  ver: 2013.01.24 16:47 MKIV  fmt: 2013.1.25  int: english/english

system   cont-new.mkiv loaded
(/Users/jprey/ConTeXt-2013.01.24/tex/texmf-context/tex/context/base/cont-new.mkiv
system   beware: some patches loaded from cont-new.mkiv
)
system   files  jobname: test-setuphead, input: test-setuphead, 
result: test-setuphead
fontslatin modern fonts are not preloaded
languageslanguage en is active
(test-setuphead.tex{/Users/jprey/ConTeXt-2013.01.24/tex/texmf-context/fonts/map/pdftex/context/mkiv-base.map}
fontspreloading latin modern fonts (second stage)
fontstypescripts  unknown: library 'loc'
{/Users/jprey/ConTeXt-2013.01.24/tex/texmf/fonts/map/dvips/lm/lm-math.map}{/Users/jprey/ConTeXt-2013.01.24/tex/texmf/fonts/map/dvips/lm/lm-rm.map}
fontsfallback modern rm 12pt is loaded

% begin of command line arguments
%
% noarrange= true
% input= ./test-setuphead.tex
% fulljobname  = ./test-setuphead.tex
% currentrun   = 1
% no-parse-first-line  = true
% arrange  = true
% script   = true
% synctex  = true
% kindofrun= 1
%
% end of command line arguments

% begin of command line files
%
% 1  ./test-setuphead.tex
%
% end of command line files

structuresectioning  chapter @ level 2: 0.1 - Hello
! Argument of \ChapterHead has an extra }.

system   tex  error on line 4 in file test-setuphead.tex: Argument of 
 ...

1 \def\ChapterHead#1#2{#1 --- #2}
2 \setuphead[chapter][command=\ChapterHead]
3 \starttext
4   \chapter{Hello}
5 Some text
6 \stoptext
7 

inserted text 
\par 
to be read again 
   }
\strc_rendering_inject_number_and_text ...ommand }
  \ifx \p_command \empty \di...
\strc_rendering_place_head_number_and_text ...ext 
  }\fi \strc_rendering_stop_...
\strc_sectioning_handle ...e_head_number_and_text 
  \else \strc_rendering_plac...
l.4 \chapter{Hello}
   
? 
! Emergency stop.

system   tex  error on line 4 in file test-setuphead.tex: Emergency 
stop ...

1 \def\ChapterHead#1#2{#1 --- #2}
2 \setuphead[chapter][command=\ChapterHead]
3 \starttext
4   \chapter{Hello}
5 Some text
6 \stoptext
7 

inserted text 
\par 
to be read again 
   }
\strc_rendering_inject_number_and_text ...ommand }
  \ifx \p_command \empty \di...
\strc_rendering_place_head_number_and_text ...ext 
  }\fi \strc_rendering_stop_...
\strc_sectioning_handle ...e_head_number_and_text 
  \else \strc_rendering_plac...
l.4 \chapter{Hello}
   
End of file on the terminal!

!  == Fatal error occurred, no output PDF file produced!

-- 
Jean-Philippe Rey Professeur - École Centrale Paris
jean-philippe@ecp.fr  92295 Châtenay-Malabry Cedex - France
Empreinte PGP : 807A 5B2C 69E4 D4B5 783A 428A 1B5E E83E 261B BF51




___
If your question is of interest to others as well, please add an entry to the 
Wiki!

maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-context
webpage  : http://www.pragma-ade.nl / http://tex.aanhet.net
archive  : http://foundry.supelec.fr/projects/contextrev/
wiki : http://contextgarden.net
___


Re: [NTG-context] setuphead command ! Argument of \xxx has an extra }.

2013-01-25 Thread Jean-Philippe Rey

Le 25 janv. 2013 à 17:00, Marco Patzer a écrit :

 On 2013–01–25 Jean-Philippe Rey wrote:
 
 \def\ChapterHead#1#2{#1 --- #2}
 
 \define[2]\ChapterHead{#1 --- #2}
 
 or
 
 \unexpanded\def\ChapterHead#1#2{#1 --- #2}


It works. Thank you very much.

-- 
Jean-Philippe Rey Professeur - École Centrale Paris
jean-philippe@ecp.fr  92295 Châtenay-Malabry Cedex - France
Empreinte PGP : 807A 5B2C 69E4 D4B5 783A 428A 1B5E E83E 261B BF51


___
If your question is of interest to others as well, please add an entry to the 
Wiki!

maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-context
webpage  : http://www.pragma-ade.nl / http://tex.aanhet.net
archive  : http://foundry.supelec.fr/projects/contextrev/
wiki : http://contextgarden.net
___


Re: [NTG-context] Missing file.tuc with setuparranging[2SIDE]

2012-11-15 Thread Jean-Philippe Rey
Hi,

Le 15 nov. 2012 à 17:56, Romain Diss a écrit :

 Hi
 Le jeudi 15 novembre 2012, Wolfgang Schuster a écrit :
 Am 15.11.2012 um 01:28 schrieb Romain Diss romain.d...@yahoo.fr:
 I found a strange problem using \setuparranging[2SIDE] : the .tuc file is
 not created anymore and this lead to a missing section number (for the
 first section only). How can I remedy to that ? Any idea ?
 
 Use “context --arrange filename”.
 Thank you, it seems trivial but it works well.
 
 Do the use of \setuparranging should always be accompanied by context --
 arrange filename or are there specific cases?


I don't know the official answer but I can tell you that I have been using 
--arrange systematically, whether or not my tex files contain \setuparranging, 
and I didn't notice a problem in two years. On the contrary forgetting 
--arrange led to problems in page numbers, references, running headers, etc.

Best,

-- 
Jean-Philippe Rey Professeur - École Centrale Paris
jean-philippe@ecp.fr  92295 Châtenay-Malabry Cedex - France



___
If your question is of interest to others as well, please add an entry to the 
Wiki!

maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-context
webpage  : http://www.pragma-ade.nl / http://tex.aanhet.net
archive  : http://foundry.supelec.fr/projects/contextrev/
wiki : http://contextgarden.net
___


[NTG-context] Managing prefixes in section references

2012-11-14 Thread Jean-Philippe Rey
Hi all,

I am trying to convince \in to build up a full reference (chapter 
number.section number) but can not work it out.

Here is my minimal example :

% ConTeXt 2012.11.08 MKIV

\setuphead[section][sectionsegments=section]
\setupreferencestructureprefix[section][number][prefixsegments=2:*]

\starttext
\chapter{Chapter one}

\section[S1]{Section one}

This is \in{section}[S1]   % displays 1 instead of 1.1

\stoptext


What am I doing wrong ?

Thanks for your answers.

-- 
Jean-Philippe Rey Professeur - École Centrale Paris
jean-philippe@ecp.fr  92295 Châtenay-Malabry Cedex - France



___
If your question is of interest to others as well, please add an entry to the 
Wiki!

maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-context
webpage  : http://www.pragma-ade.nl / http://tex.aanhet.net
archive  : http://foundry.supelec.fr/projects/contextrev/
wiki : http://contextgarden.net
___


[NTG-context] Caption number conversion in MkIV

2012-04-21 Thread Jean-Philippe Rey
Hello everybody,

I would like to use capital letters instead of roman numerals to number figures 
and tables.

In MkII I used

  \setupcaptions[conversion=Characters]

However, it doesn't work in MkIV. Does someone know the equivalent in MkIV ?

Thanks,

-- 
Jean-Philippe Rey Professeur - École Centrale Paris
jean-philippe@ecp.fr  92295 Châtenay-Malabry Cedex - France



___
If your question is of interest to others as well, please add an entry to the 
Wiki!

maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-context
webpage  : http://www.pragma-ade.nl / http://tex.aanhet.net
archive  : http://foundry.supelec.fr/projects/contextrev/
wiki : http://contextgarden.net
___


Re: [NTG-context] Caption number conversion in MkIV

2012-04-21 Thread Jean-Philippe Rey

Le 21 avr. 2012 à 19:32, Wolfgang Schuster a écrit :

 
 Am 21.04.2012 um 19:27 schrieb Jean-Philippe Rey:
 
 Hello everybody,
 
 I would like to use capital letters instead of roman numerals to number 
 figures and tables.
 
 In MkII I used
 
 \setupcaptions[conversion=Characters]
 
 However, it doesn't work in MkIV. Does someone know the equivalent in MkIV ?
 
 \setupcaptions[numberconversion=Characters]

Works perfectly well. Thank you very much.

I updated the wiki (http://wiki.contextgarden.net/Command/setupcaptions) to add 
the numberconversion paramater.

-- 
Jean-Philippe Rey Professeur - École Centrale Paris
jean-philippe@ecp.fr  92295 Châtenay-Malabry Cedex - France



___
If your question is of interest to others as well, please add an entry to the 
Wiki!

maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-context
webpage  : http://www.pragma-ade.nl / http://tex.aanhet.net
archive  : http://foundry.supelec.fr/projects/contextrev/
wiki : http://contextgarden.net
___


Re: [NTG-context] Problem with external cross-references

2012-03-08 Thread Jean-Philippe Rey
Hello Hans,

Le 5 mars 2012 à 10:18, Hans Hagen a écrit :

 ConTeXt  ver: 2011.05.18 18:04 MKIV  fmt: 2011.7.31  int: english/english
 
 That version is quite old; I wouldn't be surprised if in that version loading 
 of cross document references was not yet implemented fully. The current 
 version doesn't use the mkii way anyway (no export option, different loading 
 etc).

If I am not mistaken, this is the last current (=stable) version. I have been 
using MkII for some time and I wanted to switch to MkIV as it seems the way to 
go. However I am not comfortable using a beta version for production purpose, 
especially as I am using ConTeXt to write test questions where a small misprint 
could have tragic consequences.

Should I stick to MkII and wait for the next stable version ? Or is there a 
reasonably stable (e.g. pre-release) version that I could use ?

-- 
Jean-Philippe Rey Professeur - École Centrale Paris
jean-philippe@ecp.fr  92295 Châtenay-Malabry Cedex - France



___
If your question is of interest to others as well, please add an entry to the 
Wiki!

maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-context
webpage  : http://www.pragma-ade.nl / http://tex.aanhet.net
archive  : http://foundry.supelec.fr/projects/contextrev/
wiki : http://contextgarden.net
___


Re: [NTG-context] Problem with external cross-references

2012-03-03 Thread Jean-Philippe Rey
Hello Hans,

Le 2 mars 2012 à 20:59, Hans Hagen a écrit :

 On 25-2-2012 17:47, Jean-Philippe Rey wrote:
 Hello everybody,
 
 I'm trying to use external cross-references between two files but I can't 
 make it work with MkIV. I am using ConTeXt current
 
 ConTeXt  ver: 2011.05.18 18:04 MKIV  fmt: 2011.7.31  int: english/english
 
 
 With MkII, the following minimal example works perfectly well :
 
 % file test_crossref1
 \starttext
 \chapter[lorem]{Lorem}
 Lorem ipsum dolor sit amet, consectetur adipiscing elit \in{Chapter}[lorem].
 \stoptext
 
 % file test_crossref2
 \usereferences[test_crossref1]
 \starttext
 Lorem ipsum dolor sit amet, consectetur adipiscing elit \in{Chapter}[lorem].
 \stoptext
 
 \useexternaldocument[xref][test_crossref1]
 
 \starttext
Lorem ipsum dolor sit amet, consectetur adipiscing elit 
 \in{Chapter}[xref::lorem].
 \stoptext

Thank you for your answer, but it doesn't work. I still get an undefined 
reference and the following lines in the log file

references   references from document 'test_crossref1' are not exported
references   unknown reference [][xref::lorem]


-- 
Jean-Philippe Rey Professeur - École Centrale Paris
jean-philippe@ecp.fr  92295 Châtenay-Malabry Cedex - France



___
If your question is of interest to others as well, please add an entry to the 
Wiki!

maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-context
webpage  : http://www.pragma-ade.nl / http://tex.aanhet.net
archive  : http://foundry.supelec.fr/projects/contextrev/
wiki : http://contextgarden.net
___


[NTG-context] Paragraph beginning with { doesn't flow around a float

2012-03-03 Thread Jean-Philippe Rey
Hello everybody,

I found a problem with text flowing around a float. As far as I understand the 
problem, if a paragraph begins with a {, it doesn't flow around a float. Here 
is a minimal example :

\starttext
\placefigure[left]{}{\framed[width=50mm,height=20mm]{}}

{\bf Lorem} ipsum dolor sit amet, consectetur adipiscing elit. Sed non risus.
Suspendisse lectus tortor, dignissim sit amet, adipiscing nec, ultricies
sed, dolor. Cras elementum ultrices diam. Maecenas ligula massa, varius
a, semper congue, euismod non, mi. Proin porttitor, orci nec nonummy
molestie, enim est eleifend mi, non fermentum diam nisl sit amet erat.
Duis semper. Duis arcu massa, scelerisque vitae, consequat in, pretium a,
enim. Pellentesque congue. Ut in risus volutpat libero pharetra tempor.
Cras vestibulum bibendum augue. Praesent egestas leo in pede. Praesent
blandit odio eu enim.
\stoptext


Everything works fine with paragraphs that don't start with a {. I found the 
following workaround:

\hskip0mm{\bf Lorem} ipsum dolor ...

(\relax doesn't work)

I am using 

ConTeXt  ver: 2011.05.18 18:04 MKIV  fmt: 2011.7.31  int: english/english

It is the same with

ConTeXt  ver: 2011.05.18 18:04 MKII  fmt: 2011.7.31  int: english/english

I didn't see any relevant message in the log file.

It is not really a problem for me as I have found a simple workaround. I 
thought however that it might be useful to the community to report the problem.

-- 
Jean-Philippe Rey Professeur - École Centrale Paris
jean-philippe@ecp.fr  92295 Châtenay-Malabry Cedex - France



___
If your question is of interest to others as well, please add an entry to the 
Wiki!

maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-context
webpage  : http://www.pragma-ade.nl / http://tex.aanhet.net
archive  : http://foundry.supelec.fr/projects/contextrev/
wiki : http://contextgarden.net
___


[NTG-context] Problem with external cross-references

2012-02-25 Thread Jean-Philippe Rey
 adipiscing elit 
\in{Chapter}[lorem].
6 
7   \stoptext

argument ...lua {structures.references.export()}
  
\firstofoneargument #1-#1
  
\finalend ...se \the \everybye \the \everygoodbye 
  \doifsometokselse \everyno...
l.7 \stoptext
 
? 
! Emergency stop.

system   tex  error on line 7 in file test_crossref1.tex: Emergency 
stop ...

1 \setupreferencing[export=yes]
2 \starttext
3 \chapter[lorem]{Lorem}
4 
5 Lorem ipsum dolor sit amet, consectetur adipiscing elit 
\in{Chapter}[lorem].
6 
7   \stoptext

argument ...lua {structures.references.export()}
  
\firstofoneargument #1-#1
  
\finalend ...se \the \everybye \the \everygoodbye 
  \doifsometokselse \everyno...
l.7 \stoptext
 
End of file on the terminal!

!  == Fatal error occurred, no output PDF file produced!




-- 
Jean-Philippe Rey Professeur - École Centrale Paris
jean-philippe@ecp.fr  92295 Châtenay-Malabry Cedex - France



___
If your question is of interest to others as well, please add an entry to the 
Wiki!

maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-context
webpage  : http://www.pragma-ade.nl / http://tex.aanhet.net
archive  : http://foundry.supelec.fr/projects/contextrev/
wiki : http://contextgarden.net
___


[NTG-context] Formula number conversion

2012-02-24 Thread Jean-Philippe Rey
Hello everybody,

I have a problem with formula numbering in relation with a customized section 
conversion set. I am using ConTeXt current 

 ConTeXt  ver: 2011.05.18 18:04 MKIV  fmt: 2011.7.31  int: english/english

Here is a minimal example

\definestructureconversionset[CCS][numbers,Character,Romannumerals,numbers,character][numbers]
\setupheads[sectionconversionset=CCS]
\starttext
\chapter{Lorem}
\section{Ipsum}
\placeformula[f1]   % The formula is numbered (1.1) instead of (A.1)
\startformula
a^2 + b^2 = c^2
\stopformula
\section{Dolor}
The famous formula \in[f1] % The reference correctly appears as A.1
\stoptext


I tried different options to \setupformulas but could not get the formula 
number right. Could someone give me the right setting.

Thanks,

-- 
Jean-Philippe Rey Professeur - École Centrale Paris
jean-philippe@ecp.fr  92295 Châtenay-Malabry Cedex - France



___
If your question is of interest to others as well, please add an entry to the 
Wiki!

maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-context
webpage  : http://www.pragma-ade.nl / http://tex.aanhet.net
archive  : http://foundry.supelec.fr/projects/contextrev/
wiki : http://contextgarden.net
___


[NTG-context] Selecting pdf version

2011-01-02 Thread Jean-Philippe Rey
Dear all,

I am looking for a way to choose the pdf version generated by ConTeXt. On my 
system, ConTeXt produces pdf 1.5 files, but my printshop doesn't like them and 
asks for pdf 1.4 files. Is there a way to tell ConTeXt to produce pdf 1.4 files 
?

Thanks,

-- 
Jean-Philippe Rey Professeur - École Centrale Paris
jean-philippe@ecp.fr  92295 Châtenay-Malabry Cedex - France



___
If your question is of interest to others as well, please add an entry to the 
Wiki!

maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-context
webpage  : http://www.pragma-ade.nl / http://tex.aanhet.net
archive  : http://foundry.supelec.fr/projects/contextrev/
wiki : http://contextgarden.net
___


Re: [NTG-context] Selecting pdf version

2011-01-02 Thread Jean-Philippe Rey
Le 2 janv. 2011 à 15:41, luigi scarso a écrit :

 On Sun, Jan 2, 2011 at 3:20 PM, Jean-Philippe Rey
 jean-philippe@ecp.fr wrote:
 Dear all,
 
 I am looking for a way to choose the pdf version generated by ConTeXt. On my 
 system, ConTeXt produces pdf 1.5 files, but my printshop doesn't like them 
 and asks for pdf 1.4 files. Is there a way to tell ConTeXt to produce pdf 
 1.4 files ?
 \pdfminorversion4

Thank you very much.

 -- or change printshop

I am using the university printshop.  I asked them to upgrade their system.  
They answered that it was too costly whereas pdf versions 1.5 and further add 
only interactive features and don't bring any improvement for printing 
documents.

Thanks again,

-- 
Jean-Philippe Rey Professeur - École Centrale Paris
jean-philippe@ecp.fr  92295 Châtenay-Malabry Cedex - France



___
If your question is of interest to others as well, please add an entry to the 
Wiki!

maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-context
webpage  : http://www.pragma-ade.nl / http://tex.aanhet.net
archive  : http://foundry.supelec.fr/projects/contextrev/
wiki : http://contextgarden.net
___


Re: [NTG-context] Cut marks + alignment marks

2010-02-17 Thread Jean-Philippe Rey


Le 16 févr. 10 à 11:04, Thomas A. Schmitz a écrit :



On Feb 16, 2010, at 10:42 AM, Jean-Philippe Rey wrote:


Hello everybody,

I am using the imposition feature of ConTeXt which is very nice.  
\setuplayout[marking=on] allows me to print cut marks, but this  
doesn't produce alignment marks. Is there an option to print, along  
cut marks, traditional alignement marks (hirondelles in French),  
i.e. cross hairs in a circle exactly positioned at the middle of  
each four paper sides.


Thanks for your answers.


Are you looking for something like this? Willi Eggers and I have  
written a module to support this, but haven't released it yet. If  
this is what you're looking for, I can send you the file.


That's exactly what I'm looking for. I am very interested by your  
module and waiting eagerly for your file :-)


Thank you very much.

--
Jean-Philippe Rey Professeur - École Centrale Paris
jean-philippe@ecp.fr  92295 Châtenay-Malabry Cedex - France





___
If your question is of interest to others as well, please add an entry to the 
Wiki!

maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-context
webpage  : http://www.pragma-ade.nl / http://tex.aanhet.net
archive  : http://foundry.supelec.fr/projects/contextrev/
wiki : http://contextgarden.net
___


[NTG-context] Cut marks + alignment marks

2010-02-16 Thread Jean-Philippe Rey

Hello everybody,

I am using the imposition feature of ConTeXt which is very nice.  
\setuplayout[marking=on] allows me to print cut marks, but this  
doesn't produce alignment marks. Is there an option to print, along  
cut marks, traditional alignement marks (hirondelles in French), i.e.  
cross hairs in a circle exactly positioned at the middle of each four  
paper sides.


Thanks for your answers.

--
Jean-Philippe Rey Professeur - École Centrale Paris
jean-philippe@ecp.fr  92295 Châtenay-Malabry Cedex - France





___
If your question is of interest to others as well, please add an entry to the 
Wiki!

maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-context
webpage  : http://www.pragma-ade.nl / http://tex.aanhet.net
archive  : http://foundry.supelec.fr/projects/contextrev/
wiki : http://contextgarden.net
___


[NTG-context] End of document marker

2010-01-30 Thread Jean-Philippe Rey

Hello everybody,

I have a type of document needing an end marker (a final line stating  
the end of the document). I use a framed paragraph to build this  
marker, however, if the document contains floats, I have some  
difficulties being sure that this marker will always be located at the  
very end of the document (i.e. after all floats).


Is there a command to flush all floats? Or do you suggest another way  
to build an end marker?


Thanks for your help,

--
Jean-Philippe Rey Professeur - École Centrale Paris
jean-philippe@ecp.fr  92295 Châtenay-Malabry Cedex - France

___
If your question is of interest to others as well, please add an entry to the 
Wiki!

maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-context
webpage  : http://www.pragma-ade.nl / http://tex.aanhet.net
archive  : http://foundry.supelec.fr/projects/contextrev/
wiki : http://contextgarden.net
___


[NTG-context] Help

2009-08-18 Thread Jean-Philippe Rey



--
Jean-Philippe Rey

___
If your question is of interest to others as well, please add an entry to the 
Wiki!

maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-context
webpage  : http://www.pragma-ade.nl / http://tex.aanhet.net
archive  : https://foundry.supelec.fr/projects/contextrev/
wiki : http://contextgarden.net
___


Re: [NTG-context] Can't get header repetition with multipage table

2007-05-17 Thread Jean-Philippe Rey
Le 15/05/07 2:40, luigi scarso a écrit :
 
 
 On 5/14/07, *Jean-Philippe Rey* [EMAIL PROTECTED]
 mailto:[EMAIL PROTECTED] wrote:
 
 I can't get repeated headers in a multipage table.
 
 Try with
 \setuptables[split=repeat]

It works perfectly well, thanks Luigi. I updated
http://wiki.contextgarden.net/Tables_Overview to add setuptables.

 See also
 http://www.logosrl.it/context/modules/2007-04-17/singles/core-tab_ebook.pdf

I believe this pdf has been generated directly from core-tab.tex. Which
command did you use?

Thanks again.

-- 
Jean-Philippe ReyProfesseur informatique - École Centrale Paris
[EMAIL PROTECTED] 92295 Châtenay-Malabry Cedex - France
___
If your question is of interest to others as well, please add an entry to the 
Wiki!

maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-context
webpage  : http://www.pragma-ade.nl / http://tex.aanhet.net
archive  : https://foundry.supelec.fr/projects/contextrev/
wiki : http://contextgarden.net
___


[NTG-context] Can't get header repetition with multipage table

2007-05-14 Thread Jean-Philippe Rey
Hello folks,

I can't get repeated headers in a multipage table. I tried the following:

%
\starttext

\starttablehead
  \HL
  \VL Column 1 \VL Column 2 \VL\SR
  \HL
\stoptablehead

\starttabletail
  \HL
  \VL Column 1 \VL Column 2 \VL\SR
  \HL
\stoptabletail

\starttables[|l|l|]
  \dorecurse{100}{\VL value \VL value \VL\SR}
  \VL value \VL value \VL\SR
\stoptables

\stoptext
%

I get a multipage table, but the header appears only at the beginning of
the table and doesn't repeat itself on each page. Same for the tail part.

I believe I am using the last ConTeXt version:

TeXExec | TeXExec | version 6.2.0 - 1997-2006 - PRAGMA ADE/POD
TeXExec | TeXUtil   | version 9.1.0 - 1997-2005 - PRAGMA ADE/POD
TeXExec | CtxTools | version 1.3.3 - 2004/2006 - PRAGMA ADE/POD
TeXExec | ConTeXt ver: 2007.04.03 13:01 MKII fmt: 2007.4.7 int:
english/english
This is pdfTeXk, Version 3.141592-1.40.3 (Web2C 7.5.6)

I tried first http://live.contextgarden.net/ but ConTeXt live seems to
be down at the moment, I always get the message the file 'texexec' is
not found.

Any help most welcome.

-- 
Jean-Philippe ReyProfesseur informatique - École Centrale Paris
[EMAIL PROTECTED] 92295 Châtenay-Malabry Cedex - France
___
If your question is of interest to others as well, please add an entry to the 
Wiki!

maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-context
webpage  : http://www.pragma-ade.nl / http://tex.aanhet.net
archive  : https://foundry.supelec.fr/projects/contextrev/
wiki : http://contextgarden.net
___