List of special characters?
![](https://secure.gravatar.com/avatar/145586de2f69e4b887749da370090dc3.jpg?s=120&d=mm&r=g)
Is there a list of special characters anywhere (eg \percent, \upperleftsingle6quote, etc) ? I'm trying to insert a "|", at the moment, but I can't find a list...
![](https://secure.gravatar.com/avatar/565476157eb3895a9c928ffce26d988d.jpg?s=120&d=mm&r=g)
cormullion@mac.com wrote:
Is there a list of special characters anywhere (eg \percent, \upperleftsingle6quote, etc) ? I'm trying to insert a "|", at the moment, but I can't find a list...
I don't know if there is a list out there somewhere by a user, but there is no 'official' one that I know of. Sounds like you are looking for \textbar (found by grepping for \definecharacter in the ConTeXt sources). Best, Taco
![](https://secure.gravatar.com/avatar/7be4ffa76a92d18200e34d470c7ec3ee.jpg?s=120&d=mm&r=g)
On 2006-12-25, at 10:46.0, Taco Hoekwater wrote:
cormullion@mac.com wrote:
Is there a list of special characters anywhere (eg \percent, \upperleftsingle6quote, etc) ? I'm trying to insert a "|", at the moment, but I can't find a list...
I don't know if there is a list out there somewhere by a user, but there is no 'official' one that I know of. Sounds like you are looking for \textbar (found by grepping for \definecharacter in the ConTeXt sources).
Thanks Taco - textbar is indeed the one. I'll do some more searching and find the rest. But a list sounds like a nice thing to have...
![](https://secure.gravatar.com/avatar/6114858d84b0f40cf715f12237ab67a1.jpg?s=120&d=mm&r=g)
On 12/25/06, pete.boardman@pobox.com wrote:
On 2006-12-25, at 10:46.0, Taco Hoekwater wrote:
cormullion@mac.com wrote:
Is there a list of special characters anywhere (eg \percent, \upperleftsingle6quote, etc) ? I'm trying to insert a "|", at the moment, but I can't find a list... ... Thanks Taco - textbar is indeed the one. I'll do some more searching and find the rest. But a list sounds like a nice thing to have...
There's a file contextnames.txt in the ConTeXt tree, see http://source.contextgarden.net/context/data/contextnames.txt Or a html version of it on http://pub.mojca.org/tex/enco/contextlist/contextnames.html - sorry, I should find a better place for it. However, there's only the most common name listed (some glyphs have synonyms and they're not collected there). If you have any comments or suggestions, feel free to tell them. Moca
![](https://secure.gravatar.com/avatar/145586de2f69e4b887749da370090dc3.jpg?s=120&d=mm&r=g)
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!
![](https://secure.gravatar.com/avatar/6114858d84b0f40cf715f12237ab67a1.jpg?s=120&d=mm&r=g)
On 12/28/06, cormullion@mac.com wrote:
This works great. But then I've got the following keywords:
# ! | \ @ ^ + - * / %
Just copied from Aditya's code :) \letterhash, \# \letterexclamationmark \letterbar \letterbackslash \letterat \letterhat \letterslash \letterpercent, \% \letterless \lettermore \letterampersand, \& \letteropenbrace, \{ \letterclosebrace, \} etc. Mojca
![](https://secure.gravatar.com/avatar/145586de2f69e4b887749da370090dc3.jpg?s=120&d=mm&r=g)
On 2006-12-28, at 13:15.0, Mojca Miklavec wrote:
On 12/28/06, cormullion@mac.com wrote:
This works great. But then I've got the following keywords:
# ! | \ @ ^ + - * / %
Just copied from Aditya's code :)
\letterhash, \# \letterexclamationmark \letterbar \letterbackslash \letterat \letterhat \letterslash \letterpercent, \% \letterless \lettermore \letterampersand, \& \letteropenbrace, \{ \letterclosebrace, \}
Thanks - they all work great! A worthy addition to the manual...?! :-)
![](https://secure.gravatar.com/avatar/a4358949522f2efc1bab8ed68385b00c.jpg?s=120&d=mm&r=g)
On Thu, 28 Dec 2006 07:00:07 -0700,
Just copied from Aditya's code
\letterhash, \# \letterexclamationmark \letterbar \letterbackslash \letterat \letterhat \letterslash \letterpercent, \% \letterless \lettermore \letterampersand, \& \letteropenbrace, \{ \letterclosebrace, \} Thanks - they all work great! A worthy addition to the manual...?!
At least some mention should be made on the wiki (if it's already there please tell us where)... Best Idris -- Professor Idris Samawi Hamid Department of Philosophy Colorado State University Fort Collins, CO 80523 -- Using Opera's revolutionary e-mail client: http://www.opera.com/mail/
![](https://secure.gravatar.com/avatar/145586de2f69e4b887749da370090dc3.jpg?s=120&d=mm&r=g)
I've just discovered the command \showcharacters. It's not in the manuals, but useful for showing some of the characters available.
participants (5)
-
cormullion@mac.com
-
Idris Samawi Hamid
-
Mojca Miklavec
-
pete.boardman@pobox.com
-
Taco Hoekwater