From: Alasdair McAndrew <amca01@gmail.com>
To: mailing list for ConTeXt users <ntg-context@ntg.nl>
Subject: Re: \em producing red text?
Date: Tue, 21 Feb 2012 20:19:22 +1100 [thread overview]
Message-ID: <CAPGiC74qwvr_Sav+8GJMTkt614C4ZSzunnCoWFQHvzO_w8YxVg@mail.gmail.com> (raw)
In-Reply-To: <alpine.LNX.2.02.1202210146380.15944@ybpnyubfg.ybpnyqbznva>
[-- Attachment #1.1: Type: text/plain, Size: 1724 bytes --]
I discovered this by hunting through font-ini.mkii:
\setupbodyfontenvironment [default] [em={\slanted\color[red]}]
Seems to work well. You see, I want to use the same ConTeXt files for two
purposes: to create a set of printable notes (without colour) and to make a
set of displayable onscreen notes (with colour). This means that {\em this
text} appears slanted in the printed notes, and slanted and red onscreen.
Thanks very much!
-Alasdair
On Tue, Feb 21, 2012 at 5:47 PM, Aditya Mahajan <adityam@umich.edu> wrote:
> On Tue, 21 Feb 2012, Alasdair McAndrew wrote:
>
> In some overheads I'm creating, I'd like emphasized text {\em like this}
>> to
>> appear as red. I hoped that something like this would work:
>>
>> \setupbodyfontenvironment[**default][em={slanted, textcolor=red}]
>>
>> but it doesn't. What is the canonical way of obtaining red, emphasized,
>> text?
>>
>
> \definehighlight[emph][style=**slanted, color=red]
>
> \emph{...}
>
> Aditya
> ______________________________**______________________________**
> _______________________
> 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 <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/<http://foundry.supelec.fr/projects/contextrev/>
> wiki : http://contextgarden.net
> ______________________________**______________________________**
> _______________________
>
--
Blog: http://amca01.wordpress.com
Web: http://sites.google.com/site/amca01/
Facebook: http://www.facebook.com/alasdair.mcandrew
[-- Attachment #1.2: Type: text/html, Size: 2813 bytes --]
[-- Attachment #2: Type: text/plain, Size: 485 bytes --]
___________________________________________________________________________________
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:[~2012-02-21 9:19 UTC|newest]
Thread overview: 5+ messages / expand[flat|nested] mbox.gz Atom feed top
2012-02-21 3:18 Alasdair McAndrew
2012-02-21 6:47 ` Aditya Mahajan
2012-02-21 9:19 ` Alasdair McAndrew [this message]
2012-02-21 12:05 ` Wolfgang Schuster
2012-02-21 12:21 ` Wolfgang Schuster
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=CAPGiC74qwvr_Sav+8GJMTkt614C4ZSzunnCoWFQHvzO_w8YxVg@mail.gmail.com \
--to=amca01@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).