From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.io/gmane.comp.tex.context/72632 Path: news.gmane.org!not-for-mail From: "Mikael P. Sundqvist" Newsgroups: gmane.comp.tex.context Subject: Re: Floating picture in margin with no interference with text/sections Date: Wed, 23 Nov 2011 17:20:28 +0100 Message-ID: References: Reply-To: mailing list for ConTeXt users NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit X-Trace: dough.gmane.org 1322065246 29300 80.91.229.12 (23 Nov 2011 16:20:46 GMT) X-Complaints-To: usenet@dough.gmane.org NNTP-Posting-Date: Wed, 23 Nov 2011 16:20:46 +0000 (UTC) To: mailing list for ConTeXt users Original-X-From: ntg-context-bounces@ntg.nl Wed Nov 23 17:20:41 2011 Return-path: Envelope-to: gctc-ntg-context-518@m.gmane.org Original-Received: from balder.ntg.nl ([195.12.62.10]) by lo.gmane.org with esmtp (Exim 4.69) (envelope-from ) id 1RTFYv-0001oP-AI for gctc-ntg-context-518@m.gmane.org; Wed, 23 Nov 2011 17:20:41 +0100 Original-Received: from localhost (localhost [127.0.0.1]) by balder.ntg.nl (Postfix) with ESMTP id CB45ACB179; Wed, 23 Nov 2011 17:20:40 +0100 (CET) X-Virus-Scanned: Debian amavisd-new at balder.ntg.nl Original-Received: from balder.ntg.nl ([127.0.0.1]) by localhost (balder.ntg.nl [127.0.0.1]) (amavisd-new, port 10024) with LMTP id kbimtIIhsVgw; Wed, 23 Nov 2011 17:20:35 +0100 (CET) Original-Received: from balder.ntg.nl (localhost [127.0.0.1]) by balder.ntg.nl (Postfix) with ESMTP id 642A7CB16A; Wed, 23 Nov 2011 17:20:35 +0100 (CET) Original-Received: from localhost (localhost [127.0.0.1]) by balder.ntg.nl (Postfix) with ESMTP id D19EECB16A for ; Wed, 23 Nov 2011 17:20:33 +0100 (CET) X-Virus-Scanned: Debian amavisd-new at balder.ntg.nl Original-Received: from balder.ntg.nl ([127.0.0.1]) by localhost (balder.ntg.nl [127.0.0.1]) (amavisd-new, port 10024) with LMTP id VP4KDuL1RgWH for ; Wed, 23 Nov 2011 17:20:31 +0100 (CET) Original-Received: from filter1-til.mf.surf.net (filter1-til.mf.surf.net [194.171.167.217]) by balder.ntg.nl (Postfix) with ESMTP id 27086CB154 for ; Wed, 23 Nov 2011 17:20:31 +0100 (CET) Original-Received: from mail-qw0-f41.google.com (mail-qw0-f41.google.com [209.85.216.41]) by filter1-til.mf.surf.net (8.14.3/8.14.3/Debian-5+lenny1) with ESMTP id pANGKTl1011303 for ; Wed, 23 Nov 2011 17:20:30 +0100 Original-Received: by qap15 with SMTP id 15so631044qap.14 for ; Wed, 23 Nov 2011 08:20:29 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=mime-version:in-reply-to:references:date:message-id:subject:from:to :content-type; bh=+w4THhhbaFOT9SkdtYdI+77R+ntETiJLPui4wOwW0Tk=; b=QupUz0owycL9q/GFR52CPF5KVKSVANV5gx7uklStJNSTd2VFfz9abW5MN7fz9aTr8N JgNiwcH+dLJjcgjPIyyqgXJyO4tWtcAtQCjJfQmQEuKxk8w0mAFRyfr93dAp3LDODJ6z GuSQ3ms39eZQoD9Ol9va4EPqh2yqhwxAl7F1s= Original-Received: by 10.224.116.144 with SMTP id m16mr11219726qaq.19.1322065229441; Wed, 23 Nov 2011 08:20:29 -0800 (PST) Original-Received: by 10.229.232.65 with HTTP; Wed, 23 Nov 2011 08:20:28 -0800 (PST) In-Reply-To: X-Bayes-Prob: 0.0001 (Score 0, tokens from: @@RPTN) X-CanIt-Geo: ip=209.85.216.41; country=US; region=CA; city=Mountain View; postalcode=94043; latitude=37.4192; longitude=-122.0574; metrocode=807; areacode=650; http://maps.google.com/maps?q=37.4192,-122.0574&z=6 X-CanItPRO-Stream: uu:ntg-context@ntg.nl (inherits from uu:default, base:default) X-Canit-Stats-ID: 08G0EkuWO - 18ed54a19cfe - 20111123 (trained as not-spam) X-Scanned-By: CanIt (www . roaringpenguin . com) on 194.171.167.217 X-BeenThere: ntg-context@ntg.nl X-Mailman-Version: 2.1.12 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 Xref: news.gmane.org gmane.comp.tex.context:72632 Archived-At: On Wed, Nov 16, 2011 at 3:18 PM, Mikael P. Sundqvist wrote: > Dear list, > > I use mkiv which was installed today. Two questions. > > 1) Is it possible to put floating pictures in the margin without > locking them in the current section? See the following example: > > %%% Start example > \setuplayout[ > rightmargin=5cm, > width=fit, > ] > > %\setuphead[section][ > %aligntitle=float, > %] > > \starttext > \showframe > \section{This is a short section} > It contains one figure. > \placefigure[inright,top][none]{A caption.}{\externalfigure[cow][width=4cm]} > \section{This is another short section} > It contains the same figure. > \placefigure[inright,top][none]{A > caption.}{\externalfigure[cow][width=4cm,height=6cm]} > > \section{This is a third section} > \input knuth > \stoptext > %%% Stop example > > The result is given by > http://tmp.oblandat.se/fig1.pdf > If I uncomment (what I thought was the solution) the \setuphead part I get > http://tmp.oblandat.se/fig2.pdf > which looks better, but not as I want it. I want the sections and the > text to look just as if there were no figures at all, and I want the > figures to be stacked in the margin, the first one at the top of the > margin, and the second one just below the first one. Is this possible? > > 2) If I really must not want a new page right after a section head > (this happens in my long document, but no minimal example is given), > is there any penalty or something i can set? This happens fairly often > with the standard setup, it seems. > > Best regards, Mikael > Dear list, I hate to reply to myself, but one week and no reply, so I do it. Anyone knows if 1) is possible? As for 2) maybe the \setuplayout[preset=strict] just suggested in another thread does what I want? Best regards, Mikael ___________________________________________________________________________________ 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 ___________________________________________________________________________________