From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.io/gmane.comp.tex.context/44600 Path: news.gmane.org!not-for-mail From: "Mojca Miklavec" Newsgroups: gmane.comp.tex.context Subject: Re: Some Metapost Problems Date: Tue, 7 Oct 2008 00:13:49 +0200 Message-ID: <6faad9f00810061513j345998c5mbd8b1af910570add@mail.gmail.com> References: <48E91D9C.26540.1B26E87@wwl.musensturm.de> 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 1223354553 6669 80.91.229.12 (7 Oct 2008 04:42:33 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Tue, 7 Oct 2008 04:42:33 +0000 (UTC) To: "mailing list for ConTeXt users" Original-X-From: ntg-context-bounces@ntg.nl Tue Oct 07 06:43:29 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 1Kn4Px-0005Qn-Gd for gctc-ntg-context-518@m.gmane.org; Tue, 07 Oct 2008 06:43:29 +0200 Original-Received: from localhost (localhost [127.0.0.1]) by ronja.ntg.nl (Postfix) with ESMTP id 2D52C1FE26; Tue, 7 Oct 2008 06:42:24 +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 29498-01-5; Tue, 7 Oct 2008 06:41:41 +0200 (CEST) Original-Received: from ronja.vet.uu.nl (localhost [127.0.0.1]) by ronja.ntg.nl (Postfix) with ESMTP id 6A3941FDD7; Tue, 7 Oct 2008 06:26:00 +0200 (CEST) Original-Received: from localhost (localhost [127.0.0.1]) by ronja.ntg.nl (Postfix) with ESMTP id 46DF91FDC6 for ; Tue, 7 Oct 2008 06:25:55 +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 27032-08-9 for ; Tue, 7 Oct 2008 06:25:13 +0200 (CEST) Original-Received: from mail-gx0-f16.google.com (mail-gx0-f16.google.com [209.85.217.16]) by ronja.ntg.nl (Postfix) with ESMTP id DE33A1FFCE for ; Tue, 7 Oct 2008 00:13:51 +0200 (CEST) Original-Received: by gxk9 with SMTP id 9so5683281gxk.2 for ; Mon, 06 Oct 2008 15:13:50 -0700 (PDT) Original-Received: by 10.151.11.19 with SMTP id o19mr8429905ybi.143.1223331230005; Mon, 06 Oct 2008 15:13:50 -0700 (PDT) Original-Received: by 10.151.83.13 with HTTP; Mon, 6 Oct 2008 15:13:49 -0700 (PDT) In-Reply-To: <48E91D9C.26540.1B26E87@wwl.musensturm.de> Content-Disposition: inline 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:44600 Archived-At: On Sun, Oct 5, 2008 at 8:03 PM, Wolfgang Werners-Lucchini wrote: > Hallo, > > I have a lot of problems with the following example: > ------------------------------------------------ > \startuseMPgraphic{Wochentage} ... > label.top(\sometxt{Samstag}, z0) ; > 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 > when the > second graphic is included. Comment the second, and the first is ok. > What I am doing wrong here? You need \runMPgraphicstrue > This seems to be ok with luatex. LuaTeX is a story on its own. It works differentrly anyway. > 2. The settings in \startMPenvironment do not use the smaller font > size [8pt] without [global]. And the outside Text (Bla) remains not > big [11pt] with [global]. How can I toggle the two sizes differently? 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; b) write your own handle \definetextext[scaled]{\switchtobodyfont[8pt]\strut} and then label.top(\sometxt[scaled]{Samstag}, z0) ; 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\stopuseMPgraphicwithscaledtext {\bgroup\switchtobodyfont[8pt]\startuseMPgraphic#1\stopuseMPgraphic\egroup} Disclaimer: I did not try out any of the methods mentioned about, so it might be that they don't work and need some syntactic changes, but they should work in principle. > 3. After editing the mp-code I allways have to purge files between > two runs. Is this normal? Probably not, but I somehow got used to run every document twice before getting the right graphic. It should be fixed, but Hans is probably focused on mkiv now. Mojca ___________________________________________________________________________________ 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 ___________________________________________________________________________________