From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.io/gmane.comp.tex.context/89343 Path: news.gmane.org!not-for-mail From: Mark Szepieniec Newsgroups: gmane.comp.tex.context Subject: Re: How does \setupfloat work? Date: Sat, 29 Nov 2014 11:21:26 +0100 Message-ID: References: <547999ED.2060101@wxs.nl> Reply-To: mailing list for ConTeXt users NNTP-Posting-Host: plane.gmane.org Mime-Version: 1.0 Content-Type: multipart/mixed; boundary="===============1957551514==" X-Trace: ger.gmane.org 1417256529 15214 80.91.229.3 (29 Nov 2014 10:22:09 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Sat, 29 Nov 2014 10:22:09 +0000 (UTC) To: mailing list for ConTeXt users Original-X-From: ntg-context-bounces@ntg.nl Sat Nov 29 11:22:05 2014 Return-path: Envelope-to: gctc-ntg-context-518@m.gmane.org Original-Received: from balder.ntg.nl ([5.39.185.229]) by plane.gmane.org with esmtp (Exim 4.69) (envelope-from ) id 1XufAD-0003xJ-1l for gctc-ntg-context-518@m.gmane.org; Sat, 29 Nov 2014 11:22:05 +0100 Original-Received: from localhost (localhost [127.0.0.1]) by balder.ntg.nl (Postfix) with ESMTP id 8B98F10227 for ; Sat, 29 Nov 2014 11:22:04 +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 YQlNAkXv1Wgn for ; Sat, 29 Nov 2014 11:22:03 +0100 (CET) Original-Received: from balder.ntg.nl (localhost [IPv6:::1]) by balder.ntg.nl (Postfix) with ESMTP id DFC7610237 for ; Sat, 29 Nov 2014 11:21:33 +0100 (CET) Original-Received: from localhost (localhost [127.0.0.1]) by balder.ntg.nl (Postfix) with ESMTP id 20E00101FC for ; Sat, 29 Nov 2014 11:21:30 +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 obec1SNc0-3Q for ; Sat, 29 Nov 2014 11:21:28 +0100 (CET) Original-Received: from filter1-utr.mf.surf.net (filter1-utr.mf.surf.net [195.169.124.152]) by balder.ntg.nl (Postfix) with ESMTP id D75F9101FB for ; Sat, 29 Nov 2014 11:21:28 +0100 (CET) Original-Received: from mail-qg0-x233.google.com (mail-qg0-x233.google.com [IPv6:2607:f8b0:400d:c04::233]) by filter1-utr.mf.surf.net (8.14.3/8.14.3/Debian-9.4) with ESMTP id sATALBOS018758 (version=TLSv1/SSLv3 cipher=RC4-SHA bits=128 verify=NOT) for ; Sat, 29 Nov 2014 11:21:12 +0100 Original-Received: by mail-qg0-f51.google.com with SMTP id l89so5688932qgf.10 for ; Sat, 29 Nov 2014 02:21:27 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:in-reply-to:references:date:message-id:subject:from:to :content-type; bh=4CzVZsGnE/uK1bfWrt+cdnrVJRbe7CJYDKdo3EwdirU=; b=T2WHaCHxG4l0mI4MtTNZBuFogPAvhkInVwxo6ci3AqE/oqYE6ETEkCNGYv2LV6Sj7T nC5BiHPW2FfSogSu/6Yzh9u/NTb8d9QvPaYjQUeOFGS0GFaWXvh/lI9zEl0CNlnZbXHG N88Xb9ivMY+5qL0WkIVw92DiVrT4Ef+Bd7fYHci+PkhsgJtRHabKh62sEKIryBAvVgig 4ZxabE7/nRnGDhfaydp2VGmuk+/EOSwYdEcJ3/K1fATx3Wn1hdi/fSRiu9vr/SIIEhwy 214TR7sf8GlGdD9uv820FtNphkSfDEQnn6dYu73kg8qpQzhD/5KLVCbWk+EE6FxlTHPN SAcA== X-Received: by 10.224.124.71 with SMTP id t7mr15378324qar.56.1417256486746; Sat, 29 Nov 2014 02:21:26 -0800 (PST) Original-Received: by 10.229.28.193 with HTTP; Sat, 29 Nov 2014 02:21:26 -0800 (PST) In-Reply-To: <547999ED.2060101@wxs.nl> X-Bayes-Prob: 0.0001 (Score 0, tokens from: ntg-context@ntg.nl, base:default, @@RPTN) X-CanIt-Geo: ip=2607:f8b0:400d:c04::233; country=US X-CanItPRO-Stream: uu:ntg-context@ntg.nl (inherits from uu:default, base:default) X-Canit-Stats-ID: 07NlmlcnG - 5ab12ef95ae2 - 20141129 (trained as not-spam) X-Scanned-By: CanIt (www . roaringpenguin . com) X-BeenThere: ntg-context@ntg.nl X-Mailman-Version: 2.1.16 Precedence: list List-Id: mailing list for ConTeXt users List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: ntg-context-bounces@ntg.nl Original-Sender: "ntg-context" Xref: news.gmane.org gmane.comp.tex.context:89343 Archived-At: --===============1957551514== Content-Type: multipart/alternative; boundary=001a11c2bc7e72c12e0508fcbd54 --001a11c2bc7e72c12e0508fcbd54 Content-Type: text/plain; charset=UTF-8 On Sat, Nov 29, 2014 at 11:03 AM, Hans Hagen wrote: > On 11/29/2014 10:49 AM, Mark Szepieniec wrote: > >> I'm trying to set a default width for figures with \setupfloat. However, >> the command doesn't seem to be picking up the width specification, even >> though the manual indicates it accepts a width= argument: >> >> \setupfloat[figure][width=2cm] >> >> \starttext >> >> \placefigure{}{\externalfigure[picture.png]} >> >> >> \stoptext >> > > just > > \placefigure{}{\externalfigure[picture.png][width=2cm]} > > > >> picture.png just gets inserted at its native size, rather than scaled to >> have the specified width. What am I doing wrong? (setting minwidth >> and/or maxwidth doesn't seem to work either) >> >> Thanks in advance for any assistance. >> >> Mark >> >> >> ____________________________________________________________ >> _______________________ >> 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 >> ____________________________________________________________ >> _______________________ >> >> > > -- > > ----------------------------------------------------------------- > Hans Hagen | PRAGMA ADE > Ridderstraat 27 | 8061 GH Hasselt | The Netherlands > tel: 038 477 53 69 | voip: 087 875 68 74 | www.pragma-ade.com > | www.pragma-pod.nl > ----------------------------------------------------------------- > ____________________________________________________________ > _______________________ > 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 > ____________________________________________________________ > _______________________ Sorry, I should have mentioned I was able to work around it by doing exactly that, but I'd rather not have to edit all the \placefigure instances if I decide to change the width. Also I'd like to use a different default width for graphics, so \setupexternalfigures[width=XXXcm] wouldn't work well either. I realize I could define my own macros or something to solve this, but I'm just puzzled that setting width in \setupfloat[figure] doesn't work. Am I reading the manual wrong, or is is just not implemented yet or something? (honest question) Thanks for your response, Mark --001a11c2bc7e72c12e0508fcbd54 Content-Type: text/html; charset=UTF-8 Content-Transfer-Encoding: quoted-printable


On Sat, Nov 29, 2014 at 11:03 AM, Hans Hagen <pragma@wxs.nl>= wrote:
On 11/29/2014 10:49 AM, Mark S= zepieniec wrote:
I'm trying to set a default width for figures with \setupfloat. However= ,
the command doesn't seem to be picking up the width specification, even=
though the manual indicates it accepts a width=3D argument:

\setupfloat[figure][width=3D2cm]

\starttext

\placefigure{}{\externalfigure[picture.png]}


\stoptext

just

\placefigure{}{\externalfigure[picture.png][width=3D2cm]}



picture.png just gets inserted at its native size, rather than scaled to have the specified width. What am I doing wrong? (setting minwidth
and/or maxwidth doesn't seem to work either)

Thanks in advance for any assistance.

Mark


_____________________________________________________________= ______________________
If your question is of interest to others as well, please add an entry to t= he Wiki!

maillist : ntg-cont= ext@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-context
webpage=C2=A0 :
http= ://www.pragma-ade.nl / http://tex.aanhet.net
archive=C2=A0 : http://foundry.supelec.fr/projects/contextrev/=
wiki=C2=A0 =C2=A0 =C2=A0: http://contextgarden.net
_____________________________________________________________= ______________________



--

-------------------------------------------------------------= ----
=C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2= =A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 H= ans Hagen | PRAGMA ADE
=C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 Ridderstraat 27 | 8061 GH = Hasselt | The Netherlands
=C2=A0 =C2=A0 tel: 038 477 53 69 | voip: 087 875 68 74 | www.pragma-ade.com
=C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2= =A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 = =C2=A0 =C2=A0| www.p= ragma-pod.nl
-------------------------------------------------------------= ----
_____________________________________________________________= ______________________
If your question is of interest to others as well, please add an entry to t= he Wiki!

maillist : ntg-cont= ext@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-context
webpage=C2=A0 :
http= ://www.pragma-ade.nl / http://tex.aanhet.net
archive=C2=A0 : http://foundry.supelec.fr/projects/contextrev/=
wiki=C2=A0 =C2=A0 =C2=A0: http://contextgarden.net
_____________________________________________________________= ______________________

Sorry, I should have mentioned I was able to work around it by doing exa= ctly that, but I'd rather not have to edit all the \placefigure instanc= es if I decide to change the width.

Also I'd like to= use a different default width for graphics, so \setupexternalfigures[width= =3DXXXcm] wouldn't work well either.

I realize= I could define my own macros or something to solve this, but I'm just = puzzled that setting width in \setupfloat[figure] doesn't work. Am I re= ading the manual wrong, or is is just not implemented yet or something? (ho= nest question)

Thanks for your response,

Mark
--001a11c2bc7e72c12e0508fcbd54-- --===============1957551514== Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: base64 Content-Disposition: inline X19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19f X19fX19fX19fX19fX19fX19fX19fX19fX18KSWYgeW91ciBxdWVzdGlvbiBpcyBvZiBpbnRlcmVz dCB0byBvdGhlcnMgYXMgd2VsbCwgcGxlYXNlIGFkZCBhbiBlbnRyeSB0byB0aGUgV2lraSEKCm1h aWxsaXN0IDogbnRnLWNvbnRleHRAbnRnLm5sIC8gaHR0cDovL3d3dy5udGcubmwvbWFpbG1hbi9s aXN0aW5mby9udGctY29udGV4dAp3ZWJwYWdlICA6IGh0dHA6Ly93d3cucHJhZ21hLWFkZS5ubCAv IGh0dHA6Ly90ZXguYWFuaGV0Lm5ldAphcmNoaXZlICA6IGh0dHA6Ly9mb3VuZHJ5LnN1cGVsZWMu ZnIvcHJvamVjdHMvY29udGV4dHJldi8Kd2lraSAgICAgOiBodHRwOi8vY29udGV4dGdhcmRlbi5u ZXQKX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19f X19fX19fX19fX19fX19fX19fX19fX19fX19fX18= --===============1957551514==--