From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.io/gmane.comp.tex.context/34114 Path: news.gmane.org!not-for-mail From: Johannes Kuester Newsgroups: gmane.comp.tex.context Subject: math: \usemathcollection and \enablemathcollection Date: Wed, 04 Apr 2007 12:35:06 +0200 Organization: http://www.typoma.com Message-ID: <46137F5A.40002@typoma.com> Reply-To: mailing list for ConTeXt users NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit X-Trace: sea.gmane.org 1175682934 13847 80.91.229.12 (4 Apr 2007 10:35:34 GMT) X-Complaints-To: usenet@sea.gmane.org NNTP-Posting-Date: Wed, 4 Apr 2007 10:35:34 +0000 (UTC) To: ntg-context@ntg.nl Original-X-From: ntg-context-bounces@ntg.nl Wed Apr 04 12:35:25 2007 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 1HZ2pj-0006n2-FZ for gctc-ntg-context-518@m.gmane.org; Wed, 04 Apr 2007 12:35:19 +0200 Original-Received: from localhost (localhost [127.0.0.1]) by ronja.ntg.nl (Postfix) with ESMTP id 9C991201F8; Wed, 4 Apr 2007 12:35:18 +0200 (CEST) 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 15317-01; Wed, 4 Apr 2007 12:35:13 +0200 (CEST) Original-Received: from ronja.vet.uu.nl (localhost [127.0.0.1]) by ronja.ntg.nl (Postfix) with ESMTP id 03BC020114; Wed, 4 Apr 2007 12:35:13 +0200 (CEST) Original-Received: from localhost (localhost [127.0.0.1]) by ronja.ntg.nl (Postfix) with ESMTP id 7207720114 for ; Wed, 4 Apr 2007 12:35:11 +0200 (CEST) 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 14841-02 for ; Wed, 4 Apr 2007 12:35:09 +0200 (CEST) Original-Received: from moutng.kundenserver.de (moutng.kundenserver.de [212.227.126.186]) by ronja.ntg.nl (Postfix) with ESMTP id 1872A2003B for ; Wed, 4 Apr 2007 12:35:09 +0200 (CEST) Original-Received: from [84.150.2.187] (helo=[192.168.0.6]) by mrelayeu.kundenserver.de (node=mrelayeu7) with ESMTP (Nemesis), id 0ML2xA-1HZ2pX3jpn-0007TN; Wed, 04 Apr 2007 12:35:08 +0200 User-Agent: Thunderbird 1.5.0.10 (X11/20060911) X-Provags-ID: V01U2FsdGVkX18mQ+kmVfneqYjmjBK8XizeUs5aaITRSaqbiTH HqHJL6x/IFVEj7LoCul3Jn+xmOaQA6xAPnK6OsOOXvqN6fUDJ+ YiiVwo90cuFL4JB17i1lA== X-Virus-Scanned: amavisd-new at ntg.nl X-BeenThere: ntg-context@ntg.nl X-Mailman-Version: 2.1.9 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:34114 Archived-At: I'm quite lost with \usemathcollection and \enablemathcollection -- I checked the manual, the wiki, and the source browser, but without success for my problems. I just don't get how math font switching works for e.g. Lucida fonts, and why it does not for my fonts in my setup. So: What is the correct use of \usemathcollection and \enablemathcollection i.e. where should these appear (and where not)? Do I need \enablemathcollection at all? In my current setup (see below), I have two problems: ---- Major problem: I would like to switch my math fonts globally. Currently I have to apply \enablemathcollection e.g. after every \startcolumns (and after other environments as well), otherwise my math fonts are used, but not in the desired encoding, which results in wrong symbols shown. ---- Minor problem: I would like make sure that all math symbols do come from my math fonts and aren't taken from CM or other fonts. Is this possible? E.g. could I get an error message (or some special black box or the like in my pdf file) for each math control sequence which is not (yet) defined in my current mathcollection? My current setup: -- an environment file "env-signa.tex" with (among many other definitions) \usetypescriptfile[type-opticals] \usetypescriptfile[type-minionpro] \usetypescriptfile[type-tymnmath] \usetypescript[MinionPro][ec] \setupbodyfont[MinionPro] \switchtobodyfont[MinionPro,9.6pt] -- a "type-minionpro.tex" file with \starttypescript [serif] [MinionProSizes] [ec] % (followed by many \definefontsynonym) \stoptypescript \starttypescript[MinionPro][ec] \usetypescript[serif][Opticals][size] \usetypescript[serif][MinionProSizes][ec] \usetypescript[newmath][MinionMath] %[size] \definebodyfontenvironment [9.6pt] [\s!text=9.6pt,\s!script=6.8pt,\s!scriptscript=4.9pt, \c!x=8.4pt,\c!xx=5.8pt,\c!big=11pt,\c!small=7.6pt] % further \definebodyfontenvironment entries \enablemathcollection[newmath] \usemathcollection[newmath] \quittypescriptscanning \stoptypescript -- a "math-newmath.tex" file with math font synonyms, definitions and some blocks like \startmathcollection[newmath] % (many \definemathsymbol entries) \stopmathcollection This is a general file for math fonts following "TeX NewMath" encodings (this should develop in a real ConTeXt module for general use) -- a "type-tymnmath.tex" file, setting up my math fonts, with \starttypescript[newmath][MinionMath] % (with % \definefontsynonym % and % \definebodyfont [9.6pt] [mm] % [ ... ] % entries) \stoptypescript -- and of courese a main file with \startproject project_signa \environment env_signa and components (chapter files) with \startcomponent kap_01 \project project_signa Thanks for any help! Johannes -- Johannes Kuester typoma mailto:jk@typoma.com http://www.typoma.com