ntg-context - mailing list for ConTeXt users
 help / color / mirror / Atom feed
From: Matthias Weber <matweber@indiana.edu>
To: mailing list for ConTeXt users <ntg-context@ntg.nl>
Subject: Where is the cow?
Date: Sat, 6 Mar 2010 15:56:32 -0500	[thread overview]
Message-ID: <3DB5152B-4F11-4D19-964E-BCF33E36A3C0@indiana.edu> (raw)

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
___________________________________________________________________________________


             reply	other threads:[~2010-03-06 20:56 UTC|newest]

Thread overview: 6+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2010-03-06 20:56 Matthias Weber [this message]
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

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=3DB5152B-4F11-4D19-964E-BCF33E36A3C0@indiana.edu \
    --to=matweber@indiana.edu \
    --cc=ntg-context@ntg.nl \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
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).