ntg-context - mailing list for ConTeXt users
 help / color / mirror / Atom feed
From: "Mojca Miklavec" <mojca.miklavec.lists@gmail.com>
To: "mailing list for ConTeXt users" <ntg-context@ntg.nl>
Subject: Re: fitting a picture to the available space
Date: Fri, 12 Sep 2008 17:20:40 +0200	[thread overview]
Message-ID: <6faad9f00809120820s54068156k8b5d4cd8a9e69340@mail.gmail.com> (raw)
In-Reply-To: <115224fb0809120302g4b1a0d40u2433d80cc3505217@mail.gmail.com>

On Fri, Sep 12, 2008 at 12:02 PM, Wolfgang Schuster wrote:
> On Thu, Sep 11, 2008 at 6:31 PM, Mojca Miklavec
> <mojca.miklavec.lists@gmail.com> 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
___________________________________________________________________________________


  reply	other threads:[~2008-09-12 15:20 UTC|newest]

Thread overview: 18+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2008-09-10 22:06 Thomas A. Schmitz
2008-09-11  7:28 ` Hans Hagen
2008-09-11  8:04   ` Thomas A. Schmitz
2008-09-11 13:28     ` Thomas A. Schmitz
2008-09-11 14:01       ` Peter Rolf
2008-09-11 14:40         ` Thomas A. Schmitz
2008-09-11 14:56           ` Hans Hagen
2008-09-11 14:13       ` Wolfgang Schuster
2008-09-11 16:20         ` Thomas A. Schmitz
2008-09-11 16:39           ` Hans Hagen
2008-09-11 17:59           ` Thomas A. Schmitz
2008-09-11 21:50             ` Thomas A. Schmitz
2008-09-12  7:14               ` Wolfgang Schuster
2008-09-12 12:37                 ` Thomas A. Schmitz
2008-09-11 16:31 ` Mojca Miklavec
2008-09-12 10:02   ` Wolfgang Schuster
2008-09-12 15:20     ` Mojca Miklavec [this message]
2008-09-12 15:37       ` Hans Hagen

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=6faad9f00809120820s54068156k8b5d4cd8a9e69340@mail.gmail.com \
    --to=mojca.miklavec.lists@gmail.com \
    --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).