From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.io/gmane.comp.tex.context/21463 Path: news.gmane.org!not-for-mail From: Matthias Weber Newsgroups: gmane.comp.tex.context Subject: Re: keyboard style tilde Date: Mon, 18 Jul 2005 21:25:36 -0500 Message-ID: References: <1121730087.9006.29.camel@localhost.localdomain> Reply-To: mailing list for ConTeXt users NNTP-Posting-Host: main.gmane.org Mime-Version: 1.0 (Apple Message framework v622) Content-Type: text/plain; charset=US-ASCII; format=flowed Content-Transfer-Encoding: 7bit X-Trace: sea.gmane.org 1121739947 28880 80.91.229.2 (19 Jul 2005 02:25:47 GMT) X-Complaints-To: usenet@sea.gmane.org NNTP-Posting-Date: Tue, 19 Jul 2005 02:25:47 +0000 (UTC) Original-X-From: ntg-context-bounces@ntg.nl Tue Jul 19 04:25:44 2005 Return-path: Original-Received: from ronja.vet.uu.nl ([131.211.172.88] helo=ronja.ntg.nl) by ciao.gmane.org with esmtp (Exim 4.43) id 1Duhnc-0003xt-UJ for gctc-ntg-context-518@m.gmane.org; Tue, 19 Jul 2005 04:25:36 +0200 Original-Received: from localhost (localhost.localdomain [127.0.0.1]) by ronja.ntg.nl (Postfix) with ESMTP id 66B0D127FC; Tue, 19 Jul 2005 04:25:35 +0200 (CEST) Original-Received: from ronja.ntg.nl ([127.0.0.1]) by localhost (smtp.ntg.nl [127.0.0.1]) (amavisd-new, port 10024) with LMTP id 14501-08; Tue, 19 Jul 2005 04:25:29 +0200 (CEST) Original-Received: from ronja.vet.uu.nl (localhost.localdomain [127.0.0.1]) by ronja.ntg.nl (Postfix) with ESMTP id AD1A5127BC; Tue, 19 Jul 2005 04:25:29 +0200 (CEST) Original-Received: from localhost (localhost.localdomain [127.0.0.1]) by ronja.ntg.nl (Postfix) with ESMTP id 2DFA9127BC for ; Tue, 19 Jul 2005 04:25:27 +0200 (CEST) Original-Received: from ronja.ntg.nl ([127.0.0.1]) by localhost (smtp.ntg.nl [127.0.0.1]) (amavisd-new, port 10024) with LMTP id 14500-08 for ; Tue, 19 Jul 2005 04:25:25 +0200 (CEST) Original-Received: from julesburg.uits.indiana.edu (julesburg.uits.indiana.edu [129.79.1.75]) by ronja.ntg.nl (Postfix) with ESMTP id 5928E127B7 for ; Tue, 19 Jul 2005 04:25:24 +0200 (CEST) Original-Received: from mail-relay.iu.edu (stjoseph.uits.indiana.edu [129.79.1.78]) by julesburg.uits.indiana.edu (8.12.10/8.12.10/IUPO) with ESMTP id j6J2PLEn019524 for ; Mon, 18 Jul 2005 21:25:21 -0500 (EST) Original-Received: from [10.0.1.4] (dial-122-68.dial.indiana.edu [156.56.122.68]) (authenticated bits=0) by mail-relay.iu.edu (8.12.10/8.12.10/IUPO) with ESMTP id j6J2PIou026259 (version=TLSv1/SSLv3 cipher=RC4-SHA bits=128 verify=NO) for ; Mon, 18 Jul 2005 21:25:21 -0500 (EST) In-Reply-To: <1121730087.9006.29.camel@localhost.localdomain> Original-To: mailing list for ConTeXt users X-Mailer: Apple Mail (2.622) X-Virus-Scanned: amavisd-new at ntg.nl X-BeenThere: ntg-context@ntg.nl X-Mailman-Version: 2.1.5 Precedence: list List-Id: mailing list for ConTeXt users List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Original-Sender: ntg-context-bounces@ntg.nl Errors-To: ntg-context-bounces@ntg.nl X-Spam-Checker-Version: SpamAssassin 3.0.3 (2005-04-27) on smtp.ntg.nl X-Virus-Scanned: amavisd-new at ntg.nl Xref: news.gmane.org gmane.comp.tex.context:21463 X-Report-Spam: http://spam.gmane.org/gmane.comp.tex.context:21463 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 > Guru Labs, L.C. > _______________________________________________ > ntg-context mailing list > ntg-context@ntg.nl > http://www.ntg.nl/mailman/listinfo/ntg-context