* Where is the cow?
@ 2010-03-06 20:56 Matthias Weber
2010-03-07 0:42 ` Troy Henderson
2010-03-07 6:57 ` Wolfgang Schuster
0 siblings, 2 replies; 6+ messages in thread
From: Matthias Weber @ 2010-03-06 20:56 UTC (permalink / raw)
To: mailing list for ConTeXt users
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 : ntg-context@ntg.nl / 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
___________________________________________________________________________________
^ permalink raw reply [flat|nested] 6+ messages in thread
* Re: Where is the cow?
2010-03-06 20:56 Where is the cow? Matthias Weber
@ 2010-03-07 0:42 ` Troy Henderson
2010-03-07 6:57 ` Wolfgang Schuster
1 sibling, 0 replies; 6+ messages in thread
From: Troy Henderson @ 2010-03-07 0:42 UTC (permalink / raw)
To: mailing list for ConTeXt users
> maybe a catchy subject line will get attention -:)
Doesn't the old TV commercial (at least here in the U.S.) say instead
"where's the beef"?
Troy Henderson
___________________________________________________________________________________
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://tex.aanhet.net
archive : http://foundry.supelec.fr/projects/contextrev/
wiki : http://contextgarden.net
___________________________________________________________________________________
^ permalink raw reply [flat|nested] 6+ messages in thread
* Re: Where is the cow?
2010-03-06 20:56 Where is the cow? Matthias Weber
2010-03-07 0:42 ` Troy Henderson
@ 2010-03-07 6:57 ` Wolfgang Schuster
2010-03-07 11:52 ` Peter Münster
1 sibling, 1 reply; 6+ messages in thread
From: Wolfgang Schuster @ 2010-03-07 6:57 UTC (permalink / raw)
To: mailing list for ConTeXt users
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
___________________________________________________________________________________
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://tex.aanhet.net
archive : http://foundry.supelec.fr/projects/contextrev/
wiki : http://contextgarden.net
___________________________________________________________________________________
^ permalink raw reply [flat|nested] 6+ messages in thread
[parent not found: <mailman.681.1267946234.26807.ntg-context@ntg.nl>]
end of thread, other threads:[~2010-03-07 17:01 UTC | newest]
Thread overview: 6+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2010-03-06 20:56 Where is the cow? Matthias Weber
2010-03-07 0:42 ` Troy Henderson
2010-03-07 6:57 ` Wolfgang Schuster
2010-03-07 11:52 ` Peter Münster
2010-03-07 17:01 ` Wolfgang Schuster
[not found] <mailman.681.1267946234.26807.ntg-context@ntg.nl>
2010-03-07 11:06 ` Vyatcheslav Yatskovsky
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).