From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.io/gmane.comp.tex.context/13461 Path: main.gmane.org!not-for-mail From: Hans Hagen Newsgroups: gmane.comp.tex.context Subject: Re: italic correction Date: Tue, 23 Sep 2003 23:07:13 +0200 Sender: ntg-context-admin@ntg.nl Message-ID: <5.2.0.9.1.20030923225650.02299948@localhost> References: <3F707730.88A00C08@lamar.colostate.edu> Reply-To: ntg-context@ntg.nl NNTP-Posting-Host: deer.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset="us-ascii"; format=flowed X-Trace: sea.gmane.org 1064352279 32449 80.91.224.253 (23 Sep 2003 21:24:39 GMT) X-Complaints-To: usenet@sea.gmane.org NNTP-Posting-Date: Tue, 23 Sep 2003 21:24:39 +0000 (UTC) Original-X-From: ntg-context-admin@ntg.nl Tue Sep 23 23:24:38 2003 Return-path: Original-Received: from ref.vet.uu.nl ([131.211.172.13] helo=ref.ntg.nl) by deer.gmane.org with esmtp (Exim 3.35 #1 (Debian)) id 1A1ueE-0006Hh-00 for ; Tue, 23 Sep 2003 23:24:38 +0200 Original-Received: from ref.ntg.nl (localhost.localdomain [127.0.0.1]) by ref.ntg.nl (Postfix) with ESMTP id AE54010B5D; Tue, 23 Sep 2003 23:24:30 +0200 (MEST) Original-Received: from mail.solcon.net (mail.solcon.net [212.45.33.5]) by ref.ntg.nl (Postfix) with ESMTP id C1D4010B1C for ; Tue, 23 Sep 2003 23:18:41 +0200 (MEST) Original-Received: from server-1.pragma-net.nl (dsl-212-84-128-085.solcon.nl [212.84.128.85]) by mail.solcon.net (8.11.6/8.9.3) with ESMTP id h8NLITK15721 for ; Tue, 23 Sep 2003 23:18:30 +0200 Original-Received: by server-1.pragma-net.nl (Postfix, from userid 65534) id 29AFA184FB; Tue, 23 Sep 2003 23:18:34 +0200 (CEST) Original-Received: from laptop-3.wxs.nl (unknown [10.100.1.1]) by server-1.pragma-net.nl (Postfix) with ESMTP id DCFAF184F8 for ; Tue, 23 Sep 2003 21:18:32 +0000 (UTC) X-Sender: hagen-mail@localhost X-Mailer: QUALCOMM Windows Eudora Version 5.2.0.9 Original-To: ntg-context@ntg.nl In-Reply-To: <3F707730.88A00C08@lamar.colostate.edu> Errors-To: ntg-context-admin@ntg.nl X-BeenThere: ntg-context@ntg.nl X-Mailman-Version: 2.0.13 Precedence: bulk List-Help: List-Post: List-Subscribe: , List-Id: mailing list for ConTeXt users List-Unsubscribe: , List-Archive: Xref: main.gmane.org gmane.comp.tex.context:13461 X-Report-Spam: http://spam.gmane.org/gmane.comp.tex.context:13461 At 10:39 23/09/2003 -0600, you wrote: >Dear syndicate, > >Sometimes I make a definition like > >\def\TR{\it} > >for certain purposes (structural consistency, etc.). How do I modify >this to automatically do an italic correction the way \em is set up to >do in \ConTeXt? > >====================== > >By the way, did Hans ever make a "final" ConTeXt logo? I still think >that > >\def\Context{{\sc C\kern -.0667emo\kern -.0667emn\kern -.0549emt\kern >-.1667em\lower > .5ex\hbox {e}\kern -.125emx\kern -.0549emt}} > >looks better than Con\TeX{}t (and the smaller \TeX better reflects its >relative role in the whole package), and I've been using the former up >to now. Hope that's not a problem-) To suit your needs i've added: \def\italicsequence#1#2% {\ifx\fontalternative\c!sl#1\else \ifx\fontalternative\c!it#1\else \ifx\fontalternative\c!bs#1\else \ifx\fontalternative\c!bi#1\else#2\fi\fi\fi\fi} \def\symbolicscaledfont#1#2% {\scaledfont\fontbody \scaledfont#1\scaledfont \font\definedfont\truefontname{\glyphfontfile{#2}} at \currentfontbodyscale\scaledfont \definedfont} \def\symbolicfont {\symbolicscaledfont\plusone} \unexpanded\def\getscaledglyph#1#2#3% {{\symbolicscaledfont{#1}{#2}\doifnumberelse{#3}\char\donothing#3}} \def\Context {\dontleavehmode{C\kern -.0667em\getscaledglyph{.8}\empty{O\kern -.0667emN\kern -.0549emT\italicsequence{\kern-.1em}{\kern-.1667em}\lower.5ex\hbox {E}\italicsequence\empty{\kern-.11em}X\kern-.055emT}}} This one adapts itself to sizes and styles and ... {\Context \Context \sl \Context \bid\Context} (maybe some values will change) Hans ------------------------------------------------------------------------- Hans Hagen | PRAGMA ADE | pragma@wxs.nl Ridderstraat 27 | 8061 GH Hasselt | The Netherlands tel: +31 (0)38 477 53 69 | fax: +31 (0)38 477 53 74 | www.pragma-ade.com ------------------------------------------------------------------------- information: http://www.pragma-ade.com/roadmap.pdf documentation: http://www.pragma-ade.com/showcase.pdf -------------------------------------------------------------------------