From mboxrd@z Thu Jan 1 00:00:00 1970 X-Spam-Checker-Version: SpamAssassin 3.4.4 (2020-01-24) on inbox.vuxu.org X-Spam-Level: X-Spam-Status: No, score=-0.7 required=5.0 tests=DKIM_INVALID,DKIM_SIGNED, HTML_MESSAGE,MAILING_LIST_MULTI,T_SCC_BODY_TEXT_LINE,URIBL_SBL_A autolearn=ham autolearn_force=no version=3.4.4 Received: (qmail 30373 invoked from network); 19 May 2023 12:23:16 -0000 Received: from zapf.ntg.nl (5.39.185.232) by inbox.vuxu.org with ESMTPUTF8; 19 May 2023 12:23:16 -0000 Received: from localhost (localhost [127.0.0.1]) by zapf.ntg.nl (Postfix) with ESMTP id B4BAC1C3466; Fri, 19 May 2023 14:22:50 +0200 (CEST) X-Virus-Scanned: Debian amavisd-new at zapf.ntg.nl 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 e1P0ZiOfis2e; Fri, 19 May 2023 14:22:48 +0200 (CEST) Received: from zapf.ntg.nl (localhost [127.0.0.1]) by zapf.ntg.nl (Postfix) with ESMTP id BA1D4803; Fri, 19 May 2023 14:22:48 +0200 (CEST) Received: from localhost (localhost [127.0.0.1]) by zapf.ntg.nl (Postfix) with ESMTP id 3A137803 for ; Fri, 19 May 2023 14:22:47 +0200 (CEST) X-Virus-Scanned: Debian amavisd-new at zapf.ntg.nl 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 xhGo2uOZMWng for ; Fri, 19 May 2023 14:22:45 +0200 (CEST) Received-SPF: Pass (mailfrom) identity=mailfrom; client-ip=209.85.210.181; helo=mail-pf1-f181.google.com; envelope-from=contextntg@gmail.com; receiver= Received: from mail-pf1-f181.google.com (mail-pf1-f181.google.com [209.85.210.181]) (using TLSv1.3 with cipher TLS_AES_128_GCM_SHA256 (128/128 bits) key-exchange X25519 server-signature RSA-PSS (2048 bits) server-digest SHA256) (No client certificate requested) by zapf.ntg.nl (Postfix) with ESMTPS id 82DBD2F7 for ; Fri, 19 May 2023 14:22:45 +0200 (CEST) Received: by mail-pf1-f181.google.com with SMTP id d2e1a72fcca58-64ab2a37812so555448b3a.1 for ; Fri, 19 May 2023 05:22:45 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20221208; t=1684498963; x=1687090963; h=to:subject:message-id:date:from:mime-version:from:to:cc:subject :date:message-id:reply-to; bh=MntWajj/OxDpyWcl+mCd+KikFrbTKdumLOIMO39E7Cs=; b=Rgko7dHCIvJ6gGOGkehw7TRpBioQJS+2wj3EPDwUO8pswgzDlKPY9MijdqGdIR4e/g SR7teHFId6DsleqjjGoIvLuubh/a7g8DN5YyDUtzOcdm55EkT5n/pgTZZp2u999w3Tgw MG7JCfUY5BCLG3wMPdhKsY42tCq2LwZAbeDV4VD/9KgHo/hEZeoTMs1hdWRBpSIGO4Gg PemaUPztEzQX551HSDBXedClvZGX7oS7zSa+U/VsI/Nv3yQa6ULqpHREJSyaNuDRz86H RqlnDFP0asRX2hci4UWTzeo+xoFMF9YmWtHBqwG6wnJREREk11MDtU+U0ZVkm8MDIQ3p yljA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20221208; t=1684498963; x=1687090963; h=to:subject:message-id:date:from:mime-version:x-gm-message-state :from:to:cc:subject:date:message-id:reply-to; bh=MntWajj/OxDpyWcl+mCd+KikFrbTKdumLOIMO39E7Cs=; b=khWIq9w8Evszb+TNob7rexP7R4VFbyEJlSNwCBJl0c9B+K0L+eG5nAHobrWWghcYZC qmRK4ANmr5dMlcF+roGNB/9w3Q+iIlF8s0g5JMz/+hQU6okgz5FmZ+YLw6Q9R5fhuJUW /+06gQwe0/rkQIlmaUC4Q8lPddKPBSIS+qfdGqcTfresEPnlQxxzR0YR5VcKh9mACUTX viPh5b352dcAp6BhqBXzXIa/9bjn8FTaIVD0lMweSWF/3akB1qplw8pNRDBsuItrRpcs jZ30tOWMJDafTxZKA/BMWQf+P9wzEh2TCNq9+DmsGRsDprvJiPQhUe5DYuSd9S2xgzvR yhxQ== X-Gm-Message-State: AC+VfDzkaUE7hrRaGeglwtMyPYulqoXTrEFZqWT3UbdUsIKDYPhq6iiz G5FAnEFFJccHq5xNA0YbfA55F6g602F3LoljIlkWzPvFJNipaWZVa80= X-Google-Smtp-Source: ACHHUZ5ZQNmdt7vBHiuztmx+h6FONdZmyz2sRbZURyiRklMXIR2eR3wzyvnFCXN1+jwt6od30Xy/Czh0Znyfr4REUXM= X-Received: by 2002:a17:902:d50f:b0:1ae:10a5:8349 with SMTP id b15-20020a170902d50f00b001ae10a58349mr3150276plg.23.1684498962998; Fri, 19 May 2023 05:22:42 -0700 (PDT) MIME-Version: 1.0 Date: Fri, 19 May 2023 13:22:31 +0100 Message-ID: To: ntg-context@ntg.nl Subject: [NTG-context] Inline framed verbatim text X-BeenThere: ntg-context@ntg.nl X-Mailman-Version: 2.1.38 Precedence: list List-Id: mailing list for ConTeXt users List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , From: Jeroen via ntg-context Reply-To: mailing list for ConTeXt users Cc: Jeroen Content-Type: multipart/mixed; boundary="===============4983681406260881463==" Errors-To: ntg-context-bounces@ntg.nl Sender: "ntg-context" --===============4983681406260881463== Content-Type: multipart/alternative; boundary="000000000000506a5105fc0afaf1" --000000000000506a5105fc0afaf1 Content-Type: text/plain; charset="UTF-8" In order to get some inline framed verbatim text, I have in the past always used the following: \starttext This is an \inframed [frame=on, corner=00, radius=2mm,offset=-1.5pt] {\ttx \bf example} \stoptext Since this has come-up more and more often, I created the following: \define[1]\infr{ \inframed [frame=on, corner=00, radius=2mm,offset=-1.5pt]{#1}} \starttext This is an \infr{example} \stoptext This works fine except that I cannot get the text in verbatim/teletype. I have tried style=mono and style={\ttx \bf} but nothing seems to work. Thanks Jeroen --000000000000506a5105fc0afaf1 Content-Type: text/html; charset="UTF-8" Content-Transfer-Encoding: quoted-printable
In order to get some inline framed verbatim text, I have i= n the past always used the following:

\starttext

= This is an
\inframed
=C2=A0 [frame=3Don,
=C2=A0 corner=3D00,
= =C2=A0 radius=3D2mm,offset=3D-1.5pt]
=C2=A0 {\ttx \bf example}

\s= toptext

Since this has come-up more and more o= ften, I created the following:

\define[1]\infr{\inframed
=C2=A0 [frame=3Don,
=C2=A0 corner=3D00,
=C2=A0 radius= =3D2mm,offset=3D-1.5pt]{#1}}

\starttext

This is an \infr{exam= ple}

\stoptext

This works fine except t= hat I cannot get the text in verbatim/teletype. I have tried style=3Dmono a= nd style=3D{\ttx \bf} but nothing seems to work.

T= hanks
Jeroen
--000000000000506a5105fc0afaf1-- --===============4983681406260881463== Content-Type: text/plain; charset="us-ascii" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit Content-Disposition: inline ___________________________________________________________________________________ If your question is of interest to others as well, please add an entry to the Wiki! maillist : ntg-context@ntg.nl / https://www.ntg.nl/mailman/listinfo/ntg-context webpage : https://www.pragma-ade.nl / http://context.aanhet.net archive : https://bitbucket.org/phg/context-mirror/commits/ wiki : https://contextgarden.net ___________________________________________________________________________________ --===============4983681406260881463==--