From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.io/gmane.comp.tex.context/54311 Path: news.gmane.org!not-for-mail From: Oliver Buerschaper Newsgroups: gmane.comp.tex.context Subject: MetaPost integration: default parameters Date: Fri, 13 Nov 2009 17:53:40 +0100 Message-ID: Reply-To: mailing list for ConTeXt users NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 (Apple Message framework v936) Content-Type: text/plain; charset="us-ascii"; Format="flowed"; DelSp="yes" Content-Transfer-Encoding: 7bit X-Trace: ger.gmane.org 1258131236 2934 80.91.229.12 (13 Nov 2009 16:53:56 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Fri, 13 Nov 2009 16:53:56 +0000 (UTC) To: mailing ConTeXt users list for Original-X-From: ntg-context-bounces@ntg.nl Fri Nov 13 17:53:49 2009 Return-path: Envelope-to: gctc-ntg-context-518@m.gmane.org Original-Received: from balder.ntg.nl ([195.12.62.10]) by lo.gmane.org with esmtp (Exim 4.50) id 1N8zPB-0005CM-Dp for gctc-ntg-context-518@m.gmane.org; Fri, 13 Nov 2009 17:53:49 +0100 Original-Received: from localhost (localhost [127.0.0.1]) by balder.ntg.nl (Postfix) with ESMTP id C1BE6C9AF5; Fri, 13 Nov 2009 17:51:40 +0100 (CET) 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 yG4VtcZNFBIL; Fri, 13 Nov 2009 17:51:38 +0100 (CET) Original-Received: from balder.ntg.nl (localhost [127.0.0.1]) by balder.ntg.nl (Postfix) with ESMTP id A0C81C9ABB; Fri, 13 Nov 2009 17:51:37 +0100 (CET) Original-Received: from localhost (localhost [127.0.0.1]) by balder.ntg.nl (Postfix) with ESMTP id F146EC9ABB for ; Fri, 13 Nov 2009 17:51:36 +0100 (CET) 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 r5O9AiouqTwA for ; Fri, 13 Nov 2009 17:51:34 +0100 (CET) Original-Received: from post.rzg.mpg.de (post.rzg.mpg.de [130.183.30.42]) by balder.ntg.nl (Postfix) with ESMTP id 63618C9A41 for ; Fri, 13 Nov 2009 17:51:34 +0100 (CET) Original-Received: from [192.168.0.2] (g230068022.adsl.alicedsl.de [92.230.68.22]) (authenticated bits=0) by post.rzg.mpg.de (8.14.3/8.14.3) with ESMTP id nADGrfO0991432 (version=TLSv1/SSLv3 cipher=AES128-SHA bits=128 verify=NO) for ; Fri, 13 Nov 2009 17:53:41 +0100 X-Mailer: Apple Mail (2.936) X-BeenThere: ntg-context@ntg.nl X-Mailman-Version: 2.1.12 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 Xref: news.gmane.org gmane.comp.tex.context:54311 Archived-At: Hi, ConTeXt already passes quite a few length parameters on to embedded MetaPost code ... BodyFontSize, CurrentWidth etc. Would it be possible to add some more font/math related parameters to the default definitions? I'm thinking of exposing math OpenType parameters like AxisHeight FractionRuleThickness UpperLimitBaselineRiseMin UpperLimitGapMin LowerLimitGapMin LowerLimitBaselineDropMin etc. of the surrounding text to MetaPost as well. This would be very handy for me since I need to draw diagrammatic expressions to be used in formulas and I'd like them to adapt to the current math font and fontsize automatically. At the moment I set these variables manually... Also, is there a way to directly get the glyph outlines of, say, $ \bigotimes$ in MetaPost code and use it to derive some length unit from it? Oliver ___________________________________________________________________________________ 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 ___________________________________________________________________________________