ntg-context - mailing list for ConTeXt users
 help / color / mirror / Atom feed
* List of special characters?
@ 2006-12-25  8:09 cormullion
  2006-12-25 10:46 ` Taco Hoekwater
  0 siblings, 1 reply; 9+ messages in thread
From: cormullion @ 2006-12-25  8:09 UTC (permalink / raw)


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...

^ permalink raw reply	[flat|nested] 9+ messages in thread

* Re: List of special characters?
  2006-12-25  8:09 List of special characters? cormullion
@ 2006-12-25 10:46 ` Taco Hoekwater
  2006-12-25 12:32   ` pete.boardman
  0 siblings, 1 reply; 9+ messages in thread
From: Taco Hoekwater @ 2006-12-25 10:46 UTC (permalink / raw)


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

^ permalink raw reply	[flat|nested] 9+ messages in thread

* Re: List of special characters?
  2006-12-25 10:46 ` Taco Hoekwater
@ 2006-12-25 12:32   ` pete.boardman
  2006-12-25 18:19     ` Mojca Miklavec
  0 siblings, 1 reply; 9+ messages in thread
From: pete.boardman @ 2006-12-25 12:32 UTC (permalink / raw)


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...

^ permalink raw reply	[flat|nested] 9+ messages in thread

* Re: List of special characters?
  2006-12-25 12:32   ` pete.boardman
@ 2006-12-25 18:19     ` Mojca Miklavec
  2006-12-28  9:33       ` cormullion
  0 siblings, 1 reply; 9+ messages in thread
From: Mojca Miklavec @ 2006-12-25 18:19 UTC (permalink / raw)


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

^ permalink raw reply	[flat|nested] 9+ messages in thread

* Re: List of special characters?
  2006-12-25 18:19     ` Mojca Miklavec
@ 2006-12-28  9:33       ` cormullion
  2006-12-28 13:15         ` Mojca Miklavec
  0 siblings, 1 reply; 9+ messages in thread
From: cormullion @ 2006-12-28  9:33 UTC (permalink / raw)


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!

^ permalink raw reply	[flat|nested] 9+ messages in thread

* Re: List of special characters?
  2006-12-28  9:33       ` cormullion
@ 2006-12-28 13:15         ` Mojca Miklavec
  2006-12-28 14:00           ` cormullion
  0 siblings, 1 reply; 9+ messages in thread
From: Mojca Miklavec @ 2006-12-28 13:15 UTC (permalink / raw)


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

^ permalink raw reply	[flat|nested] 9+ messages in thread

* Re: List of special characters?
  2006-12-28 13:15         ` Mojca Miklavec
@ 2006-12-28 14:00           ` cormullion
  2006-12-28 14:10             ` Idris Samawi Hamid
  0 siblings, 1 reply; 9+ messages in thread
From: cormullion @ 2006-12-28 14:00 UTC (permalink / raw)


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...?!  :-)

^ permalink raw reply	[flat|nested] 9+ messages in thread

* Re: List of special characters?
  2006-12-28 14:00           ` cormullion
@ 2006-12-28 14:10             ` Idris Samawi Hamid
  2006-12-28 17:28               ` cormullion
  0 siblings, 1 reply; 9+ messages in thread
From: Idris Samawi Hamid @ 2006-12-28 14:10 UTC (permalink / raw)


On Thu, 28 Dec 2006 07:00:07 -0700, <cormullion@mac.com> wrote:

>> 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/

^ permalink raw reply	[flat|nested] 9+ messages in thread

* Re: List of special characters?
  2006-12-28 14:10             ` Idris Samawi Hamid
@ 2006-12-28 17:28               ` cormullion
  0 siblings, 0 replies; 9+ messages in thread
From: cormullion @ 2006-12-28 17:28 UTC (permalink / raw)


I've just discovered the command \showcharacters. It's not in the  
manuals, but useful for showing some of the characters available.

^ permalink raw reply	[flat|nested] 9+ messages in thread

end of thread, other threads:[~2006-12-28 17:28 UTC | newest]

Thread overview: 9+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2006-12-25  8:09 List of special characters? 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
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

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).