ntg-context - mailing list for ConTeXt users
 help / color / mirror / Atom feed
From: Hans Hagen <pragma@wxs.nl>
Cc: ntg-context@ntg.nl, roegel@lorraine.loria.fr (Denis B. Roegel)
Subject: Re: fonts in embedded tex in embedded metapost in context
Date: Fri, 08 Dec 2000 20:14:24 +0100	[thread overview]
Message-ID: <3.0.6.32.20001208201424.015bd960@pop.wxs.nl> (raw)
In-Reply-To: <200012081637.RAA27180@bar.loria.fr>

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
-------------------------------------------------------------------------


  reply	other threads:[~2000-12-08 19:14 UTC|newest]

Thread overview: 9+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2000-12-08 16:37 Denis B. Roegel
2000-12-08 19:14 ` Hans Hagen [this message]
2000-12-08 21:34   ` Denis B. Roegel
2000-12-11  0:15     ` Hans Hagen
2000-12-11 20:30       ` Denis B. Roegel
2000-12-12 17:26         ` Hans Hagen
2000-12-28  3:11           ` another question on regimes and encoding Denis B. Roegel
2000-12-28 17:12             ` Hans Hagen
2000-12-28 23:24               ` Denis B. Roegel

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=3.0.6.32.20001208201424.015bd960@pop.wxs.nl \
    --to=pragma@wxs.nl \
    --cc=ntg-context@ntg.nl \
    --cc=roegel@lorraine.loria.fr \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).