ntg-context - mailing list for ConTeXt users
 help / color / mirror / Atom feed
From: "Rogers, Michael K" <mroge02@emory.edu>
To: mailing list for ConTeXt users <ntg-context@ntg.nl>
Subject: Re: Small caps?
Date: Wed, 25 Jul 2012 12:34:17 +0000	[thread overview]
Message-ID: <73648896-FC94-43DE-AE67-D1CC194411C9@emory.edu> (raw)
In-Reply-To: <CAH-HCWW4j27FyXKdB2t3ke3CoOzO-DKSitqpET2wfnPLQ=j_Mg@mail.gmail.com>


On Jul 25, 2012, at 1:06 AM, Shriramana Sharma wrote:

> On Wed, Jul 25, 2012 at 10:29 AM, Rogers, Michael K <mroge02@emory.edu> wrote:
>>
>> Here's a hack, which sort of works, definitely doesn't handle <return> -- 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
___________________________________________________________________________________


  parent reply	other threads:[~2012-07-25 12:34 UTC|newest]

Thread overview: 21+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2012-07-24 19:11 Shriramana Sharma
2012-07-24 19:25 ` Wolfgang Schuster
2012-07-24 19:29   ` Shriramana Sharma
2012-07-24 21:21     ` Hans Hagen
2012-07-24 21:52       ` Khaled Hosny
2012-07-24 19:34 ` Marco
2012-07-25  2:33   ` Shriramana Sharma
2012-07-25  3:08     ` Aditya Mahajan
2012-07-25  4:39       ` Shriramana Sharma
2012-07-25  4:59     ` Rogers, Michael K
2012-07-25  5:06       ` Shriramana Sharma
2012-07-25  7:04         ` Marco
2012-07-25  7:43           ` Mojca Miklavec
2012-07-25 13:12             ` Wolfgang Schuster
2012-07-25 12:34         ` Rogers, Michael K [this message]
2012-07-25  7:35     ` Hans Hagen
2012-07-25  7:41       ` Mojca Miklavec
2012-07-25  7:53         ` Hans Hagen
2012-07-25  8:16           ` Shriramana Sharma
2012-07-25  8:22             ` luigi scarso
2012-07-25  8:24             ` Hans Hagen

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=73648896-FC94-43DE-AE67-D1CC194411C9@emory.edu \
    --to=mroge02@emory.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).