From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.io/gmane.comp.tex.context/43949 Path: news.gmane.org!not-for-mail From: "Mojca Miklavec" Newsgroups: gmane.comp.tex.context Subject: Re: fitting a picture to the available space Date: Fri, 12 Sep 2008 17:20:40 +0200 Message-ID: <6faad9f00809120820s54068156k8b5d4cd8a9e69340@mail.gmail.com> References: <396E487E-2550-48FB-BF43-BC51ED2388F4@uni-bonn.de> <6faad9f00809110931s21db42a7v8a12cd4fd9dc9c28@mail.gmail.com> <115224fb0809120302g4b1a0d40u2433d80cc3505217@mail.gmail.com> 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: ger.gmane.org 1221232949 901 80.91.229.12 (12 Sep 2008 15:22:29 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Fri, 12 Sep 2008 15:22:29 +0000 (UTC) To: "mailing list for ConTeXt users" Original-X-From: ntg-context-bounces@ntg.nl Fri Sep 12 17:23:21 2008 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 1KeAUG-0007c8-Of for gctc-ntg-context-518@m.gmane.org; Fri, 12 Sep 2008 17:23:08 +0200 Original-Received: from localhost (localhost [127.0.0.1]) by ronja.ntg.nl (Postfix) with ESMTP id 80F141FF4C; Fri, 12 Sep 2008 17:22:06 +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 23252-01; Fri, 12 Sep 2008 17:21:18 +0200 (CEST) Original-Received: from ronja.vet.uu.nl (localhost [127.0.0.1]) by ronja.ntg.nl (Postfix) with ESMTP id 3284C1FF15; Fri, 12 Sep 2008 17:21:18 +0200 (CEST) Original-Received: from localhost (localhost [127.0.0.1]) by ronja.ntg.nl (Postfix) with ESMTP id EE40D1FF15 for ; Fri, 12 Sep 2008 17:21:16 +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 21272-01-12 for ; Fri, 12 Sep 2008 17:20:42 +0200 (CEST) Original-Received: from mail-gx0-f16.google.com (mail-gx0-f16.google.com [209.85.217.16]) by ronja.ntg.nl (Postfix) with ESMTP id 3E9A01FF0C for ; Fri, 12 Sep 2008 17:20:42 +0200 (CEST) Original-Received: by gxk9 with SMTP id 9so12300412gxk.2 for ; Fri, 12 Sep 2008 08:20:41 -0700 (PDT) Original-Received: by 10.151.156.12 with SMTP id i12mr6203396ybo.194.1221232840912; Fri, 12 Sep 2008 08:20:40 -0700 (PDT) Original-Received: by 10.151.83.13 with HTTP; Fri, 12 Sep 2008 08:20:40 -0700 (PDT) In-Reply-To: <115224fb0809120302g4b1a0d40u2433d80cc3505217@mail.gmail.com> Content-Disposition: inline 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:43949 Archived-At: On Fri, Sep 12, 2008 at 12:02 PM, Wolfgang Schuster wrote: > On Thu, Sep 11, 2008 at 6:31 PM, Mojca Miklavec > wrote: >> On Thu, Sep 11, 2008 at 12:06 AM, Thomas A. Schmitz wrote: >>> Hi guys, >>> >>> I'm pulling my hair out. I'm trying to set up an automatism to fit >>> pictures to the available space on a slide. >> >> Hello, >> >> I'm probably talking about something else, though highly related. >> There's one thing that I often miss on slides: >> >> *Here's a title* >> >> - here are >> - some items >> >> [and I want the picture to fill up all the remaining space on slide] >> >> Or even if there' only title + image. I tried option=max (or something >> similar), but always ended up setting image size manually. Most often >> I got title on one page and image on another (It would be less painful >> to have image on the same page, even if it hangs much over the lower >> border - is there something similar to \placefigure[thispage] option >> (puts the figure on the same page, even if there's no space left)?) >> >> Mojca >> >> [I need to stop asking questions now.] > > Quick and dirty: > > \showframe > > \starttext > > \input knuth > > \start > > \scratchdimen=\pagegoal > \advance\scratchdimen by -\pagetotal > \advance\scratchdimen by -2\lineheight > > \blank > > \hrule height \scratchdimen\relax > > \stop > > \stoptext Thanks a lot! Two new words for my TeX dictionary (\pagegoal, \pagetotal). Something like this (if packed inside the \placesomething macro) would be great to have in the core as well. I'll clone this code from now on :) Mojca ___________________________________________________________________________________ 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 ___________________________________________________________________________________