From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.io/gmane.comp.tex.context/96210 Path: news.gmane.org!.POSTED!not-for-mail From: Fabrice Couvreur Newsgroups: gmane.comp.tex.context Subject: Center a framedtext Date: Fri, 23 Sep 2016 19:46:44 +0200 Message-ID: Reply-To: mailing list for ConTeXt users NNTP-Posting-Host: blaine.gmane.org Mime-Version: 1.0 Content-Type: multipart/mixed; boundary="===============1849590939008095112==" X-Trace: blaine.gmane.org 1474652855 6299 195.159.176.226 (23 Sep 2016 17:47:35 GMT) X-Complaints-To: usenet@blaine.gmane.org NNTP-Posting-Date: Fri, 23 Sep 2016 17:47:35 +0000 (UTC) To: mailing list for ConTeXt users Original-X-From: ntg-context-bounces@ntg.nl Fri Sep 23 19:47:30 2016 Return-path: Envelope-to: gctc-ntg-context-518@m.gmane.org Original-Received: from zapf.boekplan.nl ([5.39.185.232] helo=zapf.ntg.nl) by blaine.gmane.org with esmtp (Exim 4.84_2) (envelope-from ) id 1bnUZJ-0000Ns-JO for gctc-ntg-context-518@m.gmane.org; Fri, 23 Sep 2016 19:47:25 +0200 Original-Received: from localhost (localhost [127.0.0.1]) by zapf.ntg.nl (Postfix) with ESMTP id 132AE194B4; Fri, 23 Sep 2016 19:47:02 +0200 (CEST) X-Virus-Scanned: Debian amavisd-new at zapf.boekplan.nl Original-Received: from zapf.ntg.nl ([127.0.0.1]) by localhost (zapf.ntg.nl [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id xFaKE6g8UaJY; Fri, 23 Sep 2016 19:47:00 +0200 (CEST) Original-Received: from zapf.ntg.nl (localhost [IPv6:::1]) by zapf.ntg.nl (Postfix) with ESMTP id 1059B194EB; Fri, 23 Sep 2016 19:47:00 +0200 (CEST) Original-Received: from localhost (localhost [127.0.0.1]) by zapf.ntg.nl (Postfix) with ESMTP id C104B192C8 for ; Fri, 23 Sep 2016 19:46:58 +0200 (CEST) X-Virus-Scanned: Debian amavisd-new at zapf.boekplan.nl Original-Received: from zapf.ntg.nl ([127.0.0.1]) by localhost (zapf.ntg.nl [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id vpidPtOCBwui for ; Fri, 23 Sep 2016 19:46:57 +0200 (CEST) Original-Received: from mail-io0-f171.google.com (mail-io0-f171.google.com [209.85.223.171]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by zapf.ntg.nl (Postfix) with ESMTPS id 45624191BF for ; Fri, 23 Sep 2016 19:46:47 +0200 (CEST) Original-Received: by mail-io0-f171.google.com with SMTP id r145so125685680ior.0 for ; Fri, 23 Sep 2016 10:46:46 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:from:date:message-id:subject:to; bh=P+8cuC64CRXZ9YsEWYcaRJXwPa+QZUoRm+gnu1lfcN8=; b=l+Nbtk443jsFABcRmsEgSUDnm7Av5nAoXN70twaNyFvA5cqaL3+03280TJbD7eRXiY TRbRPwjov3GXRaoHrE7b+AhNg3f3g61PKZlbFcg26mXUEjyPuSKAWg8+McSE0CDkiuRR uorNWVNI/oBiXAlAMLGwKq7V08r3/MvTi7G8fvhD2Gpn/ioCiDIvmBOFjAPhsxVcW573 KYMKUwPiKnCcA7I5u1C2qJy2clc/7xbvsTGCpnGIQEqYMLKA5IpyM+U7ZjLPzAGW9zOI PtrGrYOupjchdlGgCt9Bx2nMvyFm3H8mFtkww7ksZdoLctGJTWBOnRa+TK/S9Icrz7aM 3VIQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20130820; h=x-gm-message-state:mime-version:from:date:message-id:subject:to; bh=P+8cuC64CRXZ9YsEWYcaRJXwPa+QZUoRm+gnu1lfcN8=; b=J0tNUEpM0bCKD2iHAkZSnOdzBGtZkNQkO8V7ytQeST14pMKOLg2zgNXmn47j5vifnB HtOaZh6M/ieygQu18x8zRIqOjvj4iY/zLgLupvwObRZ8ya1r0tMULBLBBa9+k/M7igDI DLVrLgL3Ts3PU0zHGSEwWT7D2hU9y+mE/QMO9mE9izFqRdcuxX4G7AVqVx1GdCzmJ1KK +2nN8v7x1DlQotUI4hkGrEt5beFxi7gXK0vcWTnSlz8dSjsLrHCqEy3xxFGnupElqtlR f5EdXEP8YQOvMGV0wp9vgQ0FabynrBGmr0+GlnifMEQ3nccunWePt+Hu8aByXUXSqOAP cEEw== X-Gm-Message-State: AE9vXwMozIfcUx3fk6st1JVf3gfZgE2qbVWrqOiFCoF+Vk8vjvNPGHV1XY9wt7/0sFysBqXtBC7PMZMJAcRZXg== X-Received: by 10.107.41.81 with SMTP id p78mr10340641iop.78.1474652805183; Fri, 23 Sep 2016 10:46:45 -0700 (PDT) Original-Received: by 10.64.234.193 with HTTP; Fri, 23 Sep 2016 10:46:44 -0700 (PDT) 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:96210 Archived-At: --===============1849590939008095112== Content-Type: multipart/alternative; boundary=001a1141fb049ebf3d053d305cb5 --001a1141fb049ebf3d053d305cb5 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: quoted-printable Hello, How to make the algorithm is centered vertically and horizontally ? thank you, Fabrice \defineframedtext [algorithmframe] [width=3Dfit, background=3Dcolor, backgroundcolor=3Dlightgray, framecolor=3Ddarkred, corner=3Dround] \definelines [algorithm] [space=3Don, before=3D\startalgorithmframe, after=3D\stopalgorithmframe] \starttext \startlinecorrection[blank] \startmidaligned \startalgorithm Initialisation : \math{u} prend la valeur 2\,000 \math{S} prend la valeur 2\,000 Traitement : Pour \math{i} allant de 2 =C3=A0 \math{n} \math{u} prend la valeur \math{u\times 1,008} \math{S} prend la valeur \math{S +u} Fin Pour Sortie : Afficher \math{S} \stopalgorithm \stopmidaligned \stoplinecorrection \stoptext --001a1141fb049ebf3d053d305cb5 Content-Type: text/html; charset=UTF-8 Content-Transfer-Encoding: quoted-printable
Hello,
How to make the algo= rithm is centered vertically and horizontally ?
thank you,
Fabrice

\defi= neframedtext
=C2=A0 [algorithmframe]
=C2=A0 [width=3Dfit,
=C2=A0= =C2=A0 background=3Dcolor,
=C2=A0=C2=A0 backgroundcolor=3Dlightgray,
= =C2=A0=C2=A0 framecolor=3Ddarkred,
=C2=A0=C2=A0 corner=3Dround]

\= definelines
=C2=A0 [algorithm]
=C2=A0 [space=3Don,
=C2=A0=C2=A0 be= fore=3D\startalgorithmframe,
=C2=A0=C2=A0 after=3D\stopalgorithmframe]
\starttext

\startlinecorrection[blank]
\startmidaligned
=
\startalgorithm
Initialisation :
=C2=A0 \math{u} prend la valeur = 2\,000
=C2=A0 \math{S} prend la valeur 2\,000
Traitement :
=C2=A0 = Pour \math{i} allant de 2 =C3=A0 \math{n}
=C2=A0=C2=A0=C2=A0=C2=A0 \math= {u} prend la valeur \math{u\times 1,008}
=C2=A0=C2=A0=C2=A0=C2=A0 \math{= S} prend la valeur \math{S +u}
=C2=A0 Fin Pour
Sortie :
=C2=A0 Af= ficher \math{S}

\stopalgorithm

\stopmidaligned
\stoplineco= rrection

\stoptext

--001a1141fb049ebf3d053d305cb5-- --===============1849590939008095112== 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= --===============1849590939008095112==--