ntg-context - mailing list for ConTeXt users
 help / color / mirror / Atom feed
From: Hans Hagen <pragma@wxs.nl>
Subject: Re: Re: Greek letters?
Date: Thu, 04 Sep 2003 20:43:50 +0200	[thread overview]
Message-ID: <5.2.0.9.1.20030904204256.02ed27c0@server-1> (raw)
In-Reply-To: <Pine.LNX.4.44.0309041353040.15187-100000@dunedain.cs.tu-be rlin.de>

At 14:00 04/09/2003 +0200, you wrote:
>Hello Mari,
>
>On Thu, 4 Sep 2003, Patrick Gundlach wrote:
> > Mari Voipio <mari.voipio@iki.fi> writes:
> > > Or something I should put around the command?
> >
> > You could put "math mode" ($\Omega$) around the command. But I am not
> > sure if this will be taken from the default font. At least it is a
> > workaround.
>
>I think, math mode is set up in the typescripts you use. If you use none
>explicitely, you probably get computer modern (roman in text, math (italic?)
>in math mode, so they are probably different).
>
>For the case you want the same style as in the text, and you know, which
>font you are using, you can use something like the following to get a table
>of available characters (to see, whether an Omega is available in your font,
>and to note its character code) and then use its character code for the
>macro \getglyph (first argument is the fontname, second the character
>code). The following gets me an omega with the default font selection
>(Serif is in this case cmr10):
>
>\starttext
>\showfont[Serif]
>The character: ''\getglyph{Serif}{10}''
>\stoptext

this can be smoothed by:

\definesymbol [omega]  [\getglyph{Serif}{10}]

... \symbol[omega] ...

in symb-*.tex you can see how to define symbols that adapt to the style; 
btw, such glyph calls also automatically scale with the font scaling mechanism


Hans
-------------------------------------------------------------------------
                                   Hans Hagen | PRAGMA ADE | pragma@wxs.nl
                       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
-------------------------------------------------------------------------
                        information: http://www.pragma-ade.com/roadmap.pdf
                     documentation: http://www.pragma-ade.com/showcase.pdf
-------------------------------------------------------------------------

      parent reply	other threads:[~2003-09-04 18:43 UTC|newest]

Thread overview: 5+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2003-09-04  9:22 Mari Voipio
2003-09-04 10:58 ` Patrick Gundlach
2003-09-04 11:39   ` Mari Voipio
2003-09-04 12:00   ` Holger Schöner
     [not found]   ` <Pine.LNX.4.44.0309041353040.15187-100000@dunedain.cs.tu-be rlin.de>
2003-09-04 18:43     ` Hans Hagen [this message]

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=5.2.0.9.1.20030904204256.02ed27c0@server-1 \
    --to=pragma@wxs.nl \
    --cc=ntg-context@ntg.nl \
    /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).