ntg-context - mailing list for ConTeXt users
 help / color / mirror / Atom feed
From: "Tom" <Tom@tuxedo-press.com>
To: "'mailing list for ConTeXt users'" <ntg-context@ntg.nl>
Subject: Using fonts from multiple families
Date: Sat, 12 Feb 2011 22:38:36 -0500	[thread overview]
Message-ID: <015e01cbcb2f$7f820540$7e860fc0$@com> (raw)
In-Reply-To: <A3CDF157-4394-43FF-86DC-76AC31B2AD46@gmail.com>



\usetypescriptfile[type-one]
\usetypescriptfile[type-gyr]
TexLive 2010 MKII on a PC

I'm completely flummoxed as how to use fonts from different families.
Follows is an attempt to use Pallatino (rm) for the text of a book,
Iwono-heavy for chapter titles (sansbold), Iwona-light (sans) for page
headers (intended but not implemented), and Chancery (cg) for the
dedication. The only font that appears to come out right are the chapter
titles and I can't change their size without changing the size of the text
font. I apparently haven't found the right manual yet or am too stupid to
understand what must be a relatively simple concept.


\starttypescript [BookFont][texnansi,ec,qx,t5,default]

\definetypeface[BookFont][rm][serif][pallatino][default] %text body
\definetypeface[BookFont][ss][sans][iwona-light][default] %page headers
\definetypeface[BookFont][ss][sansbold][iwona-heavy][default] %chapters
\definetypeface[BookFont][tt][type][postscript][default] %embedded code
\definetypeface[BookFont][cg][calligraphic][chancery][default] %dedic.
\definetypeface[BookFont][mm][math][pallatino][default] %math

\stoptypescript

\usetypescript[BookFont][ec]
\setupbodyfont[BookFont,12pt]
\switchtobodyfont[serif]

\setuphead  [chapter][style=sansbold, alternative=middle]

\definehead [intro][chapter]
\setuphead  [intro][number=no]
\definecombinedlist [content][intro,chapter,section]
\setuphead[chapter][style=sansbold]

\starttext
{\cg Dedication}
\page

\completecontent
\intro{Introduction - Ag}
\input knuth
\chapter{First chapter - Ag}
\input knuth
\chapter{Second Chapter - Ag}
\input Knuth
\stoptext

Tom Benjey
717-258-9733 voice
717-243-0074 fax
blog: www.TomBenjey.com




-----Original Message-----
From: ntg-context-bounces@ntg.nl [mailto:ntg-context-bounces@ntg.nl] On
Behalf Of Wolfgang Schuster
Sent: Saturday, February 12, 2011 1:56 PM
To: mailing list for ConTeXt users
Subject: Re: [NTG-context] Table of Contents issues


Am 12.02.2011 um 18:12 schrieb Tom:

> Using a very recent download of TexLive 2010 (MKII) on my PC, my success
> generating a useful table of contents has been somewhat limited.
> 
> I can't figure out how to put the title, "Contents," in the font I desire.
> The various parameters I found in the documentation affect the chapter
> titles and the page numbers but nothing I've found allows me to control
the
> title of the ToC. What am I overlooking? 
> 
> I would also like for the unnumbered "chapter" titles, such as
introduction
> or preface, to align with the other chapter titles, not with their
numbers.
> Aligntitle seems to have no effect on anything from what I have seen.

\setuphead[chapter][style=sansbold] 

\definehead[intro][chapter]
\setuphead [intro][number=no]

\definecombinedlist[content][intro,chapter,section]
\setupcombinedlist [content][style=sansbold]

\starttext
\completecontent
\intro{Introduction}
\input knuth
\chapter{First chapter}
\input knuth
\chapter{Second Chapter}
\input knuth
\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  : 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
___________________________________________________________________________________


  parent reply	other threads:[~2011-02-13  3:38 UTC|newest]

Thread overview: 20+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2011-02-12 17:12 Table of Contents issues Tom
2011-02-12 18:55 ` Wolfgang Schuster
2011-02-12 20:29   ` Tom
2011-02-13  9:19     ` Wolfgang Schuster
2011-02-13  3:38   ` Tom [this message]
2011-02-13  9:59     ` Using fonts from multiple families Wolfgang Schuster
2011-02-13 13:23       ` Tom
2011-02-13 13:36         ` Wolfgang Schuster
2011-02-13 14:39           ` Tom
2011-02-13 14:55             ` Wolfgang Schuster
2011-02-13 20:40       ` Getting paragraphs to indent Tom
2011-02-13 20:58         ` Wolfgang Schuster
2011-02-13 21:55           ` Tom
2011-02-16 14:06           ` Stretching chapter titles - MKII Tom
2011-02-16 14:14             ` Cedric Mauclair
2011-02-16 14:52               ` John McGarrachan
2011-02-16 15:20             ` Aditya Mahajan
2011-02-13 12:43 Using fonts from multiple families Jeong Dalyoung
2011-02-13 12:49 ` Wolfgang Schuster
2011-02-13 15:05 Jeong Dalyoung

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='015e01cbcb2f$7f820540$7e860fc0$@com' \
    --to=tom@tuxedo-press.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).