From: luigi scarso <luigi.scarso@gmail.com>
To: mailing list for ConTeXt users <ntg-context@ntg.nl>
Subject: Re: Font selection ranges
Date: Fri, 30 Sep 2011 10:31:50 +0200 [thread overview]
Message-ID: <CAG5iGsDKxhwjHqvm4LJ5hP8Dpj1QDgyv1QM+OyC3fwkF7ozbJg@mail.gmail.com> (raw)
In-Reply-To: <ABBCD27A-BC00-40F8-9C24-ABA80BB795A8@telia.com>
On Thu, Sep 29, 2011 at 9:58 PM, Hans Aberg <haberg-1@telia.com> wrote:
> I want to define an environment for computer code including non-ASCII characters, using Xits or STIXGeneral except in the ASCII range, where some monospace font like Courier should be used.
>
> If I do:
> \setupbodyfont[xits,10pt]
> \definetyping[code]
> \setuptyping[code][margin=yes]
>
> \starttext
> \startcode
> for ∀i, j ∈ I
> do a(i, j) ≔ b(i, j)
> \stopcode
> \stoptext
>
> Then the math characters won't show. They will show using
> \setuptyping[code][style=normal,margin=yes]
> but then the ASCII range isn't monospace.
It's not a solution of your problem, but this work
\setupbodyfont[dejavu]
\definetyping[code]
\setuptyping[code][margin=yes]
\starttext
\startcode
for ∀ i,j ∈ I
do a(i,j) ≔ b(i,j)
\stopcode
\stoptext
--
luigi
___________________________________________________________________________________
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 : http://foundry.supelec.fr/projects/contextrev/
wiki : http://contextgarden.net
___________________________________________________________________________________
next prev parent reply other threads:[~2011-09-30 8:31 UTC|newest]
Thread overview: 4+ messages / expand[flat|nested] mbox.gz Atom feed top
2011-09-29 19:58 Hans Aberg
2011-09-30 8:31 ` luigi scarso [this message]
2011-09-30 8:33 ` Wolfgang Schuster
2011-09-30 14:42 ` Khaled Hosny
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=CAG5iGsDKxhwjHqvm4LJ5hP8Dpj1QDgyv1QM+OyC3fwkF7ozbJg@mail.gmail.com \
--to=luigi.scarso@gmail.com \
--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).