From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.io/gmane.comp.tex.context/46526 Path: news.gmane.org!not-for-mail From: Aditya Mahajan Newsgroups: gmane.comp.tex.context Subject: Re: Using dsrom with MKIV Date: Wed, 24 Dec 2008 15:27:29 -0500 (EST) Message-ID: References: <49528C97.2010404@wxs.nl> Reply-To: mailing list for ConTeXt users NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset="us-ascii"; Format="flowed" Content-Transfer-Encoding: 7bit X-Trace: ger.gmane.org 1230150655 22341 80.91.229.12 (24 Dec 2008 20:30:55 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Wed, 24 Dec 2008 20:30:55 +0000 (UTC) To: mailing list for ConTeXt users Original-X-From: ntg-context-bounces@ntg.nl Wed Dec 24 21:32:00 2008 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 lo.gmane.org with esmtp (Exim 4.50) id 1LFaOd-0004g9-Hs for gctc-ntg-context-518@m.gmane.org; Wed, 24 Dec 2008 21:31:59 +0100 Original-Received: from localhost (localhost [127.0.0.1]) by ronja.ntg.nl (Postfix) with ESMTP id D89C01FDCD; Wed, 24 Dec 2008 21:30:44 +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 13698-08-17; Wed, 24 Dec 2008 21:29:20 +0100 (CET) Original-Received: from ronja.vet.uu.nl (localhost [127.0.0.1]) by ronja.ntg.nl (Postfix) with ESMTP id 2A6AB1FC1B; Wed, 24 Dec 2008 21:29:20 +0100 (CET) Original-Received: from localhost (localhost [127.0.0.1]) by ronja.ntg.nl (Postfix) with ESMTP id B7AC01FC1B for ; Wed, 24 Dec 2008 21:29:16 +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 13785-06-7 for ; Wed, 24 Dec 2008 21:28:34 +0100 (CET) Original-Received: from hackers.mr.itd.umich.edu (smtp.mail.umich.edu [141.211.14.81]) by ronja.ntg.nl (Postfix) with ESMTP id D2EAE1FBF1 for ; Wed, 24 Dec 2008 21:28:21 +0100 (CET) Original-Received: FROM [192.168.2.8] (c-71-234-195-113.hsd1.ct.comcast.net [71.234.195.113]) BY hackers.mr.itd.umich.edu ID 49529B64.83EE8.1059 ; 24 Dec 2008 15:28:20 -0500 In-Reply-To: <49528C97.2010404@wxs.nl> User-Agent: Alpine 2.00 (LNX 1167 2008-08-23) X-Virus-Scanned: amavisd-new at ntg.nl X-BeenThere: ntg-context@ntg.nl X-Mailman-Version: 2.1.11 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:46526 Archived-At: On Wed, 24 Dec 2008, Hans Hagen wrote: > Aditya Mahajan wrote: >> Hi, >> >> The dsrom math font only works partially with MKIV, and I do not understand >> what is happening. Consider the following example from >> http://wiki.contextgarden.net/Doublestroke (which I wrote, after >> suggestions on the mailing list). One needs the fonts, which are part of TL >> and are also available at http://ctan.org/tex-archive/fonts/doublestroke/ >> >> %======================================================================= >> \loadmapfile[dstroke.map] >> >> \starttypescript [math] [modern,computer-modern,latin-modern,ams] [size] >> \definebodyfont [17.3pt,14.4pt,12pt][mm] >> [mb=dsrom12 sa 1] >> \definebodyfont [11pt,10pt,9pt] [mm] >> [mb=dsrom10 sa 1] >> \definebodyfont [8pt,7pt,6pt,5pt,4pt] [mm] >> [mb=dsrom8 sa 1] >> \stoptypescript >> >> \definetypeface [modern] [mm] [math] [modern] [ams] [encoding=texnansi] >> \setupbodyfont[reset,modern,10pt] >> >> \definefamilysynonym [default] [doublestroke] [mb] >> >> \def\dstroke {\fam\purefamily {doublestroke}} >> >> \def\doublestroke#1{{\dstroke#1}} >> >> \starttext >> $\doublestroke{E} \doublestroke{1}$ >> \stoptext >> %======================================================================= >> >> >> This works correctly in MKII (Both E and 1 are shown in dsrom font). >> However, in MKIV the 1 is shown in LM Roman rather than dsrom. >> >> Is this a bug in context font handling, or a bug in the typescript? >> >> I am using: context version: 2008.12.01 10:25 >> This is LuaTeX, Version snapshot-0.30.3-2008112812 > > \def\doublestroke#1{{\fam\mbfam#1}} Thanks. I never understood why one needed to define such things using familysynonyms. The above defintition makes more sense. I will clean up the wiki examples for using other fonts. > \starttext > $\doublestroke{E} \doublestroke{1}$ > \stoptext > > indeed does not give a dstroked 1 ... i wonder why; maybe something with the > mathcodes But why does it work if I replace mc by mr (as Wolfgang showed). Also, how can I check the mathcode of a character, other than going through the sources and figuring out where it is set. Aditya ___________________________________________________________________________________ If your question is of interest to others as well, please add an entry to the Wiki! maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-context webpage : http://www.pragma-ade.nl / http://tex.aanhet.net archive : https://foundry.supelec.fr/projects/contextrev/ wiki : http://contextgarden.net ___________________________________________________________________________________