ntg-context - mailing list for ConTeXt users
 help / color / mirror / Atom feed
From: "Wolfgang Schuster" <schuster.wolfgang@googlemail.com>
To: "mailing list for ConTeXt users" <ntg-context@ntg.nl>
Subject: Re: using different font faces and sizes in same document
Date: Fri, 10 Oct 2008 09:04:48 +0200	[thread overview]
Message-ID: <115224fb0810100004x6fb5a0f8sbe22e1a31fdf017b@mail.gmail.com> (raw)
In-Reply-To: <gcm600$cko$1@ger.gmane.org>

On Fri, Oct 10, 2008 at 2:01 AM, Mohamed Bana <m.bana.lists@gmail.com> wrote:
> hi guys,
>
> \definetypeface[adobe][rm][serif][minionpro][default]
> %\definetypeface[adobe][rm][serif][agaramondpro][default]
> \definetypeface[adobe][ss][sans][myriadpro][default]
> %\definetypeface[adobe][ss][sans][cronospro][default]
> \setupbodyfont[adobe,11pt]

\definetypeface[one][rm][serif][agaramondpro][default]
\definetypeface[one][ss][sans][cronospro][default]

\definetypeface[two][rm][serif][minionpro][default]
\definetypeface[two][ss][sans][myriadpro][default]

> Given the above, the document will be typeset only in minion pro, I'd
> like to know how to typeset parts of the document in different faces and
> sizes.  For instance, I'd like the first section in minionpro 11pt, then
> say, any other arbitrary section (I choose manually), to be typeset in
> minionpro 12pt.
>
> So;
>
> section1; minionpro 11pt as serif, minionpro as sans
> section2; minionpro 12pt as serif, minionpro as sans
> section3; garamondpro 11pt as serif, cronospro as sans
> section4; garamondpro 12pt as serif, cronospro as sans
>
> etc.

\setupbodyfont[one,11pt]

\starttext

...

\switchtobodyfont[two,12pt]

...

\switchtobodyfont[one,11pt]

...

\stoptext

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  : https://foundry.supelec.fr/projects/contextrev/
wiki     : http://contextgarden.net
___________________________________________________________________________________


  reply	other threads:[~2008-10-10  7:04 UTC|newest]

Thread overview: 3+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2008-10-10  0:01 Mohamed Bana
2008-10-10  7:04 ` Wolfgang Schuster [this message]
2008-10-10 14:49   ` Mohamed Bana

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=115224fb0810100004x6fb5a0f8sbe22e1a31fdf017b@mail.gmail.com \
    --to=schuster.wolfgang@googlemail.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).