From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.io/gmane.comp.tex.context/102343 Path: news.gmane.org!.POSTED!not-for-mail From: Fabrice Couvreur Newsgroups: gmane.comp.tex.context Subject: Use \framedtext to write an algorithm (again) Date: Wed, 17 Oct 2018 21:58:42 +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="===============0690528497363352532==" X-Trace: blaine.gmane.org 1539806242 16935 195.159.176.226 (17 Oct 2018 19:57:22 GMT) X-Complaints-To: usenet@blaine.gmane.org NNTP-Posting-Date: Wed, 17 Oct 2018 19:57:22 +0000 (UTC) To: mailing list for ConTeXt users Original-X-From: ntg-context-bounces@ntg.nl Wed Oct 17 21:57:18 2018 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 1gCrwT-0004IA-K3 for gctc-ntg-context-518@m.gmane.org; Wed, 17 Oct 2018 21:57:17 +0200 Original-Received: from localhost (localhost [127.0.0.1]) by zapf.ntg.nl (Postfix) with ESMTP id 145C77E509; Wed, 17 Oct 2018 21:59:08 +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 bzWZTY2caFw9; Wed, 17 Oct 2018 21:59:07 +0200 (CEST) Original-Received: from zapf.ntg.nl (localhost [127.0.0.1]) by zapf.ntg.nl (Postfix) with ESMTP id 55B1C7E50F; Wed, 17 Oct 2018 21:59:07 +0200 (CEST) Original-Received: from localhost (localhost [127.0.0.1]) by zapf.ntg.nl (Postfix) with ESMTP id AAD117E50F for ; Wed, 17 Oct 2018 21:59:05 +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 jH10u0NZEbQe for ; Wed, 17 Oct 2018 21:59:05 +0200 (CEST) Original-Received: from mail-wr1-f47.google.com (mail-wr1-f47.google.com [209.85.221.47]) (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 3F5CE7E509 for ; Wed, 17 Oct 2018 21:58:55 +0200 (CEST) Original-Received: by mail-wr1-f47.google.com with SMTP id e4-v6so31075861wrs.0 for ; Wed, 17 Oct 2018 12:58:55 -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=KKT2fy6GKnvyp+cqvS/deg7y/x4timjUkEqcq68bN6Y=; b=Lzm5WczUhoQEUeytD0XXqAEJpO5+JfwBUILToYVEf/Mm+gGi91My3LCSC6zEu8WvEV zaVXanOXPEf4UJIxmq3+rWIEXo0b8Gyssk77BlCE7wqlC/hiYO0Hcqt98uqWD8UVs7r5 pWX9WYRsJykfRPmrc/yhlOeM/YvpP/p9YsL5lIHLTgFFGitvG/KrML9V+OiZqfRTYoFB ciF8tEFqTLQIr5/mZiSBf7KWu6Wz4N+a3A4piSdJ0P9xroydiWSwV2pPScEGe9EMmG/i Dzc/LhP4V1vJSOqys/onS925tniUwWd5ydNopwjDUoam99i0tv9Q+LbTLX6Hn/yjiDna sg6g== 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=KKT2fy6GKnvyp+cqvS/deg7y/x4timjUkEqcq68bN6Y=; b=BrzNuvBsZf7ioeUSqTJBnmlqrwxFpVcBKAYK3gGMKxPXGnkOUXeqijN+JwwNNOqG6+ /VtulWXNL9agFf8i4YgpPFAvMmGpbyQId3qU9soHQPu/EvsJ4ReC+fjxQV8Fuf5gZh2I jvBVhZW88ASXHqbs4m5BBYV0JbkTT3X+QmDfx1jdRyLt3qCfSLAx9nDSf9zrq8H+a8Sv Wv0GSryZlhvE0Nd8RfRhH8+/TfOD1or7EOCgCZ5Me33KKkA/rl7pwsiYbB23LDgVpnah x7sb87IWQvAAJ7uy5sHhzSO36KkX8ux07QkJcKThqE2DeB4oUZ23yXeuU5QFWjnJ1j2i ac0w== X-Gm-Message-State: ABuFfoi4Gi+xO52qsZfiU0VI07bQjzBBLlxGavaWU6llB3DvPt3U8rwj 63koPcSfHovjKUSBCJe2w2+vKLjogy+FfV1QMv76ZLJ8 X-Google-Smtp-Source: ACcGV62QZSVlkez5N3TrIdg/a0KAf5zDLH5Ln5O1SbX4mZLiqzZG/CZbGGO7tX1Gl/d5vh95AAnKKQ19y4LeuO4I8nk= X-Received: by 2002:adf:f90b:: with SMTP id b11-v6mr25632378wrr.307.1539806334573; Wed, 17 Oct 2018 12:58:54 -0700 (PDT) X-BeenThere: ntg-context@ntg.nl X-Mailman-Version: 2.1.20 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:102343 Archived-At: --===============0690528497363352532== Content-Type: multipart/alternative; boundary="0000000000009861aa0578721909" --0000000000009861aa0578721909 Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable Hi Wolfgang, You offered me the following code to write algorithms. It seems that this does not function very well because the withdrawal of the text no longer exists. 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 \startalgorithm Variables \math{I} et \math{J} entiers T tableau d'entiers D=C3=A9but Pour \math{I} allant de \math{1} =C3=A0 \math{3} Pour \math{J} allant de \math{1} =C3=A0 \math{3} Si \math{J>I} Alors \math{T[I, J]=3DJ-I} Sinon \math{T[I, J]=3D0} Fin Si Fin Pour Fin \stopalgorithm \stoptext --0000000000009861aa0578721909 Content-Type: text/html; charset="UTF-8" Content-Transfer-Encoding: quoted-printable
Hi Wolfgang,
You offered me the following code to write algorithms. = It seems that this does not function very well because the withdrawal of th= e text no longer exists.
Thank you
Fabrice<= /span>

\defineframedtext
=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 backgroundcolor=3Dlightgray,
=C2=A0=C2=A0=C2=A0 framecolor=3Dd= arkred,
=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 befor= e=3D\startalgorithmframe,
=C2=A0=C2=A0=C2=A0 after=3D\stopalgorithmframe= ]

\starttext

\startalgorithm
Variables \math{I} et \math{J= } entiers
T tableau d'entiers
D=C3=A9but
Pour \math{I} allant = de \math{1} =C3=A0 \math{3}
=C2=A0=C2=A0=C2=A0 Pour \math{J} allant de \= math{1} =C3=A0 \math{3}
=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0 Si \math{J>I}<= br>=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0 Alors \math{T[I, J]=3DJ= -I}
=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0 Sinon \math{T[I, J]= =3D0}
=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0 Fin Si
=C2=A0=C2=A0=C2=A0 Fin Po= ur
Fin
\stopalgorithm

\stoptext
<= /div> --0000000000009861aa0578721909-- --===============0690528497363352532== 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 --===============0690528497363352532==--