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

2016-10-25 Thread Fabrice Couvreur
Hi Wolfgang,
Thank you for your suggestion. But why use rather framed than framedtext ?
Fabrice

2016-10-25 17:15 GMT+02:00 Wolfgang Schuster :

> Fabrice Couvreur 
> 25. Oktober 2016 um 16:14
> Hello,
> I can not make three columns and one row. But three rows and one column, it
> is possible.
>
> You’re getting three columns but each framedtext has the width of the
> textblock and two
> of your three frames are shown outside of the visible space, using framed
> instead of
> framedtext helps.
>
> \defineframed
>   [algorithmframe]
>   [width=fit,
>align=normal,
>strut=no,
>offset=1ex,
>foregroundstyle={\switchtobodyfont[8pt]},
>background=color,
>location=middle,
>backgroundcolor=lightgray,
>framecolor=darkred,
>corner=round]
>
> \definelines
>   [algorithm]
>   [space=on,
>before={\startframed[algorithmframe]},
>after=\stopframed]
>
> 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://context.aanhet.net
> archive  : https://bitbucket.org/phg/context-mirror/commits/
> 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://context.aanhet.net
archive  : https://bitbucket.org/phg/context-mirror/commits/
wiki : http://contextgarden.net
___

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

2016-10-25 Thread Wolfgang Schuster

Fabrice Couvreur 
25. Oktober 2016 um 16:14
Hello,
I can not make three columns and one row. But three rows and one 
column, it is possible.
You’re getting three columns but each framedtext has the width of the 
textblock and two
of your three frames are shown outside of the visible space, using 
framed instead of

framedtext helps.

\defineframed
  [algorithmframe]
  [width=fit,
   align=normal,
   strut=no,
   offset=1ex,
   foregroundstyle={\switchtobodyfont[8pt]},
   background=color,
   location=middle,
   backgroundcolor=lightgray,
   framecolor=darkred,
   corner=round]

\definelines
  [algorithm]
  [space=on,
   before={\startframed[algorithmframe]},
   after=\stopframed]

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://context.aanhet.net
archive  : https://bitbucket.org/phg/context-mirror/commits/
wiki : http://contextgarden.net
___

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

2016-10-25 Thread Alan Braslau
Try

\startcombination [nx=3,ny=1]

Alan

> On Oct 25, 2016, at 08:14, Fabrice Couvreur  
> wrote:
> 
> I can not make three columns and one row. But three rows and one column

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

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

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

2016-10-25 Thread Fabrice Couvreur
Hello,
I can not make three columns and one row. But three rows and one column, it
is possible.
Thank you
Fabrice

\defineframedtext
  [algorithmframe]
  [width=fit,
   bodyfont=8pt,
   background=color,
   location=middle,
   backgroundcolor=lightgray,
   framecolor=darkred,
   corner=round]

\definelines
  [algorithm]
  [space=on,
   before=\startalgorithmframe,
   after=\stopalgorithmframe]

\starttext


\startmidaligned
\startcombination[3*1]
{\hbox{\startalgorithm
Variables :
  \math{U} est un nombre réel
  \math{i} et \math{N} sont des nombres entiers
Début :
   Saisir une valeur pour \math{N}
   Affecter 115 à \math{U}
   Pour \math{i} de 1 à \math{N} faire
 Affecter \math{0,6\times U+120} à \math{U}
   Fin Pour
   Afficher \math{U}
Fin
\stopalgorithm}}{Algorithme 1}
{\hbox{\startalgorithm
Variables :
  \math{U} est un nombre réel
  \math{i} et \math{N} sont des nombres entiers
Début :
   Saisir une valeur pour \math{N}
   Pour \math{i} de 1 à \math{N} faire
 Affecter 115 à \math{U}
 Affecter \math{0,4\times U+115} à \math{U}
   Fin Pour
   Afficher \math{U}
Fin
\stopalgorithm}}{Algorithme 2}
{\hbox{\startalgorithm
Variables :
  \math{U} est un nombre réel
  \math{i} et \math{N} sont des nombres entiers
Début :
   Saisir une valeur pour \math{N}
   Affecter 115 à \math{U}
   Pour \math{i} de 1 à \math{N} faire
 Affecter \math{0,4\times U+120} à \math{U}
   Fin Pour
   Afficher \math{U}
Fin
\stopalgorithm}}{Algorithme 3}
\stopcombination
\stopmidaligned



\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://context.aanhet.net
archive  : https://bitbucket.org/phg/context-mirror/commits/
wiki : http://contextgarden.net
___