Dear all,
maybe a catchy subject line will get attention -:)
Indeed, the cow seems to be missing in mk2 and is overly present in
mk4 in the sense that my own image cow.jpg within the same directory
as the
document below gets ignored in favor of the cow that's present in the
mk4 minimals. These are minor issues, as it is relatively unlikely that
I will need to include images of cows in my documents in the near
future.
What is bothering me however is my inability to combine figures
properly together with text in a controlled manner.
I have a bunch ow smallish images (let's call them cows) which I'd
like to have surrounded by text. I am happy and actually
prefer to do this manually instead of keeping my fingers crossed that
some automatic algorithm will do the job, but for that I need to
know how which version of ConTeXt is placing the figures. What would
work for me: A way to split the text width into chunks that have fixed
widths,
and fill these chunks individually and vertically with figures or
text. This might be possible with tables, but there should be a
simpler way.
Below are my attempts so far - with very frustrating results, both in
mk2 and mk4.
Matthias
\setupbodyfont[12pt]
\setupcolors[state=start]
\setuplayout[grid=yes]
\showgrid
\setupcolor[rgb]
\definecolor[defc] [r=.9,g=.9,b=.94]
\definetextbackground [defbackground]
[backgroundcolor=defc,
corner=round,
before=\blank,
after=\blank,
leftoffset=5pt,
rightoffset=5pt,
topoffset=5pt,
bottomoffset=5pt,
frame=on,
framecolor=darkblue,
location=paragraph,
color=darkred]
\defineenumeration [blurb]
[before={\starttextbackground[defbackground]},
after={\stoptextbackground},
text=Blurb,
way=bysection,
location=hanging,
letter=rm]
\setupframedtexts[background=color,backgroundcolor=defc,
corner=round,
before=\blank,
after=\blank,
leftoffset=5pt,
rightoffset=5pt,
topoffset=5pt,
bottomoffset=5pt,
frame=on,
framecolor=darkblue,
location=paragraph,
color=darkred]
\starttext
\startblurb
Why is the topoffset so small? This happens at the top of a page.
\stopblurb
\placefigure[left]{none}{\externalfigure[cow][width=3cm]}
\startblurb
This is almost working. The figure is too low.
\stopblurb
\startfiguretext
[left]{none}{\externalfigure[cow][width=2in]}
\startblurb
Something is very wrong here.
\stopblurb
\stopfiguretext
\page
\startframedtext
Why is the offset so big?
\stopframedtext
\placefigure[left]{none}{\externalfigure[cow][width=3cm]}
\startframedtext
How do I combine this text with the figure?
\stopframedtext
For some reason, this text is placed correctly.
\stoptext
___________________________________________________________________________________
If your question is of interest to others as well, please add an entry to the
Wiki!
maillist : [email protected] / http://www.ntg.nl/mailman/listinfo/ntg-context
webpage : http://www.pragma-ade.nl / http://tex.aanhet.net
archive : http://foundry.supelec.fr/projects/contextrev/
wiki : http://contextgarden.net
___________________________________________________________________________________