From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.io/gmane.comp.tex.context/90275 Path: news.gmane.org!not-for-mail From: Christoph Reller Newsgroups: gmane.comp.tex.context Subject: Re: No escape to TeX for inline typing? Date: Wed, 18 Feb 2015 07:03:27 +0100 Message-ID: Reply-To: mailing list for ConTeXt users NNTP-Posting-Host: plane.gmane.org Mime-Version: 1.0 Content-Type: multipart/mixed; boundary="===============0286303855==" X-Trace: ger.gmane.org 1424239481 399 80.91.229.3 (18 Feb 2015 06:04:41 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Wed, 18 Feb 2015 06:04:41 +0000 (UTC) To: ntg-context Original-X-From: ntg-context-bounces@ntg.nl Wed Feb 18 07:04:31 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 1YNxkM-0000WB-4t for gctc-ntg-context-518@m.gmane.org; Wed, 18 Feb 2015 07:04:30 +0100 Original-Received: from localhost (localhost [127.0.0.1]) by balder.ntg.nl (Postfix) with ESMTP id 5A05210229 for ; Wed, 18 Feb 2015 07:04:29 +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 45H2bqFp_xPM for ; Wed, 18 Feb 2015 07:04:28 +0100 (CET) Original-Received: from balder.ntg.nl (localhost [IPv6:::1]) by balder.ntg.nl (Postfix) with ESMTP id 7AAF8101FD for ; Wed, 18 Feb 2015 07:04:00 +0100 (CET) Original-Received: from localhost (localhost [127.0.0.1]) by balder.ntg.nl (Postfix) with ESMTP id 85480101FD for ; Wed, 18 Feb 2015 07:03:56 +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 YBb5rLE46gQP for ; Wed, 18 Feb 2015 07:03:55 +0100 (CET) Original-Received: from filter2-til.mf.surf.net (filter2-til.mf.surf.net [194.171.167.218]) by balder.ntg.nl (Postfix) with ESMTP id 1F5A7101FC for ; Wed, 18 Feb 2015 07:03:55 +0100 (CET) Original-Received: from mail-ig0-x229.google.com (mail-ig0-x229.google.com [IPv6:2607:f8b0:4001:c05::229]) by filter2-til.mf.surf.net (8.14.3/8.14.3/Debian-9.4) with ESMTP id t1I63mLN001225 (version=TLSv1/SSLv3 cipher=RC4-SHA bits=128 verify=NOT) for ; Wed, 18 Feb 2015 07:03:54 +0100 Original-Received: by mail-ig0-f169.google.com with SMTP id hl2so49075788igb.0 for ; Tue, 17 Feb 2015 22:03:47 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:from:date:message-id:subject:to:content-type; bh=qv+2hndyGzmFGWl/h3mTkIvG+9h5dDZ5MIF9y2WD7gQ=; b=GQek4AU5/+HzXzKgHmQ+SsGjZNU9HL1zP3EyCNrDq4Hfdb51Cfb1nuB4kKrvmhBBNX namwm0b9SNqe8qhKjtL8Wb1YujFScJ9XkVPSX4MjMk1ziaIWKhPbdkXln/sKuXA/UPOR kp1aAHX4P7by7dZJBbjbtZnZcsqIwGs6B/Yn5TtwkJlxRySGJw1e4eaganzNn76qg/8T wPmOTZ84DB9FYbswhSaVd+S/xNE3+C+8rqBA2SlptJmSUisRciO+59EM7lNFpMkAPulC SyzihHgjh0zA3CrudPHgh1+yjCxib6jRkQP4f4wt5ZAyGQu1CdN8IZaI6XYZH+7/7x/g Nyqw== X-Received: by 10.42.60.15 with SMTP id o15mr6821848ich.89.1424239427261; Tue, 17 Feb 2015 22:03:47 -0800 (PST) Original-Received: by 10.36.117.213 with HTTP; Tue, 17 Feb 2015 22:03:27 -0800 (PST) X-Bayes-Prob: 0.0001 (Score 0, tokens from: ntg-context@ntg.nl, base:default, @@RPTN) X-CanIt-Geo: ip=2607:f8b0:4001:c05::229; country=US; latitude=38.0000; longitude=-97.0000; http://maps.google.com/maps?q=38.0000,-97.0000&z=6 X-CanItPRO-Stream: uu:ntg-context@ntg.nl (inherits from uu:default, base:default) X-Canit-Stats-ID: 0TNRG3Nro - a6930c60a6dd - 20150218 (trained as not-spam) Received-SPF: pass (filter2-til.mf.surf.net: domain of christoph.reller@gmail.com designates 2607:f8b0:4001:c05::229 as permitted sender) receiver=filter2-til.mf.surf.net; client-ip=2607:f8b0:4001:c05::229; envelope-from=; helo=mail-ig0-x229.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:90275 Archived-At: --===============0286303855== Content-Type: multipart/alternative; boundary=90e6ba309afc231ab1050f569567 --90e6ba309afc231ab1050f569567 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: quoted-printable On Tue, Feb 17, 2015 at 16:30:13 +0100, Wolfgang Schuster < schuster.wolfgang@gmail.com> wrote: > > Am 17.02.2015 um 16:04 schrieb Christoph Reller < > christoph.reller@gmail.com>: > > How do I escape to TeX from inside an inline typing command? It works > fine from a typing environment. > > The \type command doesn=E2=80=99t support a escape function but it can be= added an > additional line in the code (buff-ver.miv): > > \def\buff_verbatim_type_normal#1% > {\buff_verbatim_initialize_type_two > \dostarttaggedchained\t!verbatim\currenttype\??type > \ctxcommand{typestring{ > data =3D \!!bs\detokenize{#1}\!!es, > tab =3D "\typeparameter\c!tab", > method =3D "\typeparameter\c!option", > + escape =3D \!!bs\typeparameter\c!escape\!!es, > nature =3D "inline", > compact =3D "\typeparameter\c!compact", % none | all | last (all nee= ded > in tabulate etc for manuals) > }}% > \dostoptagged > \buff_verbatim_right_of_type > \egroup} > > To enable the function add =E2=80=9Eescape=3Dyes=E2=80=9D (or your own de= limiters) to > \definetype. > > Wolfgang > Thanks a lot, Wolfgang! Dear Hans, Can you please add the above patch, or is there a particular reason for not doing so? Kind regards, Christoph --90e6ba309afc231ab1050f569567 Content-Type: text/html; charset=UTF-8 Content-Transfer-Encoding: quoted-printable
On T= ue, Feb 17, 2015 at=C2=A016:30:13 +0100,=C2=A0Wolfgang Schuster <schuster.wolfgang@gmail.com>= =C2=A0wrote:
> Am 17.02.2015 um 16:04 schrieb Christ= oph Reller <christoph.rell= er@gmail.com>:
> How do I escape to TeX from inside an inline = typing command? It works fine from a typing environment.

The \type command doesn=E2=80=99t support a escape function but it can be a= dded an additional line in the code (buff-ver.miv):

\def\buff_verbatim_type_normal#1%
=C2=A0 {\buff_verbatim_initialize_type_two
=C2=A0 =C2=A0\dostarttaggedchained\t!verbatim\currenttype\??type
=C2=A0 =C2=A0\ctxcommand{typestring{
=C2=A0 =C2=A0 =C2=A0data=C2=A0 =C2=A0 =3D \!!bs\detokenize{#1}\!!es,
=C2=A0 =C2=A0 =C2=A0tab=C2=A0 =C2=A0 =C2=A0=3D "\typeparameter\c!tab&q= uot;,
=C2=A0 =C2=A0 =C2=A0method=C2=A0 =3D "\typeparameter\c!option", +=C2=A0 =C2=A0 escape=C2=A0 =3D \!!bs\typeparameter\c!escape\!!es,
=C2=A0 =C2=A0 =C2=A0nature=C2=A0 =3D "inline",
=C2=A0 =C2=A0 =C2=A0compact =3D "\typeparameter\c!compact", % non= e | all | last (all needed in tabulate etc for manuals)
=C2=A0 =C2=A0 }}%
=C2=A0 =C2=A0\dostoptagged
=C2=A0 =C2=A0\buff_verbatim_right_of_type
=C2=A0 =C2=A0\egroup}

To enable the function add =E2=80=9Eescape=3Dyes=E2=80=9D (or your own deli= miters) to \definetype.

Wolfgang

Thanks a lot, Wolfgang!
<= div>
Dear Hans,

Can you please add t= he above patch, or is there a particular reason for not doing so?

Kind regards,

Christoph=C2=A0
--90e6ba309afc231ab1050f569567-- --===============0286303855== 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= --===============0286303855==--