From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.io/gmane.comp.tex.context/44363 Path: news.gmane.org!not-for-mail From: Wolfgang Schuster Newsgroups: gmane.comp.tex.context Subject: Re: figure placement Date: Sat, 27 Sep 2008 10:51:38 +0200 Message-ID: <925A2AD7-3361-4436-8820-9FE0ECDB763C@gmail.com> References: <48DCD74A.1000502@jhnet.nl> <48DCFD45.3000308@wxs.nl> <48DD0753.5040309@jhnet.nl> Reply-To: mailing list for ConTeXt users NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 (Apple Message framework v926) Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit X-Trace: ger.gmane.org 1222505657 28821 80.91.229.12 (27 Sep 2008 08:54:17 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Sat, 27 Sep 2008 08:54:17 +0000 (UTC) To: mailing list for ConTeXt users Original-X-From: ntg-context-bounces@ntg.nl Sat Sep 27 10:55:15 2008 connect(): Connection refused 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 lo.gmane.org with esmtp (Exim 4.50) id 1KjVa7-0006gu-Cn for gctc-ntg-context-518@m.gmane.org; Sat, 27 Sep 2008 10:55:15 +0200 Original-Received: from localhost (localhost [127.0.0.1]) by ronja.ntg.nl (Postfix) with ESMTP id 1753E1FE9A; Sat, 27 Sep 2008 10:54:07 +0200 (CEST) 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 30246-04-4; Sat, 27 Sep 2008 10:52:54 +0200 (CEST) Original-Received: from ronja.vet.uu.nl (localhost [127.0.0.1]) by ronja.ntg.nl (Postfix) with ESMTP id 05E471FE93; Sat, 27 Sep 2008 10:52:54 +0200 (CEST) Original-Received: from localhost (localhost [127.0.0.1]) by ronja.ntg.nl (Postfix) with ESMTP id 968D01FBB9 for ; Sat, 27 Sep 2008 10:52:46 +0200 (CEST) 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 30639-01-6 for ; Sat, 27 Sep 2008 10:51:43 +0200 (CEST) Original-Received: from fg-out-1718.google.com (fg-out-1718.google.com [72.14.220.157]) by ronja.ntg.nl (Postfix) with ESMTP id 112571FE93 for ; Sat, 27 Sep 2008 10:51:41 +0200 (CEST) Original-Received: by fg-out-1718.google.com with SMTP id l26so1609405fgb.8 for ; Sat, 27 Sep 2008 01:51:41 -0700 (PDT) Original-Received: by 10.86.90.13 with SMTP id n13mr2082997fgb.50.1222505501269; Sat, 27 Sep 2008 01:51:41 -0700 (PDT) Original-Received: from ?192.168.2.23? ( [91.41.90.236]) by mx.google.com with ESMTPS id e20sm4870175fga.1.2008.09.27.01.51.39 (version=TLSv1/SSLv3 cipher=RC4-MD5); Sat, 27 Sep 2008 01:51:40 -0700 (PDT) In-Reply-To: <48DD0753.5040309@jhnet.nl> X-Mailer: Apple Mail (2.926) X-Virus-Scanned: amavisd-new at ntg.nl X-BeenThere: ntg-context@ntg.nl X-Mailman-Version: 2.1.9 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:44363 Archived-At: Am 26.09.2008 um 18:01 schrieb Jelle Huisman: > Hans Hagen wrote: >> >>> I try to get a picture on a page using >>> \externalfigure[name.pdf][width=\textwidth] The image is pushed to >>> the >>> next page, even though there is no text on the current page and the >>> height of the image itself is smaller then \textheight, so it should >>> fit. How do I force image placement *here*? >>> >> \placefigure[force]{}{} >> > > Hi Hans, > > Is there a way to do this [force] with \externalfigure in a macro > def like: > > \def\picturefile #1#2#3{{\rotate[rotation=#1]{\externalfigure[#2] > [width=#3mm]}}} > > When I try to do something with \placefigure I get a "floatblocks : > order disturbed" error and no figure placed. Please make a example because this works for me: \setupexternalfigures[location=default] \define[3]\picturefile {\placefigure[force]{none}{\externalfigure[#2] [width=#3mm,orientation=#1]}} \starttext \input knuth \picturefile{0}{cow}{100} \picturefile{180}{cow}{100} \stoptext 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 : https://foundry.supelec.fr/projects/contextrev/ wiki : http://contextgarden.net ___________________________________________________________________________________