[NTG-context] A question about an algorithm environment

Fabrice Couvreur fabrice1.couvreur at gmail.com
Tue Oct 29 00:44:09 CET 2019


Hi Wolfgang,
Why in the first example, the indentation of my Python code that I wish is
not respected and that I have to do as the second example to have what I
want ?
Thank you.
Fabrice

 \defineframedtext
     [algorithmframe]
     [width=fit,
      location=middle,
 foregroundstyle={\tt\switchtobodyfont[11pt]},
      framecolor=darkblue,
      corner=round]

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

\starttext
\startlinecorrection[blank]
  \startmidaligned
    \startalgorithm
      {\blue def nom} (argument1, argument2,\unknown):
     \unknown
    {\orange return} r├ęsultat
    \stopalgorithm
  \stopmidaligned
\stoplinecorrection
\startlinecorrection[blank]
  \startmidaligned
    \startalgorithm
{\blue def nom} (argument1, argument2,\unknown):
     \unknown
    {\orange return} r├ęsultat
    \stopalgorithm
  \stopmidaligned
\stoplinecorrection
\stoptext
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mailman.ntg.nl/pipermail/ntg-context/attachments/20191029/d48a4569/attachment-0001.html>


More information about the ntg-context mailing list