Re: [NTG-context] Bug in \placeformula

2016-09-02 Thread Otared Kavian
Hi Henri,

Your are right there is an issue with \startmathcases…\stopmathcases: the 
equations are not numbered when using this structure.
As a temporary solution you can use \startmatrix…\stopmatrix as in the 
following, or you can define your own \startalignedcases.

\starttext

\placeformula
\startformula
f(\mu,t) := 
\startmatrix[left={\left\{\,},right={\right.}]
   \NC 0 \NC \mu > 2t \NR
   \NC \pi/2 \NC \mu = 2t \NR
   \NC \pi \NC \mu < 2t \NR
\stopmatrix
\stopformula

\stoptext

Best regards: OK

> On 2 Sep 2016, at 11:18, Henri Menke  wrote:
> 
> Dear list,
> 
> this formula is not numbered even though it should be.  Please fix.
> 
> \starttext
> \placeformula
> \startformula
>  \startmathcases
>\NC 0 \NC $\mu > 2t$ \NR
>\NC \pi/2 \NC $\mu = 2t$ \NR
>\NC \pi \NC $\mu < 2t$ \NR
>  \stopmathcases
> \stopformula
> \stoptext
> 
> Cheers, Henri
> ___
> 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
> ___

___
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] align text and formula

2016-08-24 Thread Otared Kavian
Hi Jan,

I don’t know exactly what you want to achieve, but a possible solution is to 
put a column between the first and the last columns which contains only the 
spacement between the first column and the third one.
Here is an example:

%%% begin example-1.tex
\starttext

\setupformulas[align=flushleft]
\startformula
\startalign[n=3,align={left,middle}]
\NC \text{Text1}\NC \qquad\NC E = mc^2\NR
\NC \text{This is an explanation}\NC\qquad\NC  E = mc^2\NR
\NC \text{This is a longer explanation}\NC\qquad\NC E = mc^2\NR
\stopalign
\stopformula

\stoptext
%%% end example-1.tex

Best regards: OK

> On 24 Aug 2016, at 10:21, Jan Willem Flamma <jwfregis...@icloud.com> wrote:
> 
> Hi Otared,
> 
> Thanks for the (very quick) reply.
> 
> I’ve experiemented with that solution as well. However, the text can vary in 
> length and this would required a lot of tweaking to try and get the formulas 
> mid-aligned.
> I’m trying to find a fool proof solution that will get the formula 
> mid-aligned in all cases (and hope it exists).
> 
> In any case, thanks for your suggestion!
> 
> Jan Willem
> 
>> On 24 aug. 2016, at 10:10, Otared Kavian <ota...@gmail.com> wrote:
>> 
>> Hi Jan,
>> 
>> You can specify a certain horizontal distance in the second column, as in 
>> the following:
>> 
>> %%% begin example.tex
>> \starttext
>> 
>> \setupformulas[align=flushleft]
>> \startformula
>>  \startalign[n=2,align={left,middle}]
>>  \NC \text{Text1}\NC\qquad E = mc^2\NR
>>  \NC \text{Text2}\NC\qquad E = mc^2\NR
>>  \NC \text{Text2}\NC\hskip 3cm E = mc^2\NR
>>  \stopalign
>> \stopformula
>> 
>> \stoptext
>> %%% end example.tex
>> 
>>> On 24 Aug 2016, at 10:02, Jan Willem Flamma <jwfregis...@icloud.com> wrote:
>>> 
>>> Dear list,
>>> 
>>> I would like to include text on the same line as a formula.
>>> The text needs to be left-aligned and the formula needs to be mid-aligned 
>>> (as per normal).
>>> 
>>> I’ve tried various solutions from the mathalign MyWay but have not 
>>> succeeded to get the desired result sofar.
>>> Below a M-Not-WE. Clearly, the formula is not positioned correctly yet.
>>> 
>>> Who can help me out?
>>> 
>>> Regards,
>>> Jan Willem
>>> 
>>> 
>>> \starttext
>>> 
>>> \setupformulas[align=flushleft]
>>> \startformula
>>> \startalign[n=2,align={left,middle}]
>>> \NC \text{Text1}\NC E = mc^2\NR
>>> \NC \text{Text2}\NC E = mc^2\NR
>>> \stopalign
>>> \stopformula
>>> 
>>> \stoptext
>>> 
>>> ___
>>> 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
>>> ___
>> 
>> ___
>> 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
>> ___
> 
> ___
> 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
> ___

___
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] align text and formula

2016-08-24 Thread Otared Kavian
Hi Jan,

You can specify a certain horizontal distance in the second column, as in the 
following:

%%% begin example.tex
\starttext

\setupformulas[align=flushleft]
\startformula
\startalign[n=2,align={left,middle}]
\NC \text{Text1}\NC\qquad E = mc^2\NR
\NC \text{Text2}\NC\qquad E = mc^2\NR
\NC \text{Text2}\NC\hskip 3cm E = mc^2\NR
\stopalign
\stopformula

\stoptext
%%% end example.tex

> On 24 Aug 2016, at 10:02, Jan Willem Flamma  wrote:
> 
> Dear list,
> 
> I would like to include text on the same line as a formula.
> The text needs to be left-aligned and the formula needs to be mid-aligned (as 
> per normal).
> 
> I’ve tried various solutions from the mathalign MyWay but have not succeeded 
> to get the desired result sofar.
> Below a M-Not-WE. Clearly, the formula is not positioned correctly yet.
> 
> Who can help me out?
> 
> Regards,
> Jan Willem
> 
> 
> \starttext
> 
> \setupformulas[align=flushleft]
> \startformula
>   \startalign[n=2,align={left,middle}]
>   \NC \text{Text1}\NC E = mc^2\NR
>   \NC \text{Text2}\NC E = mc^2\NR
>   \stopalign
> \stopformula
> 
> \stoptext
> 
> ___
> 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
> ___

___
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] \startalign \stopalign equation number placement seems wrong

2016-08-17 Thread Otared Kavian
Hi Mikael,

I confirm that the latest beta (ConTeXt version 2016.08.11 13:56 MKIV beta) has 
the issue you are reporting.
This bug is absent from the current version from TeXLive2016, that is ConTeXt  
version 2016.05.17 19:20 MKIV current.

Some time ago I reported an analogous issue with startalign, and it seemed to 
me that Hans fixed it. But it appeared again with the beta 2016.08.11 13:56.

Best regards: OK

> On 17 Aug 2016, at 14:20, Mikael P. Sundqvist  wrote:
> 
> Hi,
> 
> The test file
> 
> \starttext
> \placeformula
> \startformula
> \startalign
> \NC \exp(t_1)\exp(t_2)\NC =x_1x_2=\exp(\ln(x_1x_2))\NR
> \NC \NC =\exp(\ln x_1+\ln x_2)=\exp(t_1+t_2).\NR[eq:explag1]
> \stopalign
> \stopformula
> 
> \placeformula
> \startformula
> 1+1=2
> \stopformula
> \stoptext
> 
> gives the attached pdf. In the first formula, the location of the
> equation number seems to be wrong (I would have expected it to be to
> the right, like in the second example). In the (nice, but rather old
> now) My Way by Aditya, this does not seem to happen.
> 
> /Mikael
> ___
> 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
> ___

___
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] Place a text over an arrow (Metafun)

2016-07-25 Thread Otared Kavian

> On 25 Jul 2016, at 11:47, Fabrice Couvreur  
> wrote:
> 
> Hi Hans and Otared,
> I did not know this module (Context is so rich !), it's great !
> thanks
> Fabrice

Indeed… ConTeXt is so rich! Probably I use only one or two per cent of its 
capabilities, but still I am happy and often amazed…

Best regards: Otared
___
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] Place a text over an arrow (Metafun)

2016-07-25 Thread Otared Kavian
Hi Fabrice,

Do you know the step charts module in ConTeXt? I guess you can achieve what you 
want as in the example below (sorry, I did not took your example, I am just 
copying an example from my archives…).

%%
\usemodule[steps]
\starttext

Pour voir que la composée de deux fonctions $f$ et $u$, continues en un point 
$x_{*}$, est continue, on peut suivre le schéma suivant~:
\placefigure[middle,none][-]{}{
%\scale[,width=.35\textwidth]{
\startSTEPtable 
\cell {$(f\circ u)(x_{*} + o(1)) = $} \text{définition de $f\circ u$}
\cell {$f\left(u\left(x_{*} + o(1)\right)\right) = $} \text {$u$ est 
continue} 
\cell {$f\left(u(x_{*}) + o(1)\right) = $} \text {$f$ est continue} 
\cell {$f\left(u(x_{*})\right) + o(1) =$} \text {définition de $f\circ 
u$} 
\cell {$(f\circ u)(x_{*}) + o(1)$.} 
\stopSTEPtable
%}
}
\stoptext
%%

Best regrads: Otared



> On 25 Jul 2016, at 10:36, Fabrice Couvreur  
> wrote:
> 
> Hello,
> My way is not very elegant but I would do this:
> 
> Formula
>arrow text
> Formula
>arrow text
> Formula
>arrow text
> Formula
> 
> #
> \startuseMPgraphic{MyArrow}
> path p ;
> p:=(0,0){right}..(0.5cm,-0.6cm)..(0,-1.2cm){left} ;
> drawarrow p withpen pencircle scaled 1.5bp withcolor 0.625white ;
> \stopuseMPgraphic
> 
> \starttext
> 
> \showgrid
> 
> \math{A\times X=B}
>  
> \hfill On multiplie, à gauche, les deux membres de l'égalité par 
> \math{A^{-1}}.
> 
> \hskip 5cm \relax \dontleavehmode\useMPgraphic{MyArrow}
> 
> \math{A^{-1}\times A\times X=A^{-1}\times B}
> 
> \hfill On utilise l'égalité \math{A^{-1}\times A=I}.
> 
> \hskip 5cm \relax \dontleavehmode \useMPgraphic{MyArrow}
> 
> \math{I\times X=A^{-1}\times B} 
> 
> \hfill On utilise l'égalité \math{X\times I=I\times X=X}.
> 
> \hskip 5cm \relax \dontleavehmode \useMPgraphic{MyArrow}
> 
> On a donc \math{X=A^{-1}\times B}   
>  
> \stoptext
> #
> 
> Thanks,
> Fabrice
> ___
> If your question is of interest to others as well, please add an entry to the 
> Wiki!
> 
> maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-context
> webpage  : http://www.pragma-ade.nl / http://tex.aanhet.net
> archive  : http://foundry.supelec.fr/projects/contextrev/
> wiki : http://contextgarden.net
> ___

___
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] (no subject)

2016-07-17 Thread Otared Kavian
Hi Fabrice,

If you want the framed box to be placed on the same baseline as the letter A, 
in the example, then you have to tell ConTeXt to place a margin material right 
after A, as in


A\\ \placerecipe{}{\framed{La vie n'est pas un long fleu||ve tranquille !}}
B \\ C

and you can play with setupframed by choosing an option « low » or » high » 
according to your desire.

Best regards: Otared


> On 16 Jul 2016, at 23:23, Fabrice Couvreur <fabrice1.couvr...@gmail.com> 
> wrote:
> 
> Hi Kavian,
> Okay, but I do not understand why the top of the framed can not be on the 
> baseline of the letter A.
> Fabrice
> 
> 2016-07-16 11:28 GMT+02:00 Otared Kavian <ota...@gmail.com>:
> Hi Fabrice,
> 
> Indeed you can place your float a little bit higher in th emargin, as in the 
> example below, by using the keyword « high ».
> 
> Best regrads: Otared K.
> % begin fabrice-inmargin.tex
> \setuplayout
>   [width=13cm,
>rightmargin=5cm]
> 
> \setupbodyfont[pagella,11pt]
> 
> \definefloat
>[recipe]
>[figure]
> 
> \setupfloat
>[recipe]
>[default={rightmargin,none,high}]
> 
> \setupframed
>   [frame=on,
>width=\rightmarginwidth,
>align=justify,
>offset=2pt,
>location=low,
>rulethickness=1pt,
>framecolor=darkred,
>corner=00]
> 
> \showgrid
> \showframe
> 
> \starttext
> 
> A\\ B \\ C
> \placerecipe{}{\framed{La vie n'est pas un long fleu||ve tranquille !}}
> 
> \input ward.tex
> 
> \setupfloat
>[recipe]
>[default={rightmargin,none,low}]
> 
> A\\ B \\ C
> \placerecipe{}{\framed{La vie n'est pas un long fleu||ve tranquille !}}
> 
> \stoptext
> % end fabrice-inmargin.tex
> 
> > On 16 Jul 2016, at 00:44, Fabrice Couvreur <fabrice1.couvr...@gmail.com> 
> > wrote:
> >
> > Hi Kavian (your first name ?)
> > Thank you for your suggestion but it is still a little problem: why the 
> > baseline of the framed is the thirdA and not the first ?
> > thank you,
> > Fabrice
> >
> > \useMPlibrary [dum]
> >
> > \setuplayout
> >   [width=13cm,
> >rightmargin=5cm]
> >
> >
> > \setupbodyfont[pagella,11pt]
> >
> > \definefloat
> >[recipe]
> >[figure]
> >
> > \setupfloat
> >[recipe]
> >[default={rightmargin,none}]
> >
> > \setupframed
> >   [frame=on,
> >width=\rightmarginwidth,
> >align=justify,
> >offset=2pt,
> >location=low,
> >rulethickness=1pt,
> >framecolor=darkred,
> >corner=00]
> >
> > \starttext
> >
> > \showframe
> >
> >
> > A\\A\\A
> > \placerecipe{}{\framed{La vie n'est pas un long fleu||ve tranquille !}}
> >
> >
> >
> > \stoptext
> 
> ___
> 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
> ___
> 
> ___
> 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
> ___

___
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] (no subject)

2016-07-16 Thread Otared Kavian
Hi Fabrice,

Indeed you can place your float a little bit higher in th emargin, as in the 
example below, by using the keyword « high ».

Best regrads: Otared K.
% begin fabrice-inmargin.tex
\setuplayout
  [width=13cm,
   rightmargin=5cm]

\setupbodyfont[pagella,11pt]

\definefloat
   [recipe]
   [figure]
 
\setupfloat
   [recipe]
   [default={rightmargin,none,high}]

\setupframed
  [frame=on,
   width=\rightmarginwidth,
   align=justify,
   offset=2pt,
   location=low,
   rulethickness=1pt,
   framecolor=darkred,
   corner=00]

\showgrid
\showframe

\starttext

A\\ B \\ C
\placerecipe{}{\framed{La vie n'est pas un long fleu||ve tranquille !}}

\input ward.tex

\setupfloat
   [recipe]
   [default={rightmargin,none,low}]

A\\ B \\ C
\placerecipe{}{\framed{La vie n'est pas un long fleu||ve tranquille !}}

\stoptext
% end fabrice-inmargin.tex

> On 16 Jul 2016, at 00:44, Fabrice Couvreur  
> wrote:
> 
> Hi Kavian (your first name ?)
> Thank you for your suggestion but it is still a little problem: why the 
> baseline of the framed is the thirdA and not the first ?
> thank you,
> Fabrice
> 
> \useMPlibrary [dum]
> 
> \setuplayout
>   [width=13cm,
>rightmargin=5cm]
>   
> 
> \setupbodyfont[pagella,11pt]
> 
> \definefloat
>[recipe]
>[figure]
>  
> \setupfloat
>[recipe]
>[default={rightmargin,none}]
> 
> \setupframed
>   [frame=on,
>width=\rightmarginwidth,
>align=justify,
>offset=2pt,
>location=low,
>rulethickness=1pt,
>framecolor=darkred,
>corner=00]
> 
> \starttext
> 
> \showframe
> 
> 
> A\\A\\A
> \placerecipe{}{\framed{La vie n'est pas un long fleu||ve tranquille !}}
> 
> 
> 
> \stoptext

___
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] (no subject)

2016-07-15 Thread Otared Kavian
Hi Fabrice,

You can give an option to \framed, as in:

\placerecipe{}{\framed[align=justify,offset=2pt]{La vie n'est pas un long 
fleuve tranquille !}}

You may also (in the above example) replace « fleuve » by « fleu||ve » in order 
to get a hyphenation.

Best regards: OK

> On 15 Jul 2016, at 16:19, Fabrice Couvreur  
> wrote:
> 
> Hi Wolfgang,
> Thank you. Now I want the figures or boxes with text are automatically placed 
> in the right margin. Is this the best way ?
> How have justified text in the boxes ?
> Fabrice
> 
> 
> \useMPlibrary [dum]
> 
> \setuplayout
>   [width=13cm,
>rightmargin=5cm]
> 
> \setupbodyfont[pagella,11pt]
> 
> \definefloat
>[recipe]
>[figure]
>  
> \setupfloat
>[recipe]
>[default={rightmargin,none}]
> 
> \setupframed
>   [frame=on,
>width=\rightmarginwidth,
>align=flushleft,
>location=low,
>rulethickness=1pt,
>framecolor=blue,
>corner=00]
> 
> \starttext
> 
> \showframe
> 
> \placerecipe{}{\externalfigure [dummy] [width=\rightmarginwidth]}
> 
> \placerecipe{}{\framed{La vie n'est pas un long fleuve tranquille !}}
> 
> \stoptext
> ###
> 
> 
> 2016-07-15 13:26 GMT+02:00 Wolfgang Schuster :
>> Fabrice Couvreur 15. Juli 2016 um 13:17
>>  
>> Hello everyone,
>> The document 
>> https://drive.google.com/file/d/0B-mkD83s36jbREZmbGdPaGVHUDg/view?usp=sharing
>>  shows what I would do at the place reserved for the text and that reserved 
>> for comments, ratings ...
>> Must use two columns or predefine the dimensions of the paper ? 
> Change the layout of the page, the blue boxes are margin texts.
> 
> \setuplayout
>   [width=13cm,
>rightmargin=5cm]
> 
> \showframe
> 
> \starttext
> \page[dummy]
> \stoptext
> 
> Wolfgang
> 
> ___
> 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
> ___
> 
> ___
> 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
> ___

___
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] Wrap figures and equations

2016-07-13 Thread Otared Kavian
Hi Hans,

I was going to report a similar issue with \placeformula and floats in general, 
as in the example below. 
However the trick suggested by Wolfgang does not solve all the problems and in 
fact in my real size document it triggers an error message saying:

\strc_formulas_flush_number ...\math_native_reqno 
  {\box \b_strc_formulas_num...
\strc_formulas_stop_formula ...mulas_flush_number 
  \dostarttagged \t!formulac…

but it is very difficult to set up a minimal example showing this.

In any case here is an example showing the problem with \placeformula and 
floats, with its PDF attached.

Best regards: OK

% begin bug-placeformula-float.tex

\definefloat[intermezzo]
\setupfloat[intermezzo]
[leftmargindistance=-12mm,
rightmargindistance=-12mm,
default=outer]

\setupcaption[intermezzo][location=none]

\defineframedtext[explication]
[width=6cm,
bodyfont=small,
corner=round,
frame=on,
framecolor=darkred,
rulethickness=1pt,
background=color, %screen
backgroundcolor=lightgray] %backgroundscreen=.9

\definestartstop[expli]
[before={\startplaceintermezzo\startexplication},
after={\stopexplication\stopplaceintermezzo}]

%\unprotected\c_strc_formulas_mode\zerocount %% <--- This solves the problem 
here
%% but not in other instances
\starttext
\startexpli
\input knuth.tex
\stopexpli
\input ward.tex
On dit que la loi de composition interne $\oplus$ est {\bf associative} si on a 
\startformula
\forall\, x,y,z \in G, \qquad x\oplus (y \oplus z) = (x\oplus y) \oplus z.
\stopformula
\input ward.tex

\input tufte.tex
\stoptext
% end bug-placeformula-float.tex



bug-placeformula-float.pdf
Description: Adobe PDF document


> On 13 Jul 2016, at 18:26, Wolfgang Schuster  
> wrote:
> 
> Hi Hans,
> 
> the following problem is from StackExchange [1] which can only be solved by 
> changing
> the value of the \c_strc_formulas_mode counter which can’t be the right 
> answer for this.
> 
> %\unprotected\c_strc_formulas_mode\zerocount
> 
> \starttext
> 
> \placefigure[right]{}{\blackrule[width=6cm,height=4cm]}
> \input ward
> \startformula
> d = vt
> \stopformula
> \input ward
> 
> \stoptext
> 
> [1] 
> http://tex.stackexchange.com/questions/319157/context-wrap-figures-with-text-and-equations
> 
> Wolfgang
> ___
> 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
> ___

___
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] Bug in placeformula with framed text

2016-07-05 Thread Otared Kavian
Hi Hans,

Thanks a lot for having fixed the issue I was reporting.

Unfortunately I found another issue related to placeformula and alignment in 
math mode. 
In the following example the use of \startalign in a \placeformula triggers a 
weird behavior in the sense that the following instance of \startformula gets 
also a number, even though one does not issue a \placeformula command. Moreover 
the number is placed incorrectly.
In the resulting PDF I am attaching, please look at the numbers (4) and (8) 
placed incorrectly (and they are not wanted neither…).
When one removes the \placeformula command, the result is correct.

Best regards: OK

%%% begin bug-placeformula-align.tex
\definemathalignment[Lgather][n=1,align=left]

\starttext

\setupformulas[location=left] 
\placeformula
\startformula
\startLgather
\NC a_{n} = O(1)\; \mbox{ and }\; u_{n} = O(1) \imply  a_{n} + \lambda u_{n} = 
O(1) \NR[eq:O-ev-1]
\NC a_{n} = O(1)\; \mbox{ and }\; u_{n} = O(1) \imply a_{n}u_{n} = O(1) 
\NR[eq:O-ev-2]
\NC a_{n} = o(u_{n})\; \mbox{ et }\; b_{n} = O(v_{n})  \imply a_{n}b_{n} = 
o(u_{n}v_{n}) \NR[+]
\stopLgather
\stopformula


\blank
\hairline
\blank

\startformula
\startalign[n=2,align=left]
\NC a_{n} := {n - 1 \over n},\qquad\qquad \NC x_{n} := {n^2 + 1 \over n^2}, \NR
\NC b_{n} := -1 , \NC y_{n} := -1. \NR
\stopalign
\stopformula 

\blank
\hairline
\blank

\setupformulas[location=right] 

\placeformula
\startformula
\startLgather
\NC a_{n} = O(1)\; \mbox{ and }\; u_{n} = O(1) \imply  a_{n} + \lambda u_{n} = 
O(1) \NR[eq:O-ev-1]
\NC a_{n} = O(1)\; \mbox{ and }\; u_{n} = O(1) \imply a_{n}u_{n} = O(1) 
\NR[eq:O-ev-2]
\NC a_{n} = o(u_{n})\; \mbox{ et }\; b_{n} = O(v_{n})  \imply a_{n}b_{n} = 
o(u_{n}v_{n}) \NR[+]
\stopLgather
\stopformula


\blank
\hairline
\blank

\startformula
\startalign[n=2,align=left]
\NC a_{n} := {n - 1 \over n},\qquad\qquad \NC x_{n} := {n^2 + 1 \over n^2}, \NR
\NC b_{n} := -1 , \NC y_{n} := -1. \NR
\stopalign
\stopformula 

\stoptext
%%% end bug-placeformula-align.tex


bug-placeformula-align.pdf
Description: Adobe PDF document


> On 05 Jul 2016, at 13:08, Hans Hagen <pra...@wxs.nl> wrote:
> 
> On 7/4/2016 11:11 AM, Otared Kavian wrote:
> 
>> Below is an example (sorry if it is not absolutely minimal: I ran into this 
>> bug when updating a lecture notes which uses a left frame around \proclaim 
>> stuff). I attach the PDF showing the problem. I wonder whether this is 
>> related to the new features introduced recently for math frames.
> 
> fixed in next beta
> 
> 
> -
>  Hans Hagen | PRAGMA ADE
>  Ridderstraat 27 | 8061 GH Hasselt | The Netherlands
>   tel: 038 477 53 69 | www.pragma-ade.nl | www.pragma-pod.nl
> -
> ___
> 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
> ___

___
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] Bug in placeformula with framed text

2016-07-04 Thread Otared Kavian
Hi Hans,

It seems that there is a bug in the latest beta (ConTeXt  vesion: 2016.07.01 
16:28) when using \placeformula with a framed text environment. The numbers for 
the formulas are placed incorrectly, on the left as well as on the right.
Also, as one may see in the example below the numbering of the formulas begins 
at 2 instead of 1 at the first instance, and at it continues at 6 instead of 4 
in the second instance.

Below is an example (sorry if it is not absolutely minimal: I ran into this bug 
when updating a lecture notes which uses a left frame around \proclaim stuff). 
I attach the PDF showing the problem. I wonder whether this is related to the 
new features introduced recently for math frames.

The code gives correct result with ConTeXt version 2015.05.18 12:26 from 
TeXLive 2015).

Best regards: OK
%%% begin bug-framed.tex
\defineframedtext[ProclaimFramed]
[width=\textwidth,
frame=off,
leftframe=on,
framecolor=darkred,
rulethickness=2pt,
offset=0pt,
loffset=4pt,
roffset=4pt,
]
\defineenumeration[proclaim]
[text=,
before={\startProclaimFramed},
after={\stopProclaimFramed},
style=slanted,
title=yes,
titleleft=,
titleright={.},
alternative=hanging,
number=no,
width=fit,
right={~},
]

\definemathalignment[Lgather][n=1,align=left]


\starttext

\setupformulas[location=left] 
\startproclaim{Some elementary properties of Landau notations} Let 
$(a_{n})_{n}$ and $(b_{n})_{n}$, as well as $(u_{n})_{n}$ and $(v_{n})_{n}$, be 
sequences of complex numbers. Then:
\placeformula
\startformula
\startLgather
\NC a_{n} = O(1)\; \mbox{ and }\; u_{n} = O(1) \imply  a_{n} + \lambda u_{n} = 
O(1) \NR[eq:O-ev-1]
\NC a_{n} = O(1)\; \mbox{ and }\; u_{n} = O(1) \imply a_{n}u_{n} = O(1) 
\NR[eq:O-ev-2]
\NC a_{n} = o(u_{n})\; \mbox{ et }\; b_{n} = O(v_{n})  \imply a_{n}b_{n} = 
o(u_{n}v_{n}) \NR[+]
\stopLgather
\stopformula
\stopproclaim
\blank
\hairline
\blank

\setupformulas[location=right] 
\startproclaim{Some elementary properties of Landau notations} Let 
$(a_{n})_{n}$ and $(b_{n})_{n}$, as well as $(u_{n})_{n}$ and $(v_{n})_{n}$, be 
sequences of complex numbers. Then:
\placeformula
\startformula
\startLgather
\NC a_{n} = O(1)\; \mbox{ and }\; u_{n} = O(1) \imply  a_{n} + \lambda u_{n} = 
O(1) \NR[eq:O-ev-1]
\NC a_{n} = O(1)\; \mbox{ and }\; u_{n} = O(1) \imply a_{n}u_{n} = O(1) 
\NR[eq:O-ev-2]
\NC a_{n} = o(u_{n})\; \mbox{ et }\; b_{n} = O(v_{n})  \imply a_{n}b_{n} = 
o(u_{n}v_{n}) \NR[+]
\stopLgather
\stopformula
\stopproclaim

\stoptext
%%% end bug-framed.tex



bug-framed.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://tex.aanhet.net
archive  : http://foundry.supelec.fr/projects/contextrev/
wiki : http://contextgarden.net
___

Re: [NTG-context] issue with French patterns

2016-06-30 Thread Otared Kavian
Hi Pablo,

Your example is typeset correctly if one puts

\setuplanguage[fr,agr]

instead of  \setuplanguage[fr][patterns={fr, agr}]. 
On the wiki I didn’t find the keyword « patterns =………» for \setuplanguage.

Best regards: OK

> On 30 Jun 2016, at 20:15, Pablo Rodriguez  wrote:
> 
> Dear list,
> 
> I have the following sample:
> 
>\setuplanguage[fr][patterns={fr, agr}]
>\mainlanguage[fr]
>\setupbodyfont[dejavu]
>\starttext
>\hyphenatedword{χαλεπά éligibilité}
>\stoptext
> 
> I cannot compile it with latest beta (or with stable from 2015.05.18 12:26).
> 
> The error message reads:
> 
>error on line 2 in file a.tex: ! Conflicting pattern ignored
> 
> Is this a bug or is there no way to load French and ancient Greek
> hyphenation patterns?
> 
> Many thanks for your help,
> 
> Pablo
> -- 
> http://www.ousia.tk
> ___
> 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
> ___

___
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] Problems with Pagenumbers in TOC, romannumerals and numbers

2016-06-30 Thread Otared Kavian
Hi again,

Maybe what you want to achieve is resetting the page numbers at some point: in 
that case you can say:

\page
\resetuserpagenumber

just before the chapter where you want your chapter with roman numerals 
beginning at number 1.

Best regards: OK

> On 28 Jun 2016, at 14:15, Ursula Hermann  wrote:
> 
> Hello Wolfgang!
>  
> I have now written as you told me. 
> \starttext
> \placecontent
> \setupuserpagenumber[numberconversion=romannumerals]
> \startchapter
> \startchapter[title={Bildbeschreibung der Cover-Grafik}]
> \setupuserpagenumber[numberconversion=numbers]
> \startchapter
>   [title={Einleitung:"Entwicklung" behindern?}]
> \stoptext
>  
> Ähm where do i set the counter. I mean when I set\setcounter? 
>  
> Uschi
> Von: ntg-context [mailto:ntg-context-boun...@ntg.nl 
> ] Im Auftrag von Ursula Hermann
> Gesendet: Dienstag, 28. Juni 2016 12:31
> An: 'mailing list for ConTeXt users'
> Betreff: Re: [NTG-context] Problems with Pagenumbers in TOC, romannumerals 
> and numbers
>  
> Hallo Wolfgang!
>  
> Thanks for helping me. It was perfekt. 
>  
> Uschi
>  
> Von: ntg-context [mailto:ntg-context-boun...@ntg.nl 
> ] Im Auftrag von Wolfgang Schuster
> Gesendet: Freitag, 24. Juni 2016 18:34
> An: mailing list for ConTeXt users
> Betreff: Re: [NTG-context] Problems with Pagenumbers in TOC, romannumerals 
> and numbers
>  
>> Ursula Hermann 
>> 24. Juni 2016 um 15:53
>> Hello evrybody!
>>  
>> I need in a Toc pagenumberings with romannumrals and numbers. 
>>  
>> I have written this one: 
>>  
>> \mainlanguage[de]
>>  
>> \setupinteraction[state=start] % don't forget this line!
>> % make chapter, section bookmarks visible when opening document
>> \placebookmarks[chapter,section,subsection][chapter,section]
>> \setupinteractionscreen[option=bookmark]\starttext
>> \setuplist[chapter]
>> \setuplist[section][width=1em]
>> \setuplist[subsection][width=1.5em, margin=0.6em]
>> \setuplist[subject][margin=1.5em]
>> \setuppagenumbering
>> \setupcombinedlist[content][list={part,chapter,section,subsection,subsubsection}]
> None of the above setups are needed for a minimal example, remove them next 
> time.
> 
> \setupuserpagenumbering[conversion=romannumerals]
> You’re looking for the \setupuserpagenumber command (but \setuppagenumber 
> would
> also work because it’s a synonym for the command) and you have to use the 
> numbercommand
> key to change the conversion.
> 
> \setupuserpagenumber[numberconversion=romannumerals]
> 
> Wolfgang
> 
> ___
> 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 
> ___

___
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] Problems with Pagenumbers in TOC, romannumerals and numbers

2016-06-30 Thread Otared Kavian
Hello Ursula,

I don’t know whether the example you sent is what you typeset, but you should 
pay attention to close each \startchpater by a corresponding \stopchapter. The 
same remark applies to other \startSOMETHING command, which should have a 
corresponding \stopSOMETHING.
This is probably not related to the question you are asking, but nevertheless 
is important in many instances.

Best regards: OK

> On 28 Jun 2016, at 14:15, Ursula Hermann  wrote:
> 
> Hello Wolfgang!
>  
> I have now written as you told me. 
> \starttext
> \placecontent
> \setupuserpagenumber[numberconversion=romannumerals]
> \startchapter
> \startchapter[title={Bildbeschreibung der Cover-Grafik}]
> \setupuserpagenumber[numberconversion=numbers]
> \startchapter
>   [title={Einleitung:"Entwicklung" behindern?}]
> \stoptext
>  
> Ähm where do i set the counter. I mean when I set\setcounter? 
>  
> Uschi
> Von: ntg-context [mailto:ntg-context-boun...@ntg.nl 
> ] Im Auftrag von Ursula Hermann
> Gesendet: Dienstag, 28. Juni 2016 12:31
> An: 'mailing list for ConTeXt users'
> Betreff: Re: [NTG-context] Problems with Pagenumbers in TOC, romannumerals 
> and numbers
>  
> Hallo Wolfgang!
>  
> Thanks for helping me. It was perfekt. 
>  
> Uschi
>  
> Von: ntg-context [mailto:ntg-context-boun...@ntg.nl 
> ] Im Auftrag von Wolfgang Schuster
> Gesendet: Freitag, 24. Juni 2016 18:34
> An: mailing list for ConTeXt users
> Betreff: Re: [NTG-context] Problems with Pagenumbers in TOC, romannumerals 
> and numbers
>  
>> Ursula Hermann 
>> 24. Juni 2016 um 15:53
>> Hello evrybody!
>>  
>> I need in a Toc pagenumberings with romannumrals and numbers. 
>>  
>> I have written this one: 
>>  
>> \mainlanguage[de]
>>  
>> \setupinteraction[state=start] % don't forget this line!
>> % make chapter, section bookmarks visible when opening document
>> \placebookmarks[chapter,section,subsection][chapter,section]
>> \setupinteractionscreen[option=bookmark]\starttext
>> \setuplist[chapter]
>> \setuplist[section][width=1em]
>> \setuplist[subsection][width=1.5em, margin=0.6em]
>> \setuplist[subject][margin=1.5em]
>> \setuppagenumbering
>> \setupcombinedlist[content][list={part,chapter,section,subsection,subsubsection}]
> None of the above setups are needed for a minimal example, remove them next 
> time.
> 
> \setupuserpagenumbering[conversion=romannumerals]
> You’re looking for the \setupuserpagenumber command (but \setuppagenumber 
> would
> also work because it’s a synonym for the command) and you have to use the 
> numbercommand
> key to change the conversion.
> 
> \setupuserpagenumber[numberconversion=romannumerals]
> 
> Wolfgang
> 
> ___
> 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 
> ___

___
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] Strange result with formulaframed

2016-06-22 Thread Otared Kavian
Dear Hans,

I just did some experiments with the new \setupformulaframed, which you added 
recently after a demand by Aditya.
However it seems to me that it does not do exactly what one might expect, at 
least in the example below.

Would it be possible to have a mechanism which gives somehow what Aditya was 
asking?

% begin framed-frormula.tex
\setupformulaframed[framecolor=red,frame=on,offset=1ex]
\setupformula[option=frame,color=blue]

\starttext

\startplaceformula
  \startformula
  f(x) := \left\{
  \startalign
  \NC = -1\NC\quad \mbox{if }\, x < 0 \NR
  \NC = +1\NC\quad \mbox{if }\, x > 0 \NR
  \stopalign\right.
  \stopformula
\stopplaceformula

\stoptext
% end framed-frormula.tex

Best regards: OK
___
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] Enumerations

2016-05-08 Thread Otared Kavian
Hi Pablo,

You are right, the « norepeat » key does not work any more, but I do not know 
when the change, or th ebug, was introduced. In the « Teste Suite » there is a 
file entitled « repeat-001.tex » which used to give the behavoir expected by 
Henman and you, but when typeset now it gives something different. Compare the 
two attached PDF files (repeat-001.pdf is the old PDF obtained in 2012, while 
repeat-001-bis.pdf is the same file typeset with the latest beta, version 
2016-05-08 01:35).

Best regards: OK



repeat-001.pdf
Description: Adobe PDF document




repeat-00-bis.pdf
Description: Adobe PDF document

> On 08 May 2016, at 11:10, Pablo Rodriguez  wrote:
> 
> On 05/08/2016 12:07 AM, Henman wrote:
>> I am using the 'repeat' directive to cause itemizations to display upper 
>> level numbers as well as lower ones, but, sometimes I want to put it on 
>> hold and just display a simple alpha enumeration  For example at the 
>> third level.  I can't see how to turn off the repeat.
> 
> The source includes a norepeat keyword that should disable repetition.
> 
> But I’m a afraid it doesn’t work:
> 
>\setupitemgroup[itemize][1][n, repeat]
>\setupitemgroup[itemize][2][n, repeat]
>\setupitemgroup[itemize][3][a, norepeat]
> 
>\starttext
> 
>This is our item list:
> 
>\startitemize
>\item ...  % 1
>\startitemize
>\item ...  % 1.1
>\startitemize
>\item ...  % a
>\stopitemize
>\item ...  % 1.2
>\startitemize
>\item ...  % a
>\item ...  % b
>\stopitemize
>\stopitemize
>\item ...  % 2
>\stopitemize
> 
>\stoptext
> 
> I may be missing something or there might be a bug here.
> 
> 
> Pablo
> -- 
> http://www.ousia.tk
> ___
> 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
> ___

___
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] NEW : ConTeXt documentation in French (Wikibook)

2016-05-03 Thread Otared Kavian
Hi Jean-Pierre,

You ahve done a wonderful job, thanks for sharing.
I’ll look on a regular basis your wikibook and let you know if I find typos and 
examples to improve. 

Best regards: Otared K.

> On 03 May 2016, at 11:11, Jean-Pierre Delange  wrote:
> 
> Dear French ConTeXt users (and others),
> 
> I have started to compile ConTeXt documentation in French, gathered in a 
> Wikibook (Wikilivre) that you can find here :
> https://fr.wikibooks.org/wiki/ConTeXt.
> The whole documentation in this Wikibook is mostly given through French 
> translations of original English documentation, which is provided by ConTeXt 
> Garden wiki pages, Stack Exchange pages devoted to ConTeXt, and Bertrand 
> Lemasson website (http://lesfichesabebert.fr/index.php/FichesBebert/Context), 
> and by personnal tests made by me on both Linux/Windows systems.
> 
> This is a work in progress, and I need some help, first to correct the 
> several code examples I give in this Wikibook, second to provide some 
> examples of  ConTeXt "critic apparatus" (in the way you can find in LaTeX 
> code 'reledmac' there  — thanks to Maïeul Rouquette — 
> http://mirrors.ctan.org/macros/latex/contrib/reledmac/examples/1-criticalnotes.tex),
>  and third to give me some links where I can find ConTeXt up to date 
> documentation (especially about complex book project). Of course, you may 
> correct, improve and expand this project.
> 
> Thanks,
> JP Delange
> 
> 
> 
> 
> 
> 
> ___
> 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
> ___

___
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] right to left direction for itemize columns

2016-04-28 Thread Otared Kavian
Dear Mohammad-Hossein,

After updating my installation of ConTeXt indeed I see that the order of the 
columns is correct. (The version I have now is
2016.04.27 10:18 MKIV beta  fmt: 2016.4.28 
and the previous one was version2016.04.22 09:10).

Somehow I did not notice the February change you mention in your message, and 
in any case my installation was probably not really up to date.

Best regards: OK
PS: I am sorry for having changed your first name, and I apologize for that… 


> On 28 Apr 2016, at 09:55, Mohammad Hossein Bateni <bat...@gmail.com> wrote:
> 
> Dear Otared,
> 
> Your example works perfectly fine for me using version: 2016.04.13 16:46.  
> Perhaps, you're using an older version of CONTEXT.  There was a patch in 
> February enabling this.  See the output of my run attached.
> 
> —Hossein
> 
> P.S.  My name is Mohammad *Hossein*, not Mohammad Reza :)
> 
> 
> 
> On Thu, Apr 28, 2016 at 12:41 AM, Otared Kavian <ota...@gmail.com> wrote:
> Hi Mohammad Reza,
> 
> I tried your example, but it seems to me that the way the columns are 
> presented when writing Right-to-Left is still incorrect. In the following 
> example one should have the column containing the lines « First » and « 
> Second » to the right of the column containing « Third » and « Fourth ».
> 
> I don’t know if there is already a way to tell ConTeXt to do it in the right 
> way, or Hans has to look into the righttoleft mechanism.
> The same issue appears in the table mechanism.
> 
> By the way, the option 
>   [direction=reverse]
> seems to have no effect at all in Right-to-Left environment.
> 
> %%% begin example-RtoL-reverse.tex
> \usemodule[simplefonts]
> \setmainfont[ALM Fixed][features=arabic,range=arabic]
> 
> \setupdirections[bidi=global,method=two]
> \setupalign[righttoleft]
> 
> \starttext
> آزمایش نوشتن از راست به چپ
> 
> \startitemize[columns,two][direction=reverse]
> \item First
> \item Second
> \item Third
> \item Fourth
> \stopitemize
> 
> آزمایش نوشتن از راست به چپ
> \startitemize[columns,two][direction=reverse]
> 
> \startitem
> یک
> \stopitem
> 
> \startitem
> دو
> \stopitem
> 
> \startitem
> سه
> \stopitem
> 
> 
> \startitem
> چهار
> \stopitem
> \stopitemize
> \stoptext
> %%% end example-RtoL-reverse.tex
> 
> Best regards: OK
> 
>> On 27 Apr 2016, at 23:22, Mohammad Hossein Bateni <bat...@gmail.com> wrote:
>> 
>> I actually figured out that one can use the following:
>> 
>> \startitemize[columns,two][direction=reverse]
>> \item first
>> \item second
>> \item third
>> \stopitemize
>> 
>> On Wed, Apr 27, 2016 at 10:06 AM, Mohammad Hossein Bateni <bat...@gmail.com> 
>> wrote:
>> Wolfgang,
>> 
>> Did you imply in the email below that a new key or something was added to 
>> \startitemize setups?  I mean, using \setupmixedcolumns works fine but is it 
>> possible to do this in each \startitemize individually?
>> 
>> Thanks,
>> Hossein
>> 
>> On Mon, Feb 22, 2016 at 4:43 AM, Wolfgang Schuster 
>> <schuster.wolfg...@gmail.com> wrote:
>>> Bou Salim 21. Februar 2016 um 13:26
>>> I have posted  a question in tex stack exchange
>>> Customize right to left list in context
>>> 
>>> My aim is to obtain right to left  items arranged  in  multi-column, if I 
>>> use 
>>> \startitemize [s,columns,three] [margin=1em]   
>>> the result is three column where first column start from left side of page, 
>>> but I want it to start from right side of page.
>>> 
>>> I can use \startcolumns[direction=left]\startitemize \item First \item 
>>> Second \item Third \stopitemize \stopcolumns 
>>> but I think it look better if there is a key direction=left for the 
>>> \startitemize environment such as used in columns environment.
>> The underlying columns mechanism has a reverse option for the direction key. 
>> I sent a patch to the dev list which allows a direst setting of the 
>> direction value with the \startitemize command.
>> 
>> \starttext
>> 
>> \startitemize[columns,three]
>> \dorecurse{9}{\item Entry \recurselevel}
>> \stopitemize
>> 
>> \blank[3*line]
>> 
>> \setupmixedcolumns[itemgroupcolumns][direction=reverse]
>> 
>> \startitemize[columns,three]
>> \dorecurse{9}{\item Entry \recurselevel}
>> \stopitemize
>> 
>> \stoptext
>> 
>> Wolfgang
>> 
>> ___
>> If your question is of interest to others as well

Re: [NTG-context] right to left direction for itemize columns

2016-04-27 Thread Otared Kavian
Hi Mohammad Reza,

I tried your example, but it seems to me that the way the columns are presented 
when writing Right-to-Left is still incorrect. In the following example one 
should have the column containing the lines « First » and « Second » to the 
right of the column containing « Third » and « Fourth ».

I don’t know if there is already a way to tell ConTeXt to do it in the right 
way, or Hans has to look into the righttoleft mechanism.
The same issue appears in the table mechanism.

By the way, the option 
[direction=reverse]
seems to have no effect at all in Right-to-Left environment.

%%% begin example-RtoL-reverse.tex
\usemodule[simplefonts]
\setmainfont[ALM Fixed][features=arabic,range=arabic]

\setupdirections[bidi=global,method=two]
\setupalign[righttoleft]

\starttext
آزمایش نوشتن از راست به چپ

\startitemize[columns,two][direction=reverse]
\item First
\item Second
\item Third
\item Fourth
\stopitemize

آزمایش نوشتن از راست به چپ
\startitemize[columns,two][direction=reverse]

\startitem
یک
\stopitem

\startitem
دو
\stopitem

\startitem
سه
\stopitem


\startitem
چهار
\stopitem
\stopitemize
\stoptext
%%% end example-RtoL-reverse.tex

Best regards: OK

> On 27 Apr 2016, at 23:22, Mohammad Hossein Bateni  wrote:
> 
> I actually figured out that one can use the following:
> 
> \startitemize[columns,two][direction=reverse]
> \item first
> \item second
> \item third
> \stopitemize
> 
> On Wed, Apr 27, 2016 at 10:06 AM, Mohammad Hossein Bateni  > wrote:
> Wolfgang,
> 
> Did you imply in the email below that a new key or something was added to 
> \startitemize setups?  I mean, using \setupmixedcolumns works fine but is it 
> possible to do this in each \startitemize individually?
> 
> Thanks,
> Hossein
> 
> On Mon, Feb 22, 2016 at 4:43 AM, Wolfgang Schuster 
> > wrote:
>> Bou Salim  21. Februar 2016 um 13:26
>> I have posted  a question in tex stack exchange
>> Customize right to left list in context 
>> 
>> My aim is to obtain right to left  items arranged  in  multi-column, if I 
>> use 
>> \startitemize [s,columns,three] [margin=1em]   
>> the result is three column where first column start from left side of page, 
>> but I want it to start from right side of page.
>> 
>> I can use \startcolumns[direction=left]\startitemize \item First \item 
>> Second \item Third \stopitemize \stopcolumns 
>> but I think it look better if there is a key direction=left for the 
>> \startitemize environment such as used in columns environment.
> The underlying columns mechanism has a reverse option for the direction key. 
> I sent a patch to the dev list which allows a direst setting of the direction 
> value with the \startitemize command.
> 
> \starttext
> 
> \startitemize[columns,three]
> \dorecurse{9}{\item Entry \recurselevel}
> \stopitemize
> 
> \blank[3*line]
> 
> \setupmixedcolumns[itemgroupcolumns][direction=reverse]
> 
> \startitemize[columns,three]
> \dorecurse{9}{\item Entry \recurselevel}
> \stopitemize
> 
> \stoptext
> 
> Wolfgang
> 
> ___
> 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 
> ___
> 
> 
> ___
> 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
> ___

___
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] updating ConTeXt standalone

2016-04-23 Thread Otared Kavian
Ooops… Indeed I think I made a mistake: when I tried to check what Alan was 
saying, I ran first-setup.sh and immediatel after I issued the command
context —version

so that probably I got the version number from last year’s stable TeXLive. (I 
have always ate least two versions of Context on my machine…).
But trying again right now the whole procedure, I get now my standalone version 
updated to
Context version: 2016.04.22 09:10

So probably meanwhile Mojca fixed the server…

Best regards: OK

> On 23 Apr 2016, at 15:10, Pablo Rodriguez <oi...@gmx.es> wrote:
> 
> On 04/23/2016 02:48 PM, Otared Kavian wrote:
>> Hi Alan,
>> 
>> Until this morning updating would give the version you are
>> mentioning, but right now I updated again and now I get:
>> 
>>  Context version: 2015.05.18 12:26
>> 
>> So probbaly you may run again first-setup.sh.
> 
> Hi Otared,
> 
> am I missing something or updating the beta you got the latest stable?
> 
> Your version is from almost a year ago.
> 
> Pablo
> -- 
> http://www.ousia.tk
> ___
> 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
> ___

___
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] updating ConTeXt standalone

2016-04-23 Thread Otared Kavian
Hi Alan,

Until this morning updating would give the version you are mentioning, but 
right now I updated again and now I get:

Context version: 2015.05.18 12:26

So probbaly you may run again first-setup.sh.

Bets regrads: OK

> On 23 Apr 2016, at 14:15, Alan Bowen  wrote:
> 
> Are there still problems with servers at the Garden? Running first-setup.sh 
> seems stuck on current version 2016.04.17 11:56, though there have been two 
> updates since then. 
> 
> Alan
> ___
> 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
> ___

___
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] RTL section heads

2016-04-12 Thread Otared Kavian
Hi Hans and Mohammad Reza,

I can confirm that the wrong behaviour of numbers and digits in Right to Left 
(more specifically Persian) is recent: indeed with 

ConTeXt  ver: 2015.05.18 12:26 MKIV current  fmt: 2015.6.18  int: 
english/english

from TeXLive 2015 the numbers and digits are rendered as they should. Is it 
related to some changes in LuaTeX?

Best regards: OK

> On 13 Apr 2016, at 02:46, Mohammad Hossein Bateni  wrote:
> 
> Unfortunately when I use method=two for bidi, the numbers in the main body 
> are written from right to left.  I'm starting to wonder whether it does 
> anything nontrivial at all.
> 
> \usemodule[simplefonts]
> \setmainfont[ALM Fixed][features=arabic,range=arabic]
> 
> \setupdirections[bidi=global,method=two]
> \setupalign[r2l]
> 
> \starttext
> 
> سال ۲۰۱۶
> 
> 2016
> 
> \stoptext
> 
> 
> I'm pretty sure this used to work (for example in version 2016.01.18 22:21).  
> A similar piece of code is working fine on the website.  I'm using CONTEXT 
> version: 2016.04.01 13:01.  I also verified that it is not working in 
> version: 2016.04.10 23:52.
> 
> On Mon, Apr 11, 2016 at 11:47 AM, Mohammad Hossein Bateni  
> wrote:
> Thanks, Hans!  This does solve the problem with the list of numbers.  And 
> actually if I add a numberstyle field, I can the section heads the way I 
> like.  Here is the setup that worked.  (I will update Wiki later.)
> 
> \setupdirections[bidi=global,method=two]
> \setupalign[r2l]
> 
> \def\LTR#1{{\lefttoright#1}}
> \def\leftpersiandecimals#1{\LTR{\persiandecimals{#1}}}
> \defineconversion[leftpersiandecimals][\leftpersiandecimals]
> \setuphead[chapter,title,section,subject] 
> [conversion=leftpersiandecimals,numberstyle=\righttoleft]
> 
> \defineseparatorset[dashsep][-,-,-,-]
> \setuphead[section][sectionseparatorset=dashsep]
> 
> On Mon, Apr 11, 2016 at 10:46 AM, Hans Hagen  wrote:
> On 4/11/2016 4:25 AM, Mohammad Hossein Bateni wrote:
> Hans & Wolfgang,
> 
> Do you have suggestions here?  How can I get the behavior I want for the
> section head numbers?
> 
> In fact, the following may be quite relevant.
> 
> \usemodule[simplefonts]
> \setmainfont[ALM Fixed][features=arabic,range=arabic]
> 
> \setupdirections[bidi=global,method=default]
> \setupalign[r2l]
> 
> \starttext
> 
> اعداد ۱، ۲، ۳ و ۴ را در نظر بگیرید.
> 
> اعداد 1، 2، 3 و 4 را در نظر بگیرید.
> 
> اعداد 1, 2, 3 و 4 را در نظر بگیرید.
> 
> \stoptext
> 
> 
> I expect the numbers 1, 2, 3 and 4 to appear in the same order from
> right to left.  However, the visual order that I observe (regardless of
> whether I use Persian digits or English digits, or whether I use Persian
> or English commas) is 4, 1, 2, 3 (from left to right).  Is this a bug in
> the bidi code?  If so, are there any workarounds?
> 
> method=two
> 
> Thanks,
> Hossein
> 
> On Fri, Apr 8, 2016 at 5:20 PM, Mohammad Hossein Bateni
> > wrote:
> 
> Hi,
> 
> This is concerning an RTL text.  I have one chapter and 10 sections
> under that.  My goal is to achieve the following.
> 1) The number 10 should appear correctly with '1' visually to the
> left of '0'.
> 2) The chapter number should visually appear to the right of the
> section number.
> 3) Chapter and section numbers should be separated with a dash.
>   (This is ignored in this email and I will follow up about it in
> another thread.  To get a minimal working example, I also do not try
> to change the numbers to use Persian digits.)
> 
> In particular, the headings will be visually something like the
> following (aligned to the right).
> elpmas 1
> txet 1-1
> txet 2-1
> txet 3-1
> ...
> txet 10-1
> 
> Here's the first attempt.
> 
> %% Attempt 1
> \setupalign[r2l]
> 
> \starttext
> \placecontent
> 
> \chapter{sample}
> \dorecurse{10}{\section{text}}
> \stoptext
> 
> The result is:
> elpmas 1
> txet 1-1
> ...
> txet 01-1
> 
> 
> Then I add "\setupdirections[bidi=global,method=default]" to the
> beginning and I get the most strange result (number right-aligned
> but texts left-aligned):
> sample1
> text   1.1
> ...
> text 1.10
> 
> 
> A third attempt gives almost what I want (without period as the
> separator).
> 
> %% Attempt 3
> \setupalign[r2l]
> 
> \def\LTR#1{{\lefttoright#1}}
> \def\leftnumbers#1{\LTR{\numbers{#1}}}
> \defineconversion[leftnumbers][\leftnumbers]
> \setuphead[chapter,title,section,subject] [conversion=leftnumbers]
> 
> \starttext
> \placecontent
> 
> \chapter{sample}
> \dorecurse{10}{\section{text}}
> \stoptext
> 
> 
> The big problem is that in my RTL documents, I always have the
> setupdirections command, which messes things up here.  (This 

Re: [NTG-context] Bug in enumeration?

2016-04-12 Thread Otared Kavian
Thanks for your attention, and the fix, Hans.

Best regards: OK

> On 12 Apr 2016, at 10:11, Hans Hagen  wrote:
> 
> […]
> 
> swapped arguments in ... (actually that was a fix for something else, a space 
> in captions)
> 
> \unexpanded\def\strc_enumerations_inject_extra_text
>  {\ifconditional\c_strc_constructions_title_state
> \clf_doifelselisthastitle{\currentconstructionmain}\numexpr\currentconstructionlistentry\relax
>   \strc_enumerations_inject_extra_text_indeed
>   \donothing
>   \fi}
> 
> 
> 
> -
>  Hans Hagen | PRAGMA ADE
>  Ridderstraat 27 | 8061 GH Hasselt | The Netherlands
>  tel: 038 477 53 69 | www.pragma-ade.com | www.pragma-pod.nl
> -
> ___
> 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
> ___

___
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] Bug in enumeration?

2016-04-12 Thread Otared Kavian
Hi Hans,

It seems that the new beta has introduced an issue with enumerations: the title 
does not show up as it did previously (until last Friday for instance).

Below is an example.
Best regards

%%% bug-enumeartion.tex
%%%
\defineframedtext[ProclaimFramed]
[width=\textwidth,
frame=off,
leftframe=on,
framecolor=darkred,
rulethickness=2pt,
offset=0pt,
loffset=4pt,
roffset=4pt,
]
\defineenumeration[proclaim]
[text=,
before={\startProclaimFramed},
after={\stopProclaimFramed},
style=slanted,
title=yes,
titleleft=,
titleright={.},
alternative=hanging,
width=fit,
right={~},
way=bysection,
prefix=yes,
prefixsegments={chapter:section}]
%%%

\starttext

\startproclaim{Definition}
The title of this \type{\startproclaim} does not show up.
Is this a bug?
\stopproclaim

\stoptext
%%% end bug-enumeartion.tex

___
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] Bug in startitemize

2016-03-07 Thread Otared Kavian
Thanks Wolfgang,

Your patch does indeed solve the problem, after rebuilding with

context --make —all

Best regards: OK

> On 07 Mar 2016, at 20:46, Wolfgang Schuster <schuster.wolfg...@gmail.com> 
> wrote:
> 
>> Otared Kavian 7. März 2016 um 20:28
>> Hi Hans,
>> 
>> It seems that with the new beta (ConTeXt ver: 2016.03.04 10:39 MKIV beta 
>> fmt: 2016.3.7), there is a bug with random itemization.
>> I cannot tell exactly when this feature has been broken.
>> The problem is that for instance in the following example, sometimes the 
>> item C is repeated three times, sometimes A is repeated twice, etc.
> strc-itm.mkvi:
> 
> \def\strc_itemgroups_collected_flush
>   {\ifconditional\c_strc_itemgroups_randomize
>  
> \getrandomcount\c_strc_itemgroups_collected_current\plusone\c_strc_itemgroups_collected_stored
>\else
>  \advance\c_strc_itemgroups_collected_current\plusone
>\fi
>
> \ifcsname\??itemgroupstack\number\c_strc_itemgroups_collected_current\endcsname
>  \edef\collecteditemgroupitem{\lastnamedcs}%
>  \ifconditional\c_strc_itemgroups_horizontal
>\strc_itemgroups_collected_flush_horizontal
>  \else
>\collecteditemgroupitem
> +  
> \letbeundefined{\??itemgroupstack\number\c_strc_itemgroups_collected_current}%
>  \fi
>  \advance\c_strc_itemgroups_collected_done\plusone
>\fi
>\ifnum\c_strc_itemgroups_collected_done<\c_strc_itemgroups_collected_stored
>  \expandafter\strc_itemgroups_collected_flush
>\fi}
> 
> Wolfgang
> ___
> 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
> ___

___
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] Bug in startitemize

2016-03-07 Thread Otared Kavian
Hi Hans,

It seems that with the new beta (ConTeXt  ver: 2016.03.04 10:39 MKIV beta  fmt: 
2016.3.7), there is a bug with random itemization.
I cannot tell exactly when this feature has been broken.
The problem is that for instance in the following example, sometimes the item C 
is repeated three times, sometimes A is repeated twice, etc.

\starttext

\startitemize[n,random]
\startitem A \stopitem
\startitem B \stopitem
\startitem C \stopitem
\stopitemize

\stoptext

Best regards: OK
___
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] Deprecated $…$ for inline math?

2016-02-16 Thread Otared Kavian
I agree totally with Alan in saying that the inline math signals $\cdots$ 
should NEVER be left out from ConTeXt, or even become deprecated. 

Indeed many people move mathematical texts from one file to another one, in 
order to be able to typeset or print it either with ConTeXt, or other 
macro-packages. Other situations include when one is collaborating with other 
people using TeX, where inline math between two $ signs  is now well 
established. Also in many situations people may use ConTeXt  for well presented 
documents, presentations and so forth, while the same text may be published in 
a scientific journal where one has to use their own formats, usually an ugly 
flavor of LaTeX, since, unfortuantely, up to now I don’t know of any 
mathematical journal where one can submit a TeX file written with ConTeXt 
macro-package.

Best regards: OK

> On 16 Feb 2016, at 20:18, Alan BRASLAU  wrote:
> 
> On Tue, 16 Feb 2016 16:59:58 +0100
> Marco Patzer  wrote:
> 
>>> What sort of needs for structure could \m address for inline math?
>>> Clearly, an equation to which one might want to have a reference
>>> math should appear rather as displayed math.  
>> 
>> While I agree on that one, writing \math{x^2} clearly states what it
>> is. TeX tradition aside, dollar signs make no sense here and you
>> have to manually match beginning and end. Braces are matched
>> automatically (probably depends on the editor as well).
> 
> \math{x²} states what it is. However \m{x²} is cryptic and, although
> only two characters longer than $x²$, is infinitely less readable than
> the dollar-delimited variant, even now to MS/Word users who have ever
> used the equation editor.
> 
> When typing sentences containing lots of math, having many \math{}
> commands becomes unwieldy, but, in the end, this becomes a
> question of personal taste.
> 
> Alan
> ___
> 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
> ___

___
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] How can I define a dotted underbar in ConTeXt?

2016-02-15 Thread Otared Kavian
Hi Hans,

Thanks for this new nice feature!
However it seems to me that \underdashes produces dots under ords, while 
\underdots produces dashes…
Is it on purpose?

Also the name \underrandoms seems misleading too.



Best regards: OK

> On 15 Feb 2016, at 10:39, Hans Hagen  wrote:
> 
> On 2/10/2016 10:14 PM, Laurent d'Airsy wrote:
>> I would like to create a dotted underbar in ConTeXt with the
>> |\defineunderbar|mechanism. Is that possible?
> 
> i uploaded a beta where you can test:
> 
> test {\red\underrandoms{test me}} and \underrandom{test} or 
> \underrandom{grep} \blank
> test {\red\underdashes {test me}} and \underdash  {test} or \underdash {grep} 
> \blank
> test {\red\underdots   {test me}} and \underdot   {test} or \underdot {grep} 
> \blank
> 
> still somewhat experimental
> 
> Hans
> 
> 
> -
>  Hans Hagen | PRAGMA ADE
>  Ridderstraat 27 | 8061 GH Hasselt | The Netherlands
>  tel: 038 477 53 69 | www.pragma-ade.com | www.pragma-pod.nl
> -
> ___
> 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
> ___

___
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] \usemodule[pgfplots] fails

2016-02-08 Thread Otared Kavian
I don’t now, the error message is similar to that obtained by Lukas: on my 
installation the typesetting freezes with this on the console:

close source> 1 > 16 > 
/context-minimal/tex/texmf-context/tex/context/base/mkiv/cont-yes.mkiv

Best regards: OK


> On 08 Feb 2016, at 15:55, Hans Hagen  wrote:
>> […]
> 
> osx specific?
___
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] \usemodule[pgfplots] fails

2016-02-08 Thread Otared Kavian
Hi Lukas,

I can confirm that your code below does not work with the latest beta ConTeXt  
ver: 2016.02.06 14:06 MKIV beta  fmt: 2016.2.8  int: english/english, on a Mac 
running Mac OS X 10.11.4.

However it works with a previous version from TeXLive.

Best regards: OK
PS: Here is the code I tested
\usemodule[pgfplots]

\starttext
 aaa
\stoptext


> On 08 Feb 2016, at 15:17, Procházka Lukáš Ing.  wrote:
> 
> Hello,
> 
> that's strange as:
> 
> 1. I renewed Context today morning;
> 2. I launched "context.exe --make --generate";
> 3. I launched "context.exe --nonstopmode Pgf.mkiv" which produces the 
> recently described failure.
> 
> So - can anyone confirm the same behavior
>   (here: WinXP 32b, ConTeXt  ver: 2016.02.06 14:06 MKIV beta  fmt: 
> 2016.2.8  int: english/english)?
> 
> Moreover, the code runs successfully with my backup ancient version (at 
> least):
> 
> "
> mtx-context | run 3: luatex 
> --fmt="d:/ConTeXt/tex/texmf-cache/luatex-cache/context/
> This is LuaTeX, Version beta-0.79.1 (TeX Live 2014/W32TeX) (rev 5019)
> \write18 enabled.
> open source > 1 > 1 > 
> d:/ConTeXt/tex/texmf-context/tex/context/base/cont-yes.mkiv
> 
> ConTeXt  ver: 2014.06.17 16:53 MKIV beta  fmt: 2014.6.18  int: english/english
> "
> 
> Best regards,
> 
> Lukas
> 
> 
> On Mon, 08 Feb 2016 13:04:29 +0100, Hans Hagen  wrote:
> 
>> On 2/8/2016 11:02 AM, Procházka Lukáš Ing. wrote:
>>> Hello,
>>> 
>>> the following code:
>>> 
>>> 
>>> \usemodule[pgfplots]
>>> 
>>> \starttext
>>>   aaa
>>> \stoptext
>>> 
>>> 
>>> fails with:
>>> 
>>> "
>>> close source> 1 > 16 >
>>> d:/Ctx-Beta/tex/texmf-context/tex/context/base/mkiv/cont-yes.mkiv
>>> 
>>> tex error   > tex error on line 0 in file : ! Emergency stop
>>> 
>>> <*> cont-yes.mkiv
>>> "
>>> 
>>> When I comment "\usemodule[pgfplots]", the code works fine.
>>> 
>>> What's broken?
>> 
>> probably your installations (maybe local files that interfere)
> 
> 
> -- 
> Ing. Lukáš Procházka | mailto:l...@pontex.cz
> Pontex s. r. o.  | mailto:pon...@pontex.cz | http://www.pontex.cz
> Bezová 1658
> 147 14 Praha 4
> 
> Tel: +420 241 096 751
> Fax: +420 244 461 
> 038___
> 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
> ___

___
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] Distance between items

2016-01-28 Thread Otared Kavian
Dear List Members,

I don’t remember how to tweak the distance between items: What I would like to 
have is a distance between items a little bit bigger than the distance between 
them when the option « packed » is given, but smaller than the distance between 
items when « packed is left out.

Minimal example follows.
Thanks in advance: OK

%% begin example-itemize.tex
\starttext

\startitemize[n][style=bold]

\startitem
First item
\stopitem

\startitem
Second item
\stopitem

\startitem
Third item
\stopitem

\stopitemize

I want the distance between items to be smaller than in the above itemize, but 
bigger than the one  below…

\startitemize[n,packed][style=bold]

\startitem
First item
\stopitem

\startitem
Second item
\stopitem

\startitem
Third item
\stopitem

\stopitemize
\stoptext
%% end example-itemize.tex
___
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] Distance between items

2016-01-28 Thread Otared Kavian
Thanks… 
I had tried mistakingly joinedup (distance between two sets of itemization) 
instead of inbetween (distance between items in a given itemization).

Best regards: OK

> On 28 Jan 2016, at 12:00, Marco Patzer <li...@homerow.info> wrote:
> 
> On Thu, 28 Jan 2016 11:48:12 +0100
> Otared Kavian <ota...@gmail.com> wrote:
> 
>> I don’t remember how to tweak the distance between items: What I
>> would like to have is a distance between items a little bit bigger
>> than the distance between them when the option « packed » is given,
>> but smaller than the distance between items when « packed is left out.
> 
> \setupitemize
>  [inbetween={\blank[small]}]
> 
> Marco
> ___
> 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
> ___

___
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] which is the best/right element for elements in cover and title pages?

2016-01-25 Thread Otared Kavian
Hi Pablo,

I wanted just to congratulate you for the nice manual you have written… I don’t 
know Pandoc and what it can be used for, but after seeing your manual I willing 
to learn about it!

Best regards: OK


> On 25 Jan 2016, at 21:54, Pablo Rodriguez  wrote:
> 
> Dear list,
> 
> I have a template to generate book cover and title page for different
> documents. A sample of the output may be found at
> https://github.com/ousia/from-pandoc-to-context/blob/master/doc/from-pandoc-to-context_A4.pdf
> (first two printed pages).
> 
> Right now, their layout is hardcoded, such as for the title page
> (minimal version):
> 
>\starttitlepagemakeup
>\vfill
> 
>{\itd\BookTitle}\par}\blank[big]
>{\resetbreakpoints\itb\setupinterlinespace
>\BookSubtitle']}\par}\blank[3*big]
>{\sc \TheAuthor}{\\}}
> 
>\vfill
>\PublishingDate
>\vfill
>\Publisher
>\stoptitlepagemakeup
> 
> I want to be abole to customize this. But I don’t know which is the
> right element for those items.
> 
> I mean, a head would be meaningless here for book title, subtitle,
> author, publisher and release date. They appear only once in the document.
> 
> Which is the right element for those items?
> 
> Many thanks for your help,
> 
> 
> Pablo
> -- 
> http://www.ousia.tk
> ___
> 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
> ___

___
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] ConTeXt vs Beamer

2016-01-25 Thread Otared Kavian
Hi,

I have been using Context for all my presentations for many years and I think 
it is easier to use than any Latex package, since out of the box I can add 
pictures, menus, graphs of functions, etc.

Now, depending on the complexity of what one wants to do, it would be more or 
less easy to use such and such features.
A good start is to begin with the examples set up by Hans and by Aditya and 
Thomas Schmitz.
The examples by Hans are in the directory

/tex/texmf-context/tex/context/modules/mkiv

of your Context installation, and begin with s-pre-, followed by digits and 
mkii or mkiv suffix.
The examples by Aditya and Thomas are to be found in 

/tex/texmf-modules/tex/context/third/simpleslides

Bets regards: OK



> On 25 Jan 2016, at 21:11, Saša Janiška  wrote:
> 
> Hello,
> 
> I have just checked that my first post to this list was more than 10yrs
> ago (end of 2002). Then I was working on some full-sized books and ended
> up with LyX/LaTex. Later, had few attempts to switch to ConTeXt, but as
> a result I reduced even my LyX/LaTeX usage and was using light markups
> like rst/AsciiDoc for my writing needs without higher-quality
> typesetting.
> 
> Yesterday I had to help my wife to put together some medicine-related
> presentation for the meeting at her working place and used LyX/LaTeX
> with Beamer class.
> 
> Considering that there might be need to do such thing more often in the
> future as well as possibility that I might have to produce lot of
> presentations for my public lectures/workshops based on philosophy (iow.
>  no need of math), I am again in the position to consider ConTeXt, but
> this time mostly for presentations.
> 
> I'm (well) aware of ConTeXt's advantage in the sense of being complete
> package without clashing of different packages which usually happens in
> LaTeX world, I wonder if someone can give some piece of advice to learn
> and/or switch ConTeXt for preparing presentations instead of learning
> lot of LaTeX packages?
> 
> How does ConTeXt compare for the purpose vs LaTeX/Beamer?
> 
> I'm on Linux (running Debian Sid) and use Vim as my primary editor so
> wonder if ConTeXt users recommend to e.g. prepare drafts of their
> documents like rst/AsciiDoc/markdown and then convert them into ConTeXt
> with tool(s) like Pandoc?
> 
> 
> Sincerely,
> Gour
> 
> -- 
> Therefore, without being attached to the fruits of activities,
> one should act as a matter of duty, for by working without
> attachment one attains the Supreme.
> 
> 
> 
> ___
> 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
> ___

___
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] Fieldstacks are broken

2016-01-21 Thread Otared Kavian
Hi Jeong,

I played with your code and indeed it is very nice to use this animation 
feature (I never succeeded to imbed a movie in a TeX file typeset with 
Context…).
Thanks to Hans and Wolfgang, and you, I can now use such things in my 
presentations.

Just to say something which may be useful, one can also use \dostepwiserecurse 
as in

\startanimation[menu=yes]
\dostepwiserecurse{0}{20}{2}{\expanded{\startframe \MyGraphics{\recurselevel} 
\stopframe}}
\stopanimation

Best regards: OK

> On 21 Jan 2016, at 23:47, Wolfgang Schuster  
> wrote:
> 
>> Jeong Dal  21. Januar 2016 um 15:55
>> Thanks Hans, Wolfgang, Luigi
>> 
>> The new beta with Luatex 0.88 makes \fieldstacks and \startanimation work.
>> The following example of Wolfgang is now working well.
>> 
>> \def\MyGraphics#1{%
> \unexpanded\def\MyGraphics#1{%
>> \startMPcode
>> path p,q;
>> p:=fullcircle scaled 72;
>> L:=length p;
>> N:=20;
>> q:=subpath (0,#1/N*L) of p;
>> draw q withcolor red;
>> fill fullcircle scaled 3 shifted point length q of q withcolor blue;
>> setbounds currentpicture to unitsquare shifted (-0.5,-0.5) scaled 75;
>> \stopMPcode}
>> \usemodule[animation]
>> \setupinteraction[state=start]
>> 
>> \starttext
>> \startanimation[menu=yes]
>> {\MyGraphics {5}}
>> {\MyGraphics {10}}
>> {\MyGraphics {15}}
>> {\MyGraphics {20}}
>> \stopanimation
>> 
>> \stoptext
>> 
>> One more question. Is there any convenient way to list \MyGraphics{#1}? I 
>> tried \dorecurse, but it just display figures one by one.  I also tried lua, 
>> but it stops with the error message  “unexpected symbol near ‘\'”.
> \startanimation[menu=yes]
> \dorecurse{20}{\expanded{\startframe \MyGraphics{\recurselevel} \stopframe}}
> \stopanimation
> 
> Wolfgang
> ___
> 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
> ___

___
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] (mashriqi) Arabic-Hindi Numerals

2016-01-19 Thread Otared Kavian
Hi,

There is the command 

\persiandecimals

is that what you are looking for?

Best regards: OK

> On 19 Jan 2016, at 12:30, Mohammad Hossein Bateni  wrote:
> 
> Also \arabicnumerals is probably not what you want: this will produce an 
> abjad-like sequence:
> ا ب ج د ه و ز ...
> 
> I guess, what you want is called \arabicdecimals, and was not part of MkIV 
> for a while.  (For instance, it is not in standard TeXLive 2015 distribution 
> whose CONTEXT version is for sometime in the summer.)  Use the CONTEXT 
> standalone and you should be good to go.
> 
> On Tue, Jan 19, 2016 at 5:23 AM, Wolfgang Schuster 
> > wrote:
>> Ibn Saeed  19. Januar 2016 um 10:55
>> 
>> Here is my code for the header:
>> 
>> \setupheadertexts
>> [{\righttoleft\getmarking[chapter]}] [{\romannumerals}]
>> [{\pagenumber}] [{\righttoleft\getmarking[chapter]}]
> Use
> 
> \setupheadertexts[pagenumber]
> 
> or
> 
> \setupheadertexts[\userpagenumber]
> 
> Wolfgang
> 
> ___
> 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 
> ___
> 
> ___
> 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
> ___

___
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] Instalation ConTeXt to MAC - newbie problem

2016-01-17 Thread Otared Kavian
Hello Jaroslav,

Here is what I do on my Mac:

1) While in the Finder, create a folder named Context-standalone

2) Put the attached file « first-setup.sh »  in the folder Context-standalone

3) Open Terminal and issue the command

cd [Path-to-the-folder-Context-standalone]

4) Then in Terminal issue the command

ls first-setup.sh

you should see something beginning with:

-rwxr-xr-x  

that is the file has an « x » in its or your rights, that is it is executable.

If this not the case, using the command below make sure it has that right:

chmod +x first-setup.sh

5) Once this is done, issue the command

sh first-setup.sh

6) In principle you should end up with all files necessary for Context working 
in the folder Context-standalone

7) If this is not the case, please report at which step things do not work as 
expected.

Best regards: OK



first-setup.sh
Description: Binary data




> On 17 Jan 2016, at 14:08, Jaroslav Hajtmar  wrote:
> 
> Hello Matthias.
> Thank you for the quick response. During installation, no error occurs, even 
> seems that rsync copied without error message first-setup.sh to my 
> %HOME/context directory. When then I look into this directory, then there is 
> no file. Subsequently command sudo sh ./first-setup.sh reports nonexistent 
> file or directory. I tried to install it into your Applications folder too (I 
> have administrative access), but not in this way I have not done.
> 
> (As you say: home directory should be safe and path no occure any problematic 
> characters. My home directory is "hajtmar")
> 
> Thanx Jaroslav
> 
> Dne 17.01.16 v 13:27 Weber, Matthias napsal(a):
>> Hi Jaroslav,
>> 
>> could you explain a bit more what you mean by "the installation will fail”?
>> 
>> What error message do you get at what stage?
>> 
>> You need to make sure that you have write permission to the installation 
>> directory; anything inside your home directory should be safe.
>> Also, as a general precaution, make sure the path to your installation 
>> directory doesn’t contain unusual characters.
>> 
>> Matthias
>> 
>> 
>>> On Jan 17, 2016, at 7:19 AM, Jaroslav Hajtmar  wrote:
>>> 
>>> Hello ConTeXist.
>>> I am trying to install a standalone ConTeXt on MacBook. I am doing 
>>> everything exactly as instructed on contextgarden.net, but the installation 
>>> will fail. It seems that the problem is with rsync, with copying the 
>>> installation script first-setup.sh into my Mac. Since I am a longtime 
>>> Windows user and I'm a newbie on OS X, I'd like to find out what the 
>>> problem may be. I dont know nothing about OS X, but I suppose that might be 
>>> a problem with the firewall settings or access rights to the directories 
>>> which  I use to install ConTeXt etc. Can someone please advise how to 
>>> perform the installation? There is an option to download the installation 
>>> package and install ConTeXt differently?
>>> Thanks for replies.
>>> 
>>> Jaroslav Hajtmar
>>> 
>>> ___
>>> 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
>>> ___
>> ___
>> 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
> 
>> ___
> 
> ___
> 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
> ___

___
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] Instalation ConTeXt to MAC - newbie problem

2016-01-17 Thread Otared Kavian
Hi Jaroslav,

On Mac, you can use TeXShop and your standalone Context very easily.
First create a specific « .engine » file for this and then in TeXShop use that 
engine. 
Here is what I have when I typeset a file in TeXShop using mkiv ConTeXt:

% begin file mkiv.engine

#!/bin/bash

export PATH=/Volumes/OK/context-minimal/tex/texmf-osx-64/bin:$PATH
context --synctex=zipped --autogenerate "$1" --purgeall

% end file mkiv.engine

you should replace the line « export PATH=…. » by the path to your installation 
of ConTeXt. More precisely you should replace 

/Volumes/OK/context-minimal

with the path going to the folder where your Context installation sits (in your 
case it is where you have put the file first-setup.sh).

Then this file « mkiv.engine » should be put in the folder

Library/TeXShop/Engines


Once this is done, you have three solutions in order to use TeXShop with your 
standalone Context. Here they are: 

Solution 1: add the following line at the top of your source file:

%!TEX TS-program = mkiv

Note that in the above you may replace « mkiv » with whatever engine name known 
to your TeXShop installation (for instance « ContextSuite», or any other name 
you have, or (may God forgive both of us…) even « latex »…). 
When you typeset with ConTeXt, then TeXShop will use the chosen engine.

Solution 2: when your source file is open, you should have, at the top of your 
window, a small menu named « Program ». Click on that menu and among the 
programs (that is the engines) choose the one you want.

Solution 3: open the TeXShop Preferences and in the « Typesetting » pane , on 
the upper left part of the resulting window, choose the radio button « Command 
listed below » and type the name of your preferred engine. This method makes a 
general default, so if you use some other typesetting packages for some files 
you have to modify things for those files.

Best regards: OK

> On 17 Jan 2016, at 16:56, Jaroslav Hajtmar <hajt...@gyza.cz> wrote:
> 
> Hello.
> Thanks to Otared and Matthias too for their solutions. Otared's method is 
> working, Mathias method unfortunaly not working. ConTeXt is already installed 
> on my MacBookAir. I dont know why, but It seems that for some reason rsync 
> does not download the first-setup.sh file into my installation directory. 
> After I put first-setup.sh file manually into install directory and then I 
> run the installation script, then everything is all right till the end. At 
> this moment, I still struggle with settings an appropriate environment 
> variables so that everything worked like on my Windows PC installation. 
> Running at (for me) an unfamiliar OS-X it is for me still long run (but 
> adventurous) :-).
> However installation on my MAC is currently commissioned and operational. 
> Thanks for the advices.
> 
> Jaroslav Hajtmar
> 
> 
> 
> Dne 17.01.16 v 14:38 Otared Kavian napsal(a):
>> Hello Jaroslav,
>> 
>> Here is what I do on my Mac:
>> 
>> 1) While in the Finder, create a folder named Context-standalone
>> 
>> 2) Put the attached file « first-setup.sh »  in the folder Context-standalone
>> 
>> 3) Open Terminal and issue the command
>> 
>>  cd [Path-to-the-folder-Context-standalone]
>> 
>> 4) Then in Terminal issue the command
>> 
>>  ls first-setup.sh
>> 
>> you should see something beginning with:
>> 
>>  -rwxr-xr-x
>> 
>> that is the file has an « x » in its or your rights, that is it is 
>> executable.
>> 
>> If this not the case, using the command below make sure it has that right:
>> 
>>  chmod +x first-setup.sh
>> 
>> 5) Once this is done, issue the command
>> 
>>  sh first-setup.sh
>> 
>> 6) In principle you should end up with all files necessary for Context 
>> working in the folder Context-standalone
>> 
>> 7) If this is not the case, please report at which step things do not work 
>> as expected.
>> 
>> Best regards: OK
>> 
>> 
>> 
>> 
>> 
>> 
>>> On 17 Jan 2016, at 14:08, Jaroslav Hajtmar <hajt...@gyza.cz> wrote:
>>> 
>>> Hello Matthias.
>>> Thank you for the quick response. During installation, no error occurs, 
>>> even seems that rsync copied without error message first-setup.sh to my 
>>> %HOME/context directory. When then I look into this directory, then there 
>>> is no file. Subsequently command sudo sh ./first-setup.sh reports 
>>> nonexistent file or directory. I tried to install it into your Applications 
>>> folder too (I have administrative access), but not in this way I have not 
>>> done.
>>> 
>>> (As you say: home directory shoul

Re: [NTG-context] strange output in math display mode

2015-12-21 Thread Otared Kavian
Hi Dalyoung,

I can confirm that in displayed math, the digit 1 in the command \frac{1}{2} 
results in 
494 > 1
which is unexpected…
However the command {1 \over 2} gives the correct result.

Actually there seems to be a spurious
494 >
in the source tree of the latest release, since any command such as \frac{a}{2} 
results in
494 > a

Best regards: OK

> On 21 Dec 2015, at 14:01, Jeong Dal  wrote:
> 
> Dear Hans,
> 
> After updating the minimal, I got a strange output of math display mode.
> Would you please check it?
> 
> Here is an example.
> 
> Best regards,
> Thank you.
> 
> Dalyoung
> 
> 
> \starttext
> 
> Here is a strange output of math formula. It is displayed correctly in text 
> line, but is displayed strangely in math display mode.
> \blank
> Here is a correct output  in text line.  $\int_0^t B(s)\ dB(s) = \frac{1}{2} 
> B^2(t) - \frac{1}{2} t.$
> \blank
> But in the output of display mode, the location of the sub- super-script of 
> the integral sign is not normal and the output of \type{ \frac{1}{2} B^2(t)} 
> is wrong.
> 
> \startformula
> \int_0^t B(s)\ dB(s) = \frac{1}{2} B^2(t) - \frac{1}{2} t.
> \stopformula
> \stoptext
> %%
> ___
> 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
> ___

___
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 first setup of StandAlone ConTeXt

2015-12-16 Thread Otared Kavian
Hi Bruce,

You have three solutions in order to solve the TeXShop issue. Here they are: 

Solution 1: add the following line at the top of your source file:

%!TEX TS-program = mkiv

Note that in the above you should replace « mkiv » with whatever engine name 
known to your TeXShop installation (for instance « ContextSuite», or any other 
name you have, or (may God forgive both of us…) even « latex »…). When you 
typeset with ConTeXt, the TeXShop will use the chosen engine.

Solution 2: when your source file is open you should have at the top your 
window a small menu named « Program ». Click on that menu and among the 
programs (that is the engines) choose th eone you want.

Solution 3: open the TeXShop Preferences and in the « Typesetting » pane , on 
the upper left part of the resulting window choose the radio button « Command 
listed below » and type the name of your preferred engine.

Best regards: OK

> On 16 Dec 2015, at 17:34, Bruce Boghosian  wrote:
> 
> I see, thanks.  I did use --engines=luatex.  I was aware that Mark II had 
> been superseded by Mark IV, but I hadn't realized that texexec was the same 
> thing as Mark II.  OK, so I won't worry about that issue any more.
> 
> It seems that my only remaining problem is the aforementioned TeXShop issue.  
> I will keep working on it.
> 
> Best,
> Bruce
> 
> 
>> On Dec 16, 2015, at 11:25 AM, Mojca Miklavec 
>>  wrote:
>> 
>> On 16 December 2015 at 17:10, Bruce Boghosian wrote:
>>> 
>>> Also, FWIW, I note that de Boer's document, "LaTeX in proper ConTeXt"
>>> recommends compiling from the command line using texexec rather than
>>> context.  This does not work for me.  The command "texexec" exists, and I
>>> can run it, but it does not produce a .pdf file -- just a .tmp file.
>> 
>> That document is a very old one. Nowadays context is preferred to
>> texexec (also known as Mark II or MkII). If you installed context with
>> --engines=luatex you explicitly did not installed prerequisites for
>> Mark II (pdftex with fonts etc.).
>> 
>> Mojca
>> ___
>> 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
>> ___
> 
> ___
> 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
> ___

___
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 first setup of StandAlone ConTeXt

2015-12-15 Thread Otared Kavian
Hi Bruce,

If you want to use your standalone version of ConTeXt, you should create a 
specific « .engine » file for this and then in TeXShop use that engine. Here is 
what I have when I typeset a file in TeXShop using mkiv ConTeXt:

% begin file mkiv.engine

#!/bin/bash

export PATH=/Volumes/OK/context-minimal/tex/texmf-osx-64/bin:$PATH
context --synctex=zipped --autogenerate "$1" --purgeall

% end file mkiv.engine

you should replace the line « export PATH=…. » by the path to your installation 
of ConTeXt.

Best regards: OK
PS: regarding the installation and updates of ConTeXt on Mac, Thomas Floren has 
written a nice Apple Script which you can find here:
Name: Ctx_typeset Tool
Web page: 
Author: Thomas Floeren 



> On 15 Dec 2015, at 23:00, Bruce Boghosian  wrote:
> 
> I have made good progress today, thanks to the help of this list.  Thanks!
> 
> I can now run the example on the First Document web page, running ConTeXt 
> from the command line.  That works perfectly.
> 
> When I try to run the same file from within TeXShop, however, it tells me:
> 
>> !  Undefined control sequence.
>> l.2  \startsection
>>  [title={Testing ConTeXt}]
>> ?
> 
> I have created the file "ConTeXt Suite.engine" in directory 
> ~/Library/TeXShop/Engines, per the instructions on the Mac Installation web 
> page.
> 
> So I am not sure why TeXShop does not know about \startsection.  I would be 
> grateful for your advice on this.
> 
> Sincerely,
> Bruce
> 


___
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] % !TeX root problem

2015-11-16 Thread Otared Kavian
Hi,

I am not sure about this, but it seems to me that you have

% !TEX root=  

instead of having

%!TEX root = 

that is the the space after the apersand should not be there.

Best regards: OK

> On 14 Nov 2015, at 14:41, Jeong Dal  wrote:
> 
> Dear all,
> 
> I use product file: FM_main.tex which contains component files like FM_1.tex, 
> FM_2.tex, etc.
> They are all in the same folder.
> In each component file, I put  “% !TEX root=FM_main.tex” at the first line.
> 
> It worked fine but some time after it won’t work. 
> I know that it is a matter of TeXShop, but I just wonder why it doesn’t work 
> now.
> Is there any clue for this?
> 
> I am using TeXShop in the latest Mac OS X.
> 
> Thank you in advance.
> 
> Best regards,
> 
> Dalyoung
> ___
> 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
> ___

___
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] How to start a \definedescription-defined description's body on a new line, not the same as the description's header?

2015-10-16 Thread Otared Kavian
Hi Louis,

II guess what you need is the keyword

alternative=top

in the setup of your descritiption.

Best regards: OK

> On 09 Oct 2015, at 18:13, Louis Strous  wrote:
> 
> With
>  
> [start sample]
> \definedescription[cmddescription][headstyle=bold,width=broad,style=normal,align=flushleft,alternative=hanging,margin=1cm]
>  
> ...
>  
> \startcmddescription{mycommand}
>  
> This is a very useful command.  It knows just what to do, and you don't even 
> have to specify any options!
>  
> \stopcmddescription
> [end sample]
>  
> the text "This is a very useful command" begins on the same line as the 
> "mycommand" header.  I want the text to begin on the next line, so that 
> "mycommand" is on a line of its own.  How should I adjust the 
> \definedescription command to achieve this?  I've tried all kinds of things 
> with the 'before', 'inbetween', 'after', 'indentnext', 'command', and 
> 'headcommand' options of the \definedescription command (based on 
> http://wiki.contextgarden.net/Command/setupdescriptions 
> ), using \par, 
> \crlf, and \vspace, but didn't get the desired results.
>  
> Regards,
> Louis Strous
>  
> IntelliMagic - Availability Intelligence
> T: +31 (0)71-579 6000
> www.intellimagic.com 
>  
> ___
> 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 
> ___

___
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] Troubles with presentations

2015-10-14 Thread Otared Kavian
Hi Tomas,

The rawstep module is to be used with mkii, and the spurious « yes » you see 
appears only when you typeset with mkiv.
On the other hand, it is true that \SetupSteps is not defined or recognized, 
and \StartSteps does not honor the optional arguments, when given.
I have been using an old version of rawsteps for some time and do not remember 
these optional arguments nor having used \SetupSteps.

Here is a file which you can use and change whatever does not suit you. If you 
want to use it as an \input file, please uncomment the line 420, containing

%\doifnotmode{demo}{\endinput}

Best regards: OK



t-rsteps-ok-new.tex
Description: Binary data


> On 06 Oct 2015, at 17:24, Tomas Hala  wrote:
> 
> Hello all,
> 
> I would like to ask for a piece of help with presentations.
> 
> I decided to use the way described at 
> http://wiki.contextgarden.net/Presentations
> and http://wiki.contextgarden.net/RawSteps. (I use TL 2015.)
> 
> Problems I came across are:
> 1. On the first slide, a line with the word "yes" has been generated. 
> (Sometimes more than once, in dependence of number of modules.)
> 2. Command SetupSteps is undefined.
> 3. Command StartSteps is defined but not applied.
> 
> What I am doing wrong?
> Is somewhere any more detail documentation?
> 
> Thanks,
> 
> Tomas
> 
> 
> Almost minimal example:
> 
> 
> \usemodule[pre-original]
> \usemodule[rsteps]
> \usemodule[pre-60]
> 
> \setuppapersize[S6][S6]
> \setuppagenumbering[state=stop]
> \setuptolerance[verytolerant,stretch]
> \setupinteractionscreen[option=max]
> \setupinteraction[state=start,color=middlered]
> \useURL [garden][http://contextgarden.net][][Context garden]
> 
> %\SetupSteps[defaultsection=Subject,reserve=no]
> 
> \starttext%
> 
> \TitlePage {pre-funny\\Title Page}
> The \from[garden] site is useful.
> 
> \page
> The \from[garden] site is useful.
> 
> \page
> \StartSteps[Topic][Topic Title]
> This is a topic slide.
> \NextStep
> Another step.
> \StopSteps
> 
> \stoptext
> 
> 
> ___
> 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
> ___

___
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] footnote in title

2015-10-13 Thread Otared Kavian
Hi Thomas,

The following works here, without using \automigrateregisters…

\starttext

\startchapter [title={Silly title}\footnote{A silly footnote}]
More text.\footnote{With more footnotes.}

\stopchapter

\stoptext

Using version ConTeXt  ver: 2015.10.09 21:28 MKIV beta on a Mac (indeed… what 
else? :-)

Best regards: OK

> On 13 Oct 2015, at 11:56, Thomas A. Schmitz  
> wrote:
> 
> I thought something like this had been asked on the list recently, but a 
> search came up empty: how to get footnotes to titles typeset?
> 
> \automigrateinserts
> 
> \starttext
> 
> \startchapter [title={Silly title\footnote{With a silly footnote}}]
> 
> More text.\footnote{With more footnotes.}
> 
> \stoptext
> 
> I thought \automigrateinserts was the magic command, but the note symbol is 
> set, the content of the note disappears.
> 
> Thomas
> ___
> 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
> ___

___
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] \setupitemgroup...

2015-10-07 Thread Otared Kavian
Hi Wolfgang and Willi,

Indeed the observation made by Wolfgang is correct, but even upon following 
those instructions, somehow the level 2 does not work as expected:

Best regards: OK
PS: Please see the example below:

\setupitemgroup
  [itemize]
  [1]
  [packed,n]
  [after=]

\setupitemgroup
  [itemize]
  [2]
  [packed,a]
  [after=]
\setupitemgroup
  [itemize]
  [3]
  [packed,r]
  [after=]
  

\starttext
\startitemize
\startitem
Level 1
\startitemize
Level 2
\stopitemize
\startitemize
Level 2
\startitemize
\startitem
Level 3
\stopitem
\startitem
Level 3
\stopitem
\stopitemize
\stopitemize
\stopitem
\startitem
Level 1
\stopitem
\stopitemize
More text \dots
\stoptext


> On 07 Oct 2015, at 10:53, Wolfgang Schuster  
> wrote:
> 
>> Willi Egger  7. Oktober 2015 um 10:26
>> Hi all,
>> 
>> I tried to setup itemization on three levels. However I do not get the 
>> desired result. The setup does not make level one numbered, level two a-b-c 
>> and level three with center-dot.
>> 
>> What am I missing?
>> 
>> Kind regards
>> 
>> Willi
>> 
>> \setupitemgroup
>> [itemize]
>> [1]
>> [packed]
>> [n,after=]
> You have keywords and assignments in the same argument which is not supported 
> by context. Change your \setupitemgroup settings to
> 
> \setupitemgroup
>   [itemize]
>   [1]
>   [packed,n]
>   [before=]
> 
> and it works.
> 
> Wolfgang
> ___
> 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
> ___

___
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] \setupitemgroup...

2015-10-07 Thread Otared Kavian
Hi Wolfgang and Willi,

Indeed I didn’t pay attention to the content of the example given by Willi… 
Indeed everything works fine once the spurious \startitemize\stopitemize are 
replaced with with \startitem\stopitem…

The full working example is here:

\setupitemgroup
  [itemize]
  [1]
  [packed,n]
  [after=]

\setupitemgroup
  [itemize]
  [2]
  [packed,a]
  [after=]
\setupitemgroup
  [itemize]
  [3]
  [packed,r]
  [after=]
  

\starttext
\startitemize
\startitem
Level 1
\startitemize
\startitem
Level 2
\stopitem
\startitem
Level 2
\stopitem
\startitemize
\startitem
Level 3
\stopitem
\startitem
Level 3
\stopitem
\stopitemize
\stopitemize
\stopitem
\startitem
Level 1
\stopitem
\stopitemize
More text \dots
\stoptext

> On 07 Oct 2015, at 12:13, Willi Egger <cont...@boede.nl> wrote:
> 
> Wolfgan and Otared,
> 
> thanks! - stupid me, this version i had before, but then I concentrated on 
> the level two and  messed it up.
> 
> It appears, that the level two does not accept any symbol like 1,r,a. 
> 
> Kind regards
> 
> Willi
>> On 7 okt. 2015, at 11:45, Wolfgang Schuster <schuster.wolfg...@gmail.com> 
>> wrote:
>> 
>>> Otared Kavian 7. Oktober 2015 um 11:27
>>> Hi Wolfgang and Willi,
>>> 
>>> Indeed the observation made by Wolfgang is correct, but even upon following 
>>> those instructions, somehow the level 2 does not work as expected:
>>> 
>> You forgot the \item for the second level entries.
>> 
>> Wolfgang
>> ___
>> 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
>> ___
> 
> ___
> 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
> ___

___
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] Space between both environments

2015-09-07 Thread Otared Kavian
Hi Fabrice,

You can use
after={\strut\blank}

in your definition of MyDefinition, as in:

\defineframedtext
  [MyDefinition]
  [before={\blank},
   after={\strut\blank},
   frame=off,
   background=MyFrame,
   width=\textwidth,
   height=fit,
   location=left,
   style=italic]

Best regards: OK

> On 07 Sep 2015, at 19:35, Fabrice Couvreur  
> wrote:
> 
> Hi,
> I can not insert a space between my two environments.
> Thank you.
> Fabrice
> 
> % macros=mkvi
> 
> \setupcolors[state=start]
> 
> 
> \definecolor[MyColorA][c=0.00, m=0.10, y=0.20, k=0.00]  
> 
> \definecolor[MyColorB][c=0.00, m=0.62, y=1.00, k=0.00]
> 
> \definecolor[MyColorC][c=0.3, m=0.00, y=0.00, k=0.05]
> 
> \definecolor[MyColorD][c=0.6, m=0.00, y=0.00, k=0.10]
> 
> 
> \defineframedtext
>   [MyDefinition]
>   [before={\blank},
>after={\blank},
>frame=off,
>background=MyFrame,
>width=\textwidth,
>height=fit,
>location=left,
>style=italic]
> 
> \defineoverlay
>   [MyFrame]
>   [\useMPgraphic{MyFrame}]
> 
> \definelabel
>   [Définition]
>   [headstyle=\bf\smallcaps]
> 
> \startuseMPgraphic{MyFrame}
> path b ;
> picture p ;
> p := textext.rt("\white\Définition") ; 
> p := p shifted (2BodyFontSize,OverlayHeight-ypart center p+.25ExHeight) ;
> b := boundingbox p leftenlarged .5EmWidth rightenlarged .5EmWidth ;
> fill OverlayBox withcolor \MPcolor{MyColorA} ;
> fill b withcolor \MPcolor{MyColorB} ;
> draw p ;
> \stopuseMPgraphic
> 
> 
> \definemixedcolumns
>   [myColumn]
>   [n=2, 
>separator=rule,
>rulecolor=MyColorC,
>rulethickness=1pt,
>balance=yes]
> 
> \setupalign[verytolerant,stretch,hanging]
> 
> 
> \defineoverlay
>   [Funny]
>   [\useMPgraphic{Funny}]
> 
> \definelabel
>   [MÉTHODE]
>   [headstyle=\bf\smallcaps]
> 
> \startuseMPgraphic{Funny}
> interim linejoin := mitered ;
> interim linecap := squared ;
> path b ;
> picture p ;
> p := textext.rt("\white\MÉTHODE") ; 
> p := p shifted (0,OverlayHeight) ;
> b := boundingbox p ;
> drawoptions (withpen pencircle scaled 3mm withcolor \MPcolor{MyColorC}) ;
> draw leftboundary OverlayBox ;
> fill b withcolor \MPcolor{MyColorD} ;
> draw p ;
> setbounds currentpicture to OverlayBox ;
> \stopuseMPgraphic
> 
> \defineframedtext
>   [Methode]
>   [before={\blank},
>after={\blank},
>frame=off,
>background=Funny,
>width=\textwidth,
>height=fit,
>]
> 
> 
> 
> \starttext
> 
> \startMyDefinition
> \input knuth
> \stopMyDefinition
> 
> \startMethode
> 
> \startmyColumn
> 
> \input ward
> 
> \column
> \input knuth
> \stopmyColumn
> 
> 
> \stopMethode
> \stopsection
> \stopchapter
> \stoppart
> \stoptext

___
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] Bug in placefloat at right

2015-09-03 Thread Otared Kavian
Hi Hans, 

As it was reported by Fabrice Couvreur in another thread, there is a bug with 
placing floats on the right in 

ConTeXt  ver: 2015.09.01 11:10 MKIV beta  fmt: 2015.9.3 

A minimal example follows, with the output attached.

 begin bug-placefigure.tex
\starttext

\startplacefigure[location={right}]
\externalfigure[cow.jpg][width=5cm]
\stopplacefigure
Look here: this picture is not placed correctly on the right. What is wrong 
with placing the picture on the right

\startplacefigure[location={left}]
\externalfigure[cow.jpg][width=5cm]
\stopplacefigure
Look here: this picture is placed correctly on the left. What is wrong with 
placing the picture on the right?

\stoptext

 end bug-placefigure.tex

Best regards: OK


bug-placefigure.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://tex.aanhet.net
archive  : http://foundry.supelec.fr/projects/contextrev/
wiki : http://contextgarden.net
___

Re: [NTG-context] Title of parts

2015-08-30 Thread Otared Kavian
Hi Eric,

If you use either
\part{This is part 1}

or 

\startpart[title={This part 2}]
\startchapter[title={This is chapter 1}]
\stopchapter
\stoppart

you get a title for part 1 and part 2.

Best regards: OK

 On 30 Aug 2015, at 11:42, Eric Détrez i...@eric-detrez.fr wrote:
 
 By default \part generates no title because most of the times these require 
 special attention and a specific design.
 
 I can't find how to write such a specific design.
 
 -- 
 Eric Détrez
 Informatique
 Lycée Faidherbe, Lille
 http://eric-detrez.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
 ___

___
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] Left border of a rectangle (Metafun)

2015-08-30 Thread Otared Kavian
Hi Fabrice,

Your code works if you add 

 setbounds currentpicture to OverlayBox ;

Indeed with this Metapost determines the boundaries of the rectangle of which 
you draw the left side.

Best regards: OK

 On 30 Aug 2015, at 09:50, Fabrice Couvreur fabrice1.couvr...@gmail.com 
 wrote:
 
 Hi,
 Hans Otared and thank you for your suggestions.
 A question for Hans : why my code does not give the expected result ?
 Fabrice
 
 2015-08-29 13:35 GMT+02:00 Hans Hagen pra...@wxs.nl mailto:pra...@wxs.nl:
 On 8/29/2015 1:11 PM, Otared Kavian wrote:
 Hi fabrice,
 
 I dont’t know whether this the best solution, but you can use the following 
 definition of the MPgraphic Funny:
 
 \startuseMPgraphic{Funny}
  interim linecap := butt ;
  path p ;
  p := unitsquare xyscaled (OverlayWidth,OverlayHeight) ;
  drawoptions (withpen pencircle scaled 6.5pt withcolor 
 \MPcolor{MyColorA}) ;
  draw lrcorner p --urcorner p --ulcorner p withcolor white;
  draw ulcorner p --llcorner p ;
 
 \stopuseMPgraphic
 
 \startuseMPgraphic{Funny}
 interim linecap := butt ;
 draw leftboundary OverlayBox ;
 setbounds currentpicture to OverlayBox ;
 \stopuseMPgraphic
 
 -
   Hans Hagen | PRAGMA ADE
   Ridderstraat 27 | 8061 GH Hasselt | The Netherlands
 tel: 038 477 53 69 | voip: 087 875 68 74 | www.pragma-ade.com 
 http://www.pragma-ade.com/
  | www.pragma-pod.nl 
 http://www.pragma-pod.nl/
 -
 
 ___
 If your question is of interest to others as well, please add an entry to the 
 Wiki!
 
 maillist : ntg-context@ntg.nl mailto:ntg-context@ntg.nl / 
 http://www.ntg.nl/mailman/listinfo/ntg-context 
 http://www.ntg.nl/mailman/listinfo/ntg-context
 webpage  : http://www.pragma-ade.nl http://www.pragma-ade.nl/ / 
 http://tex.aanhet.net http://tex.aanhet.net/
 archive  : http://foundry.supelec.fr/projects/contextrev/ 
 http://foundry.supelec.fr/projects/contextrev/
 wiki : http://contextgarden.net http://contextgarden.net/
 ___
 
 ___
 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
 ___

___
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] Left border of a rectangle (Metafun)

2015-08-29 Thread Otared Kavian
Hi Fabrice,

You can also use the following simpler method:

% begin leftframe.tex
\definecolor[MyColorA][c=0.3, m=0.00, y=0.00, k=0.05]

\defineframedtext
  [MethodeB]
  [before={\blank},
   after={\blank},
   frame=off,
   leftframe=on,
   framecolor=MyColorA,
   rulethickness=6.5pt,
   width=\textwidth,
   height=fit]

\starttext

\startMethodeB
\input knuth
\stopMethodeB

\stoptext
% end leftframe.tex

Best regards: OK

 On 29 Aug 2015, at 10:56, Fabrice Couvreur fabrice1.couvr...@gmail.com 
 wrote:
 
 Hi,
 I want to draw the left border of the rectangle, but it is drawn in the 
 middle.
 Why ?
 Thank you,
 Fabrice
 
 \setupcolors[state=start]
 
 
 \definecolor[MyColorA][c=0.3, m=0.00, y=0.00, k=0.05]
 
 
 
 \defineoverlay
   [Funny]
   [\useMPgraphic{Funny}]
 
 \startuseMPgraphic{Funny}
 interim linecap := butt ;
 path p ;
 p := unitsquare xyscaled (OverlayWidth,OverlayHeight) ;
 drawoptions (withpen pencircle scaled 6.5pt withcolor \MPcolor{MyColorA}) 
 ;
 draw ulcorner p--llcorner p ;
 \stopuseMPgraphic
 
 \defineframedtext
   [Methode]
   [before={\blank},
after={\blank},
frame=off,
background=Funny,
width=\textwidth,
height=fit]
 
 \starttext
 
 \startMethode
 \input knuth
 \stopMethode
 
 \stoptext
 ___
 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
 ___

___
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] Left border of a rectangle (Metafun)

2015-08-29 Thread Otared Kavian
Hi fabrice,

I dont’t know whether this the best solution, but you can use the following 
definition of the MPgraphic Funny:

\startuseMPgraphic{Funny}
interim linecap := butt ;
path p ;
p := unitsquare xyscaled (OverlayWidth,OverlayHeight) ;
drawoptions (withpen pencircle scaled 6.5pt withcolor \MPcolor{MyColorA}) ;
draw lrcorner p --urcorner p --ulcorner p withcolor white;
draw ulcorner p --llcorner p ;

\stopuseMPgraphic

If necessary, you can use a backgroundcolor instead of white for the part of 
the path p which is to be invisible.

Best regards: OK

 On 29 Aug 2015, at 10:56, Fabrice Couvreur fabrice1.couvr...@gmail.com 
 wrote:
 
 Hi,
 I want to draw the left border of the rectangle, but it is drawn in the 
 middle.
 Why ?
 Thank you,
 Fabrice
 
 \setupcolors[state=start]
 
 
 \definecolor[MyColorA][c=0.3, m=0.00, y=0.00, k=0.05]
 
 
 
 \defineoverlay
   [Funny]
   [\useMPgraphic{Funny}]
 
 \startuseMPgraphic{Funny}
 interim linecap := butt ;
 path p ;
 p := unitsquare xyscaled (OverlayWidth,OverlayHeight) ;
 drawoptions (withpen pencircle scaled 6.5pt withcolor \MPcolor{MyColorA}) 
 ;
 draw ulcorner p--llcorner p ;
 \stopuseMPgraphic
 
 \defineframedtext
   [Methode]
   [before={\blank},
after={\blank},
frame=off,
background=Funny,
width=\textwidth,
height=fit]
 
 \starttext
 
 \startMethode
 \input knuth
 \stopMethode
 
 \stoptext
 ___
 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
 ___

___
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] No space after a closing delimiter

2015-08-27 Thread Otared Kavian
Thanks Hans!
I wikified your tip:
http://wiki.contextgarden.net/autoinsertnextspace

Best regards: OK

 On 27 Aug 2015, at 20:42, Hans Hagen pra...@wxs.nl wrote:
 
 On 8/27/2015 2:39 PM, Fabrice Couvreur wrote:
 In fact, you are both right, write the macro differently.
 
 
 \def\repere{\bigl(O\,;I,J\bigr)}
 
 \starttext
 \dorecurse{2}{blabla} $\repere$ \dorecurse{2}{blabla}
 
 \dorecurse{2}{blabla} $\bigl(O\,;I,J\bigr)$ \dorecurse{2}{blabla}
 
 \stoptext
 
 you can add \autoinsertnextspace to macros
 
 Thanks,
 Fabrice
 
 2015-08-27 13:32 GMT+02:00 Peter Münster pmli...@free.fr
 mailto:pmli...@free.fr:
 
On Thu, Aug 27 2015, Fabrice Couvreur wrote:
 
 I did not know it because, before migrating to context, I used latex 
 with
 this :  \newcommand{\repere}{$\bigl(O\,;I,J\bigr)$.
 
In LaTeX there is no space neither:
 
--8---cut here---start-8---
\newcommand{\repere}{$\bigl(O\,;I,J\bigr)$}
\documentclass{article}
\begin{document}
x \repere x
\end{document}
--8---cut here---end---8---
 
--
Peter

 ___
If your question is of interest to others as well, please add an
entry to the Wiki!
 
maillist : ntg-context@ntg.nl mailto: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

 ___
 
 
 
 
 ___
 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
 ___
 
 
 
 -- 
 
 -
  Hans Hagen | PRAGMA ADE
  Ridderstraat 27 | 8061 GH Hasselt | The Netherlands
tel: 038 477 53 69 | voip: 087 875 68 74 | www.pragma-ade.com
 | www.pragma-pod.nl
 -
 ___
 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
 ___

___
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] No space after a closing delimiter

2015-08-27 Thread Otared Kavian
Hi Fabrice,

If you use your command \repere more often in the middle of a sentence you can 
slightly modify the definition of your macro in order to have a space after 
\repere. However, when your command is used at the end of a sentence, you have 
to add \unskip after your command, as in the following example:

\define\repere{$\bigl(O\,;I,J\bigr)$\space}

\starttext
\dorecurse{2}{blabla} \repere \dorecurse{2}{blabla}

Déterminer la trajectoire dans le repère \repere\unskip.

\dorecurse{2}{Blabla} \repere\ \dorecurse{2}{blabla}

\dorecurse{2}{blabla} $\bigl(O\,;I,J\bigr)$ \dorecurse{2}{blabla}

\stoptext

Best regards: OK

 On 27 Aug 2015, at 12:52, Fabrice Couvreur fabrice1.couvr...@gmail.com 
 wrote:
 
 Hi Otared,
 I did not know it because, before migrating to context, I used latex with 
 this :  \newcommand{\repere}{$\bigl(O\,;I,J\bigr)$.
 It's not very convenient to add \ every time !
 Thanks,
 Fabrice
 
 2015-08-27 11:30 GMT+02:00 Otared Kavian ota...@gmail.com 
 mailto:ota...@gmail.com:
 Hi Fabrice,
 
 This is a normal behaviour of TeX macro commands. You should use your command 
 by invoking it like the following:
 
 \repere\ blabla blabal
 
 Best regards: OK
 
  On 27 Aug 2015, at 10:06, Fabrice Couvreur fabrice1.couvr...@gmail.com 
  mailto:fabrice1.couvr...@gmail.com wrote:
 
  Hi,
  The macro \repere does not create a space between the closing delimiter and 
  the following text, why ?
  Thanks,
  Fabrice
 
  \def\repere{$\bigl(O\,;I,J\bigr)$}
 
  \starttext
  \dorecurse{2}{blabla} \repere \dorecurse{2}{blabla}
 
  \dorecurse{2}{blabla} $\bigl(O\,;I,J\bigr)$ \dorecurse{2}{blabla}
 
  \stoptext
  ___
  If your question is of interest to others as well, please add an entry to 
  the Wiki!
 
  maillist : ntg-context@ntg.nl mailto:ntg-context@ntg.nl / 
  http://www.ntg.nl/mailman/listinfo/ntg-context 
  http://www.ntg.nl/mailman/listinfo/ntg-context
  webpage  : http://www.pragma-ade.nl http://www.pragma-ade.nl/ / 
  http://tex.aanhet.net http://tex.aanhet.net/
  archive  : http://foundry.supelec.fr/projects/contextrev/ 
  http://foundry.supelec.fr/projects/contextrev/
  wiki : http://contextgarden.net http://contextgarden.net/
  ___
 
 ___
 If your question is of interest to others as well, please add an entry to the 
 Wiki!
 
 maillist : ntg-context@ntg.nl mailto:ntg-context@ntg.nl / 
 http://www.ntg.nl/mailman/listinfo/ntg-context 
 http://www.ntg.nl/mailman/listinfo/ntg-context
 webpage  : http://www.pragma-ade.nl http://www.pragma-ade.nl/ / 
 http://tex.aanhet.net http://tex.aanhet.net/
 archive  : http://foundry.supelec.fr/projects/contextrev/ 
 http://foundry.supelec.fr/projects/contextrev/
 wiki : http://contextgarden.net http://contextgarden.net/
 ___
 
 ___
 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
 ___

___
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] No space after a closing delimiter

2015-08-27 Thread Otared Kavian
Hi Fabrice,

This is a normal behaviour of TeX macro commands. You should use your command 
by invoking it like the following:

\repere\ blabla blabal

Best regards: OK

 On 27 Aug 2015, at 10:06, Fabrice Couvreur fabrice1.couvr...@gmail.com 
 wrote:
 
 Hi,
 The macro \repere does not create a space between the closing delimiter and 
 the following text, why ?
 Thanks,
 Fabrice
 
 \def\repere{$\bigl(O\,;I,J\bigr)$}
 
 \starttext
 \dorecurse{2}{blabla} \repere \dorecurse{2}{blabla}
 
 \dorecurse{2}{blabla} $\bigl(O\,;I,J\bigr)$ \dorecurse{2}{blabla}
 
 \stoptext
 ___
 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
 ___

___
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] superscripts th nd rd st on dates etc..

2015-08-26 Thread Otared Kavian
Hi,

I don’t see the difference between \high and \highordinalstr, as in the example 
below. Is there something hidden there?

\starttext

August 21\high{st} 

August 21\highordinalstr{st}

\stoptext

Best regards: OK

 On 26 Aug 2015, at 19:06, Alan BRASLAU alan.bras...@cea.fr wrote:
 
 1\highordinalstr{st}
 
 etc.
 
 On Tue, 25 Aug 2015 09:19:21 +0200
 Otared Kavian ota...@gmail.com wrote:
 
 \high{th}
 
 \high{nd}
 
 \high{st}
 
 On 24 Aug 2015, at 23:19, John Culleton j...@wexfordpress.com
 wrote:
 
 Forgot how to do these.
 
 -- 
 John Culleton
 
 
 -- 
 Alan Braslau
 CEA DSM-IRAMIS-SPEC
 CNRS UMR 3680
 Orme des Merisiers
 91191 Gif-sur-Yvette cedex FRANCE
 tel: +33 1 69 08 73 15
 fax: +33 1 69 08 87 86
 mailto:alan.bras...@cea.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
 ___

___
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] superscripts th nd rd st on dates etc..

2015-08-25 Thread Otared Kavian
\high{th}

\high{nd}

\high{st}

 On 24 Aug 2015, at 23:19, John Culleton j...@wexfordpress.com wrote:
 
 Forgot how to do these.
 
 -- 
 John Culleton
 Wexford Press
 Book layout, typesetting and Indexing
 Free list of books for self-publishers:
 http://wexfordpress.net/shortlist.html
 ___
 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
 ___

___
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] margindata does not work in latest beta

2015-08-11 Thread Otared Kavian
Hi Thomas,

I tested your example file and looked into my archive tests: it seems that a 
bug has appeared recently, maybe when Hans changed something in order to have 
linenumbering working in floats.
Indeed now the linenumbering does not work in mkiv, neither when using 
\startsimplecolumns (it works in mkii) or \startmixedcolumns.
Line numbering used to work fine in columns, and the line numbers were printed 
to the left of the left column, and to the right of the right column.
It is better to open a new thread on the subject in order for Hans to be 
informed of the issue.

By the way, why don’t you use \startlines …. \stoplines for your poetry? Is 
there a particular reason regarding line spacing and so forth?

Best regards: OK


 On 11 Aug 2015, at 11:55, Schmitz Thomas A. thomas.schm...@uni-bonn.de 
 wrote:
 
 […]  in the following example, which also has columns, the linenumbering 
 doesn’t stop where I would expect. Is this a bug or a limitation of context? 
 
 \setuplayout [leftmargin=2cm]
 
 \setupbodyfont [times,10pt]
 
 \setuplinenumbering [step=1,location=inmargin]
 
 \setupcolumns [n=2]
 
 \starttext
 
 \startcolumns
 \startlinenumbering
 Had we but world enough, and time,
 
 This coyness, Lady, were no crime.
 
 We would sit down and think which way
 
 To walk and pass our long love’s day.
 
 Thou by the Indian Ganges’ side
 
 Shouldst rubies find: I by the tide
 
 Of Humber would complain. I would
 
 Love you ten years before the Flood,
 
 And you should, if you please, refuse
 \stoplinenumbering
 \column
 
 Till the conversion of the Jews.
 
 My vegetable love should grow
 
 Vaster than empires, and more slow;
 
 An hundred years should go to praise
 
 Thine eyes and on thy forehead gaze;
 
 Two hundred to adore each breast;
 
 But thirty thousand to the rest;
 
 An age at least to every part,
 
 And the last age should show your heart;
 
 For, Lady, you deserve this state,
 
 Nor would I love at lower rate.
 \stopcolumns
 
 \stoptext
 
 ___
 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
 ___

___
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] margindata does not work in latest beta

2015-08-08 Thread Otared Kavian
Hi Thomas,

Your file gives the expected result here, with
ConTeXt  ver: 2015.08.05 16:35 MKIV beta  fmt: 2015.8.7  int: 
english/english

Please see the attached output.
Best regards: OK



margindata.pdf
Description: Adobe PDF document


 On 08 Aug 2015, at 14:26, Thomas A. Schmitz thomas.schm...@uni-bonn.de 
 wrote:
 
 Hi,
 
 margindata have stopped to work in the latest beta. Simple test
 
 \setuplayout [leftmargin=2cm]
 
 \starttext
 
 Thus, I came to the conclusion that the designer of a new
 system must not only be the implementer and first
 large-scale \inleft{100}user; the designer should also write the first
 user manual.
 
 \stoptext
 
 works with 2015.07.24 13:58, no output in margin with 2015.08.04 01:25
 
 All best
 
 Thomas

___
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] Text around a figure in a framedtext (Wolfgang Schuster)

2015-08-08 Thread Otared Kavian
Hi Jeong,

You are right, but probably this is due to the way the source file knuth.tex is 
encoded: if you replace 
\input knuth
by the text itself, that is by the following

Thus, I came to the conclusion that the designer of a new system must not only 
be the implementer and first large--scale user; the designer should also write 
the first user manual.
The separation of any of these four components would have hurt TEX 
significantly. If I had not participated fully in all these activities, 
literally hundreds of improve- ments would never have been made, because I 
would never have thought of them or perceived why they were important.
But a system cannot be successful if it is too strongly influenced by a single 
person. Once the initial design is complete and fairly robust, the real test 
begins as people with many different viewpoints undertake their own experiments.

then the text is wrapped around the figure when using \starthanging.

Best regards: OK

 On 08 Aug 2015, at 15:49, Jeong Dal hak...@me.com wrote:
 
 Dear Wolfgang,
 
 You have to use \starthanging instead of \placefgure when you’re in a frame.
 
 \starttext
 
 \startframedtext[width=max]
\starthanging[location=right]
{\startMPcode
 draw unitsquare scaled 2cm ;
 \stopMPcode}
\input tufte
\stophanging
 \stopframedtext
 
 \stoptext
 
 Wolfgang
 
 Thank you for letting me know the command “starthanging”.
 I tried the command  “\startfiguretext … \stopfiguretext”, and found that 
 there is no text below the square.
 
 \startframedtext[width=\textwidth]{
 \startfiguretext[right,none]{}{%
 \startMPcode
 draw unitsquare scaled 2cm ;
 \stopMPcode}
 \input knuth
 \stopfiguretext}
 \stopframedtext
 
 Your example worked fine, but if we replace tufte by knuth, then text is 
 written over the square while the tufte’s text was witten surround the square.
 Is it expected result?
 
 Thank you again.
 
 Best regards,
 
 Dalyoung
 ___
 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
 ___

___
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] Text around a figure in a framedtext

2015-08-07 Thread Otared Kavian
Hi,

You should use the same width if you want to obtain the same result (by the 
way, you have to say also \stopframedtext in your source file):

\startframedtext[width=\textwidth]{
\placefigure[right,none]{}{%
 \startMPcode
  draw unitsquare scaled 2cm ;
  \stopMPcode}
\input knuth.tex }
\stopframedtext

Best regards: OK

 On 08 Aug 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)]  
 
 \defineframedtext
   [MyText]
   [frame=off,
background=MyFrame,
width=\textwidth,
location=right]
 
 \defineoverlay
   [MyFrame]
   [\useMPgraphic{MyFrame}]
 
 \definelabel
   [Définition]
   [headstyle=\bf\smallcaps]
 
 \startuseMPgraphic{MyFrame}
 path b ;
 picture p ;
 p := textext.rt(\white\Définition) ; 
 p := p shifted (2BodyFontSize,OverlayHeight-ypart center p+.25ExHeight) ;
 b := boundingbox p leftenlarged .5EmWidth rightenlarged .5EmWidth ;
 fill OverlayBox withcolor \MPcolor{MyColorA} ;
 fill b withcolor \MPcolor{MyColorB} ;
 draw p ;
 \stopuseMPgraphic
 
 \starttext
 \startMyText
 \placefigure[right,none]{}{%
  \startMPcode
   draw unitsquare scaled 2cm ;
   \stopMPcode}
 \input knuth
 \stopMyText
 
 \startframedtext{
 \placefigure[right,none]{}{%
  \startMPcode
   draw unitsquare scaled 2cm ;
   \stopMPcode}
 \input knuth}
 
 \stoptext
 ___
 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
 ___

___
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] Numbering subformulas

2015-08-06 Thread Otared Kavian
Hi Wolfgang,

Thanks for having solved the problem with subformulas numbering.
I would just make a comment on your answers to Lukás, regarding the use of 
\startsubformulas[mylabel]

Indeed using this structure instead of 
\startsubformulas[+]
allows one to refer to all the sub-formulas by invoking (\in[mylabel]), but if 
one wishes to refer to any individual sub-formula one has to give a label 
inside the structure \start—\stop—subformulas, at the level of \placeformula 
for that sub-formula.
Below  is your example, with these remarks.

Thanks for your attention and help: OK
 begin example
\usemodule[visual]

\starttext
Using the definition of the scalar product we infer that:
\placeformula[eq:1]
\startformula
\fakeformula
\stopformula
And here are some other relations valid in a Hilbert space:
%\startsubformulas[+]   % These two options for \subformulas
%\startsubformulas[mylabel] % enable subnumbers for the formulas

\startsubformulas
\placeformula[eq:2-a]
\startformula
\fakeformula
\stopformula

\placeformula[eq:2-b]
\startformula
\fakeformula
\stopformula

\stopsubformulas
It is clear that the equality (\in[eq:2-b]) is a consequence of (\in[eq:1]) and 
(\in[eq:2-a]).

% To test how to change the number separator
\defineseparatorset[none][][]
\setupformulas[numberseparatorset=none]

\startsubformulas[eq:3]
\placeformula
\startformula
\fakeformula
\stopformula

\placeformula
\startformula
\fakeformula
\stopformula

\stopsubformulas
Prove relations (\in[eq:3]) using (\in[eq:1]).
\stoptext
 end example


 On 06 Aug 2015, at 12:07, Wolfgang Schuster schuster.wolfg...@gmail.com 
 wrote:
 
 Procházka Lukáš Ing. - Pontex s. r. o. mailto:l...@pontex.cz   6. 
 August 2015 11:32
 Hello Wolfgang, 
 
 thank you for the patch (not in today's beta); I also attach the modified 
 strc-mat.mkiv and a test file. 
 
 Two questions: 
 
 1. 
 
 What exactly are 
 
   %\startsubformulas[+]   % These two options for \subformulas 
   %\startsubformulas[mylabel] % enable subnumbers for the formulas 
 
 intended for? 
 
 The simple \startsubformulas[eq:b] meets my needs (subformulas are 
 sub-numbered) and I can't see any difference to \startsubformulas[+]. 
 When you write \startsubformulas[-] the numbers for the formulas aren’t 
 displayed in the output but the counter is still increased. I guess 
 \startsubformulas[+] is just there for completeness sake because there are 
 other functions with “-” and “+” options as well.
 
 One difference between \startsubformulas[+] and \startsubformulas[label] is 
 that the second method creates a label which can be used to refer to the 
 number of the formula.
 2. 
 
 Is there a way to setup numbering subformulas to (1a) form instead of 
 (1.a), i.e. set the separator to ? 
 You have to change the separator list with the numberseparator key for 
 \setupformulas.
 
 \defineseparatorset[none][][]
 \setupformulas[numberseparatorset=none]
 
 Wolfgang
 ___
 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
 ___

___
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] Numbering subformulas

2015-08-06 Thread Otared Kavian
Hi Lukás,

You configure the way the equations are numbered by sayng (for example)

\setupformulas[prefix=yes, prefixsegments=chapter:section, 
way=bysection, location=right]

If you say « prefix= no » then you don’t need the other specifications, but I 
am giving a more example above in case you want to adapt it to your needs.

Best regards: OK


 On 06 Aug 2015, at 16:03, Procházka Lukáš Ing. - Pontex s. r. o. 
 l...@pontex.cz wrote:
 
 Hello,
 
 one more question related to the numbering style. The code bellow:
 
 
 \def\fakeformula{a^2 + b^2 = c^2}
 
 \starttext
  \chapter{Cha1}
\section{A}
  \placeformula\startformula\fakeformula\stopformula
 
\section{B}
  \placeformula\startformula\fakeformula\stopformula
 
  \subsection{Ba}
\placeformula\startformula\fakeformula\stopformula
 \stoptext
 
 
 gives numbers in form of (1.1), (1.2) and (1.3).
 
 Is there a way to get simple continuous numbering within the same \chapter 
 (or, similarly, \part in the case of a larger document) - so to produce 
 (1), (2) and (3) in this case?
 
 Best regards,
 
 Lukas
 
 
 -- 
 Ing. Lukáš Procházka | mailto:l...@pontex.cz
 Pontex s. r. o.  | mailto:pon...@pontex.cz | http://www.pontex.cz
 Bezová 1658
 147 14 Praha 4
 
 Tel: +420 241 096 751
 Fax: +420 244 461 
 038SubForm4.mkivSubForm4.pdf___
 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
 ___

___
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] r2l alignment and linenumbering conflict?

2015-08-04 Thread Otared Kavian
Hi Hans,

Thanks for the new beta.

As Idris pointed out, the logic you follow for naming greeknumerals, 
romannumerals, persiannumerals, arabicnumerals, and all others in core-con.lua, 
makes sense but I didn’t notice this logic before…  Which means one may learn 
each and evry day :-)

As far as I know, at least in the Persian use of the abjad system of counting, 
the first case corresponding to the number 1, is usually written 
الف
in order to avoid the confusion with the digit 
۱

I don’t know if this can be fixed in the table you have in core-con.lua.

A further remark is that, don’t you think that the pagenumbering, as well as 
the numbers for chapters, sections, items, equations, etc, should be switched 
by default to arabicdecimals, or persiandecimals, as soon as \mainlanguage has 
been set to arabic or persian?
Or maybe one could have a command like
\setupdefaultnumberings[arabicdecimals]
which sets a default for conversion of numbers for all the counters.

Again many thanks for the features you included in ConTeXt for bidi writing.

Best regards: OK

 On 04 Aug 2015, at 01:30, Hans Hagen pra...@wxs.nl wrote:
 
 On 8/3/2015 9:25 PM, Otared Kavian wrote:
 Hi Hans, Idris, Talal,
 
 Some years ago we had a discussion on the issue, but I don’t remember where 
 we ended up…
 In my opinion, I think that the numberings should be maned as follows:
 
 arabicnumerals: should be  ١,٢,٣,٤,٥,٦,٧,٨,٩,٠
 
 persiannumerals: should be ۱ ۲ ۳ ۴ ۵ ۶ ۷ ۸ ۹ ۰
 
 abjadnumerals: should be الف، ب، ج، د، ه، و، ز،…..
 
 As of today it seems that « persiannumerals » results in what should be 
 named abjadnuemrals, and this is not correct.
 
 so you and idris and tatal has to come to some agreement on that
 
 we have these alphabetic ones
 
 arabicnumerals
 persiannumerals
 arabicexnumerals
 
 and some special ones
 
 abjadnumerals
 abjadnodotnumerals
 
 (these use small, medium, large chars and do special things with 10 100 1000)
 
 and now
 
 arabicdecimals
 persiandecimals
 
 see core-con.lua
 
 Hans
 
 -
  Hans Hagen | PRAGMA ADE
  Ridderstraat 27 | 8061 GH Hasselt | The Netherlands
tel: 038 477 53 69 | voip: 087 875 68 74 | www.pragma-ade.com
 | www.pragma-pod.nl
 -
 ___
 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
 ___

___
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] r2l alignment and linenumbering conflict?

2015-08-03 Thread Otared Kavian
Hi Hans, Idris, Talal,

Some years ago we had a discussion on the issue, but I don’t remember where we 
ended up…
In my opinion, I think that the numberings should be maned as follows:

arabicnumerals: should be  ١,٢,٣,٤,٥,٦,٧,٨,٩,٠

persiannumerals: should be ۱ ۲ ۳ ۴ ۵ ۶ ۷ ۸ ۹ ۰

abjadnumerals: should be الف، ب، ج، د، ه، و، ز،…..

As of today it seems that « persiannumerals » results in what should be named 
abjadnuemrals, and this is not correct.

Best regards: OK

 On 03 Aug 2015, at 16:56, Hans Hagen pra...@wxs.nl wrote:
 
 
 what would be the proper name for such a conversion? simplearabic? 
 arabicdigits?
 
 [myconversion]
 [١,٢,٣,٤,٥,٦,٧,٨,٩,١٠,
 ١١,١٢,١٣,١٤,١٥,١٦,١٧,١٨,١٩,٢٠,
 ۲۱,۲۲,۲۳,۲٤,۲٥,۲٦,۲۷,۲۸,۲۹,۳۰,
  another million entries
 
 Hans
 
 
 
 -
  Hans Hagen | PRAGMA ADE
  Ridderstraat 27 | 8061 GH Hasselt | The Netherlands
tel: 038 477 53 69 | voip: 087 875 68 74 | www.pragma-ade.com
 | www.pragma-pod.nl
 -
 ___
 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
 ___

___
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] em-/en-dashes and newotf

2015-07-12 Thread Otared Kavian
Hi Pablo,On my installation everything seems to work fine: Context version2015.07.12 15:40
		
	
	
		
			
Please see the attached file.Best regards: OK

			
		

newotf-ligatures.pdf
Description: Adobe PDF document
On 12 Jul 2015, at 11:38, Pablo Rodriguez oi...@gmx.es wrote:On 07/12/2015 04:12 PM, Hans Hagen wrote:[...]maybe some file is not loaded ... i uploaded a variant that might work betterMany thanks for the new beta.I’m afraid that this sample doesn’t work with latest beta either: \usemodule[newotf] \definefontfeature[noliga][liga=no] \starttext \startTEXpage[offset=1em] fiflff no--liga: \addfeature[noliga]fiflff --- em--dash \stopTEXpage \stoptextI may be wrong, but I think that the non-deactivated OpenType feature isrelated to the non-activated em- and en-dashes.To the list members: could you test the sample above and tell em- anden-dashes work and if no-liga disables ligatures? Adding architecturemay help.I’m on Linux 32bits.Many thanks for your help,Pablo-- http://www.ousia.tk___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-contextwebpage : http://www.pragma-ade.nl / http://tex.aanhet.netarchive : http://foundry.supelec.fr/projects/contextrev/wiki : http://contextgarden.net__
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] Testing the value of a number defined with \definenumber

2015-06-27 Thread Otared Kavian
Hi MF,

You should use \rawcountervalue instead of \getnumber, as in the following:

\starttext

\definenumber[numero][]
\setnumber[numero][42]
The value of {\tt numero} is \getnumber[numero].

The value of {\tt numero} is \rawnumber[numero].

The value of {\tt numero} is \rawcountervalue[numero].

\doifelse{\getnumber[numero]}{42}{
 Ok, the test worked.
}{
 Why does not it work?
}

\doifelse{\rawcountervalue[numero]}{42}{
 Ok, the test worked.
}{
 Why does not it work?
}

\stoptext

Best regards: OK

 On 27 Jun 2015, at 13:09, mf mass...@fastwebnet.it wrote:
 
 I'd like to test the value of a number (\definenumber).
 
 \starttext
 
 \definenumber[numero][]
 \setnumber[numero][42]
 The value of {\tt numero} is \getnumber[numero].
 
 \doifelse{\getnumber[numero]}{42}{
  Ok, the test worked.
 }{
  Why does not it work?
 }
 
 \stoptext
 
 ConTeXt types Why does not it work?, because the test fails. Why?
 ___
 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
 ___

___
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] definereferencestructureprefix for floats

2015-06-22 Thread Otared Kavian
Hi Aditya, Hi Wolfgang,

I was following this thread and I fixed too the typo, then rebuilt the formats 
but the results I get are as Aditya describes it (please see the attached 
output I get). Actually I need something analogous but regarding a reference to 
a Theorem or Lemma within a given chapter.

My version is ConTeXt  ver: 2015.06.15 13:42 MKIV beta  fmt: 2015.6.22  int: 
english/english

Best regards: OK



definereferencestructureprefix-1.pdf
Description: Adobe PDF document

 On 22 Jun 2015, at 17:44, Wolfgang Schuster schuster.wolfg...@gmail.com 
 wrote:
 
 
 Aditya Mahajan   22. Juni 2015 17:34
 On Mon, 22 Jun 2015, Wolfgang Schuster wrote: 
 
 
 Yes. Do these two example work correctly for you with the latest beta (after 
 fixing the typo and generating the format)? 
 
 Yes, the examples work for me.
 
 Wolfgang
 ___
 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
 ___

___
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] Multi-page (split) natural tables and footnotes

2015-06-07 Thread Otared Kavian
Hi Christoph,

There exists a local footnotes environment in floats, as in the following 
example: I don’t know if it solves the problem you mention…


\starttext

\startlocalfootnotes 
\placetable[align=middle]{A table with footnotes.}
{\starttable[|l|r|]
  \HL
  \VL One\footnote{First} \VL Two\footnote{Second} \VL\FR
  \VL Three\footnote{Third} \VL Four\footnote{Fourth} \VL\LR
  \HL
  \stoptable}
{\placelocalfootnotes}
\stoplocalfootnotes

\stoptext


Best regards: OK

 On 06 Jun 2015, at 21:41, Christoph Reller christoph.rel...@gmail.com wrote:
 
 Hi,
 
 How can I get footnotes working with split tables? Is this not supported?
 
 The workaround with \note[...] \footnotetext[...]{...} can only be used to 
 place footnotes on the first or on the last page of the table. For a long 
 multi-page table this is not satisfactory.
 
 The wiki mentions using \automigrateinserts, but it has no effect here.
 
 Any help is welcome!
 
 Cheers,
 Christoph
 
 MWE:
 
 \automigrateinserts
 \starttext
 \placetable[split][]{}{
   \bTABLE
   \bTR \bTD This \eTD \bTD That.
   \footnote{This footnote disappears.}
   \note[working]
   \eTD \eTR
   \eTABLE}
   \footnotetext[working]{This footnote works.}
 \stoptext
 
 ___
 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
 ___

___
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] \math or $ doesn't work.

2015-06-02 Thread Otared Kavian

 On 02 Jun 2015, at 21:08, John Culleton j...@wexfordpress.com wrote:
 […]
 Everything works. But there is
 something wrong with my math code. There is no
 horizontal bar between the 1 and the 2.  I guess
 I will study The TEXbook some more.

Hi John,

It is a good idea to read again The TeXBook, but actually I wonder why should 
TeX put a horizontal line between 1 and 2 in your code? 
What you are typesetting in mathmode is just 8 followed by 1 in exponent 
(uppserscript) and 2 in subscript, therefore there shouldn’t be any fraction 
bar between 1 and 2.

If the font you use has the character, what you want to typeset is the 
character U+00BD for 1/2 or, if you want to use mathmode, either of the 
solutions below (wtach the slight differences between the three versions):

\starttext
$8\tfrac{1}{2} × 11$ inch

$8\frac{1}{2} × 11$ inch

$8{1 \over 2} × 11$ inch

\stoptext

Indeed you can replace $…$ with \math{…}.

Best regards: OK
___
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] bug in latest beta?

2015-06-01 Thread Otared Kavian
Hi Pablo,

Indeed the document I was talking about has been typeset with various versions 
of mkiv, but now I observe that sometimes the pagebreaks are made in a very 
strange way. Since I can’t make a minimal example, I put on the following link 
an excerpt of the PDF document where the bad pagebreaks can be seen: 

https://dl.dropboxusercontent.com/u/4316076/bad-pagebreak.pdf

(Please see pages 19 and 32). It seems that this happens, sometimes, but as far 
as I can say from my experiments the bad pagebreak happens always before a « 
proclaim » which is defined as follows:

\defineenumeration[proclaim]
[text=,
before={\blank\startbackground[frame=off,leftframe=on,
rulethickness=2pt,framecolor=darkred,
background=color,
backgroundcolor=screen]},
after={\stopbackground\blank},
style=slanted,
title=yes,
titleleft=,
titleright={.},
alternative=hanging,
width=fit,
right={~},
way=bysection,
prefix=yes,
prefixsegments={chapter:section}]

Actually I found a workaround for this by changing the above definition into:

\defineenumeration[proclaim]
[text=,
before={\blank\startmarginrule[rulethickness=1pt,rulecolor=darkred]},
after={\stopmarginrule},
style=slanted,
title=yes,
titleleft=,
titleright={.},
alternative=hanging,
width=fit,
right={~},
way=bysection,
prefix=yes,
prefixsegments={chapter:section}]

However it would be better to understand why the first definition does not work 
properly, in a rather random way.

Best regards: OK


 On 01 Jun 2015, at 00:16, Hans Hagen pra...@wxs.nl wrote:
 
 On 5/31/2015 1:56 PM, Pablo Rodriguez wrote:
 On 05/28/2015 07:10 PM, Hans Hagen wrote:
 On 5/27/2015 10:38 PM, Pablo Rodriguez wrote:
 [...]
 Compiling it with beta from 2015.03.25 22:13, page break is fine.
 
 But with latest beta from 2015.05.24 12:42 (or even with beta from
 2015.05.15 11:42 includes a wrong page break. The setups for widow and
 orphan lines move the two last lines to the next page.
 
 Could anyone confirm this bug?
 
 i wonder if it's a bug or just tex's decision ... you can use
 
 \showmakeup[penalty]
 
 and see what penalties get injected
 
 are the linebreaks identical, i.e. same hyphenation?
 
 Many thanks for your reply, Hans.
 
 Hyphenation is the same in both documents.
 
 btw, brokenpenalty 1 gives a different result
 
 Page break is wrong when any of the three values (brokenpenalty,
 widowpenalty or clubpenalty) is 0 or above .
 
 I replacing \subsection with \section gives the right page break:
 
 \showframe\showgrid
 \setuplayout[setups=*lessstrict]
 \startsetups[*lessstrict]
 \setup[reset]
 \widowpenalty=1
 \clubpenalty=1
 \brokenpenalty=0
 \stopsetups
 \setupbodyfont[pagella, 12.6pt]
 \starttext
 \chapter{Quotes}
 \section{Zapf}
 \dorecurse{4}{\input zapf\par}
 \section{Knuth}
 \input knuth
 \stoptext
 
 Why does \subsection cause a different page break than \section?
 
 because there are penalties related to (sub)sections in a way that keeps them 
 together but at the same time still permits breaks in case of too many 
 successive ones .. and penalties determine the way the page is broken
 
 Hans
 
 -
  Hans Hagen | PRAGMA ADE
  Ridderstraat 27 | 8061 GH Hasselt | The Netherlands
tel: 038 477 53 69 | voip: 087 875 68 74 | www.pragma-ade.com
 | www.pragma-pod.nl
 -
 ___
 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
 ___

___
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] ConTeXt not defending the right margin

2015-06-01 Thread Otared Kavian
Hi,

Probably instead of underscores you should use horizontal line, that is

\hl[3]

(or any other value instead of 3), something like

\starttext
Date: \hl[8], 20\hl[5], at \hl[5], City \hl[7]
\stoptext

Best regards: OK

 On 01 Jun 2015, at 08:11, henman dhen...@gmail.com wrote:
 
 I am using mtxrun  | ConTeXt TDS Runner Tool 1.31
 
 In real life I get documents that have long blank lines which are a sequence 
 of underscore characters.   I have to transcribe these into ConTeXt file.  
 But when compiled into a pdf file the long resulting rule line infringes on 
 the right boundary.
 
 What can I do, to get ConTeXt to maintain the boundary and display the lines 
 as intended?
 
 Thanks.
 
  Minimal Example
 \starttext
 
 DATE: , 20__, at 
 __,  
 city___ \ state --\ country.
 
 1. Whereas , 
 as the artist(s) and    the patrons.
 
 \stoptext
 
 
 
 
 
 
 ___
 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
 ___

___
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] ConTeXt not defending the right margin

2015-06-01 Thread Otared Kavian

 On 01 Jun 2015, at 09:33, Pablo Rodriguez oi...@gmx.es wrote:
 
 On 06/01/2015 09:12 AM, Otared Kavian wrote:
 Hi,
 
 Probably instead of underscores you should use horizontal line, that is
 
  \hl[3]
 
 (or any other value instead of 3), something like
 
 \starttext
 Date: \hl[8], 20\hl[5], at \hl[5], City \hl[7]
 \stoptext
 
 Hi Otared,
 
 but I’m afraid that line breaks cannot take place inside \hl:
 
\starttext
Date: \hl[50]
\stoptext
 
 
 Pablo
 -- 
 http://www.ousia.tk

Hi Pablo,

Indeed you are right… I didn’t check the limit cases.
Sorry for the wrong hint I gave!

Best regards: OK
___
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] bug in latest beta?

2015-06-01 Thread Otared Kavian

 On 01 Jun 2015, at 09:28, Pablo Rodriguez oi...@gmx.es wrote:
 
 […]
 Hi Otared,
 
 having only three theorems my guess will be probably wrong, but I’ll try it.
 
 The theorem that doesn’t cause a wrong pagebreak is preceeded by a
 single line paragraph.
 
 In order to confirm whether this is the pattern, I would remove some
 words from the last paragraph on page 19, so that there has only one
 line. And I would add some words to the pagraph before theorem 2.3.2 on
 page 31, so this pargraph contains two lines.
 
 Could you check this?
 
 
 Pablo
 -- 
 http://www.ousia.tk

Hi Pablo,

Actually I have done what you suggest by adding or removing text, but at the 
end when the document changes all of a sudden the bad pagebreaks appear or 
disappear.
The second definition of « proclaim » I sent you suppresses the bad pagebreaks, 
but in some other situations still I have other bad pagebreaks… Until I have 
not made a rela minimal example the problem cannot be understood and 
permanently solved.

Best regards: OK
___
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] bug in latest beta?

2015-05-28 Thread Otared Kavian
Hi Pablo,

I tested your sample with

ConTeXt  ver: 2014.05.21 22:04 MKIV beta  fmt: 2015.3.31  int: 
english/english

(which is from TeXLIve 2014) and also with

ConTeXt ver: 2015.05.21 13:39 MKIV beta fmt: 2015.5.21 int: 
english/english

and I get exactly the same result, with the last two line of page 1 pusged to 
the second page.

However with mmkii, thta is

ConTeXt ver: 2013.06.07 17:34 MKII fmt: 2015.5.21 int: english/english

the penalties act correctly and page one has all the lines expected, while page 
2 begins with a new section.

Actually I hav enoticed that recent versions of mkiv create strange page breaks 
in some of documents containing maths, but up to now I have not succeeded to 
reproduce this bad behavior in a short (and minimal) example.

Best regards: OK



 On 27 May 2015, at 22:38, Pablo Rodriguez oi...@gmx.es wrote:
 
 Dear list,
 
 I have the following sample:
 
\showframe\showgrid
\setuplayout[setups=*lessstrict]
\startsetups[*lessstrict]
\setup[reset]
\widowpenalty=1
\clubpenalty=1
\brokenpenalty=0
\stopsetups
\setupbodyfont[pagella, 12.6pt]
\starttext
\chapter{Quotes}
\section{Zapf}
\dorecurse{4}{\input zapf\par}
\subsection{Knuth}
\input knuth
\stoptext
 
 Compiling it with beta from 2015.03.25 22:13, page break is fine.
 
 But with latest beta from 2015.05.24 12:42 (or even with beta from
 2015.05.15 11:42 includes a wrong page break. The setups for widow and
 orphan lines move the two last lines to the next page.
 
 Could anyone confirm this bug?
 
 Many thanks for your help,
 
 
 Pablo
 -- 
 http://www.ousia.tk
 ___
 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
 ___

___
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] arranging pages

2015-05-24 Thread Otared Kavian
Hi,

Maybe you need to say also:

\setuppagenumbering[alternative={singlesided,doublesided}]

or just
\setuppagenumbering[alternative={singlesided}]

Best regards: OK

 On 24 May 2015, at 11:24, Meer, H. van der h.vanderm...@uva.nl wrote:
 
 Trying to put 2 pages in A5 format besides one another on an A4 page like 
 this:
 
 --
 | |  |
 | |  |
 | |  |
 |1|  2   |
 | |  |
 | |  |
 --
 
 but using:
 
 \setuppapersize[A5][A4,landscape]
 \setuparranging[2UP]
 
 I get this instead:
 
 --  --
 | |  |  | |  |  
 | |  |  | |  |  
 | |  |  | |  |  
 | | 1|  |2|  |  
 | |  |  | |  |  
 | |  |  | |  |  
 | |  |  | |  |  
 --  --
 
 What I am doing wrong?
 
 Hans van der Meer
 
 
 
 
 ___
 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
 ___

___
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] arranging pages

2015-05-24 Thread Otared Kavian
Hi again,

Sorry I didn’t notice that you used

\setuparranging[2UP] 

Actually what you want to do may be:

 begin arranging-up-or-side.tex
\setuppapersize[A5][A4,landscape]
\setuplayout[location=middle]
\setuparranging[2SIDE]
%\setuparranging[2UP]  —— Compare with the above
\setuppagenumbering[alternative={singlesided,doublesided}]

\starttext
\dorecurse{20}{\input knuth\par}
\stoptext
 begin arranging-up-or-side.tex

Best regards: OK

 On 24 May 2015, at 11:24, Meer, H. van der h.vanderm...@uva.nl wrote:
 
 Trying to put 2 pages in A5 format besides one another on an A4 page like 
 this:
 
 --
 | |  |
 | |  |
 | |  |
 |1|  2   |
 | |  |
 | |  |
 --
 
 but using:
 
 \setuppapersize[A5][A4,landscape]
 \setuparranging[2UP]
 
 I get this instead:
 
 --  --
 | |  |  | |  |  
 | |  |  | |  |  
 | |  |  | |  |  
 | | 1|  |2|  |  
 | |  |  | |  |  
 | |  |  | |  |  
 | |  |  | |  |  
 --  --
 
 What I am doing wrong?
 
 Hans van der Meer
 
 
 
 
 ___
 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
 ___

___
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] \big\lfloor and \big\lceil do not work

2015-05-12 Thread Otared Kavian
Hi Hans,

While you are at the delimiters, could you please add also
\|
as an alias for \Vert? The command \| exists in plain TeX (and in many other 
TeX packages used by mathematicians) as an alias for the double bar norm, 
\Vert, or ||, while as of now in ConTeXt it is an alias for the single bar |.

Best regards: OK

 On 11 May 2015, at 18:50, Aditya Mahajan adit...@umich.edu wrote:
 
 On Mon, 11 May 2015, Aditya Mahajan wrote:
 
 On Mon, 11 May 2015, Aditya Mahajan wrote:
 
 Any hints about the missing \lfloor, \lceil with \big etc.?
 
 hm, still missing?
 
 No. They work with the latest beta.
 
 Other missing delimiters:
 
 \lmoustache, \rmoustache, \llbracket, \rrbracket, \llangle, \rrangle, 
 \lgroup,  \ulcorner, \urcorner, \llcorner, \lrcorner.
 
 and
 
 \lvert, \rvert, \lVert, \rVert.
 
 Aditya
 ___
 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
 ___

___
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] Changing font for math function

2015-05-11 Thread Otared Kavian
Hi Aditya,

Thanks for your remark: indeed with the correct use of \underline, I get what 
was intended, but somehow before yesterday ConTeXt was more tolerant and for 
years it accepted my wrong definition of \liminf…
However, with the new features of \setupmathematics, the underlined word lim 
has two colors: for instance with the option
\setupmathematics [functioncolor=red]
the word lim is in red, but the underline is in black.

If I understand correctly, the option
\setupmathematics [functionstyle=\normalrm, functioncolor=red]
uses the normal roman font in math mode, that is math italic if for instance 
one is using LM roman as text font. Am I right?

A final question: assuming one needs somewhere a command named weak limit, that 
is \weaklim, I tried the following definition:
\definemathcommand [weaklim]  [limop] {\mfunctionlabeltext{weaklim}}
but I don’t get the word weaklim printed: what am I doing wrong?
Here is the example:

% begin weaklim.tex
\definemathcommand [weaklim]  [limop] {\mfunctionlabeltext{weaklim}}
\starttext

If $\phi_{n}(x) := \sin(n|x|)$, then $\weaklim_{n\to\infty}\phi_{n} = 0$.

\stoptext
% end weaklim.tex 

Best regards: OK


 On 11 May 2015, at 04:47, Aditya Mahajan adit...@umich.edu wrote:
 
 On Sun, 10 May 2015, Otared Kavian wrote:
 
 Everything works fine, except that when one tries to modify, for instance 
 the definition of \liminf (in order to have it as an underlined lim), 
 ConTeXt reports an error.
 
 %\definemathcommand [liminf]  [limop] {\underline\mfunctionlabeltext{lim}}
 
 \underline{} takes an argument.
 
 Aditya
 
 ___
 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
 ___

___
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] Changing font for math function

2015-05-11 Thread Otared Kavian
Thanks Hans!
Out of curiosity I tried textcolor and textstyle as in
\setupmathematics [functionstyle=, functioncolor=darkred, 
textstyle=bold, textcolor=blue]
and discovered that these two work also… 
By the end of the week I’ll wikify these.

Thanks and best regards: OK


 On 11 May 2015, at 10:05, Hans Hagen pra...@wxs.nl wrote:
 
 On 5/11/2015 9:07 AM, Otared Kavian wrote:
 Hi Aditya,
 
 Thanks for your remark: indeed with the correct use of \underline, I get 
 what was intended, but somehow before yesterday ConTeXt was more tolerant 
 and for years it accepted my wrong definition of \liminf…
 However, with the new features of \setupmathematics, the underlined word lim 
 has two colors: for instance with the option
  \setupmathematics [functioncolor=red]
 the word lim is in red, but the underline is in black.
 
 you can set lots of colors so formulas can be real colorful
 
 If I understand correctly, the option
  \setupmathematics [functionstyle=\normalrm, functioncolor=red]
 uses the normal roman font in math mode, that is math italic if for instance 
 one is using LM roman as text font. Am I right?
 
 functionstyle=somedefinedtextstylealternative
 
 will box the stuff and uses the given fon, otherwise it will use whatever is 
 set and when nothing is set it will use mathupright (cf aditya's wish and 
 previous behaviour)
 
 A final question: assuming one needs somewhere a command named weak limit, 
 that is \weaklim, I tried the following definition:
  \definemathcommand [weaklim]  [limop] {\mfunctionlabeltext{weaklim}}
 but I don’t get the word weaklim printed: what am I doing wrong?
 Here is the example:
 
 % begin weaklim.tex
 \definemathcommand [weaklim]  [limop] {\mfunctionlabeltext{weaklim}}
 \starttext
 
 If $\phi_{n}(x) := \sin(n|x|)$, then $\weaklim_{n\to\infty}\phi_{n} = 0$.
 
 \stoptext
 % end weaklim.tex
 
 it helps to define the label
 
 \setupmathlabeltext[en][weaklim=wlim]
 
 
 
 -
  Hans Hagen | PRAGMA ADE
  Ridderstraat 27 | 8061 GH Hasselt | The Netherlands
tel: 038 477 53 69 | voip: 087 875 68 74 | www.pragma-ade.com
 | www.pragma-pod.nl
 -
 ___
 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
 ___

___
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] Changing font for math function

2015-05-10 Thread Otared Kavian
Hi Hans,

Thanks for the new feature in \setupmathematics.
I did some testing of the feature on a several documents, , and followed the 
discussions you had with Aditya and Wolfgang. 
Everything works fine, except that when one tries to modify, for instance the 
definition of \liminf (in order to have it as an underlined lim), ConTeXt 
reports an error. 
Please see below the minimal example and the error message. 
In the minimal example if you uncomment the lines modifying the definition of 
\liminf on gets an error message.


 begin test-functionstyle.tex
\setupmathematics
 [functionstyle=\ss,
  functioncolor=red]
  
%\unprotect
%\definemathcommand [liminf]  [limop] {\underline\mfunctionlabeltext{lim}}
%\protect


\starttext
\startformula
 f = \sin i\omega x^{\sin(x^{\sin(y)})}
\stopformula

Fatou's lemma implies
\startformula
\int_{\Omega}\liminf_{n\to\infty} (1+\cos(n|x|))dx \leq 
\liminf_{n\to\infty}\int_{\Omega}(1+\cos(n|x|))dx.
\stopformula
\stoptext
 end test-functionstyle.tex

The error message is:
\begingroup 
\mfunctionlabeltext #1-\begingroup 
\math_tags_mfunctionlab {#1}\c_apply_fun...
\483limop #1-\mathop {#1
  }
l.45 \int_{\Omega}\liminf
   _{n\to\infty} (1+\cos(n|x|))dx \leq \liminf_{n\to\inf...


Best regards: OK

 On 10 May 2015, at 01:30, Hans Hagen pra...@wxs.nl wrote:
 
 On 5/9/2015 4:16 PM, Aditya Mahajan wrote:
 On Sat, 9 May 2015, Aditya Mahajan wrote:
 
 On Sat, 9 May 2015, Hans Hagen wrote:
 
 i've added (uploading beta now)
 
 \setupmathematics
  [functionstyle=\ss,
   functioncolor=red]
 
 \starttext
 \startformula
  f = \sin i\omega x^{\sin(x^{\sin(y)})}
 \stopformula
 \stoptext
 
 best test this because Mojca will at some point push into tex live
 (at which moment we have a current)
 
 Thanks. This works correctly on a small test. I will test this more
 thoroughly.
 
 \sin etc should not behave like \text{...}. \text should adapt to the
 surrounding style while \mathoptext should not. In particular, in the
 following
 
   {\ss $\sin x$}
   {\bf $\sin x$}
 
 \sin should be in normal text upright font and not adapted to the
 surrounded
 text.
 
 Is it possible to set a value of functionstyle so that the surrounding
 text font
 styles are ignored (but the font size is not).
 
 does
 
 \setupmathematics
  [functionstyle=\normalrm,
   functioncolor=red]
 
 work ok? (\rm is redefined in math mode so we need the outer one)
 
 we could have some keywords for this if needed
 
 I realize that this takes us back to the old 'bold-math-in-section-heads'
 debate. With the current implementation:
 
 \setuphead[section][style=bold]
 \section{$\sin x$}
 
 sin is bold, and if you implement the change that I am suggesting, then
 \sin
 will not be bold in section titles. If someone prefers \sin to be bolded in
 section headers, he would have to add
 \setupmathematics[functionstyle=\bf] in
 the section style as well.
 
 the next stage of the math font project will provide some real bold fonts (so 
 bold alphabets get heavy variants)
 
 Aditya
 ___
 
 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
 ___
 
 
 -- 
 
 -
  Hans Hagen | PRAGMA ADE
  Ridderstraat 27 | 8061 GH Hasselt | The Netherlands
tel: 038 477 53 69 | voip: 087 875 68 74 | www.pragma-ade.com
 | www.pragma-pod.nl
 -
 ___
 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
 ___

___
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] alternative numerical \cite command

2015-05-04 Thread Otared Kavian
Hi Alan,

Excuse-me to jump over a discussion related to the new bibliography features of 
mkiv, but is it now reasonably stable to swithch completely from mkii to mkiv 
(I still have some files in mkii which I use only because of the bibliography 
features I have set up on purpose). 
And where can one find an elementary introduction to the new bibliography 
features?

Thanks in advance, and best regards: OK

 On 04 May 2015, at 15:51, Alan BRASLAU alan.bras...@cea.fr wrote:
 
 On Mon, 4 May 2015 15:10:06 +0200
 Csikos Bela bcsikos...@freemail.hu wrote:
 
 These citation styles are predefined in context.
 
 What I would like to do is inserting alternative numerical citations:
 normal superscript citations, like this^1, and occasionally inline
 citations in brackets, like this one [2]. How could I define
 alternative numerical citation style, e.g. \cite[inum][key] on the
 analogy of author, authoryear etc. styles?
 
 mkiv-bibliographies (not the mkii publications module).
 
 The citation styles can be tuned through parameters, i.e.
 
 \setupbtx
  [cite:numbering:num]
  [left=,
   right=,
   command={\high}]
 
 but in the latest beta, this way of switching to superscript citations
 is currently broken, I noticed, (and will be fixed).
 
 Let me understand, though.
 Do you want to mix\high{1} citations with [1] citations?
 That would be rather strange, stylistically.
 
 There is a predefined second num cite variant \cite[textnum][tag]. It's
 use is intended to produce something like ref. 1, to be used
 syntactically in a sentence, in conjunction with standard num
 references. [1] This is just num setup with [left={ref.\nbsp},right=].
 
 Alan
 ___
 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
 ___

___
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] alternative numerical \cite command

2015-05-04 Thread Otared Kavian


Thanks to remarks by Mojca and Alan, I did some testing with mkiv and my old 
setups for bibliography under mkii, and magically it works also with the new 
bibliography features of mkiv, that is without saying 
\usemodule[bib].
However somehow I couldn’t find an equivalent for the command
\placepublications[criterirum=all]
when one needs to give another title to the section containing the bibliography 
(as in the attached file).

As I understand from Alan’s and Thomas Schmitz’ answers, the new bibliography 
features are not yet completely « production ready » for those people who need 
complex requirements (this is not my case…).
However it would be nice if the new commands were made known somewhere, even 
without having a detailed manual (some people use quite elementary features and 
probably those may be obtained in less than ten commands…).

Best regards: OK





test-biblio-for-mkiv.pdf
Description: Adobe PDF document



test-biblio-for-mkiv.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://tex.aanhet.net
archive  : http://foundry.supelec.fr/projects/contextrev/
wiki : http://contextgarden.net
___

Re: [NTG-context] Check the character after a macro

2015-05-01 Thread Otared Kavian
Hi,

You have several commands in ConTeXt doing what you are seeking to do: please 
look at the examples below:

%%% begin do-if-inset.tex
\starttext
\type{\doifinset{A}{A,B,C}{should go}:} \doifinset{A}{A,B,C}{should go}

\type{\doifinset{D}{A,B,C}{should go}:}  \doifinset{D}{A,B,C}{should 
participate}


\type{\doifnotinset{}{A,B,C}{not in the set}:} \doifnotinset{}{A,B,C}{not in 
the set}

\type{\doifnotinset{D}{A,B,C}{not in the set}:} \doifnotinset{D}{A,B,C}{not in 
the set}

\doifinsetelse{D}{A,B,C}{it is in the set}{it is not in the set}

\define\test{B}

\type{\doifinsetelse{\test}{A,B,C}{\test\ is in the set}{\test\ is not in the 
set}}

\doifinsetelse{\test}{A,B,C}{\test\ is in the set}{\test\ is not in the set}
\stoptext
%%% end do-if-inset.tex

Best regards: OK

 On 01 May 2015, at 18:56, Sam Ḥilluc shil...@gmx.com wrote:
 
 Hello,
 
 Is it possible to check (in a macro definition) if the character following the
 macro is included in a set of characters?
 
 Something that could work like this:
 
\def\MyMacro#1{%
\ifNextCharIn{abcd} \dothis%
\else \dothat%
\fi%
}
 
 Cheers.
 ___
 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
 ___

___
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] A macro which gives a random name

2015-04-19 Thread Otared Kavian
Hi Hans,

Many thanks for your wonderful code… 
I modified a little bit the names you use in your code so that it may be used 
for other purposes as well (for instance if one wishes to select at random a 
certain number of exercises from different subsets among a huge a dataset of 
problems).
Again, for other people's possible needs, I put the modified code below (I 
don’t know in what category one might put your solution on the Wiki).

If I may ask three questions in order to understand better your code, I would 
like to know 

1) Why is it necessary to have this line (please see below)
local ListOfNames = { G , W » }
in the luacode. Is it only a sort of intitialisation?

2) You use a built-in function 
utilities.parsers.settings_to_array(list)
is it a ConTeXt function defined somewhere in the core, or a Lua function?

3) Assuming one has a list of names in a file names (say in a comma separated 
format) in a file
named my-list.tex
how is it possible to use it in \SetListOfFunctionNames? Using
\SetListOfFunctionNames[\input named my-list.tex]
results in an error since \directlua does not accept \input.

Best regards: OK
 begin choose-random-names.tex by Hans
\startluacode
   local ListOfNames = { G , W }
   local ChosenName  = ListOfNames[1]

   function document.SetListOfNames(list)
   ListOfNames = utilities.parsers.settings_to_array(list)
   end
   function document.GetChosenName(new)
   if new then
   ChosenName = ListOfNames[math.random(1,#ListOfNames)]
   end
   context(ChosenName)
   end
\stopluacode

\def\SetListOfFunctionNames[#1]{\ctxlua{document.SetListOfNames(#1)}}
\def\NewFunctionName {\ctxlua{document.GetChosenName(true)}}
\def\FunctionName {\ctxlua{document.GetChosenName()}}

\SetListOfFunctionNames[a,b,c,d]

\dorecurse{10}{
   Give an example of a function
   $\NewFunctionName : {\Bbb R} \longrightarrow {\Bbb R}$
   which has a derivative only at the origin, and such that
   $\FunctionName(0) = 1$.
   \par \hairline\par
}

\stoptext
 end choose-random-names.tex by Hans


 On 18 Apr 2015, at 22:36, Hans Hagen pra...@wxs.nl wrote:
 
 On 4/18/2015 10:24 PM, Otared Kavian wrote:
 Hi again Wolfgang,
 
 Thanks to your hint, I could solve the problem…
 In case someone else would encounter a similar problem to solve, below is a 
 macro which chooses an element from a list, it creates a control sequence 
 (CS) containing that element and it keeps the CS until the next time the 
 macro is invoked again to choose another element.
 
 Thanks again and best regards: OK
 
  begin choose-element.tex
 \setuprandomize[1989] % set a seed
 
 \starttext
 
 % here is a list from which a name is chosen
 \startluacode
  ListOfNames = {'F', 'G', 'u', 'v', 'W'}
 \stopluacode
 
 % this macro has two arguments:
 % the first argument is the control sequence name attached to Chosen,
 % the second argument is the name of the list from which something is chosen
 \define[2]\RandomChoice{%
  \setevalue{Chosen#1}{\ctxlua{%
  local listsize = \letterhash #2 ;
  local LName = #2 ;
  tex.print(LName[math.random(1,listsize)])}}}
 
 \dorecurse{10}{\RandomChoice{Function}{ListOfNames}%
 Give an example of a function $\ChosenFunction : {\Bbb R} \longrightarrow 
 {\Bbb R}$ which has a derivative only at the origin, and such that 
 ${\ChosenFunction}'(0) = 1$.\par \hairline\par}
 
 \stoptext
  end choose-element.tex
 
 \starttext
 
 \startluacode
local FunctionNames = { G , W }
local FunctionName  = FunctionNames[1]
 
function document.SetFunctionNames(list)
FunctionNames = utilities.parsers.settings_to_array(list)
end
function document.GetFunctionName(new)
if new then
FunctionName = FunctionNames[math.random(1,#FunctionNames)]
end
context(FunctionName)
end
 \stopluacode
 
 \def\SetFunctionNames[#1]{\ctxlua{document.SetFunctionNames(#1)}}
 \def\NewFunctionName {\ctxlua{document.GetFunctionName(true)}}
 \def\GetFunctionName {\ctxlua{document.GetFunctionName()}}
 
 \SetFunctionNames[a,b,c,d]
 
 \dorecurse{10}{
Give an example of a function
$\NewFunctionName : {\Bbb R} \longrightarrow {\Bbb R}$
which has a derivative only at the origin, and such that
$\GetFunctionName(0) = 1$.
\par \hairline\par
 }
 
 
 \stoptext
 
 
 
 On 18 Apr 2015, at 19:23, Wolfgang Schuster schuster.wolfg...@gmail.com 
 wrote:
 
 
 Am 18.04.2015 um 18:55 schrieb Otared Kavian ota...@gmail.com:
 
 Hi everyone,
 
 In the example below I define a macro which chooses at random a name from 
 a list of names. But I wonder whether this can be done in a more clever 
 way without using a numerical macro created with math.random in Lua. The 
 shortcoming of the macro below is that before hand I must know the nomber 
 of elements in the list of names (for instance 5 in the example below), 
 while it may happen that I need to create as many

[NTG-context] A macro which gives a random name

2015-04-18 Thread Otared Kavian
Hi everyone,

In the example below I define a macro which chooses at random a name from a 
list of names. But I wonder whether this can be done in a more clever way 
without using a numerical macro created with math.random in Lua. The 
shortcoming of the macro below is that before hand I must know the nomber of 
elements in the list of names (for instance 5 in the example below), while it 
may happen that I need to create as many as random names that there are 
elements in the list, but sometimes I don’t know what is this number.

Thanks for any insight and help.
Best regards: OK
 begin random-names.tex
\setuprandomize[2015] % set a seed

\starttext

\startluacode
Name = {'F', 'G', 'u', 'v', 'W'}
\stopluacode

\define[3]\RandomName{%
\setevalue{Named#1}{\ctxlua{tex.print(math.random(#2,#3))}}}
\define\RandomFunctionName{\ctxlua{tex.print(Name[\NamedFunctionNumber])}}

\dorecurse{10}{\RandomName{FunctionNumber}{1}{5}%
Give an example of a function $\RandomFunctionName : {\Bbb R} \longrightarrow 
{\Bbb R}$ which has a derivative only at the origin, and such that 
$\RandomFunctionName(0) = 1$.\par \hairline\par}

\stoptext
 begin random-names.tex
___
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] A macro which gives a random name

2015-04-18 Thread Otared Kavian
Hi Wolfgang,

Thanks for your attention, but the problem with your solution is that each 
instance of \RandomFunctionName changes the name chosen, but I need something 
wihich remains the same name within a given situation (say each problem) but 
changes from problem to problem. 

For instance when using your solution with the source code

Give an example of a function $\RandomFunctionName : {\Bbb R} 
\longrightarrow {\Bbb R}$ which has a 
derivative only at the origin, and such that $\RandomFunctionName(0) = 
1$.
gives:
Give an example of a function 퐺 : R ⟶ R which has a derivative only at 
the origin, and such that 푊(0) = 1. 

while what I need is 
Give an example of a function 퐺 : R ⟶ R which has a derivative only at 
the origin, and such that G(0) = 1. 

(The macro I sent earlier does this, but unfortunately it cannot use the 
solution you sent).
Is there a solution ?

Best regards: OK

 On 18 Apr 2015, at 19:23, Wolfgang Schuster schuster.wolfg...@gmail.com 
 wrote:
 
 
 Am 18.04.2015 um 18:55 schrieb Otared Kavian ota...@gmail.com:
 
 Hi everyone,
 
 In the example below I define a macro which chooses at random a name from a 
 list of names. But I wonder whether this can be done in a more clever way 
 without using a numerical macro created with math.random in Lua. The 
 shortcoming of the macro below is that before hand I must know the nomber of 
 elements in the list of names (for instance 5 in the example below), while 
 it may happen that I need to create as many as random names that there are 
 elements in the list, but sometimes I don’t know what is this number.
 
 Thanks for any insight and help.
 Best regards: OK
  begin random-names.tex
 \setuprandomize[2015] % set a seed
 
 \starttext
 
 \startluacode
  Name = {'F', 'G', 'u', 'v', 'W'}
 \stopluacode
 
 \define[3]\RandomName{%
  \setevalue{Named#1}{\ctxlua{tex.print(math.random(#2,#3))}}}
 \define\RandomFunctionName{\ctxlua{tex.print(Name[\NamedFunctionNumber])}}
 
 \dorecurse{10}{\RandomName{FunctionNumber}{1}{5}%
 Give an example of a function $\RandomFunctionName : {\Bbb R} 
 \longrightarrow {\Bbb R}$ which has a derivative only at the origin, and 
 such that $\RandomFunctionName(0) = 1$.\par \hairline\par}
 
 \stoptext
  begin random-names.tex
 
 You can access the size of your Name table with #Name but have to replace # 
 with \letterhash when you use it in a TeX command because # is already taken 
 for the TeX arguments.
 
 \starttext
 
 \startluacode
   Name = {'F', 'G', 'u', 'v', 'W'}
 \stopluacode
 
 \define\RandomFunctionName
  {\startlua
   local listsize= \letterhash Name ;
   local randomvalue = math.random(1,listsize) ;
   context(Name[randomvalue])
   \stoplua}
 
 \dorecurse{10}{Give an example of a function $\RandomFunctionName : {\Bbb R} 
 \longrightarrow {\Bbb R}$ which has a derivative only at the origin, and such 
 that $\RandomFunctionName(0) = 1$.\par \hairline\par}
 
 \stoptext
 
 Wolfgang
 
 ___
 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
 ___

___
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] A macro which gives a random name

2015-04-18 Thread Otared Kavian
Hi again Wolfgang,

Thanks to your hint, I could solve the problem…
In case someone else would encounter a similar problem to solve, below is a 
macro which chooses an element from a list, it creates a control sequence (CS) 
containing that element and it keeps the CS until the next time the macro is 
invoked again to choose another element.

Thanks again and best regards: OK

 begin choose-element.tex
\setuprandomize[1989] % set a seed

\starttext

% here is a list from which a name is chosen
\startluacode
ListOfNames = {'F', 'G', 'u', 'v', 'W'}
\stopluacode

% this macro has two arguments:
% the first argument is the control sequence name attached to Chosen,
% the second argument is the name of the list from which something is chosen
\define[2]\RandomChoice{%
\setevalue{Chosen#1}{\ctxlua{%
local listsize = \letterhash #2 ;
local LName = #2 ; 
tex.print(LName[math.random(1,listsize)])}}}

\dorecurse{10}{\RandomChoice{Function}{ListOfNames}%
Give an example of a function $\ChosenFunction : {\Bbb R} \longrightarrow {\Bbb 
R}$ which has a derivative only at the origin, and such that 
${\ChosenFunction}'(0) = 1$.\par \hairline\par}

\stoptext
 end choose-element.tex

 On 18 Apr 2015, at 19:23, Wolfgang Schuster schuster.wolfg...@gmail.com 
 wrote:
 
 
 Am 18.04.2015 um 18:55 schrieb Otared Kavian ota...@gmail.com:
 
 Hi everyone,
 
 In the example below I define a macro which chooses at random a name from a 
 list of names. But I wonder whether this can be done in a more clever way 
 without using a numerical macro created with math.random in Lua. The 
 shortcoming of the macro below is that before hand I must know the nomber of 
 elements in the list of names (for instance 5 in the example below), while 
 it may happen that I need to create as many as random names that there are 
 elements in the list, but sometimes I don’t know what is this number.
 
 Thanks for any insight and help.
 Best regards: OK
  begin random-names.tex
 \setuprandomize[2015] % set a seed
 
 \starttext
 
 \startluacode
  Name = {'F', 'G', 'u', 'v', 'W'}
 \stopluacode
 
 \define[3]\RandomName{%
  \setevalue{Named#1}{\ctxlua{tex.print(math.random(#2,#3))}}}
 \define\RandomFunctionName{\ctxlua{tex.print(Name[\NamedFunctionNumber])}}
 
 \dorecurse{10}{\RandomName{FunctionNumber}{1}{5}%
 Give an example of a function $\RandomFunctionName : {\Bbb R} 
 \longrightarrow {\Bbb R}$ which has a derivative only at the origin, and 
 such that $\RandomFunctionName(0) = 1$.\par \hairline\par}
 
 \stoptext
  begin random-names.tex
 
 You can access the size of your Name table with #Name but have to replace # 
 with \letterhash when you use it in a TeX command because # is already taken 
 for the TeX arguments.
 
 \starttext
 
 \startluacode
   Name = {'F', 'G', 'u', 'v', 'W'}
 \stopluacode
 
 \define\RandomFunctionName
  {\startlua
   local listsize= \letterhash Name ;
   local randomvalue = math.random(1,listsize) ;
   context(Name[randomvalue])
   \stoplua}
 
 \dorecurse{10}{Give an example of a function $\RandomFunctionName : {\Bbb R} 
 \longrightarrow {\Bbb R}$ which has a derivative only at the origin, and such 
 that $\RandomFunctionName(0) = 1$.\par \hairline\par}
 
 \stoptext
 
 Wolfgang
 
 ___
 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
 ___

___
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] Bug in latest beta: behavior of \text in StepCharts

2015-04-16 Thread Otared Kavian
Hi Hans,

It seems that with the latest beta there is a bug in the way how the command 
\text is handled in step charts (plesae see the attached PDF).
This bug is absent from mkii, and absent from previous versions of mkiv (up to 
a weak ago, I believe).

This is a minimal example which shows that the font used in each cell of \text 
changes randomly (there are four instances of \text, and each time a different 
font is used…):

 begin random-text-size.tex
\usemodule[steps]

\starttext
\input knuth.tex

\placefigure[none][-]{}{
\startSTEPtable 
\cell {$(f\circ u)(x_{*} + o(1)) = $} \text{definition of $f\circ u$}
\cell {$f\left(u\left(x_{*} + o(1)\right)\right) = $} \text {$u$ is 
continuous} 
\cell {$f\left(u(x_{*}) + o(1)\right) = $} \text {$f$ is continuous} 
\cell {$f\left(u(x_{*})\right) + o(1) =$} \text {definition of $f\circ 
u$} 
\cell {$(f\circ u)(x_{*}) + o(1)$.} 
\stopSTEPtable}

\stoptext
 begin random-text-size.tex


scaling-stepcharts.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://tex.aanhet.net
archive  : http://foundry.supelec.fr/projects/contextrev/
wiki : http://contextgarden.net
___

[NTG-context] New command: \showreferences

2015-04-14 Thread Otared Kavian
Hi all,

Many thanks to Hans who cooked up in a very short notice a new command named
\showreferences
which does what its names suggests: it shows the points at which a cross 
reference is invoked. This command works in interactive documents.
There is a Wiki page about how to use it, and also about other features 
associated with this command. Please have a look at:

http://wiki.contextgarden.net/%5Cshowreferences 
http://wiki.contextgarden.net//showreferences

Best regards: OK


___
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] Writing between lines

2015-04-13 Thread Otared Kavian

 On 13 Apr 2015, at 18:30, Hans Hagen pra...@wxs.nl wrote:
 
 […]
 pushing stuff in between will probably mess up spacing etc etc so if you 
 follow that route just accept that your proof is not what you will eventually 
 get
 
 anyway, i added some ref tracing to the upcoming beta
 
 (1) \showreferences : just shows labels of references as well as destinations
 (2) \usemodule[references-show] : does the same but also shows a list per page
 
 both work ok with
 
 \enabletrackers[nodes.references,nodes.destinations]

Dear Hans,

Many thanks for your new solution! Indeed a built-in feature is much much 
better than a poor hack…
As soon as the upcoming beta is available, I'll experiment the new feature and 
then I’ll wikify about it.

Best regards: OK
___
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] Writing between lines

2015-04-13 Thread Otared Kavian
Hi all,

How can one write in small print something between lines, in an efficient 
manner?
I have come up with the following:
\define[1]\betweenlines{${\rlap{{\mbox{\darkgray{\infofont 
#1}}}\atop{}}\atop{}}$}
in order to make visible certain informations just above a cited reference. But 
the use of \atop which a macro for mathmode, together with \mbos, doesn’t seem 
a wise idea. 

has any one a better idea how to obtain the same result?

A minimal example of its use follows
Best regards: OK

 begin write-between-lines.tex
\define[1]\betweenlines{${\rlap{{\mbox{\darkgray{\infofont 
#1}}}\atop{}}\atop{}}$}

\def\placeformularef[#1]{\doifmode{proofreading}%
{\inrightmargin{\infofont #1}}%
\placeformula[#1]}

\definereferenceformat[Eqref][left=(,right=)] 
\def\eqref[#1]{\betweenlines{#1}\Eqref[#1]}

\setupformulas[location=right]

\enablemode[proofreading]

\starttext
We have
\placeformularef[eq:Square]
\startformula
a^2 + 2ab + b^2 = (a + b)^2,
\stopformula
for $a,b\in {\Bbb C}$. Also,
\placeformularef[eq:Identity]
\startformula
\alpha^2 -2\alpha\beta + \beta^2 \NC = (\alpha - \beta)^2. 
\stopformula  
Note that \eqref[eq:Square] is true whenever we have $ab = ba$ for $b,a \in 
{\Bbb A}$. This is not the case when ${\Bbb A}$ is the ring of the matrices.
It is clear that \eqref[eq:Identity] is a consequence of \eqref[eq:Square].

\stoptext
 begin write-between-lines.tex
___
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] how to insert symbols into document?

2015-04-13 Thread Otared Kavian
Hi,

There is no \blackdiamond defined beforehand, but there is \diamondsuit (as 
well as \heartsuit, \spadesuit, \clubsuit):

If you want a filled black diamond, you may use \blacklozenge, or find its 
corresponding UTF code and then insert it with a special command:

 begin diamond.tex
\define\blackdiamond{\utfchar{2666}}
\starttext
This is \type{$\diamondsuit$} $\diamondsuit$

This is \type{$\diamond$} $\diamond$

This is \type{$\blackdiamond$} $\blackdiamond$
\stoptext
 end diamond.tex

Best regards: OK

 On 13 Apr 2015, at 13:14, Csikos Bela bcsikos...@freemail.hu wrote:
 
 Otared Kavian  írta:
 
 On 13 Apr 2015, at 01:29, Csikos Bela  wrote:
 
 Hello context users:
 
 I would like to insert symbols into my document, especially black-diamond 
 and losenge
 symbols. I read symbols page at contextgarden but still don't know how to 
 do it.
 
 I also tried \showsymbolset[was] etc but the symbols but I did not find 
 these (and many
 other symbols either) in the output pages.
 
 I found that symb-imp-mis.mkiv file defines this symbol (line 49) but I 
 don't know how to
 make it show. Do I have to load specific symbol fonts? If yes how can I 
 find out which font has the given symbols? 
 
 What I tried so far included:
 
 % begin code
 \usesymbols[imp-mis]
 \starttext
 
 ◆
 
 \blackdiamond
 
 \symbol [blackdiamond]
 % end code
 
 None of these show anything.
 
 Hi,
 
 You can use the mathmode to access those characters, as in the following 
 example:
 
 \starttext
 This is \type{$\blacklozenge$} $\blacklozenge$
 
 This is \type{$\lozenge$} $\lozenge$
 \stoptext
 
 Hi,
 
 The above example works.
 But if I try it with \blackdiamond, I get error and context stops:
 
 This is the tex file:
 
 % begin code
 \starttext
 This is \type{$\blackdiamond$} $\blackdiamond$
 
 This is \type{$\diamond$} $\diamond$
 \stoptext
 % end code
 
 And the compilation:
 
 context symbols.tex
 
 mtx-context | run 1: luatex 
 --fmt=/usr/local/context/tex/texmf-cache/luatex-cache/context/5fe67e0bfe781ce0dde776fb1556f32e/formats/luatex/cont-en
  --jobname=symbols 
 --lua=/usr/local/context/tex/texmf-cache/luatex-cache/context/5fe67e0bfe781ce0dde776fb1556f32e/formats/luatex/cont-en.lui
  --no-parse-first-line --c:currentrun=1 --c:fulljobname=./symbols.tex 
 --c:input=./symbols.tex --c:kindofrun=1 --c:maxnofruns=8 cont-yes.mkiv
 This is LuaTeX, Version beta-0.80.0 (TeX Live 2015/dev) (rev 5195)
 \write18 enabled.
 (/usr/local/context/tex/texmf-context/tex/context/base/cont-yes.mkiv
 
 ConTeXt  ver: 2014.01.03 00:40 MKIV current  fmt: 2015.3.31  int: 
 english/english
 
 system   'cont-new.mkiv' loaded
 (/usr/local/context/tex/texmf-context/tex/context/base/cont-new.mkiv)
 system   files  jobname 'symbols', input './symbols', result 
 'symbols'
 fontslatin modern fonts are not preloaded
 languageslanguage 'en' is active
 (/symbols.tex{/usr/local/context/tex/texmf-context/fonts/map/pdftex/context/mkiv-base.map}
 fontspreloading latin modern fonts (second stage)
 fontstypescripts  unknown library 'loc'
 {/usr/local/context/tex/texmf/fonts/map/dvips/lm/lm-math.map}{/usr/local/context/tex/texmf/fonts/map/dvips/lm/lm-rm.map}
 fonts'fallback modern rm 12pt' is loaded
 fontstreatment  fixing some wrong widths
 ! Undefined control sequence
 
 system   tex  error on line 4 in file .../symbols.tex: 
 Undefined control sequence ...
 
 1
 2
 3 \starttext
 4   This is \type{$\blackdiamond$} $\blackdiamond$
 5
 6 This is \type{$\diamond$} $\diamond$
 7 \stoptext
 8
 9
 
 
 ?
 backend  xmp  using file 
 '/usr/local/context/tex/texmf-context/tex/context/base/lpdf-pdx.xml'
 pagesflushing realpage 1, userpage 1
 ))/usr/local/context/tex/texmf/fonts/opentype/public/lm-math/latinmodern-math.otf/usr/local/context/tex/texmf/fonts/opentype/public/lm/lmmono12-regular.otf/usr/local/context/tex/texmf/fonts/opentype/public/lm/lmroman12-regular.otf
 
 mkiv lua stats   used config file: selfautoparent:/texmf/web2c/texmfcnf.lua
 mkiv lua stats   used cache path: readable: 
 '/usr/local/context/tex/texmf-cache/luatex-cache/context/5fe67e0bfe781ce0dde776fb1556f32e'
  | readable+writable: 
 '/tmp/luatex-cache/context/5fe67e0bfe781ce0dde776fb1556f32e'
 mkiv lua stats   resource resolver: loadtime 0.019 seconds, 1 scans with 
 scantime 0.002 seconds, 5 shared scans, 14 found files, scanned paths: 
 /texmf
 mkiv lua stats   stored bytecode data: 338 modules (0.450 sec), 69 tables 
 (0.010 sec), 407 chunks (0.460 sec)
 mkiv lua stats   cleaned up reserved nodes: 42 nodes, 9 lists of 442
 mkiv lua stats   node memory usage: 2 glue, 2 penalty, 9 attribute, 28 
 glue_spec, 3 attribute_list
 mkiv lua stats   node list callback tasks: 6 unique task lists, 6 instances 
 (re)created, 45 calls
 mkiv lua stats   used backend: pdf (backend for directly generating pdf 
 output)
 mkiv lua stats   loaded patterns: en::2, load time: 0.000

Re: [NTG-context] how to insert symbols into document?

2015-04-12 Thread Otared Kavian
Hi,

You can use the mathmode to access those characters, as in the following 
example:

\starttext
This is \type{$\blacklozenge$} $\blacklozenge$

This is \type{$\lozenge$} $\lozenge$
\stoptext

If you want to know the name of some specific characters you can use the 
following code, typeset in mkii.
(Unfortunately in mkiv the command \showmathcharacters is made unavailable… 
There is another command which gives a huge amount of informations on all such 
characters, but not a simple table like the one you get in mkii).

 begin show-math-mkii.tex
% To see all the math characters available in a font
% typeset this in mkii
\starttext
\showmathcharacters
\stoptext
 begin show-math-mkii.tex


Best regards: OK


 On 13 Apr 2015, at 01:29, Csikos Bela bcsikos...@freemail.hu wrote:
 
 Hello context users:
 
 I would like to insert symbols into my document, especially black-diamond and 
 losenge
 symbols. I read symbols page at contextgarden but still don't know how to do 
 it.
 
 I also tried \showsymbolset[was] etc but the symbols but I did not find these 
 (and many
 other symbols either) in the output pages.
 
 I found that symb-imp-mis.mkiv file defines this symbol (line 49) but I don't 
 know how to
 make it show. Do I have to load specific symbol fonts? If yes how can I find 
 out which font has the given symbols? 
 
 What I tried so far included:
 
 % begin code
 \usesymbols[imp-mis]
 \starttext
 
 ◆
 
 \blackdiamond
 
 \symbol [blackdiamond]
 % end code
 
 None of these show anything.
 
 Thanks in advance,
 
 bcsikos
 ___
 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
 ___

___
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] \version[temporary] in mkiv

2015-04-11 Thread Otared Kavian
Hi Hans,

In mkii, we used to have the command
\version[temporary]
in the document, so that the labels for cross references would be printed in 
the margin, which is extremely useful when proof reading.

In mkiv the command exists, but does not that: it prints only in small print 
the name of the file or the project information in the footer, and some black 
rules where the hyphenation of words has not been done.  
Is there any command which does what is needed for having informations about 
cross-referencing?

In LaTeX for example, there is a package which puts the name of each labelled 
reference in the margin, and when one uses a certain cross reference it puts 
the name which is used in small print on top of the line where it is invoked. 
If you want I can send you an example of output where this is shown.

If in mkiv there is a possibility to modify an existing feature, could you 
please give an indication where I have to look?

If not, should I submit a request for this feature?

Thanks for all your work and help.
Best regards: OK

___
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] \version[temporary] in mkiv

2015-04-11 Thread Otared Kavian
Hi Hans,

Thanks for your answer.
Is the file
strc-mat.mkiv
the only place where I should look in order to try to modify something and 
achieve the functionality needed in maths papers?

Best regards: OK

 On 11 Apr 2015, at 12:47, Hans Hagen pra...@wxs.nl wrote:
 
 On 4/11/2015 9:31 AM, Otared Kavian wrote:
 Hi Hans,
 
 In mkii, we used to have the command
  \version[temporary]
 in the document, so that the labels for cross references would be printed in 
 the margin, which is extremely useful when proof reading.
 
 In mkiv the command exists, but does not that: it prints only in small print 
 the name of the file or the project information in the footer, and some 
 black rules where the hyphenation of words has not been done.
 Is there any command which does what is needed for having informations about 
 cross-referencing?
 
 In LaTeX for example, there is a package which puts the name of each 
 labelled reference in the margin, and when one uses a certain cross 
 reference it puts the name which is used in small print on top of the line 
 where it is invoked. If you want I can send you an example of output where 
 this is shown.
 
 If in mkiv there is a possibility to modify an existing feature, could you 
 please give an indication where I have to look?
 
 If not, should I submit a request for this feature?
 
 this functionality is currently not present (not too hard to do but needs 
 time)
 
 Hans
 
 -
  Hans Hagen | PRAGMA ADE
  Ridderstraat 27 | 8061 GH Hasselt | The Netherlands
tel: 038 477 53 69 | voip: 087 875 68 74 | www.pragma-ade.com
 | www.pragma-pod.nl
 -
 ___
 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
 ___

___
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] \version[temporary] in mkiv

2015-04-11 Thread Otared Kavian
 On 11 Apr 2015, at 15:38, Hans Hagen pra...@wxs.nl wrote:
 […]
 What do you need then? Math is handled in several files.


Hi,

something like the following definition for \placeformularef below, which would 
work in multine formulas (I don’t know how to write in the margin next to the 
number of the formula).

The output is attached.

% begin placeformula-ref.tex
\def\placeformularef[#1]{\doifmodeelse{proofreading}%
{\inrightmargin{\tt\txx #1}\placeformula[#1]}%
{\placeformula[#1]}}

\definereferenceformat[eqref][left=(,right=),text={formula }]

\setupformulas[location=right]

\enablemode[proofreading]

\starttext
We have
\placeformularef[eq:Square]
\startformula
a^2 + 2ab + b^2 = (a + b)^2,
\stopformula
for $a,b\in {\Bbb C}$. Also,
\placeformularef[]
\startformula
\startalign
\NC |x|^2 + |y|^2 \NC = (x + y|x + y). \NR[eq:Pythagore]
\NC \alpha^2 -2\alpha\beta + \beta^2 \NC = (\alpha - \beta)^2. \NR[eq:Identity]
\stopalign
\stopformula  
\eqref[eq:Identity] is a consequence of \eqref[eq:Square].
\stoptext
% end placeformula-ref.tex

Thanks: OK


placeformula-ref.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://tex.aanhet.net
archive  : http://foundry.supelec.fr/projects/contextrev/
wiki : http://contextgarden.net
___

Re: [NTG-context] caption setup

2015-04-09 Thread Otared Kavian
Hi,

Maybe something like the following gives what you want:

\setupcaption[figure][numberstopper={ ábra.}]
\setuplabeltext[figure={}]

However I don’t know how you would like the reference to a figure appear in the 
text: maybe the above solution doesn’t give what you want, and so there is a 
need to setup alos the referencing commands.

Best regards: OK

 On 09 Apr 2015, at 00:13, Csikos Bela bcsikos...@freemail.hu wrote:
 
 Hello:
 
 I have to setup caption formatting for Hungarian.
 In Hungarian I have to write #. figure. instead of Figure #:
 The exact word for figure is ábra, so what I want exactly is:
 # ábra., eg 1. ábra.
 How can I do it? (If I set the document language to Hungarian, the
 word ábra is shown correctly but the order is not correct; I get ,. ábra:#.)
 
 Another question: for caption text I want it to be justified and the last 
 line of the caption
 centered. How can I do that?
 
 Thanks,
 
 bcsikos
 
 
 
 ___
 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
 ___

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

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