ntg-context - mailing list for ConTeXt users
 help / color / mirror / Atom feed
From: Raymond LeClair <raymond.leclair@synterein.com>
To: mailing list for ConTeXt users <ntg-context@ntg.nl>
Subject: Re: Computer Modern Typewriter Proportional
Date: Mon, 10 Jan 2011 08:32:10 -0500	[thread overview]
Message-ID: <81D0B130-A0F1-4EB8-A5BF-30539AB66C5F@synterein.com> (raw)
In-Reply-To: <20110110083654.GA3431@aides>

This is terrific! Thank you.

On Jan 10, 2011, at 3:36 AM, Philipp Gesang wrote:

> On 2011-01-09 <19:31:24>, Raymond LeClair wrote:
>> Does anyone know how the "Computer Modern Typewriter Proportional" font would be specified in ConTeXt?
>> 
>> In Latex is is specified as follows:
>> 
>> \usepackage[T1]{fontenc}
>> \renewcommand*\ttdefault{cmvtt}
>> \renewcommand*\familydefault{\ttdefault} %% Only if the base font of the document is to be typewriter style
>> 
>> See: http://www.tug.dk/FontCatalogue/cmvtt/
>> 
>> Any help would be appreciated!
> 
> Hello Raymond,
> 
> there’s two ways I know of: 1. for *latin* modern, use the
> typescript “modern-variable”; 2. for *cm unicode*, redefine the
> mono typefaces. (Of course, if yow need exactly cm then this
> might not help you at all, sorry.) Here’s an example to
> demonstrate both.
> 
> ·····8<··························································
> 
> \usetypescriptfile[type-cmu]
> 
> \unprotect
> \starttypescript [\s!mono] [computer-modern-unicode] % by default cmu does not define the variable width mono faces
>    \setups[\s!font:\s!fallback:\s!mono]
>    \definefontsynonym [\s!Mono]           [CMUTypewriter-Variable]       [\s!features=\s!default]
>    \definefontsynonym [\s!MonoItalic]     [CMUTypewriter-VariableItalic] [\s!features=\s!default]
> \stoptypescript
> \protect
> 
> \usetypescript [computer-modern-unicode]  % for cmu
> \usetypescript [modern-variable]          % for lm
> %\usetypescript [modern-variable-light]    % alternative for lm
> 
> \setupbodyfont [computer-modern-unicode]
> 
> \starttext
> 
> {\tt\input knuth\par}                                   % testing cmu
> {\tt\italic\input knuth\par}                            % testing cmu-it
> {\switchtobodyfont[modernvariable]\tt\input knuth\par}  % testing lm
> 
> \stoptext
> 
> ·····8<··························································
> 
> Regards, Philipp
> 
> Btw, modern-variable causes different line breaks than ordinary
> lm-tt but it does not appear to be as proportional as the cmu
> version. Did I do something wrong?
> 
>> ___________________________________________________________________________________
>> 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
>> ___________________________________________________________________________________
> 
> -- 
> ()  ascii ribbon campaign - against html e-mail
> /\  www.asciiribbon.org   - against proprietary 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
> ___________________________________________________________________________________

___________________________________________________________________________________
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
___________________________________________________________________________________


      reply	other threads:[~2011-01-10 13:32 UTC|newest]

Thread overview: 3+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2011-01-10  0:31 Raymond LeClair
2011-01-10  8:36 ` Philipp Gesang
2011-01-10 13:32   ` Raymond LeClair [this message]

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=81D0B130-A0F1-4EB8-A5BF-30539AB66C5F@synterein.com \
    --to=raymond.leclair@synterein.com \
    --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).