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
Am 06.03.10 21:56, schrieb Matthias Weber:
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. \setupexternalfigures[location={local,global,default}]
local : currentdirectory + .. + ../.. global : paths set with 'directory=...' default : tex tree Wolfgang
On Sun, Mar 07 2010, Wolfgang Schuster wrote:
\setupexternalfigures[location={local,global,default}]
local : currentdirectory + .. + ../.. global : paths set with 'directory=...' default : tex tree
\setupexternalfigures[location=local] \starttext \externalfigure[hacker] % The figure is found! \stoptext Bug or feature? Cheers, Peter -- Contact information: http://pmrb.free.fr/contact/
Am 07.03.10 12:52, schrieb Peter Münster:
On Sun, Mar 07 2010, Wolfgang Schuster wrote:
\setupexternalfigures[location={local,global,default}]
local : currentdirectory + .. + ../.. global : paths set with 'directory=...' default : tex tree
\setupexternalfigures[location=local] \starttext \externalfigure[hacker] % The figure is found! \stoptext
Bug or feature?
Bug. You can get the information above from the source and Hans confirmed this. Wolfgang
participants (4)
-
Matthias Weber
-
Peter Münster
-
Troy Henderson
-
Wolfgang Schuster