From: cormullion@mac.com
Subject: Re: List of special characters?
Date: Thu, 28 Dec 2006 09:33:47 +0000 [thread overview]
Message-ID: <A73A9893-0F43-4EEA-8BB7-B8895FB3F459@mac.com> (raw)
In-Reply-To: <6faad9f00612251019n1494518ep5c32b51901a48558@mail.gmail.com>
I'm really struggling to get this working... I've got some keywords
which i want to mark in the text with a special style:
--
\starttext
\usetypescript[adobekb][\defaultencoding]
\setupbodyfont[pos,9pt]
\setupcolors[state=start]
\define[1]\Keyword{%
{\startcolor[darkgreen]\bf{#1}\stopcolor}}
\chapter{Introduction}
\Keyword{if}
blah blah blah blah blah
\Keyword{for}
blah blah blah
--
This works great. But then I've got the following keywords:
# ! | \ @ ^ + - * / %
Of these, i can get half of them to work:
--
\Keyword{\#}
\Keyword{\percent}
\Keyword{\&}
\Keyword{\backslash}
\Keyword{\@}
\Keyword{/}
--
but i can't get any of the the remaining ones ( ! | ^ + - * ) to.
Any suggestions would be very welcome!
I was then going to go on to add an indexing command:
\define[1]\Keyword{%
{\startcolor[darkgreen]\bf{#1}\stopcolor}
\index{#1}}
but this wasn't working either...
Help!
next prev parent reply other threads:[~2006-12-28 9:33 UTC|newest]
Thread overview: 9+ messages / expand[flat|nested] mbox.gz Atom feed top
2006-12-25 8:09 cormullion
2006-12-25 10:46 ` Taco Hoekwater
2006-12-25 12:32 ` pete.boardman
2006-12-25 18:19 ` Mojca Miklavec
2006-12-28 9:33 ` cormullion [this message]
2006-12-28 13:15 ` Mojca Miklavec
2006-12-28 14:00 ` cormullion
2006-12-28 14:10 ` Idris Samawi Hamid
2006-12-28 17:28 ` cormullion
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=A73A9893-0F43-4EEA-8BB7-B8895FB3F459@mac.com \
--to=cormullion@mac.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).