From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.io/gmane.comp.tex.context/25019 Path: news.gmane.org!not-for-mail From: Willi Egger Newsgroups: gmane.comp.tex.context Subject: Re: Monospace Fonts for Verbatim Date: Sat, 07 Jan 2006 21:46:43 +0100 Message-ID: <43C028B3.3000803@boede.nl> References: <1C7A1FE7-90DC-4A1F-A2E6-31F6815A5EA8@louspringer.com> Reply-To: mailing list for ConTeXt users NNTP-Posting-Host: main.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit X-Trace: sea.gmane.org 1136667038 14728 80.91.229.2 (7 Jan 2006 20:50:38 GMT) X-Complaints-To: usenet@sea.gmane.org NNTP-Posting-Date: Sat, 7 Jan 2006 20:50:38 +0000 (UTC) Original-X-From: ntg-context-bounces@ntg.nl Sat Jan 07 21:50:35 2006 Return-path: Envelope-to: gctc-ntg-context-518@m.gmane.org Original-Received: from ronja.vet.uu.nl ([131.211.172.88] helo=ronja.ntg.nl) by ciao.gmane.org with esmtp (Exim 4.43) id 1EvL19-0006H5-4O for gctc-ntg-context-518@m.gmane.org; Sat, 07 Jan 2006 21:50:27 +0100 Original-Received: from localhost (localhost [127.0.0.1]) by ronja.ntg.nl (Postfix) with ESMTP id 8C471127EF; Sat, 7 Jan 2006 21:50:26 +0100 (CET) Original-Received: from ronja.ntg.nl ([127.0.0.1]) by localhost (smtp.ntg.nl [127.0.0.1]) (amavisd-new, port 10024) with LMTP id 19827-05; Sat, 7 Jan 2006 21:50:25 +0100 (CET) Original-Received: from ronja.vet.uu.nl (localhost [127.0.0.1]) by ronja.ntg.nl (Postfix) with ESMTP id A5ED4127B3; Sat, 7 Jan 2006 21:46:51 +0100 (CET) Original-Received: from localhost (localhost [127.0.0.1]) by ronja.ntg.nl (Postfix) with ESMTP id F1E60127B3 for ; Sat, 7 Jan 2006 21:46:49 +0100 (CET) Original-Received: from ronja.ntg.nl ([127.0.0.1]) by localhost (smtp.ntg.nl [127.0.0.1]) (amavisd-new, port 10024) with LMTP id 19827-03 for ; Sat, 7 Jan 2006 21:46:48 +0100 (CET) Original-Received: from smtp-vbr4.xs4all.nl (smtp-vbr4.xs4all.nl [194.109.24.24]) by ronja.ntg.nl (Postfix) with SMTP id DA64E12784 for ; Sat, 7 Jan 2006 21:46:48 +0100 (CET) Original-Received: from [192.168.0.193] (a80-126-172-1.adsl.xs4all.nl [80.126.172.1]) (authenticated bits=0) by smtp-vbr4.xs4all.nl (8.13.3/8.13.3) with ESMTP id k07Kkhnf074503 for ; Sat, 7 Jan 2006 21:46:48 +0100 (CET) (envelope-from w.egger@boede.nl) User-Agent: Mozilla Thunderbird 1.0.7 (Windows/20050923) X-Accept-Language: en-us, en Original-To: mailing list for ConTeXt users In-Reply-To: <1C7A1FE7-90DC-4A1F-A2E6-31F6815A5EA8@louspringer.com> X-Virus-Scanned: by XS4ALL Virus Scanner X-Virus-Scanned: amavisd-new at ntg.nl X-BeenThere: ntg-context@ntg.nl X-Mailman-Version: 2.1.5 Precedence: list List-Id: mailing list for ConTeXt users List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Original-Sender: ntg-context-bounces@ntg.nl Errors-To: ntg-context-bounces@ntg.nl X-Virus-Scanned: amavisd-new at ntg.nl Xref: news.gmane.org gmane.comp.tex.context:25019 Archived-At: Hi Louis, The solution is to be found in defining a typeface which points to the serif, sansserif, math and teletype fonts to be used. Asn an example: \starttypescript [palatino] [texnansi,ec,qx,8r,t5,uc] \definetypeface [palatino] [rm] [serif] [palatino] [default] [encoding=\typescripttwo] \definetypeface [palatino] [tt] [mono] [modern] [default] [encoding=\typescripttwo,rscale=1.075] \definetypeface [palatino] [mm] [math] [palatino] [default] [encoding=default] % \usemathcollection[default] \quittypescriptscanning \stoptypescript this is taken from type-exa.tex Willi Louis Springer wrote: > I have a typescript I am using for a custom font, but the custom font > has no monospace variant appropriate for verbatim text. I'm > attempting to use Courier or some other monospace font for verbatim > and maintain my custom font for normally typeset serf text. > > My broken typescript is as follows: > > \starttypescript [map][sunsans,sunserif][texnansi] > \loadmapfile[texnansi-sun-sunsans.map] > \loadmapfile[texnansi-sun-sunserif.map] > \stoptypescript > > % sans serif > \starttypescript [sans] [sunsans] [name] > \definefontsynonym[Sans] [SunSans-Regular] > \definefontsynonym[SansItalic] [SunSans-Italic] > \definefontsynonym[SansBold] [SunSans-RegularDemi] > \definefontsynonym[SansBoldItalic] [SunSans-Regular-BoldOblique] > \stoptypescript > > > \starttypescript [sans] [sunsans] [texnansi] > \usetypescript[sans][fallback] > \definefontsynonym[SunSans-Heavy][texnansi-SunSans-Heavy] > [encoding=texnansi] > \definefontsynonym[SunSans-Italic][texnansi-SunSans-Italic] > [encoding=texnansi] > \definefontsynonym[SunSans-Regular-Bold][texnansi-SunSans-Regular- > Bold][encoding=texnansi] > \definefontsynonym[SunSans-Regular-BoldOblique][texnansi-SunSans- > Regular-BoldOblique][encoding=texnansi] > \definefontsynonym[SunSans-Regular][texnansi-SunSans-Regular] > [encoding=texnansi] > \definefontsynonym[SunSans-RegularDemi][texnansi-SunSans-RegularDemi] > [encoding=texnansi] > \stoptypescript > > > %serif > \starttypescript [serif] [sunserif] [name] > \definefontsynonym[Serif] [SunSerif-Regular] > \definefontsynonym[SerifItalic] [SunSerif-Italic] > \definefontsynonym[SerifBold] [SunSerif-Regular-Bold] > \definefontsynonym[SerifBoldItalic] [SunSerif-Regular-Bold-Italic] > \stoptypescript > > > \starttypescript [serif] [sunserif] [texnansi] > \usetypescript[serif][fallback] > \definefontsynonym[SunSerif-Italic][texnansi-SunSerif-Italic] > [encoding=texnansi] > \definefontsynonym[SunSerif-Regular-Bold-Italic][texnansi-SunSerif- > Regular-Bold-Italic][encoding=texnansi] > \definefontsynonym[SunSerif-Regular-Bold][texnansi-SunSerif-Regular- > Bold][encoding=texnansi] > \definefontsynonym[SunSerif-Regular][texnansi-SunSerif-Regular] > [encoding=texnansi] > \stoptypescript > > %monospace > \starttypescript [mono] [sunserif] [name] > \usetypescript[mono][fallback] > \definefontsynonym[Serif] [Mono] > \stoptypescript > > > The last bit (around the comment "monospace") is my apparently futile > attempt to get the verbatim to use the default monospace font. I get > the desired results with a kludge if I replace > > \definefontsynonym[Serif] [SunSerif-Regular] > > with > > \definefontsynonym[Serif] [Mono] > > but this affects "normally" typeset serif. Ideally, I would like to > have in the SunSerif-Regular typeface for non-verbatim serif text. > > > Lou > > > > _______________________________________________ > ntg-context mailing list > ntg-context@ntg.nl > http://www.ntg.nl/mailman/listinfo/ntg-context