Changes

Jump to navigation Jump to search
5 bytes added ,  07:47, 24 March 2014
Fix section "flow around", e.g. replace starthangaround with starthanging
= Flow text around a picture =
 
That's an undocumented feature Hans told us about in a [http://archive.contextgarden.net/message/20080624.074046.56e76622.en.html mail from 2008-06-24].
 
It's [http://source.contextgarden.net/tex/context/base/cont-new.tex?search=hangaround in the source].
<context source=yes>
\setuppapersize[A5]
\setupexternalfigures[location={local,default}]
\starthangaroundstarthanging{\externalfigure[cow][width=4cm]}
\input tufte
\stophangaroundstophanging
</context>
{{cmd|starthangaroundstarthanging}} is influenced by {{cmd|setuphanging}}[distance=...]</cmd> (distance may even be negative!), but takes no doesn’t take parameters itself.
Update, December 11, 2012:Now there are options for {{cmd|starthangaround}}. If you want to have the image to the right, you can do:
<texcode>
\setuppapersize[A5]
\starttextsetupexternalfigures[location={local,default}]\starthangingsetuphanging[location=right]\starthanging{\externalfigure[cow][width=4cm]}
\input tufte
\stophanging
\stoptext
</texcode>
There are even more options(distance can even be negative):<texcodecontext source=yes>
\setuppapersize[A5]
\starttextsetupexternalfigures[location={local,default}]\starthangingsetuphanging[location=right,n=2,distance=1cm]\starthanging{\externalfigure[cow][width=4cm]}
\input tufte
\stophanging
</context> This replaces undocumented <tt>\stoptextstarthangaround</texcodett>(that you still might find [http://source.contextgarden.net/tex/context/base/cont-new.mkiv?search=hangaround in the source], if the garden isn’t updated yet). You might also want to look into [[Combinations]].
= Pictures as [[Floating Objects]] =

Navigation menu