From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.io/gmane.comp.tex.context/94419 Path: news.gmane.org!not-for-mail From: Nicola Newsgroups: gmane.comp.tex.context Subject: Re: Help with t-vim module and math Date: Wed, 13 Apr 2016 15:28:30 +0200 Message-ID: References: <570E3FFC.8050405@gmail.com> Reply-To: mailing list for ConTeXt users NNTP-Posting-Host: plane.gmane.org Mime-Version: 1.0 Content-Type: multipart/mixed; boundary="===============2794226898803240442==" X-Trace: ger.gmane.org 1460554168 22752 80.91.229.3 (13 Apr 2016 13:29:28 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Wed, 13 Apr 2016 13:29:28 +0000 (UTC) To: ntg-context@ntg.nl Original-X-From: ntg-context-bounces@ntg.nl Wed Apr 13 15:29:17 2016 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 plane.gmane.org with esmtp (Exim 4.69) (envelope-from ) id 1aqKr4-0003Kn-Au for gctc-ntg-context-518@m.gmane.org; Wed, 13 Apr 2016 15:29:14 +0200 Original-Received: from localhost (localhost [127.0.0.1]) by zapf.ntg.nl (Postfix) with ESMTP id 95C3FA412; Wed, 13 Apr 2016 15:28: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 3Uw2F4WIh_b3; Wed, 13 Apr 2016 15:28:55 +0200 (CEST) Original-Received: from zapf.ntg.nl (localhost [IPv6:::1]) by zapf.ntg.nl (Postfix) with ESMTP id D36A6A419; Wed, 13 Apr 2016 15:28:55 +0200 (CEST) Original-Received: from localhost (localhost [127.0.0.1]) by zapf.ntg.nl (Postfix) with ESMTP id D8834A419 for ; Wed, 13 Apr 2016 15:28:54 +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 bmm8q6dPGKJa for ; Wed, 13 Apr 2016 15:28:54 +0200 (CEST) Original-Received: from plane.gmane.org (plane.gmane.org [80.91.229.3]) (using TLSv1 with cipher AES256-SHA (256/256 bits)) (No client certificate requested) by zapf.ntg.nl (Postfix) with ESMTPS id 27ED5A412 for ; Wed, 13 Apr 2016 15:28:44 +0200 (CEST) Original-Received: from list by plane.gmane.org with local (Exim 4.69) (envelope-from ) id 1aqKqU-00033o-0N for ntg-context@ntg.nl; Wed, 13 Apr 2016 15:28:38 +0200 Original-Received: from 158.110.144.157 ([158.110.144.157]) by main.gmane.org with esmtp (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Wed, 13 Apr 2016 15:28:37 +0200 Original-Received: from nvitacolonna by 158.110.144.157 with local (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Wed, 13 Apr 2016 15:28:37 +0200 X-Injected-Via-Gmane: http://gmane.org/ Original-Lines: 93 Original-X-Complaints-To: usenet@ger.gmane.org X-Gmane-NNTP-Posting-Host: 158.110.144.157 User-Agent: Unison/2.2 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" X-Spam-Report: 5.8 points; * 2.6 RCVD_NUMERIC_HELO Received: contains an IP address used for HELO * 3.2 RCVD_ILLEGAL_IP Received: contains illegal IP address * 0.0 HTML_MESSAGE BODY: HTML included in message Xref: news.gmane.org gmane.comp.tex.context:94419 Archived-At: This is a multi-part message in MIME format. --===============2794226898803240442== Content-Type: multipart/alternative; boundary=--------------1421280581026480416 This is a multi-part message in MIME format. ----------------1421280581026480416 Content-Type: text/plain; charset=utf-8; format=flowed Content-Transfer-Encoding: quoted-printable On 2016-04-13 12:47:56 +0000, Wolfgang Schuster said: > Nicola 13. April 2016 um 14:17=20 > On 2016-04-13 11:53:51 +0000, Hans Hagen said:=20 >=20 >=20 > Thanks, that works. Unfortunately, DejaVu Sans Mono looks too heavy in=20 > my document:=20 > is there a light variant?=20 >=20 > Also, can't the fallback mechanism be used?=20 > Yes it can but you have to enable your custom typeface with=20 > \setupbodyfont which > wasn=E2=80=99t done in your example. You're right, but I have done it in my original document. Even with that, the fallback symbol does not show up: \usemodule[vim] \definefontfamily [slidesfont][mono][Latin Modern Mono Light] \definefallbackfamily[slidesfont][mono][DejaVu Sans Mono][range=3D{"0222A= }] \definevimtyping[pascal][syntax=3Dpascal] \setupbodyfont[slidesfont] \starttext \startpascal X :=3D Y =E2=88=AA Z; \stoppascal \stoptext Nicola ----------------1421280581026480416 Content-Type: text/html; charset=utf-8 Content-Transfer-Encoding: quoted-printable

On 2016-04-13 12:47:56 +0000, Wolfgang Schuster said:


Nicola 13. Ap= ril 2016 um 14:17=C2=A0

On 2016-04-13 11:53:51 +0000, Hans Hag= en said:=C2=A0



Thanks, that works. Unfortunately, Dej= aVu Sans Mono looks too heavy in my document:=C2=A0

is there a light variant?=C2=A0


Also, can't the fallback mechanism be = used?=C2=A0

Yes it can but you have to enable your= custom typeface with \setupbodyfont which

wasn=E2=80=99t done in your example.


You're right, but I have done it in my original document.=

Even with that, the fallback symbol does not show up:


\usemodule[vim]

\definefontfamily=C2= =A0 =C2=A0 [slidesfont][mono][Latin Modern Mono Light]

\definefallbackfamily[slidesfont][mono][DejaVu Sans Mono]= [range=3D{"0222A}]

\definevimtyping[pascal][syntax=3Dpascal]

\setupbodyfont[slidesfont]

\starttext

\startpascal

=C2=A0X :=3D= Y =E2=88=AA Z;

\stoppascal

\stoptext


Nicola

----------------1421280581026480416-- --===============2794226898803240442== 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= --===============2794226898803240442==--