From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.io/gmane.comp.tex.context/78289 Path: news.gmane.org!not-for-mail From: Otared Kavian Newsgroups: gmane.comp.tex.context Subject: Re: Display math characters Date: Fri, 14 Sep 2012 21:52:07 +0200 Message-ID: <9E22429A-852A-4BEF-A73A-6C64EE8E901B@gmail.com> References: Reply-To: mailing list for ConTeXt users NNTP-Posting-Host: plane.gmane.org Mime-Version: 1.0 (Mac OS X Mail 6.0 \(1486\)) Content-Type: multipart/mixed; boundary="===============0438675139==" X-Trace: ger.gmane.org 1347652340 15253 80.91.229.3 (14 Sep 2012 19:52:20 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Fri, 14 Sep 2012 19:52:20 +0000 (UTC) To: mailing list for ConTeXt users Original-X-From: ntg-context-bounces@ntg.nl Fri Sep 14 21:52:22 2012 Return-path: Envelope-to: gctc-ntg-context-518@m.gmane.org Original-Received: from balder.ntg.nl ([195.12.62.10]) by plane.gmane.org with esmtp (Exim 4.69) (envelope-from ) id 1TCbw6-0005kn-2p for gctc-ntg-context-518@m.gmane.org; Fri, 14 Sep 2012 21:52:22 +0200 Original-Received: from localhost (localhost [127.0.0.1]) by balder.ntg.nl (Postfix) with ESMTP id C5C8A10203; Fri, 14 Sep 2012 21:52:17 +0200 (CEST) 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 0BO-N+N00k9N; Fri, 14 Sep 2012 21:52:15 +0200 (CEST) Original-Received: from balder.ntg.nl (localhost [IPv6:::1]) by balder.ntg.nl (Postfix) with ESMTP id 15B5F101F8; Fri, 14 Sep 2012 21:52:15 +0200 (CEST) Original-Received: from localhost (localhost [127.0.0.1]) by balder.ntg.nl (Postfix) with ESMTP id 9A318101F8 for ; Fri, 14 Sep 2012 21:52:13 +0200 (CEST) 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 cPExboSwn99y for ; Fri, 14 Sep 2012 21:52:11 +0200 (CEST) Original-Received: from filter2-ams.mf.surf.net (filter2-ams.mf.surf.net [192.87.102.70]) by balder.ntg.nl (Postfix) with ESMTP id AAC2C101F6 for ; Fri, 14 Sep 2012 21:52:11 +0200 (CEST) Original-Received: from mail-we0-f169.google.com (mail-we0-f169.google.com [74.125.82.169]) by filter2-ams.mf.surf.net (8.14.3/8.14.3/Debian-9.4) with ESMTP id q8EJq8U3031725 for ; Fri, 14 Sep 2012 21:52:08 +0200 Original-Received: by weys10 with SMTP id s10so3162060wey.14 for ; Fri, 14 Sep 2012 12:52:07 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=from:content-type:message-id:mime-version:subject:date:references :to:in-reply-to:x-mailer; bh=/KzC6l4l08NdfJ1Wf2njB409eLaO7KdsBFooie5QD1c=; b=J6qbSSq06oRg3PYx+Zf27gSdMyl9G65WAQuX54q8shIQILbwjdh7K4kqxtdcsrA0wH arpGOPk0XcAH1mkW3Xddu/xg1zL8zCnbRj8t9y92qiHK4ty1U3bPRmYtHBzw9bubWvmU 02fdMEHbDkCUA3dgu60lurLG7GdO/bEuzec+HbGmRtifRnyoB67yOcTDMNHmi2w3xvoX o327kMvDbfnZIQ5hL2tAMwREKTzU5S1UCxz3CKXNtf9yM0YwBPxwHVGPv6pHgG4ZGeE1 Uf5bMxEpIPAoBnPE6LeyACUIBBOVrL6LmDsYqU2hAk8Js4pQ9GtukbR0UlZjSPhGJXpy Izbw== Original-Received: by 10.216.131.22 with SMTP id l22mr1902730wei.96.1347652327091; Fri, 14 Sep 2012 12:52:07 -0700 (PDT) Original-Received: from lmv-uvsq-102.home (AOrleans-553-1-70-194.w92-152.abo.wanadoo.fr. [92.152.84.194]) by mx.google.com with ESMTPS id fr4sm639974wib.8.2012.09.14.12.52.03 (version=TLSv1/SSLv3 cipher=OTHER); Fri, 14 Sep 2012 12:52:05 -0700 (PDT) In-Reply-To: X-Mailer: Apple Mail (2.1486) X-Bayes-Prob: 0.0001 (Score 0, tokens from: @@RPTN) X-CanIt-Geo: ip=74.125.82.169; country=US; region=CA; city=Mountain View; postalcode=94043; latitude=37.4192; longitude=-122.0574; metrocode=807; areacode=650; http://maps.google.com/maps?q=37.4192,-122.0574&z=6 X-CanItPRO-Stream: uu:ntg-context@ntg.nl (inherits from uu:default, base:default) X-Canit-Stats-ID: 0QHX7Q8zR - 0e1a05842f12 - 20120914 (trained as not-spam) X-Scanned-By: CanIt (www . roaringpenguin . com) on 192.87.102.70 X-BeenThere: ntg-context@ntg.nl X-Mailman-Version: 2.1.14 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-bounces@ntg.nl Xref: news.gmane.org gmane.comp.tex.context:78289 Archived-At: --===============0438675139== Content-Type: multipart/alternative; boundary="Apple-Mail=_7B73BFFA-D55D-4550-BAEF-25970EBA0147" --Apple-Mail=_7B73BFFA-D55D-4550-BAEF-25970EBA0147 Content-Transfer-Encoding: quoted-printable Content-Type: text/plain; charset=windows-1252 Hi Pol, You can use the following: %% begin show-math.tex \doifmode{mkiv}{\usemodule[s][mat-11]} \starttext \doifmodeelse{mkiv}{\showmathfontcharacters}{\showmathcharacters} \stoptext %% end show-math.tex However in mkiv the presentation of math fonts is not the same as in = mkii. I don't know how to get the mkii presentation of the math fonts in mkiv=85= Best regards: OK On 14 sept. 2012, at 16:45, pol stra wrote: > Hello, >=20 > from the wiki = (http://wiki.contextgarden.net/Math/basic#List_of_All_Math_macros) I = tryed the following snippet: > \usemodule[fnt-25] > \showmathfontcharacters >=20 > But context complains that there is no fnt-25 module, so let=92s grep = showmathfontcharacters in conteXt directory. > I found that it is defined into the mat-10 module. So new snippet: > \usemodule[mat-10] > \showmathfontcharacters >=20 > End new error: >=20 > ConTeXt ver: 2012.09.11 20:36 MKIV fmt: 2012.9.12 int: = english/english >=20 > system > cont-new.mkiv loaded > (/opt/context-minimals/texmf-context/tex/context/base/cont-new.mkiv > system > beware: some patches loaded from cont-new.mkiv > ) > fonts > latin modern fonts are not preloaded > languages > language en is active > (mathsymbols.tex > resolvers > modules > loaded: 'mat-10' > (/opt/context-minimals/texmf-context/tex/context/base/s-mat-10.mkiv)) > fonts > defining > font with asked name 'unknown' is not = found using lookup 'file' > fonts > defining > unknown font unknown, loading aborted > fonts > defining > unable to define unknown as = [thedefinedfont--0] > ! LuaTeX error
:22: attempt to index local = 'resources' (a nil value) > stack traceback: >
:22: in function 'showmathfont' >
:1: in main chunk. >=20 > system > tex > error on line 5 in file = /opt/context-minimals/texmf-context/tex/context/base/cont-yes.mkiv: = LuaTeX error ... >=20 > 1 %D \module > 2 %D [ file=3Dcont-yes, > 3 %D version=3D2012.06.01, > 4 %D title=3D\CONTEXT\ Miscellaneous Macros, > 5 >> %D subtitle=3DStartup Stub, > 6 %D author=3DHans Hagen, > 7 %D date=3D\currentdate, > 8 %D copyright=3D{PRAGMA ADE \& \CONTEXT\ Development Team}] > 9 %C > 10 %C This module is part of the \CONTEXT\ macro||package and is > 11 %C therefore copyrighted by \PRAGMA. See mreadme.pdf for > 12 %C details. > 13 =20 > 14 % At some point I will reconsider the \starttext .. \stoptext > 15 % wraping as we can assume proper styling. It's a left-over = from >=20 > ...cument.showmathfont(font.current())} > =20 > \firstoftwoarguments #1#2->#1 > =20 > \doshowmathfontcharacters ...wmathfontcharacters } > \endgroup=20 > =20 > \finishjob=20 > l.5 \finishjob > =20 > } context.finishjob() > =20 > ... > l.86 \stopluacode >=20 >=20 > I do not realy care about this list, I was just currious and it did = not work so I point it out. > = __________________________________________________________________________= _________ > If your question is of interest to others as well, please add an entry = to the Wiki! >=20 > maillist : ntg-context@ntg.nl / = http://www.ntg.nl/mailman/listinfo/ntg-context > webpage : http://www.pragma-ade.nl / http://tex.aanhet.net > archive : http://foundry.supelec.fr/projects/contextrev/ > wiki : http://contextgarden.net > = __________________________________________________________________________= _________ --Apple-Mail=_7B73BFFA-D55D-4550-BAEF-25970EBA0147 Content-Transfer-Encoding: quoted-printable Content-Type: text/html; charset=windows-1252 Hi Pol,

You = can use the following:

%% begin = show-math.tex
\doifmode{mkiv}{\usemodule[s][mat-11]}
<= div>\starttext
\doifmodeelse{mkiv}{\showmathfontcharacters}{\sho= wmathcharacters}
\stoptext
%% end = show-math.tex

However in mkiv the presentation = of math fonts is not the same as in mkii.
I don't know how to = get the mkii presentation of the math fonts in = mkiv=85

Best regards: = OK

On 14 sept. 2012, at 16:45, pol stra = <ryzz@hotmail.fr> = wrote:

Hello,

from the wiki (= http://wiki.contextgarden.net/Math/basic#List_of_All_Math_macros) I = tryed the following = snippet:
\usemodule[fnt-25]
\showmathfontcharacters

But = context complains that there is no fnt-25 module, so let=92s grep = showmathfontcharacters in conteXt directory.
I found that it is = defined into the mat-10 module. So new = snippet:
\usemodule[mat-10]
\showmathfontcharacters

End new = error:

ConTeXt  ver: 2012.09.11 20:36 MKIV  fmt: = 2012.9.12  int: = english/english

system       &nb= sp;  > cont-new.mkiv = loaded
(/opt/context-minimals/texmf-context/tex/context/base/cont-new.m= kiv
system          > = beware: some patches loaded from = cont-new.mkiv
)
fonts        = ;   > latin modern fonts are not = preloaded
languages       > language = en is = active
(mathsymbols.tex
resolvers      = ; > modules > loaded: = 'mat-10'
(/opt/context-minimals/texmf-context/tex/context/base/s-mat-10= .mkiv))
fonts         &nbs= p; > defining > font with asked name 'unknown' is not found using = lookup = 'file'
fonts          = ; > defining > unknown font unknown, loading = aborted
fonts         &nbs= p; > defining > unable to define unknown as = [thedefinedfont--0]
! LuaTeX error <main ctx instance>:22: = attempt to index local 'resources' (a nil value)
stack = traceback:
        <main ctx = instance>:22: in function = 'showmathfont'
        <main = ctx instance>:1: in main = chunk.

system         = > tex > error on line 5 in file = /opt/context-minimals/texmf-context/tex/context/base/cont-yes.mkiv: = LuaTeX error  ...

 1     %D = \module
 2     %D   = [       = file=3Dcont-yes,
 3     = %D        = version=3D2012.06.01,
 4     = %D          title=3D\CONTEXT\= Miscellaneous Macros,
 5 >>  = %D       subtitle=3DStartup = Stub,
 6     = %D         author=3DHans = Hagen,
 7     = %D           = date=3D\currentdate,
 8     = %D      copyright=3D{PRAGMA ADE \& = \CONTEXT\ Development Team}]
 9     = %C
10     %C This module is part of the \CONTEXT\ = macro||package and is
11     %C therefore = copyrighted by \PRAGMA. See mreadme.pdf = for
12     %C = details.
13     
14    = ; % At some point I will reconsider the \starttext .. = \stoptext
15     % wraping as we can assume = proper styling. It's a left-over from

<argument> = ...cument.showmathfont(font.current())}
     &= nbsp;           &nb= sp;            = ;            &= nbsp;       
\firstoftwoarguments = #1#2->#1
          = ;            &= nbsp;      
\doshowmathfontcharacters= ...wmathfontcharacters = }
           &nb= sp;            = ;            &= nbsp;           &nb= sp; \endgroup 
<to= be read again> 
    &= nbsp;           &nb= sp;  \finishjob 
l.5 = \finishjob
          =     
}   = context.finishjob()
        &nb= sp;            = ;            &= nbsp;           &nb= sp;    
...
l.86 = \stopluacode


I do not realy care about this list, I was just = currious and it did not work so I point it = out.
____________________________________________________________= _______________________
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 =  : http://foundry.sup= elec.fr/projects/contextrev/
wiki     : http://contextgarden.net
________= __________________________________________________________________________= _

= --Apple-Mail=_7B73BFFA-D55D-4550-BAEF-25970EBA0147-- --===============0438675139== 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 / http://www.ntg.nl/mailman/listinfo/ntg-context webpage : http://www.pragma-ade.nl / http://tex.aanhet.net archive : http://foundry.supelec.fr/projects/contextrev/ wiki : http://contextgarden.net ___________________________________________________________________________________ --===============0438675139==--