From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.io/gmane.comp.tex.context/99136 Path: news.gmane.org!.POSTED!not-for-mail From: Fabrice Couvreur Newsgroups: gmane.comp.tex.context Subject: Centering an algorithm Date: Sat, 23 Sep 2017 12:12: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="===============6952059267685818965==" X-Trace: blaine.gmane.org 1506161590 4505 195.159.176.226 (23 Sep 2017 10:13:10 GMT) X-Complaints-To: usenet@blaine.gmane.org NNTP-Posting-Date: Sat, 23 Sep 2017 10:13:10 +0000 (UTC) To: mailing list for ConTeXt users Original-X-From: ntg-context-bounces@ntg.nl Sat Sep 23 12:13:06 2017 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 1dvhQn-0000rL-8G for gctc-ntg-context-518@m.gmane.org; Sat, 23 Sep 2017 12:13:05 +0200 Original-Received: from localhost (localhost [127.0.0.1]) by zapf.ntg.nl (Postfix) with ESMTP id 4970C88B13; Sat, 23 Sep 2017 12:12: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 GlIeK2c51YKi; Sat, 23 Sep 2017 12:12:57 +0200 (CEST) Original-Received: from zapf.ntg.nl (localhost [IPv6:::1]) by zapf.ntg.nl (Postfix) with ESMTP id 572AD88B15; Sat, 23 Sep 2017 12:12:57 +0200 (CEST) Original-Received: from localhost (localhost [127.0.0.1]) by zapf.ntg.nl (Postfix) with ESMTP id 18A7488B15 for ; Sat, 23 Sep 2017 12:12:56 +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 KlaP6YijxVf7 for ; Sat, 23 Sep 2017 12:12:55 +0200 (CEST) Original-Received: from mail-wm0-f50.google.com (mail-wm0-f50.google.com [74.125.82.50]) (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 97D3B88B13 for ; Sat, 23 Sep 2017 12:12:45 +0200 (CEST) Original-Received: by mail-wm0-f50.google.com with SMTP id m72so9068431wmc.1 for ; Sat, 23 Sep 2017 03:12:45 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=mime-version:from:date:message-id:subject:to; bh=TmntXigY1/dfLBVQSBuXGSK3GCHax/ByZ4nXH5nutgA=; b=AaZcdIa/lXEFfqlbeSxMGG8IDPvK0WBUz7+AKdNBf8zCFueWIn9PB8S9iNjBLEx+Qw 0CYF0RsJwqZ9ni1eqDpyeSzGjCZ1tpdRdxHqHC13948tcslgpceilfz5lUq7qx+dSSYU FtR9Hbr/efB6k4huyXf5SdjKIHRFc4VxwpIBjQL2jesvj2CJUA9XLvscb7/AmifjYweu CuXaAaZqRICl/0o2a7dU0eosuZTfhsJQl0cRGXUFssTI8t6lA1bI1+T7R8TmEYGvuMxq 4f1Bid46oo3cmVKOA2SfDuJm4qiSIF6B2IeIjGov1EL58V89eDWaXvr31uk/amTYbC6B zkJA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:from:date:message-id:subject:to; bh=TmntXigY1/dfLBVQSBuXGSK3GCHax/ByZ4nXH5nutgA=; b=d2o2uyf9F4XF/fGQEzq5Z//hD3rA0oyzuoIkbYE4NAn4y+9rxrmFbXaSweuWvx1994 ht7zo+Cis3B8fntto77mCvqES8jYbZoBTlcBKR9hzEYvN6N6mPAt/QPV9wFvevEH1CLO Xlmb+bFphqBa8NPqTt2HpBZMgp5/H+mfjkbaQnVSPt9+GgEtNVIlcAAf2mlzQnyCFE1M gXI5U50llL2tqYAQRgwcAeS6tY50CIhdZFWY3ORb+UXyESRWV8OXFjCSoa6FRXfB5LWD 44rrBqlAoVXzA9FbdltE1f59Fw7WhZPxPha9maO/xidGp3yPbCa6OGAs8lEVKGuBAvMA Cz9Q== X-Gm-Message-State: AHPjjUjBrapMBC4erFIl2gGNFr0KUYghVx75GhoKF0iNm7Px5R+QR3zD ZKB8m0DbNGNDwEa0wzk5ePoppAmWlqfaF0GdOjZDfw== X-Google-Smtp-Source: AOwi7QDeJZp3/mAvIosf2wxdY87T7gpla7epFnqY9ZvS7dG5QH2V5jf4jb2GOPZzPsp5590bmXqnaKSMJTVDCW67h8s= X-Received: by 10.80.244.11 with SMTP id r11mr7812992edm.26.1506161565060; Sat, 23 Sep 2017 03:12:45 -0700 (PDT) Original-Received: by 10.80.184.29 with HTTP; Sat, 23 Sep 2017 03:12: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:99136 Archived-At: --===============6952059267685818965== Content-Type: multipart/alternative; boundary="089e08256c480f53810559d891c0" --089e08256c480f53810559d891c0 Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable Hello, Wolfgang offered me a way to present an algorithm. Can not I center it ? Thank you. Fabrice \definecolor[MyBlue][c=3D0.06 , m=3D0.03, y=3D0.00, k=3D0.00] \defineframedtext [algorithmframe] [width=3Dfit, background=3Dcolor, foregroundstyle=3D{\tt}, backgroundcolor=3DMyBlue, framecolor=3Ddarkblue, corner=3Dround] \definelines [algorithm] [space=3Don, before=3D\startalgorithmframe, after=3D\stopalgorithmframe] \starttext \startlinecorrection[blank] \startmidaligned \startalgorithm Variables : \math{V} est un r=C3=A9el \math{N} est un entier naturel D=C3=A9but Affecter =C3=A0 \math{V} la valeur 354\,412 Affecter =C3=A0 \math{N} la valeur 0 Tant que \unknown\unknown \math{N} prend la valeur \unknown\unknown \math{V} prend la valeur \unknown\unknown Fin Tant que Afficher \unknown\unknown Fin \stopalgorithm \stopmidaligned \stoplinecorrection \stoptext --089e08256c480f53810559d891c0 Content-Type: text/html; charset="UTF-8" Content-Transfer-Encoding: quoted-printable

Hello,
Wolfgang offered= me a way to present an algorithm.
Can not I center it ?
Thank you.
Fabrice


\defi= necolor[MyBlue][c=3D0.06 , m=3D0.03, y=3D0.00, k=3D0.00]

\definefram= edtext
=C2=A0=C2=A0 [algorithmframe]
=C2=A0=C2=A0 [width=3Dfit,
= =C2=A0=C2=A0=C2=A0 background=3Dcolor,
=C2=A0=C2=A0=C2=A0 foregroundstyl= e=3D{\tt},
=C2=A0=C2=A0=C2=A0 backgroundcolor=3DMyBlue,
=C2=A0=C2=A0= =C2=A0 framecolor=3Ddarkblue,
=C2=A0=C2=A0=C2=A0 corner=3Dround]

= \definelines
=C2=A0=C2=A0 [algorithm]
=C2=A0=C2=A0 [space=3Don,
= =C2=A0=C2=A0=C2=A0 before=3D\startalgorithmframe,
=C2=A0=C2=A0=C2=A0 aft= er=3D\stopalgorithmframe]

\starttext

\startlinecorrection[bla= nk]
\startmidaligned
\startalgorithm
Variables : \math{V} est un r= =C3=A9el
=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 \math{N} est un entier naturel
= D=C3=A9but
=C2=A0 Affecter =C3=A0 \math{V} la valeur 354\,412
=C2=A0 = Affecter =C3=A0 \math{N} la valeur 0
=C2=A0 Tant que \unknown\unknown=C2=A0=C2=A0=C2=A0 \math{N} prend la valeur \unknown\unknown
=C2=A0=C2= =A0=C2=A0 \math{V} prend la valeur \unknown\unknown
=C2=A0 Fin Tant que<= br>=C2=A0 Afficher \unknown\unknown
Fin
\stopalgorithm
\stopmidali= gned
\stoplinecorrection

\stoptext
--089e08256c480f53810559d891c0-- --===============6952059267685818965== Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: base64 Content-Disposition: inline X19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19f X19fX19fX19fX19fX19fX19fX19fX19fX18KSWYgeW91ciBxdWVzdGlvbiBpcyBvZiBpbnRlcmVz dCB0byBvdGhlcnMgYXMgd2VsbCwgcGxlYXNlIGFkZCBhbiBlbnRyeSB0byB0aGUgV2lraSEKCm1h aWxsaXN0IDogbnRnLWNvbnRleHRAbnRnLm5sIC8gaHR0cDovL3d3dy5udGcubmwvbWFpbG1hbi9s aXN0aW5mby9udGctY29udGV4dAp3ZWJwYWdlICA6IGh0dHA6Ly93d3cucHJhZ21hLWFkZS5ubCAv IGh0dHA6Ly9jb250ZXh0LmFhbmhldC5uZXQKYXJjaGl2ZSAgOiBodHRwczovL2JpdGJ1Y2tldC5v cmcvcGhnL2NvbnRleHQtbWlycm9yL2NvbW1pdHMvCndpa2kgICAgIDogaHR0cDovL2NvbnRleHRn YXJkZW4ubmV0Cl9fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19f X19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19f --===============6952059267685818965==--