From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.io/gmane.comp.tex.context/43022 Path: news.gmane.org!not-for-mail From: Oliver Buerschaper Newsgroups: gmane.comp.tex.context Subject: Re: [OS X TeX] Default rule thickness Date: Fri, 8 Aug 2008 10:12:08 +0200 Message-ID: <111E89FF-7B50-4C53-887C-290F97330D83@mpq.mpg.de> References: <689AE27A-F050-46B4-95E0-5A8CAF3E66A8@mpq.mpg.de> <115224fb0808060359v7b768414k497ee95abaa8f7e3@mail.gmail.com> Reply-To: mailing list for ConTeXt users NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 (Apple Message framework v926) Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit X-Trace: ger.gmane.org 1218216407 19215 80.91.229.12 (8 Aug 2008 17:26:47 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Fri, 8 Aug 2008 17:26:47 +0000 (UTC) To: mailing list for ConTeXt users Original-X-From: ntg-context-bounces@ntg.nl Fri Aug 08 19:27:35 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 1KRVkP-0002K4-Vv for gctc-ntg-context-518@m.gmane.org; Fri, 08 Aug 2008 19:27:30 +0200 Original-Received: from localhost (localhost [127.0.0.1]) by ronja.ntg.nl (Postfix) with ESMTP id 5BC5F201B8; Fri, 8 Aug 2008 19:26:31 +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 14590-01-32; Fri, 8 Aug 2008 19:25:37 +0200 (CEST) Original-Received: from ronja.vet.uu.nl (localhost [127.0.0.1]) by ronja.ntg.nl (Postfix) with ESMTP id 6023120523; Fri, 8 Aug 2008 16:23:46 +0200 (CEST) Original-Received: from localhost (localhost [127.0.0.1]) by ronja.ntg.nl (Postfix) with ESMTP id 6E6DB20523 for ; Fri, 8 Aug 2008 16:23:41 +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 21388-08 for ; Fri, 8 Aug 2008 16:22:58 +0200 (CEST) Original-Received: from post.rzg.mpg.de (post.rzg.mpg.de [130.183.7.21]) by ronja.ntg.nl (Postfix) with ESMTP id A30DE1FE63 for ; Fri, 8 Aug 2008 10:49:31 +0200 (CEST) Original-Received: from [192.168.0.2] (f053226075.adsl.alicedsl.de [78.53.226.75]) by post.rzg.mpg.de (8.9.2/8.9.2) with ESMTP id KAA1134728 for ; Fri, 8 Aug 2008 10:12:09 +0200 X-Envelope-To: In-Reply-To: <115224fb0808060359v7b768414k497ee95abaa8f7e3@mail.gmail.com> X-Mailer: Apple Mail (2.926) 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:43022 Archived-At: > The rule is between 0.4pt and 0.5pt > > \starttext > \dontleavehmode > \scale[factor=200]{$1 \over 2$} > \scale[factor=200]{$1 \above .47pt 2$} > \stoptext Lovely! This applies to ConTeXt's default font size of 12pt, doesn't it? Hence we would have the following linear relation if the thickness is 0.4pt at 10pt font size: thickness = 0.4pt * fontsize/10pt. Judging from the following: --- \startuseMPgraphic{rule} linecap := butt; defaultrulethickness := 0.4pt*BodyFontSize/10pt; path p; p := origin--(EmWidth,0); draw p withpen pencircle scaled defaultrulethickness; \stopuseMPgraphic \starttext Lorem ipsum dolor sit amet \startformula \sum_{n=0}^\infty \frac{x^n}{n!}\!\vcenter{\useMPgraphic{rule}} \stopformula \setupbodyfont[32pt] Lorem ipsum dolor sit amet \startformula \sum_{n=0}^\infty \frac{x^n}{n!}\!\vcenter{\useMPgraphic{rule}} \stopformula \setupbodyfont[72pt] Lorem ipsum dolor sit amet \startformula \sum_{n=0}^\infty \frac{x^n}{n!}\!\vcenter{\useMPgraphic{rule}} \stopformula \stoptext --- this seems to be true in general. (Hans, Taco, can you confirm this officially?) Could one perhaps pass "DefaultRuleThickness" on to MetaFun just as the variables "BodyFontSize", "ExHeight" etc. are made available? Best, 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 : https://foundry.supelec.fr/projects/contextrev/ wiki : http://contextgarden.net ___________________________________________________________________________________