* keyboard style tilde
@ 2005-07-18 23:41 Stuart Jansen
2005-07-19 2:25 ` Matthias Weber
0 siblings, 1 reply; 3+ messages in thread
From: Stuart Jansen @ 2005-07-18 23:41 UTC (permalink / raw)
[-- Attachment #1.1: Type: text/plain, Size: 317 bytes --]
How do I get a keyboard style tilde? As in:
~sjansen
The tilde character is roughly aligned with the middle horizontal part
of the s.
\~ and \lettertilde produce a tilde that has been raised so that it can
be used as an accent. I don't want that.
--
Stuart Jansen <sjansen@gurulabs.com>
Guru Labs, L.C.
[-- Attachment #1.2: This is a digitally signed message part --]
[-- Type: application/pgp-signature, Size: 189 bytes --]
[-- Attachment #2: Type: text/plain, Size: 139 bytes --]
_______________________________________________
ntg-context mailing list
ntg-context@ntg.nl
http://www.ntg.nl/mailman/listinfo/ntg-context
^ permalink raw reply [flat|nested] 3+ messages in thread
* Re: keyboard style tilde
2005-07-18 23:41 keyboard style tilde Stuart Jansen
@ 2005-07-19 2:25 ` Matthias Weber
2005-07-19 6:25 ` Taco Hoekwater
0 siblings, 1 reply; 3+ messages in thread
From: Matthias Weber @ 2005-07-19 2:25 UTC (permalink / raw)
Hi Stuart,
I think what you get when you type ~ depends on the font you use. For
instance, you can try
the plain TeX character access in Palatino:
\usetypescript [adobekb] [ec]
\loadmapfile [context-base]
\usetypescript[palatino][\defaultencoding]
\setupbodyfont[palatino,12pt]
\def\mytilde{\char126\relax}
\starttext
F \mytilde G
\stoptext
Computer Modern fonts have the ~ 'elevated', I don't know why.
You can lower it with
\lower.8ex\hbox{\mytilde}
to make the above example work with Computer Modern. Note that \mytilde
is different from \~.
(I don't know how to access \char126 more conveniently.)
What you actually might want to get is what is called the swung dash
(which is somewhat longer
than the standard ~), but I am afraid
it doesn't exist in all fonts.
The proper way to go is probably via unicode, but again I'm a complete
ignorant here.
In fact, I hope somebody with more insight tells us the clean ConTeXt
solution,
please?
Matthias
On Jul 18, 2005, at 6:41 PM, Stuart Jansen wrote:
> How do I get a keyboard style tilde? As in:
> ~sjansen
> The tilde character is roughly aligned with the middle horizontal part
> of the s.
>
> \~ and \lettertilde produce a tilde that has been raised so that it can
> be used as an accent. I don't want that.
>
> --
> Stuart Jansen <sjansen@gurulabs.com>
> Guru Labs, L.C.
> _______________________________________________
> ntg-context mailing list
> ntg-context@ntg.nl
> http://www.ntg.nl/mailman/listinfo/ntg-context
^ permalink raw reply [flat|nested] 3+ messages in thread
end of thread, other threads:[~2005-07-19 6:25 UTC | newest]
Thread overview: 3+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2005-07-18 23:41 keyboard style tilde Stuart Jansen
2005-07-19 2:25 ` Matthias Weber
2005-07-19 6:25 ` Taco Hoekwater
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).