[NTG-context] Center a framedtext

Fabrice Couvreur fabrice1.couvreur at gmail.com
Wed Sep 28 18:33:48 CEST 2016


Hi Wolfgang,
Thanks.
Fabrice

2016-09-28 9:08 GMT+02:00 Wolfgang Schuster <schuster.wolfgang at gmail.com>:

> Fabrice Couvreur <fabrice1.couvreur at gmail.com>
> 27. September 2016 um 22:02
> Hi Wolfgang,
> Thank you for your suggestion, but I think I was not clear enough. In
> fact, I want to place the algorithm as the image.
>
> You need also "location=middle" for the framedtext.
>
> \defineframedtext
>   [algorithmframe]
>   [width=fit,
>    location=middle,
>    background=color,
>    backgroundcolor=lightgray,
>    framecolor=darkred,
>    corner=round]
>
> \definelines
>   [algorithm]
>   [space=on,
>    before=\startalgorithmframe,
>    after=\stopalgorithmframe]
>
> \starttext
>
> \startmakeup[standard]
> \startalgorithm
> Initialisation :
>   \math{u} prend la valeur 2\,000
>   \math{S} prend la valeur 2\,000
> Traitement :
>   Pour \math{i} allant de 2 à \math{n}
>      \math{u} prend la valeur \math{u\times 1,008}
>      \math{S} prend la valeur \math{S +u}
>   Fin Pour
> Sortie :
>   Afficher \math{S}
> \stopalgorithm
> \stopmakeup
>
> \stoptext
>
> Wolfgang
>
> ____________________________________________________________
> _______________________
> If your question is of interest to others as well, please add an entry to
> the Wiki!
>
> maillist : ntg-context at 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
> ____________________________________________________________
> _______________________
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mailman.ntg.nl/pipermail/ntg-context/attachments/20160928/67f85d79/attachment.html>


More information about the ntg-context mailing list