From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.io/gmane.comp.tex.context/90597 Path: news.gmane.org!not-for-mail From: Emmanuel Asante Newsgroups: gmane.comp.tex.context Subject: How to Centre Multi-line Verbatim Text Date: Fri, 13 Mar 2015 14:32:29 -0600 Message-ID: Reply-To: mailing list for ConTeXt users NNTP-Posting-Host: plane.gmane.org Mime-Version: 1.0 Content-Type: multipart/mixed; boundary="===============1344428662==" X-Trace: ger.gmane.org 1426278799 24504 80.91.229.3 (13 Mar 2015 20:33:19 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Fri, 13 Mar 2015 20:33:19 +0000 (UTC) To: NTG-Context Original-X-From: ntg-context-bounces@ntg.nl Fri Mar 13 21:32:59 2015 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 1YWWGR-0001ix-2F for gctc-ntg-context-518@m.gmane.org; Fri, 13 Mar 2015 21:32:59 +0100 Original-Received: from localhost (localhost [127.0.0.1]) by balder.ntg.nl (Postfix) with ESMTP id 3D7DD103AC for ; Fri, 13 Mar 2015 21:32:58 +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 tGBSejWyKV0G for ; Fri, 13 Mar 2015 21:32:57 +0100 (CET) Original-Received: from balder.ntg.nl (localhost [IPv6:::1]) by balder.ntg.nl (Postfix) with ESMTP id 2514710235 for ; Fri, 13 Mar 2015 21:32:36 +0100 (CET) Original-Received: from localhost (localhost [127.0.0.1]) by balder.ntg.nl (Postfix) with ESMTP id 24F81101FC for ; Fri, 13 Mar 2015 21:32:32 +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 GTdTv9e-X2ov for ; Fri, 13 Mar 2015 21:32:31 +0100 (CET) Original-Received: from filter4-ams.mf.surf.net (filter4-ams.mf.surf.net [192.87.102.72]) by balder.ntg.nl (Postfix) with ESMTP id 789EF101F9 for ; Fri, 13 Mar 2015 21:32:31 +0100 (CET) Original-Received: from mail-lb0-x235.google.com (mail-lb0-x235.google.com [IPv6:2a00:1450:4010:c04::235]) by filter4-ams.mf.surf.net (8.14.3/8.14.3/Debian-9.4) with ESMTP id t2DKWUSs031004 (version=TLSv1/SSLv3 cipher=RC4-SHA bits=128 verify=NOT) for ; Fri, 13 Mar 2015 21:32:30 +0100 Original-Received: by lbdu14 with SMTP id u14so25317752lbd.0 for ; Fri, 13 Mar 2015 13:32:30 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:date:message-id:subject:from:to:content-type; bh=0lWXp+u59WY0w2ROBrAGJVADbNq2qMgurA8CuiIHE0o=; b=Vbfx2t1vguaKob7WIUCk8qDPGXbVIGCpIk99yGflbFjESEuwQLGU2OwbL//VAtY1+Q YAv3tHFbmDQtK7xFCX9rhVv0tKviGi3EM+LTvotrwdXRYsZ0Yj76zMDGh5tCSFOokFRe GuW4J7uGVzGLaOKTFbmH4XlRY135TyuSpbe2t/uofhL0gxE6p63MLxRcnksW7vFDwwoI HGNskIQ4RaO3+EFvRQ1p56wgduOhzc/tYhSxmiMcpVTOAQmYKvKm3VY/QdE4ZPzE7KQZ nj02xrSZXyUJQvbFySy+ot+hElZ7pmh1un4GQxVx97KfXUrd7YQKXGdTmfaG//UmwO0n +plw== X-Received: by 10.112.205.68 with SMTP id le4mr43970631lbc.96.1426278750085; Fri, 13 Mar 2015 13:32:30 -0700 (PDT) Original-Received: by 10.114.230.7 with HTTP; Fri, 13 Mar 2015 13:32:29 -0700 (PDT) X-Bayes-Prob: 0.0001 (Score 0, tokens from: ntg-context@ntg.nl, base:default, @@RPTN) X-CanIt-Geo: ip=2a00:1450:4010:c04::235; country=IE; latitude=53.3478; longitude=-6.2597; http://maps.google.com/maps?q=53.3478,-6.2597&z=6 X-CanItPRO-Stream: uu:ntg-context@ntg.nl (inherits from uu:default, base:default) X-Canit-Stats-ID: 01O38wuV8 - 92683d9c63ea - 20150313 (trained as not-spam) Received-SPF: pass (filter4-ams.mf.surf.net: domain of emmanuela.asante@gmail.com designates 2a00:1450:4010:c04::235 as permitted sender) receiver=filter4-ams.mf.surf.net; client-ip=2a00:1450:4010:c04::235; envelope-from=; helo=mail-lb0-x235.google.com; identity=mailfrom 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:90597 Archived-At: --===============1344428662== Content-Type: multipart/alternative; boundary=001a11c3c34a3fe7c4051131666b --001a11c3c34a3fe7c4051131666b Content-Type: text/plain; charset=UTF-8 Hello All, I am trying to centre a multi-line verbatim text horizontally on the page but I cannot figure out how to do that. With the code below how can I centre the whole block horizontally on the page? \setuptyping[TEX] \startTEX RSpec.describe Post, :type => :model do end \stopTEX Thanks Emmanuel --001a11c3c34a3fe7c4051131666b Content-Type: text/html; charset=UTF-8 Content-Transfer-Encoding: quoted-printable
Hello All,

I am trying to centre a mult= i-line verbatim text horizontally on the page but I cannot figure out how t= o do that. With the code below how can I centre the whole block horizontall= y on the page?

\setuptyping[TEX]

\startTEX
=C2=A0 =C2=A0RSpec.describe Post, :typ= e =3D> :model do
=C2=A0 =C2=A0 end
=C2=A0\stopTEX

Thanks
Emmanuel
--001a11c3c34a3fe7c4051131666b-- --===============1344428662== 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= --===============1344428662==--