From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.io/gmane.comp.tex.context/89000 Path: news.gmane.org!not-for-mail From: Wolfgang Schuster Newsgroups: gmane.comp.tex.context Subject: Re: Module algorithmic Date: Sat, 18 Oct 2014 19:41:21 +0200 Message-ID: <541221AE-49ED-4F64-A1AF-5FCDB7DCAF28@gmail.com> References: Reply-To: mailing list for ConTeXt users NNTP-Posting-Host: plane.gmane.org Mime-Version: 1.0 (Mac OS X Mail 8.0 \(1990.1\)) Content-Type: multipart/mixed; boundary="===============1565840803==" X-Trace: ger.gmane.org 1413654123 23582 80.91.229.3 (18 Oct 2014 17:42:03 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Sat, 18 Oct 2014 17:42:03 +0000 (UTC) To: mailing list for ConTeXt users Original-X-From: ntg-context-bounces@ntg.nl Sat Oct 18 19:41:58 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 1XfY0s-0006zN-Aj for gctc-ntg-context-518@m.gmane.org; Sat, 18 Oct 2014 19:41:58 +0200 Original-Received: from localhost (localhost [127.0.0.1]) by balder.ntg.nl (Postfix) with ESMTP id F381A10276 for ; Sat, 18 Oct 2014 19:41:57 +0200 (CEST) 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 xYqKwCVJymLo for ; Sat, 18 Oct 2014 19:41:57 +0200 (CEST) Original-Received: from balder.ntg.nl (localhost [IPv6:::1]) by balder.ntg.nl (Postfix) with ESMTP id 2A8EF10278 for ; Sat, 18 Oct 2014 19:41:35 +0200 (CEST) Original-Received: from localhost (localhost [127.0.0.1]) by balder.ntg.nl (Postfix) with ESMTP id 4A377101FE for ; Sat, 18 Oct 2014 19:41:31 +0200 (CEST) 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 2oTvR2OqooMj for ; Sat, 18 Oct 2014 19:41:30 +0200 (CEST) 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 971D8101E3 for ; Sat, 18 Oct 2014 19:41:25 +0200 (CEST) Original-Received: from mail-wi0-x229.google.com (mail-wi0-x229.google.com [IPv6:2a00:1450:400c:c05::229]) by filter1-utr.mf.surf.net (8.14.3/8.14.3/Debian-9.4) with ESMTP id s9IHfDDr023552 (version=TLSv1/SSLv3 cipher=RC4-SHA bits=128 verify=NOT) for ; Sat, 18 Oct 2014 19:41:13 +0200 Original-Received: by mail-wi0-f169.google.com with SMTP id h11so6185244wiw.2 for ; Sat, 18 Oct 2014 10:41:24 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=from:content-type:message-id:mime-version:subject:date:references :to:in-reply-to; bh=L8N2CI46LQUd0RUrJOCwtAQdqUcqPA3Ql4/8K8Oi7FU=; b=cpdbv36qyY9OZnPdKsAICEINtakhp817VM2r1miOE9eN8aPIf34t1JD7H60Ssah6Lr +hAV7KzqM4sIxUuzUCrVSAN2bRctIhCJeD5JbTIl1173g0qcv+cm1XqWveKEYk46dY9g 1/nWBGARcnjnrQsP/za8aP2m8S840jt3HpfscL7Mb9y0SJOTxnBKV8x94nJDBGeLPEdk hqDgWEf9tnVYW2rooRyUxF7dkCPHeqVRFHUgQucgdL3+oYzro/OM+jJYsPzNhSAB3DLm Wvpm2cKC1kFr1/ack4KVZuyLZj4ozkDuKgrWLOLZaonoEM2q57FqIhVVyeiocB73z+YM VFGw== X-Received: by 10.194.190.130 with SMTP id gq2mr12497268wjc.18.1413654084569; Sat, 18 Oct 2014 10:41:24 -0700 (PDT) Original-Received: from keima.localdomain (x2f2a2ee.dyn.telefonica.de. [2.242.162.238]) by mx.google.com with ESMTPSA id t9sm5764609wjf.41.2014.10.18.10.41.23 for (version=TLSv1 cipher=ECDHE-RSA-RC4-SHA bits=128/128); Sat, 18 Oct 2014 10:41:23 -0700 (PDT) In-Reply-To: X-Mailer: Apple Mail (2.1990.1) X-Bayes-Prob: 0.0001 (Score 0, tokens from: ntg-context@ntg.nl, base:default, @@RPTN) X-CanIt-Geo: ip=2a00:1450:400c:c05::229; country=IE X-CanItPRO-Stream: uu:ntg-context@ntg.nl (inherits from uu:default, base:default) X-Canit-Stats-ID: 07N4FFdBX - 2faa2997d3d3 - 20141018 (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:89000 Archived-At: --===============1565840803== Content-Type: multipart/alternative; boundary="Apple-Mail=_A4720510-D1FE-4E53-8230-5C423F06FDC0" --Apple-Mail=_A4720510-D1FE-4E53-8230-5C423F06FDC0 Content-Transfer-Encoding: quoted-printable Content-Type: text/plain; charset=us-ascii > Am 18.10.2014 um 09:13 schrieb Fabrice Couvreur = : >=20 > Hi Wolfgang,=20 > How to reduce the size of the float ?=20 > Best regards,=20 > Fabrice >=20 > \usemodule[algorithmic] > \definefloat[algorithm][algorithms]=20 >=20 >=20 > \definecolor[H1prime][c=3D0.50, m=3D0.00, y=3D1.00, k=3D0.00] > \definecolor[H4][c=3D0.07, m=3D0.00, y=3D0.15, k=3D0.00] >=20 > \setupfloat > [algorithm] > [background=3Dcolor, > frame=3Don, > framecolor=3DH1prime, > backgroundcolor=3DH4, > width=3D0.5\textwidth] You have to put a framedtext environment around the algorithmic = environment, you can do this by replacing \setupfloat with = \setupalgorithmic. \setupalgorithmic [algorithmic] = [before=3D{\startframedtext[width=3D0.6\textwidth,background=3Dcolor,backg= roundcolor=3DH4,framecolor=3DH1prime]}, after=3D{\stopframedtext}] Wolfgang= --Apple-Mail=_A4720510-D1FE-4E53-8230-5C423F06FDC0 Content-Transfer-Encoding: quoted-printable Content-Type: text/html; charset=us-ascii
Am 18.10.2014 um 09:13 schrieb Fabrice Couvreur <fabrice1.couvreur@gmail.com>:

Hi = Wolfgang,
How to reduce the = size of the float = ?
Best regards,
Fabrice

\usemodule[algorithmic]
\definefloat[algorithm][algorithms]


\definecolor[H1prime][c=3D0.50, m=3D0.00, = y=3D1.00, k=3D0.00]
\definecolor[H4][c=3D0.07, m=3D0.00, = y=3D0.15, k=3D0.00]

\setupfloat
  [algorithm]
  [background=3Dcolor,   frame=3Don,
   = framecolor=3DH1prime,
   backgroundcolor=3DH4,
   width=3D0.5\textwidth]

You have to put a framedtext environment = around the algorithmic environment, you can do this by replacing = \setupfloat with \setupalgorithmic.

\setupalgorithmic
  = [algorithmic]
  = [before=3D{\startframedtext[width=3D0.6\textwidth,background=3Dcolor,backg= roundcolor=3DH4,framecolor=3DH1prime]},
  =   after=3D{\stopframedtext}]

Wolfgang
= --Apple-Mail=_A4720510-D1FE-4E53-8230-5C423F06FDC0-- --===============1565840803== 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= --===============1565840803==--