ntg-context - mailing list for ConTeXt users
 help / color / mirror / Atom feed
From: Wolfgang Schuster <schuster.wolfgang@gmail.com>
To: mailing list for ConTeXt users <ntg-context@ntg.nl>
Subject: Re: Making font smaller in \starttyping environment?
Date: Sat, 31 Aug 2013 18:44:57 +0200	[thread overview]
Message-ID: <3194D5A4-A7FC-420C-84CC-B97D32B45591@gmail.com> (raw)
In-Reply-To: <CAGbDsP2tmO1x_EM344dsLqF=HbYZ0XGVgMUE1NdH9+kjn_KREw@mail.gmail.com>


Am 31.08.2013 um 18:35 schrieb Mari Voipio <mari.voipio@iki.fi>:

> Hello,
> 
> I know I should be able to do it (and think I've done it once upon a
> time), but how do I change the font size just for \tt and for
> \starttyping \stoptyping environment?
> 
> I have no problems with the font used, I just want my typed text to be
> a tad smaller (like \tfx for that font).
> 
> Once again I feel very bewildered in the font land…

When you want a smaller size for the monospaced font you can use the rscale
key from \definetypeface.

\definetypeface [mainface] [rm] [serif] [modern] [default]
\definetypeface [mainface] [tt] [mono]  [modern] [default] [rscale=0.95]

\starttext
Serif text and {\tt monospaced text.}
\stoptext


The font (and also the font size) for the verbatim block could be changed with
the \setuptyping command, e.g.

  \setuptyping[bodyfont=11pt]

or

  \setuptyping[style=small]

Wolfgang

___________________________________________________________________________________
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:[~2013-08-31 16:44 UTC|newest]

Thread overview: 3+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2013-08-31 16:35 Mari Voipio
2013-08-31 16:44 ` Wolfgang Schuster [this message]
2013-08-31 16:58   ` Mari Voipio

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=3194D5A4-A7FC-420C-84CC-B97D32B45591@gmail.com \
    --to=schuster.wolfgang@gmail.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).