From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.io/gmane.comp.tex.context/3552 Path: main.gmane.org!not-for-mail From: Hans Hagen Newsgroups: gmane.comp.tex.context Subject: Re: fonts in embedded tex in embedded metapost in context Date: Fri, 08 Dec 2000 20:14:24 +0100 Sender: owner-ntg-context@let.uu.nl Message-ID: <3.0.6.32.20001208201424.015bd960@pop.wxs.nl> References: <200012081637.RAA27180@bar.loria.fr> NNTP-Posting-Host: coloc-standby.netfonds.no Mime-Version: 1.0 Content-Type: text/plain; charset="us-ascii" X-Trace: main.gmane.org 1035394283 18074 80.91.224.250 (23 Oct 2002 17:31:23 GMT) X-Complaints-To: usenet@main.gmane.org NNTP-Posting-Date: Wed, 23 Oct 2002 17:31:23 +0000 (UTC) Cc: ntg-context@ntg.nl, roegel@lorraine.loria.fr (Denis B. Roegel) Original-To: "Denis B. Roegel" In-Reply-To: <200012081637.RAA27180@bar.loria.fr> Xref: main.gmane.org gmane.comp.tex.context:3552 X-Report-Spam: http://spam.gmane.org/gmane.comp.tex.context:3552 At 05:37 PM 12/8/00 +0100, Denis B. Roegel wrote: >Ok, I now have some questions about fonts. >I guess they are most fairly easy: > >1) First, how do I select the `Sans' font? >I have done > >\setupbodyfont[cmr] >\Sans \setupbodyfont[cmr,sansserif] or (since cmr is already active) \ss keep in mind: \setupbodyfont changes the document fonts too, local changes are \switchtobodyfont, which leaves the headers and footers untouched. >but it doesn't work. > >2) In embedded metapost, I have things like > > ... btex text $E=MC^2$ etex ... > >I want the `text' to be in \Sans, but I don't want >to specify this all the time. So, I am looking for > >\startMPinclusions >verbatimtex >%\Sans ??? >etex >... >\stopMPinclusions Given that sans is supported in math -) \startMPenvironment whatever you like to be setup \stopMPenvironment This wil be passes to the tex run done by mp. >What am I supposed to do? > >Some of the labels are in ISO-Latin 1 encoding. How do I select this? > > ... btex ISO-Latin 1 text etex ... \enableencoding [il1] Although this depends on the font too of course. Basically, anything that can be done in context, can be done in metapost, even \framed{text} works, although mp does better framing. You can experiment with this using \starttext \startMPenvironment .... \stopMPenvironment \startMPpage mp code \stopMPpage \stoptext ------------------------------------------------------------------------- Hans Hagen | PRAGMA ADE Ridderstraat 27 | 8061 GH Hasselt | The Netherlands tel: +31 (0)38 477 53 69 | fax: +31 (0)38 477 53 74 | www.pragma-ade.com -------------------------------------------------------------------------