From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.io/gmane.comp.tex.context/24933 Path: news.gmane.org!not-for-mail From: Hans Hagen Newsgroups: gmane.comp.tex.context Subject: Re: float/figure and wrapping text Date: Wed, 04 Jan 2006 11:44:37 +0100 Message-ID: <43BBA715.8010203@wxs.nl> References: Reply-To: mailing list for ConTeXt users NNTP-Posting-Host: main.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 7bit X-Trace: sea.gmane.org 1136371492 3617 80.91.229.2 (4 Jan 2006 10:44:52 GMT) X-Complaints-To: usenet@sea.gmane.org NNTP-Posting-Date: Wed, 4 Jan 2006 10:44:52 +0000 (UTC) Original-X-From: ntg-context-bounces@ntg.nl Wed Jan 04 11:44:49 2006 Return-path: Envelope-to: gctc-ntg-context-518@m.gmane.org Original-Received: from ronja.vet.uu.nl ([131.211.172.88] helo=ronja.ntg.nl) by ciao.gmane.org with esmtp (Exim 4.43) id 1Eu68O-0003rh-Uh for gctc-ntg-context-518@m.gmane.org; Wed, 04 Jan 2006 11:44:49 +0100 Original-Received: from localhost (localhost [127.0.0.1]) by ronja.ntg.nl (Postfix) with ESMTP id 90E17127DB; Wed, 4 Jan 2006 11:44:47 +0100 (CET) Original-Received: from ronja.ntg.nl ([127.0.0.1]) by localhost (smtp.ntg.nl [127.0.0.1]) (amavisd-new, port 10024) with LMTP id 05293-06; Wed, 4 Jan 2006 11:44:45 +0100 (CET) Original-Received: from ronja.vet.uu.nl (localhost [127.0.0.1]) by ronja.ntg.nl (Postfix) with ESMTP id 1FDE7127BD; Wed, 4 Jan 2006 11:44:45 +0100 (CET) Original-Received: from localhost (localhost [127.0.0.1]) by ronja.ntg.nl (Postfix) with ESMTP id 67DDE127BD for ; Wed, 4 Jan 2006 11:44:43 +0100 (CET) Original-Received: from ronja.ntg.nl ([127.0.0.1]) by localhost (smtp.ntg.nl [127.0.0.1]) (amavisd-new, port 10024) with LMTP id 05406-07-2 for ; Wed, 4 Jan 2006 11:44:42 +0100 (CET) Original-Received: from mail.pragma-ade.net (dsl-212-84-128-085.solcon.nl [212.84.128.85]) by ronja.ntg.nl (Postfix) with SMTP id 2814F1279A for ; Wed, 4 Jan 2006 11:44:41 +0100 (CET) Original-Received: from [10.100.1.102] (unverified [10.100.1.102]) by controller-1 (SurgeMail 3.5b3) with ESMTP id 10208 for ; Wed, 04 Jan 2006 11:53:39 +0300 User-Agent: Mozilla Thunderbird 1.0.7 (Windows/20050923) X-Accept-Language: en-us, en Original-To: mailing list for ConTeXt users In-Reply-To: X-Server: High Performance Mail Server - http://surgemail.com r=-274017400 X-Authenticated-User: hagen@controller-1 X-Virus-Scanned: amavisd-new at ntg.nl X-BeenThere: ntg-context@ntg.nl X-Mailman-Version: 2.1.5 Precedence: list List-Id: mailing list for ConTeXt users List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Original-Sender: ntg-context-bounces@ntg.nl Errors-To: ntg-context-bounces@ntg.nl X-Virus-Scanned: amavisd-new at ntg.nl Xref: news.gmane.org gmane.comp.tex.context:24933 Archived-At: Randolph Bertin wrote: > I am typesetting books, primarily text and images. My original > background is Quark/InDesign, but quite recently, I decided to look > into TeX/LaTeX (LaTeX because that is just what most of the TeX > references refer to). I first spent some time trying to learn LaTeX > and although I was able to accomplish a number of my desired goals, I > began to run into some problems related to maintaining text on a > baseline grid. When searching for solutions, I came across a reference > to ConTeXt. My first impressions are that ConTeXt looks great, and > would handle most of what I would like to accomplish with a nice > uniform approach. I haven't explored many of the features I will need > to use, but am trying to read the manuals and listserv archives and > basically trying things out to see how things function. > > So, I am sure I will have a number of questions that will later turn > out to seem obvious (often the case, I guess for the uninitiated). > Eventually, I might even be able to answer a couple of questions.... > > But, to begin, one thing I would like to do for a project I am working > on is to wrap continuous text around an image (placed on one side of > the main text body), and I am encountering a little difficulty. > > The basic situation in my document is that the figure can float, to be > inserted at the next available spot, placed at the left or right > margin, with text above (if there is space), to the side, and below > (if there is space). > > First, it appears that TeX, LaTeX and ConTeXt can only place a figure > next to text at the beginning of a paragraph. Is this correct? > > Second, using ConText, when I use \placefigure, if there is enough > space on a page, it appears to place it, and wrap text around the > side. Everything looks fine. But, if there is not enough space > remaining on the page, the remainder of the page is left blank, and > then the figure is placed at the beginning of the next page, with text > wrapped around it. (That is both what I observed, and also I read in > the "Details" document as the expected behavior). If I use > \placefloat, if there is not enough space remaining on the page, the > text will continue printing on the page and the float will be placed > on the next page, BUT without any text to the side of it. > > What I would like is to be able to combine these two behaviors when > placing a floating figure: If there is enough space on the page, it > would place the figure there and wrap text around it (as it currently > does for \placefigure). If there is not enough space, it will 'float' > the figure and continue with the text on the current page (as it does > with \placefloat, but not with \placefigure) and insert the figure on > a subsequent page when there is space, wrapping the text around the > figure at that point (again as it does with \placefigure, but does not > seem to do with \placefloat). > > Is it possible to do this using a current set of ConTeXt control > sequences and maybe I am just missing something? If not, is this > something that can be implemented? (I don't have any experience with > lower level TeX macro programming). All of what I am looking for is > already there, but not all in one control sequence. you can move the graphic with: \starttext \hangsidefloat[3] \placefigure[left]{}{} \input zapf \input zapf \input zapf \movesidefloat[3*line] \placefigure[left]{}{} \input zapf \input zapf \input zapf \stoptext this is still page bound \movesidefloat[x=10pt,y=-30pt] also works, as does: \placefigure[left,3*line]{}{} \input zapf \input zapf \input zapf and in the next version: \placefigure[left,3*hang]{}{} \input zapf \input zapf \input zapf will work as well (i cannot post a patch because i first need to upload the version with the french interface) Hans