From: Matthias Weber <matweber@indiana.edu>
Subject: Re: keyboard style tilde
Date: Mon, 18 Jul 2005 21:25:36 -0500 [thread overview]
Message-ID: <d2b5f638aa505e6299b1dbf869a72bfe@indiana.edu> (raw)
In-Reply-To: <1121730087.9006.29.camel@localhost.localdomain>
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
next prev parent reply other threads:[~2005-07-19 2:25 UTC|newest]
Thread overview: 3+ messages / expand[flat|nested] mbox.gz Atom feed top
2005-07-18 23:41 Stuart Jansen
2005-07-19 2:25 ` Matthias Weber [this message]
2005-07-19 6:25 ` Taco Hoekwater
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=d2b5f638aa505e6299b1dbf869a72bfe@indiana.edu \
--to=matweber@indiana.edu \
--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).