ntg-context - mailing list for ConTeXt users
 help / color / mirror / Atom feed
From: Peter Rolf <indiego@gmx.net>
To: mailing list for ConTeXt users <ntg-context@ntg.nl>
Subject: Re: fitting a picture to the available space
Date: Thu, 11 Sep 2008 16:01:58 +0200	[thread overview]
Message-ID: <48C924D6.7030004@gmx.net> (raw)
In-Reply-To: <FC915632-045A-4788-B1D4-FA780D5B4A73@uni-bonn.de>

Thomas A. Schmitz schrieb:
> On Sep 11, 2008, at 10:04 AM, Thomas A. Schmitz wrote:
> 
>> On Sep 11, 2008, at 9:28 AM, Hans Hagen wrote:
>>
>>> \starttext
>>>
>>> \framed[width=5cm,height4cm]{\externalfigure[mill.png]
>>> [maxwidth=3cm,maxheight=4cm,width=10cm]}
>>>
>>> \stoptext
>>>
>>> seems to work
>> Ah of course! I could set the width to an absurdly high number and so
>> make sure that it will always reach the maxheight/maxwidth, no matter
>> what the ratio! This seems to work, thanks a lot!
>>
> 
> Alas, I spake too soon. Here is an example:
> 
> \starttext
> 
> \framed[frame=on,strut=no,width=8cm,height=2cm]
>   {\externalfigure[mill.png][maxwidth=8cm,maxheight=2cm,width=10cm]}
> 
> \stoptext
> 
> I would expect the picture to stay within the maxheight, but it doesn't.
>

Hi Thomas,

I tried the above solution for the creation of figure libraries a few
hours ago... with the same result. Using 'height=10cm' instead of
'width=10cm' should work in this case. At least this workaround gives
the right results for my squared graphics (icons). Anyhow, this is no
general solution...

Best, Peter


> Thomas
> ___________________________________________________________________________________
> 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
> ___________________________________________________________________________________
> 

___________________________________________________________________________________
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-11 14:01 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 [this message]
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
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=48C924D6.7030004@gmx.net \
    --to=indiego@gmx.net \
    --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).