ntg-context - mailing list for ConTeXt users
 help / color / mirror / Atom feed
* Text around a figure
@ 2020-07-15 17:54 Fabrice Couvreur
  2020-07-15 20:13 ` Wolfgang Schuster
  0 siblings, 1 reply; 13+ messages in thread
From: Fabrice Couvreur @ 2020-07-15 17:54 UTC (permalink / raw)
  To: mailing list for ConTeXt users


[-- Attachment #1.1: Type: text/plain, Size: 479 bytes --]

Hello,
I always encounter difficulties with the placement of figures in such a way
that the text envelops the figure.
Thank you.
Fabrice

\useMPlibrary[dum]
\definecolor[fondpaille][c=0,m=0,y=0.2,k=0]

\starttext

\startframedtext[width=max,background=color,backgroundcolor=fondpaille]
     \placefloat[][right,none]{}
       {\externalfigure[dummy]}
     \startitemize[n]
       \dorecurse{3}{\startitem \input ward \stopitem}
     \stopitemize
   \stopframedtext

   \stoptext

[-- Attachment #1.2: Type: text/html, Size: 963 bytes --]

[-- Attachment #2: Type: text/plain, Size: 493 bytes --]

___________________________________________________________________________________
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
___________________________________________________________________________________

^ permalink raw reply	[flat|nested] 13+ messages in thread
* Text around a figure
@ 2019-04-24 17:44 Fabrice Couvreur
  2019-04-24 17:50 ` Wolfgang Schuster
  0 siblings, 1 reply; 13+ messages in thread
From: Fabrice Couvreur @ 2019-04-24 17:44 UTC (permalink / raw)
  To: mailing list for ConTeXt users


[-- Attachment #1.1: Type: text/plain, Size: 1517 bytes --]

Hi,
Why does bold text touch the figure ?
Thank you.
Fabrice


\definefloat
   [recipe]
   [figure]

\setupfloat
   [recipe]
   [default={right,none}]


\starttext

  \placerecipe{}{
      \setupbodyfont[8pt,pagella]
      \startMPcode

        path p, q ;
        p:= unitsquare xyscaled (1.5cm,1.5cm) ;
        q:= unitsquare xyscaled (2.5cm,2.5cm) shifted (1.5cm,0);

        draw p withpen pencircle scaled 1pt ;
        draw q withpen pencircle scaled 1pt ;

        label.llft("$A$", p) ;
        label.lrt("$M$", p) ;
        label.ulft("$P$", p) ;
        label.urt("$N$", p) ;
        label.lrt("$B$", q) ;
        label.urt("$Q$", q) ;
        label.ulft("$R$", q) ;

      \stopMPcode
    }
 Sur la figure ci-contre, \m{[AB]} est un segment de longueur 4.

    \m{M} est un point mobile sur le segment \m{[AB]} .

    \m{AMNP} et \m{MBQR} sont deux carrés.

    On note \m{x} la distance \m{AM}.
    \blank
      {\bf On cherche les positions de \m{M} telles que la surface
constituée par les deux carrés soit supérieure à 10.}
    \blank
    \startitemize[n]
    \item À quel intervalle appartient \m{x} ?
    \item Montrer que le problème revient à résoudre l'inéquation :
      \startformula
        2x²-8x+6\geqslant 0.
      \stopformula
    \item Développer le produit \m{(2x-6)(x-1)}.
    \item En déduire les solutions de l'inéquation \m{2x²-8x+6\geqslant 0}
et conclure concernant le problème.
    \stopitemize
\stoptext

[-- Attachment #1.2: Type: text/html, Size: 3020 bytes --]

[-- Attachment #2: Type: text/plain, Size: 493 bytes --]

___________________________________________________________________________________
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
___________________________________________________________________________________

^ permalink raw reply	[flat|nested] 13+ messages in thread
* Text around a figure
@ 2017-04-14 14:36 Fabrice Couvreur
  2017-04-14 16:44 ` Rik Kabel
  0 siblings, 1 reply; 13+ messages in thread
From: Fabrice Couvreur @ 2017-04-14 14:36 UTC (permalink / raw)
  To: mailing list for ConTeXt users


[-- Attachment #1.1: Type: text/plain, Size: 328 bytes --]

Is it possible that the first line of text starts at the top of the figure?

Blablablablablablablablablablablabla
######  blablablablablablablabla
   Fig       blablablablablablablabla
######  blablablablablablablabla


\starttext

\placefigure [left,none] {} {\externalfigure[rafting.jpg][width=4cm]}
\input knuth



\stoptext

[-- Attachment #1.2: Type: text/html, Size: 917 bytes --]

[-- Attachment #2: Type: text/plain, Size: 492 bytes --]

___________________________________________________________________________________
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
___________________________________________________________________________________

^ permalink raw reply	[flat|nested] 13+ messages in thread

end of thread, other threads:[~2020-07-16 13:03 UTC | newest]

Thread overview: 13+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2020-07-15 17:54 Text around a figure Fabrice Couvreur
2020-07-15 20:13 ` Wolfgang Schuster
2020-07-15 20:25   ` Otared Kavian
2020-07-16  9:10     ` Fabrice Couvreur
2020-07-16  9:58       ` Otared Kavian
2020-07-16 12:59         ` Wolfgang Schuster
2020-07-16 13:03           ` Fabrice Couvreur
  -- strict thread matches above, loose matches on Subject: below --
2019-04-24 17:44 Fabrice Couvreur
2019-04-24 17:50 ` Wolfgang Schuster
     [not found]   ` <CACyK-eodOOavaaVQKYhjp9sG8qkhVzuFBycM4tps6_0tBXabYQ@mail.gmail.com>
2019-04-24 17:57     ` Wolfgang Schuster
2017-04-14 14:36 Fabrice Couvreur
2017-04-14 16:44 ` Rik Kabel
2017-04-15  9:42   ` Fabrice Couvreur

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).