[NTG-context] Text around an image

Fabrice Couvreur fabrice1.couvreur at gmail.com
Thu Apr 16 12:33:34 CEST 2020


Hi,
I know that this question has been raised several times (especially by me
!), but the solutions provided sometimes work and sometimes not, especially
in this example.
Thanks for your help.
Fabrice

  \useMPlibrary [dum]

   \define\ItemCommand
   {\hskip\zeropoint\relax\autoinsertnextspace}

  \setupitemgroup
    [itemize]
    [color=black,
     style=bold,
     distance=\zeropoint]

  \setupitemgroup
    [itemize:1]
    [option={n,packed,fit,intext},
    command=\ItemCommand]

  \setupitemgroup
    [itemize:2]
    [lefttext=,
    righttext=,
    option={a,text}]

  \starttext

    \startitemize
      \startitem
        Justifier que \m{x>4} et \m{y>2}.
      \stopitem
      \placefigure[right,none]{}{\externalfigure [dummy]}
      \startitem
        Pour calculer la valeur de \m{y} en fonction de \m{x}, l'urbaniste
a écrit la fonction en Python.

        \startitemize
          \startitem
            Son algorithme est-il correct ?
          \stopitem\par
          \startitem
            Programmer une fonction \m{A(x)} qui renvoie l'aire totale du
terrain en fonction de la longueur \m{x}.
          \stopitem
        \stopitemize
      \stopitem
      \startitem
        On considère la fonction suivante.

        \startitemize
          \startitem
            Qu'affiche l'instruction ?
          \stopitem\par
          \startitem
            Interpréter les résultats renvoyés.
          \stopitem
        \stopitemize
      \stopitem
    \stopitemize
  \stoptext
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mailman.ntg.nl/pipermail/ntg-context/attachments/20200416/9f95056b/attachment.htm>


More information about the ntg-context mailing list