From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.io/gmane.comp.tex.context/77584 Path: news.gmane.org!not-for-mail From: "Rogers, Michael K" Newsgroups: gmane.comp.tex.context Subject: Re: Small caps? Date: Wed, 25 Jul 2012 12:34:17 +0000 Message-ID: <73648896-FC94-43DE-AE67-D1CC194411C9@emory.edu> References: <20120724213437.10149b34@homerow> <3BF6D929-59A0-497A-AF97-E0538AFD3C62@emory.edu> Reply-To: mailing list for ConTeXt users NNTP-Posting-Host: plane.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit X-Trace: dough.gmane.org 1343219673 8692 80.91.229.3 (25 Jul 2012 12:34:33 GMT) X-Complaints-To: usenet@dough.gmane.org NNTP-Posting-Date: Wed, 25 Jul 2012 12:34:33 +0000 (UTC) To: mailing list for ConTeXt users Original-X-From: ntg-context-bounces@ntg.nl Wed Jul 25 14:34:33 2012 Return-path: Envelope-to: gctc-ntg-context-518@m.gmane.org Original-Received: from balder.ntg.nl ([195.12.62.10]) by plane.gmane.org with esmtp (Exim 4.69) (envelope-from ) id 1Su0nQ-0002IJ-K5 for gctc-ntg-context-518@m.gmane.org; Wed, 25 Jul 2012 14:34:32 +0200 Original-Received: from localhost (localhost [127.0.0.1]) by balder.ntg.nl (Postfix) with ESMTP id B886E102DB; Wed, 25 Jul 2012 14:34:31 +0200 (CEST) X-Virus-Scanned: Debian amavisd-new at balder.ntg.nl Original-Received: from balder.ntg.nl ([127.0.0.1]) by localhost (balder.ntg.nl [127.0.0.1]) (amavisd-new, port 10024) with LMTP id uNT9wjoD7dnO; Wed, 25 Jul 2012 14:34:29 +0200 (CEST) Original-Received: from balder.ntg.nl (localhost [IPv6:::1]) by balder.ntg.nl (Postfix) with ESMTP id 97A2210236; Wed, 25 Jul 2012 14:34:29 +0200 (CEST) Original-Received: from localhost (localhost [127.0.0.1]) by balder.ntg.nl (Postfix) with ESMTP id 2B9E610236 for ; Wed, 25 Jul 2012 14:34:28 +0200 (CEST) X-Virus-Scanned: Debian amavisd-new at balder.ntg.nl Original-Received: from balder.ntg.nl ([127.0.0.1]) by localhost (balder.ntg.nl [127.0.0.1]) (amavisd-new, port 10024) with LMTP id 0wKY51KefF8Q for ; Wed, 25 Jul 2012 14:34:26 +0200 (CEST) Original-Received: from filter3-ams.mf.surf.net (filter3-ams.mf.surf.net [192.87.102.71]) by balder.ntg.nl (Postfix) with ESMTP id 559DE1020D for ; Wed, 25 Jul 2012 14:34:26 +0200 (CEST) Original-Received: from ws-mr1.cc.emory.edu (ws-mr1.cc.emory.edu [170.140.50.231]) by filter3-ams.mf.surf.net (8.14.3/8.14.3/Debian-9.4) with ESMTP id q6PCYOTs006948 for ; Wed, 25 Jul 2012 14:34:25 +0200 Original-Received: from e14edge1n.Emory.Edu (emoryfloatdmz.cc.emory.edu [170.140.52.254]) by ws-mr1.cc.emory.edu (8.13.8/8.13.8) with ESMTP id q6PCYJth004188 for ; Wed, 25 Jul 2012 08:34:19 -0400 Original-Received: from E14CH2W.Enterprise.emory.net (10.240.10.114) by e14edge1n.Emory.Edu (170.140.52.18) with Microsoft SMTP Server (TLS) id 14.2.283.3; Wed, 25 Jul 2012 08:34:18 -0400 Original-Received: from E14MBX23N.Enterprise.emory.net ([fe80::b473:ef05:b37f:5ccd]) by e14ch2w.Enterprise.emory.net ([::1]) with mapi id 14.02.0283.003; Wed, 25 Jul 2012 08:34:18 -0400 Thread-Topic: [NTG-context] Small caps? Thread-Index: AQHNadAvS6HMpC8h5U+LoOSMIEWypZc40zLJgAC32oCAACkLgIAAAfCAgAB9A4A= In-Reply-To: Accept-Language: en-US Content-Language: en-US X-MS-Has-Attach: X-MS-TNEF-Correlator: x-originating-ip: [170.140.30.131] Content-ID: <8D33203EBC24254FB125AC68723DABD5@Enterprise.emory.net> X-Emory-MailScanner-Information: Please contact the ISP for more information X-Emory-MailScanner-ID: q6PCYJth004188 X-Emory-MailScanner: Found to be clean X-Emory-MailScanner-SpamCheck: not spam, SpamAssassin (not cached, score=-0.01, required 8, autolearn=disabled, T_RP_MATCHES_RCVD -0.01) X-Emory-MailScanner-From: mroge02@emory.edu X-Bayes-Prob: 0.0001 (Score 0, tokens from: @@RPTN) X-CanIt-Geo: ip=170.140.50.231; country=US; region=GA; city=Atlanta; postalcode=30322; latitude=33.7952; longitude=-84.3248; metrocode=524; areacode=404; http://maps.google.com/maps?q=33.7952,-84.3248&z=6 X-CanItPRO-Stream: uu:ntg-context@ntg.nl (inherits from uu:default, base:default) X-Canit-Stats-ID: 03HCAypUI - c7f29850420b - 20120725 (trained as not-spam) X-Scanned-By: CanIt (www . roaringpenguin . com) on 192.87.102.71 X-BeenThere: ntg-context@ntg.nl X-Mailman-Version: 2.1.14 Precedence: list List-Id: mailing list for ConTeXt users List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: ntg-context-bounces@ntg.nl Original-Sender: ntg-context-bounces@ntg.nl Xref: news.gmane.org gmane.comp.tex.context:77584 Archived-At: On Jul 25, 2012, at 1:06 AM, Shriramana Sharma wrote: > On Wed, Jul 25, 2012 at 10:29 AM, Rogers, Michael K wrote: >> >> Here's a hack, which sort of works, definitely doesn't handle -- there must be a better way. I hope you don't mind my using your text as text. :-) > > Hi thanks for your help. Sorry to keep returning with errors (but as I > said I'm a noob): > > loading : ConTeXt User Module / Simplefonts > ! Undefined control sequence. > l.144 \ctxloadluafile > {t-simplefonts}{} > > I checked and the package context-modules is installed on my system. Sorry about that. You should load your font in your usual way. As has been pointed out, this is not a robust solution. % load your favorite font here \def\smallcaps{\begingroup\let\par=\space\obeylines\obeyspaces\let\myspace=\space\dosmallcaps} \def\dosmallcaps#1{\dosc#1\end\endgroup} \def\dosc#1{% assumes #1 is a sequence of characters \ifx#1\end \let\next=\relax \else\if#1\space \myspace\let\myspace=\relax% skip repeated spaces \else\ifnum\lccode`#1=`#1{\tfx \uppercase{#1}}% change \tfx to your desired size \else #1\fi \let\myspace=\space \fi \let\next=\dosc \fi\next} \starttext Basically I'm trying to move away from wordprocessors, and while I'm not looking for meaningless effects like "walking ants" \smallcaps{(from MS Word)} to be provided by \TeX\ macro packages, faux smallcaps (and oblique and bold) is not an unreasonable thing to expect IMO. Not everyone is a typographer to produce the appropriate fine-typography glyphs for their favourite font to cater to a particular style. Why should the system impose \smallcaps{"super-duper" Typography} on users when they are willing to settle for less? \smallcaps{Look, returns now work} %\smallcaps{but \TeX\ and other control sequences do not.} \stoptext ________________________________ This e-mail message (including any attachments) is for the sole use of the intended recipient(s) and may contain confidential and privileged information. If the reader of this message is not the intended recipient, you are hereby notified that any dissemination, distribution or copying of this message (including any attachments) is strictly prohibited. If you have received this message in error, please contact the sender by reply e-mail message and destroy all copies of the original message (including attachments). ___________________________________________________________________________________ If your question is of interest to others as well, please add an entry to the Wiki! maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-context webpage : http://www.pragma-ade.nl / http://tex.aanhet.net archive : http://foundry.supelec.fr/projects/contextrev/ wiki : http://contextgarden.net ___________________________________________________________________________________