[NTG-context] Use \framedtext to write an algorithm (again)

Wolfgang Schuster wolfgang.schuster.lists at gmail.com
Thu Oct 18 17:37:11 CEST 2018


Hi Fabrice,

I’m sorry but I don’t understand the question. Can you explain what do 
you expect from the example but doesn’t work.

Wolfgang


Fabrice Couvreur schrieb am 17.10.18 um 21:58:
> Hi Wolfgang,
> You offered me the following code to write algorithms. It seems that 
> this does not function very well because the withdrawal of the text no 
> longer exists.
> Thank you
> Fabrice
>
> \defineframedtext
> [algorithmframe]
>    [width=fit,
>     background=color,
> backgroundcolor=lightgray,
>     framecolor=darkred,
> corner=round]
>
> \definelines
>    [algorithm]
>    [space=on,
> before=\startalgorithmframe,
>     after=\stopalgorithmframe]
>
> \starttext
>
> \startalgorithm
> Variables \math{I} et \math{J} entiers
> T tableau d'entiers
> Début
> Pour \math{I} allant de \math{1} à \math{3}
>     Pour \math{J} allant de \math{1} à \math{3}
>       Si \math{J>I}
>          Alors \math{T[I, J]=J-I}
>          Sinon \math{T[I, J]=0}
>       Fin Si
> Fin Pour
> Fin
> \stopalgorithm
>
> \stoptext
> ___________________________________________________________________________________
> 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://context.aanhet.net
> archive  : https://bitbucket.org/phg/context-mirror/commits/
> wiki     : http://contextgarden.net
> ___________________________________________________________________________________

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mailman.ntg.nl/pipermail/ntg-context/attachments/20181018/de991e63/attachment.html>


More information about the ntg-context mailing list