From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.io/gmane.comp.tex.context/44630 Path: news.gmane.org!not-for-mail From: "Wolfgang Werners-Lucchini" Newsgroups: gmane.comp.tex.context Subject: Re: Some Metapost Problems Date: Tue, 07 Oct 2008 21:54:38 +0200 Message-ID: <48EBDA9E.23505.27A9140@wwl.musensturm.de> References: 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: ger.gmane.org 1223411122 12732 80.91.229.12 (7 Oct 2008 20:25:22 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Tue, 7 Oct 2008 20:25:22 +0000 (UTC) To: ntg-context@ntg.nl Original-X-From: ntg-context-bounces@ntg.nl Tue Oct 07 22:26:19 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 1KnJ8L-0003FU-0C for gctc-ntg-context-518@m.gmane.org; Tue, 07 Oct 2008 22:26:17 +0200 Original-Received: from localhost (localhost [127.0.0.1]) by ronja.ntg.nl (Postfix) with ESMTP id 366F51FC83; Tue, 7 Oct 2008 22:25: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 25992-02; Tue, 7 Oct 2008 22:24:29 +0200 (CEST) Original-Received: from ronja.vet.uu.nl (localhost [127.0.0.1]) by ronja.ntg.nl (Postfix) with ESMTP id E6C2E1FC87; Tue, 7 Oct 2008 21:53:13 +0200 (CEST) Original-Received: from localhost (localhost [127.0.0.1]) by ronja.ntg.nl (Postfix) with ESMTP id 8075A1FC87 for ; Tue, 7 Oct 2008 21:53: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 20213-02-3 for ; Tue, 7 Oct 2008 21:52:33 +0200 (CEST) Original-Received: from moutng.kundenserver.de (moutng.kundenserver.de [212.227.126.188]) by ronja.ntg.nl (Postfix) with ESMTP id 5F9C51FC39 for ; Tue, 7 Oct 2008 21:52:33 +0200 (CEST) Original-Received: from [192.168.178.20] (frnk-590d1a94.pool.einsundeins.de [89.13.26.148]) by mrelayeu.kundenserver.de (node=mrelayeu0) with ESMTP (Nemesis) id 0MKwh2-1KnIbg3lXY-000798; Tue, 07 Oct 2008 21:52:33 +0200 Priority: normal In-reply-to: X-mailer: Pegasus Mail for Windows (4.41, DE v4.41 R1) Content-description: Mail message body X-Provags-ID: V01U2FsdGVkX1/ANIV5p+l5oUKnGffGgUMJuv//IFX+ZxvCtKf AfLT4bcBS48i8I9dPVdM/haYQjtW6TZ3a2UuOlum5vkLKx1xRl 7xr3PXZDK282ELKh7nAZEXm6cMbcrAq 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:44630 Archived-At: Hallo Mojca, > > 1. The labels of the first graphic are xscaled (randomly) > > They are not scaled randomly :P > They inherit the sizes from the second graphic. > > See > > http://archive.contextgarden.net/message/20061204.102337.280a6589.en > .html strange > You need > \runMPgraphicstrue Yes, this helps! But what are the sideeffects? When is the opposite needed? > These settings are used exclusevely for btex ... etex and textext. > \sometxt uses the surounding font. > > There could be some settings for fonts in metapost graphics, but > I'm not aware of any. > However, it's rather easy to either: > > a) write your own metapost macro for placing labels that scales > down > everything by 20% > label.top(myscaled(\sometxt{Samstag}), z0) ; > where > vardef myscaled(expr t) = (t scaled 0.8) enddef; This works. > b) write your own handle > \definetextext[scaled]{\switchtobodyfont[8pt]\strut} > and then > label.top(\sometxt[scaled]{Samstag}, z0) ; This works, too. Where is this documented? > c) write your own macro or put some font size switch in front of > the graphic (I did not try it out) > \long\def\startuseMPgraphicwithscaledtext#1\stopuseMPgraphicwithscal > edtext > {\bgroup\switchtobodyfont[8pt]\startuseMPgraphic#1\stopuseMPgraphic\ > egroup} This is not working. Even an explizit {\switchtobodyfont[8pt] \startuseMPgraphic \stopuseMPgraphic } didn't work. I will use one of the other solutions. Thank you very much! Wolfgang ___________________________________________________________________________________ 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 ___________________________________________________________________________________