ntg-context - mailing list for ConTeXt users
 help / color / mirror / Atom feed
From: Idris S Hamid <ishamid@attbi.com>
Subject: Re: \switchtobodyfont[cmr]  in Gamma
Date: Wed, 13 Nov 2002 14:16:26 -0800	[thread overview]
Message-ID: <200211131416.26124.ishamid@attbi.com> (raw)
In-Reply-To: <200211111448.05918.ishamid@attbi.com>

Ok, I've found a solution! Here is my new typescript file, type-cmr.tex. There 
is probably a way to condense this but I was taking no chances:->:

------------type-cmr.tex---------------
%%% Names and synonyms

\starttypescript [serif] [knuth] [name]
\usetypescript   [serif] [computer-modern] [name]
\stoptypescript


\starttypescript [sans] [knuth] [name]
\usetypescript   [sans] [computer-modern] [name]
\stoptypescript


\starttypescript [mono] [knuth] [name]
\usetypescript   [mono] [computer-modern] [name]
\stoptypescript


\starttypescript [math] [knuth] [name]
\usetypescript   [math] [computer-modern] [name]
\stoptypescript

%%% Sizes

\starttypescript [serif] [knuth] [size]
\usetypescript   [serif] [computer-modern] [size]
\stoptypescript


\starttypescript [sans] [knuth] [size]
\usetypescript   [sans] [computer-modern] [size]
\stoptypescript


\starttypescript [mono] [knuth] [size]
\usetypescript   [mono] [computer-modern] [size]
\stoptypescript


\starttypescript [math] [knuth] [size]
\usetypescript   [math] [computer-modern] [size]
\stoptypescript

%%% Final collection

\starttypescript [MyCMR]

  \definebodyfontenvironment
    [mycmr]
    [default]
    [interlinespace=2.8ex]
    
  \definetypeface [mycmr] [rm] [serif] [knuth] [knuth]
  \definetypeface [mycmr] [ss] [sans]  [knuth] [knuth]
  \definetypeface [mycmr] [tt] [mono]  [knuth] [knuth]
  \definetypeface [mycmr] [mm] [math]  [knuth] [knuth]

\stoptypescript
---------------------------------------------

Now the following file works, also for the commented scenario!

-------------cm-test.tex------------------
\input m-gamma.tex
\input type-omg.tex
\input type-cmr.tex

\usetypescriptfile[type-cmr]
\usetypescript[MyCMR]
%\setupbodyfont[mycmr,14pt]
\setupbodyfont[omlgc,14.4pt]

\starttext

This is a test 

%\switchtobodyfont[omlgc,14.4pt]
\switchtobodyfont[mycmr,14pt]

This is a test 

%\switchtobodyfont[mycmr,14pt]
\switchtobodyfont[omlgc,14.4pt]

This is a test 
------------------------------------------------

So now I'm sure that there's something wrong with the default setup:->

Question: why do I get the following warnings and how can I get rid of them?

systems        : begin file cm-test at line 10
bodyfont       : bodyfont 9.7pt is defined (can better be done global)
bodyfont       : bodyfont 9.7pt is defined (can better be done global)
bodyfont       : bodyfont 11.2pt is defined (can better be done global)
bodyfont       : bodyfont 11.2pt is defined (can better be done global)
bodyfont       : bodyfont 8.4pt is defined (can better be done global)
bodyfont       : bodyfont 8.4pt is defined (can better be done global)
bodyfont       : bodyfont 16.7pt is defined (can better be done global)
bodyfont       : bodyfont 16.7pt is defined (can better be done global)
bodyfont       : bodyfont 14pt is defined (can better be done global)
bodyfont       : bodyfont 14pt is defined (can better be done global)
[1.1]
systems        : end file cm-test at line 24

Question: ConTeXt takes a long time to load all the font info. 

Can I suppress this info? 
Is there a way to speed things up?

About Omega, I changed ConTeXt's values in texmf.cnf:
string_vacancies.context =  180000
max_strings.context      =  200000

Question: why does every TeX-variant in the book have a full array of config 
values except for Omega, which only has ocp values? 

Best wishes
Idris

-- 
Dr. Idris S Hamid
Department of Philosophy
Colorado State University
Fort Collins, CO 80523

  parent reply	other threads:[~2002-11-13 22:16 UTC|newest]

Thread overview: 17+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2002-11-11 22:48 Idris S Hamid
2002-11-11 21:56 ` Giuseppe Bilotta
2002-11-11 23:28 ` Giuseppe Bilotta
2002-11-12  1:02   ` Idris S Hamid
2002-11-12  8:31 ` Hans Hagen
2002-11-12 14:06   ` Re[2]: " Giuseppe Bilotta
2002-11-12 18:12     ` Hans Hagen
2002-11-12 22:10       ` Re[3]: " Giuseppe Bilotta
2002-11-13  8:39         ` Hans Hagen
2002-11-13 11:31           ` Re[4]: " Giuseppe Bilotta
2002-11-13 16:16             ` Hans Hagen
2002-11-13 20:25           ` Re[3]: " Idris S Hamid
2002-11-13 20:07   ` Idris S Hamid
2002-11-12 11:59 ` Matthew Huggett
2002-11-13 19:53   ` Idris S Hamid
2002-11-13 22:16 ` Idris S Hamid [this message]
2002-11-13 23:06   ` Idris S Hamid

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=200211131416.26124.ishamid@attbi.com \
    --to=ishamid@attbi.com \
    --cc=ntg-context@ref.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).