Re: [NTG-context] Using fonts from multiple families

2011-02-13 Thread Wolfgang Schuster

Am 13.02.2011 um 04:38 schrieb Tom:

 
 
 \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.

You can define multiple typefaces.

% engine=pdftex

% fonts

\definetypeface [mainface] [rm] [serif] [palatino][default]
\definetypeface [mainface] [ss] [sans]  [iwona-heavy] [default]
\definetypeface [mainface] [tt] [mono]  [modern]  [default]
\definetypeface [mainface] [mm] [math]  [palatino][default]

\definetypeface [pagenumber] [ss] [sans] [iwona-light] [default]

\definetypeface [dedication] [rm] [serif] [chancery] [default]

\setupbodyfont[mainface]

% headings

\definehead [intro] [chapter]
\definehead [dedication][chapter]

\setuphead[chapter][style=\ss\bfa,alternative=middle]
\setuphead[intro][number=no]
\setuphead[dedication][number=no,style={\switchtobodyfont[dedication,16pt]}]

\definecombinedlist [content][intro,chapter,section]

% pagenumbers

\setuppagenumbering[style={\switchtobodyfont[pagenumber]}]

\starttext
\dedication{Dedication}
\completecontent
\intro{Introduction - Ag}
\input knuth
\chapter{First chapter - Ag}
\input knuth
\chapter{Second Chapter - Ag}
\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
___


Re: [NTG-context] Using fonts from multiple families

2011-02-13 Thread Jeong Dalyoung
Dear Wolfgang,

I tested your example on the multiple families of fonts.

It works nicely. 
I have a few question.

There is no toc generated, just only head Contents appeared.

Since Intro and dedication are counted as chapters, the first chapter numbered 
3. How to start chapter number from 1 for the first chapter?

Thank you.

Best regards,

Dalyoung

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


Re: [NTG-context] Using fonts from multiple families

2011-02-13 Thread Wolfgang Schuster

Am 13.02.2011 um 13:43 schrieb Jeong Dalyoung:

 Dear Wolfgang,
 
 I tested your example on the multiple families of fonts.
 
 It works nicely. 
 I have a few question.
 
 There is no toc generated, just only head Contents appeared.
 
 Since Intro and dedication are counted as chapters, the first chapter 
 numbered 3. How to start chapter number from 1 for the first chapter?

Replace “number=no” with “incrementnumber=no”.

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
___


Re: [NTG-context] Using fonts from multiple families

2011-02-13 Thread Tom
Thank you very much, Wolfgang. The time zone difference is helpful
sometimes. I went to bed last night very frustrated and woke up this morning
to find your solution in my inbox. It is also good to see that your
assistance to me has also helped someone else. I do have a couple of
questions:

1. Why aren't the \usetypescriptfile commands necessary?
2. It never occurred to me to consider the dedication as a separate chapter.
Logically, it is but is the inverse of other chapters, sort of, in that the
chapter title isn't normally displayed and the body of the chapter is
printed in a different font than are the other chapters.

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



-Original Message-
From: ntg-context-boun...@ntg.nl [mailto:ntg-context-boun...@ntg.nl] On
Behalf Of Wolfgang Schuster
Sent: Sunday, February 13, 2011 4:59 AM
To: mailing list for ConTeXt users
Subject: Re: [NTG-context] Using fonts from multiple families


Am 13.02.2011 um 04:38 schrieb Tom:

 
 
 \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.

You can define multiple typefaces.

% engine=pdftex

% fonts

\definetypeface [mainface] [rm] [serif] [palatino][default]
\definetypeface [mainface] [ss] [sans]  [iwona-heavy] [default]
\definetypeface [mainface] [tt] [mono]  [modern]  [default]
\definetypeface [mainface] [mm] [math]  [palatino][default]

\definetypeface [pagenumber] [ss] [sans] [iwona-light] [default]

\definetypeface [dedication] [rm] [serif] [chancery] [default]

\setupbodyfont[mainface]

% headings

\definehead [intro] [chapter]
\definehead [dedication][chapter]

\setuphead[chapter][style=\ss\bfa,alternative=middle]
\setuphead[intro][number=no]
\setuphead[dedication][number=no,style={\switchtobodyfont[dedication,16pt]}]

\definecombinedlist [content][intro,chapter,section]

% pagenumbers

\setuppagenumbering[style={\switchtobodyfont[pagenumber]}]

\starttext
\dedication{Dedication}
\completecontent
\intro{Introduction - Ag}
\input knuth
\chapter{First chapter - Ag}
\input knuth
\chapter{Second Chapter - Ag}
\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
___


Re: [NTG-context] Using fonts from multiple families

2011-02-13 Thread Wolfgang Schuster

Am 13.02.2011 um 14:23 schrieb Tom:

 Thank you very much, Wolfgang. The time zone difference is helpful
 sometimes. I went to bed last night very frustrated and woke up this morning
 to find your solution in my inbox. It is also good to see that your
 assistance to me has also helped someone else. I do have a couple of
 questions:
 
 1. Why aren't the \usetypescriptfile commands necessary?

ConTeXt already load there files to let you use the palatino etc. fonts

 2. It never occurred to me to consider the dedication as a separate chapter.
 Logically, it is but is the inverse of other chapters, sort of, in that the
 chapter title isn't normally displayed and the body of the chapter is
 printed in a different font than are the other chapters.

Add this to my example:

\definestartstop[dedication][style={\switchtobodyfont[dedication]}]

You can now write in your document

\dedication{...}

and

\startdedeication
...
\stopdedication

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
___


Re: [NTG-context] Using fonts from multiple families

2011-02-13 Thread Tom
This should be my last question on this topic. I want to center the
dedication but align=middle (or center) and alternative=middle added to
\definestartstop[dedication] seem to have no effect. I can't seem to find a
simple way to center an odd line of paragraph of text. Using a frame seems
like using a sledgehammer to pound a tack.

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




-Original Message-
From: ntg-context-boun...@ntg.nl [mailto:ntg-context-boun...@ntg.nl] On
Behalf Of Wolfgang Schuster
Sent: Sunday, February 13, 2011 8:36 AM
To: mailing list for ConTeXt users
Subject: Re: [NTG-context] Using fonts from multiple families


Am 13.02.2011 um 14:23 schrieb Tom:

 Thank you very much, Wolfgang. The time zone difference is helpful
 sometimes. I went to bed last night very frustrated and woke up this
morning
 to find your solution in my inbox. It is also good to see that your
 assistance to me has also helped someone else. I do have a couple of
 questions:
 
 1. Why aren't the \usetypescriptfile commands necessary?

ConTeXt already load there files to let you use the palatino etc. fonts

 2. It never occurred to me to consider the dedication as a separate
chapter.
 Logically, it is but is the inverse of other chapters, sort of, in that
the
 chapter title isn't normally displayed and the body of the chapter is
 printed in a different font than are the other chapters.

Add this to my example:

\definestartstop[dedication][style={\switchtobodyfont[dedication]}]

You can now write in your document

\dedication{...}

and

\startdedeication
...
\stopdedication

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
___


Re: [NTG-context] Using fonts from multiple families

2011-02-13 Thread Wolfgang Schuster

Am 13.02.2011 um 15:39 schrieb Tom:

 This should be my last question on this topic. I want to center the
 dedication but align=middle (or center) and alternative=middle added to
 \definestartstop[dedication] seem to have no effect. I can't seem to find a
 simple way to center an odd line of paragraph of text. Using a frame seems
 like using a sledgehammer to pound a tack.

Why not?

\defineframedtext
  [dedication]
  [frame=off,
   align=middle,
   style={\switchtobodyfont[dedication]},
   width=\textwidth]

You can also \setupalign to \definestartstop:

\definestartstop
  [dedication]
  [style={\switchtobodyfont[dedication]},
   commands={\setupalign[middle]}]

Another option for MkIV (only) is the annotation module:

\defineannotation
  [dedication]
  [style={\switchtobodyfont[dedication]},
   align=middle]

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
___


Re: [NTG-context] Using fonts from multiple families

2011-02-13 Thread Jeong Dalyoung
Dear Wolfgang,

It is nicely working.
Chapter numbers and contents are look good.

Thank you.

Best regards,

Dalyoung
___
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
___


[NTG-context] Using fonts from multiple families

2011-02-12 Thread Tom


\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-boun...@ntg.nl [mailto:ntg-context-boun...@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
___


[NTG-context] Using fonts of an existing TeX-Installation

2005-05-05 Thread Tobias Hilbricht
Dear readers of this list,
I have a working recent (La)TeX and ConTeXt installation. I have added several 
commercial PostScript fonts and can use them with (La)TeX. The font files of 
those fonts are in   directories under texmf-local/fonts (afm, tfm, vf, 
type1), that is, as suggested by TeXFont manual for ConTeXt.
However,  following the TeXFont manual for ConTeXt, do I have to reinstall 
them from scratch for ConTeXt starting with the pfb- and afm-files from 
texmf-local/fonts/source, or can I use the already distributed pfb- and 
afm-files? Does a reinstallation interfer with the existing font installation 
for (La)TeX?

Thanks for helpful hints in advance

Yours sincerely

Tobias Hilbricht
 
-- 
Dr. Tobias Hilbricht
Linopus Satz und Grafik
www.linopus.de
___
ntg-context mailing list
ntg-context@ntg.nl
http://www.ntg.nl/mailman/listinfo/ntg-context


[NTG-context] using fonts -- installation

2004-12-07 Thread r . ermers
Dear Contexers,

I'm logging in through webmail, so right now I cannot try your suggestions but 
I will as soon as I get home. I already thank everybody for responding.

I am puzzled by this line which Hans wrote:

\definetypeface[johanna][rm][serif][palatino][default]

Hans further writes that [serif][palatino] is the main typescript filter and 
that [rm] is mapped on to [serif][palatino]

I don't quite grasp this.

- Why exactly do I have to refer to [serif][palatino]?
- Do you mean that palatino serves as a default which has to be remapped when a 
new font is installed?
- Where is this status of palatino registered? 
- And why did you chose palatino, rather than another typeface?

Thanks again,

Robert


 Rob Ermers wrote:
 
 
 The font is simply not recognised (log file message: bodyfont: unknown
 variant johanna). Of course, I am still miles away of getting my cyrillic
 font working under context...
 
 that message is an indication that you didn't define it as bodyfont
 
 for instance:
 
 \definetypeface[johanna][rm][serif][palatino][default]
 
 
 will provide
 
 \setupbodyfont[johanna,10pt,rm]
 
 
 the combination [serif] [palatino] is the main typescript filter, while
 [rm] is
 what it gets mapped onto; [default] concerns the size
 
 Hans
 
 
 
 -
 Hans Hagen | PRAGMA ADE
 Ridderstraat 27 | 8061 GH Hasselt | The Netherlands
 tel: 038 477 53 69 | fax: 038 477 53 74 | www.pragma-ade.com
 | www.pragma-pod.nl
 -
 
 
 

___
ntg-context mailing list
[EMAIL PROTECTED]
http://www.ntg.nl/mailman/listinfo/ntg-context


Re: [NTG-context] using fonts

2004-12-07 Thread Hans Hagen
Adam Lindsay wrote:
Wolfgang Zillig said this at Tue, 7 Dec 2004 09:18:43 +0100:

Adam Lindsay wrote:

But before that, TeX needs uplr8t.tfm to know how wide characters are so
it can put boxes in the right place.
but where do I get the tfm or how to create them?

Good question. I'll throw it open to the list:
Metrics for the urw clone 35 used to be commonly found everywhere. Where
have they gone?
one time they were under urw, then under urw35, now back under urw if i'm 
right
Hans
-
  Hans Hagen | PRAGMA ADE
  Ridderstraat 27 | 8061 GH Hasselt | The Netherlands
 tel: 038 477 53 69 | fax: 038 477 53 74 | www.pragma-ade.com
 | www.pragma-pod.nl
-
___
ntg-context mailing list
[EMAIL PROTECTED]
http://www.ntg.nl/mailman/listinfo/ntg-context


Re: [NTG-context] using fonts

2004-12-07 Thread Wolfgang Zillig
with miktex there is a path C:\texmf\fonts\tfm\urw with some subfolders, but all 
of them are empty. For example Helvetica is located 
C:\texmf\fonts\tfm\adobe\helvetic and all files starting with p.

I think that was the problem with selecting fonts on my system.
Wolfgang
Hans Hagen wrote:
Adam Lindsay wrote:
Wolfgang Zillig said this at Tue, 7 Dec 2004 09:18:43 +0100:

Adam Lindsay wrote:

But before that, TeX needs uplr8t.tfm to know how wide characters 
are so
it can put boxes in the right place.

but where do I get the tfm or how to create them?

Good question. I'll throw it open to the list:
Metrics for the urw clone 35 used to be commonly found everywhere. Where
have they gone?

one time they were under urw, then under urw35, now back under urw if 
i'm right

Hans
-
  Hans Hagen | PRAGMA ADE
  Ridderstraat 27 | 8061 GH Hasselt | The Netherlands
 tel: 038 477 53 69 | fax: 038 477 53 74 | www.pragma-ade.com
 | www.pragma-pod.nl
-
___
ntg-context mailing list
[EMAIL PROTECTED]
http://www.ntg.nl/mailman/listinfo/ntg-context

___
ntg-context mailing list
[EMAIL PROTECTED]
http://www.ntg.nl/mailman/listinfo/ntg-context


Re: [NTG-context] using fonts

2004-12-07 Thread Adam Lindsay
Wolfgang Zillig said this at Tue, 7 Dec 2004 13:15:42 +0100:

with miktex there is a path C:\texmf\fonts\tfm\urw with some subfolders,
but all 
of them are empty. For example Helvetica is located 
C:\texmf\fonts\tfm\adobe\helvetic and all files starting with p.

I think that was the problem with selecting fonts on my system.

Sigh. me too.
This is a recent change in my distro, I think.
try adding this line:
\usetypescript[adobekb][ec]

This causes the mapping from ec-uplr8a:
\starttypescript [adobekb] [ec]
 \definefontsynonym [ec-uplr8a] [pplr8t]  [encoding=ec]

...which you should have on your system.

Sorry (especially to Patrick!) for being misleading earlier. My head was
still in TeXLive mode.
-- 
=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=
 Adam T. Lindsay, Computing Dept. [EMAIL PROTECTED]
 Lancaster University, InfoLab21+44(0)1524/510.514
 Lancaster, LA1 4WA, UK Fax:+44(0)1524/510.492
-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-

___
ntg-context mailing list
[EMAIL PROTECTED]
http://www.ntg.nl/mailman/listinfo/ntg-context


[NTG-context] using fonts

2004-12-06 Thread Wolfgang Zillig
Hello,
I think I´mgetting confused with all of the font selection within context.
First: I have a miktex environment on on W2K.
1.
to change single fonts:
\definetypeface [palatino] [rm] [serif] [palatino] [default] [encoding=ec]
\switchtotypeface[palatino][12pt,rm]
results in an error that the font is not found (font: uplr8t)
on my system following files are available:
uplr8a.afm
uplr8v.tfm
uplr8v.pfb
uplr8a.pfb
uplr8v.htf
but I think tfm is needed
2.
I thought that the default encoding should be texnansi
I tried that but context is looking for texnansi-uhvr8a (here for helvet). The 
font uhvr8a is on my system.

3.
should be there some font-switching macros on the system called font-xxx.tex 
(example font-lbr.tex)? These are missing on my system.
I think these are needed forthings like:
\setupbodyfont[lbr, sans, 12pt]

4.
within miktex there are lucida font files from yandy (lbr.tfm
). Is that a free version of lucida-font?
(is that for math? [there is anotherfile called math-lbt.tex in \context\base])
Summary:
do I need to get the missing fonts/files and why are they not provided with 
miktex.
Perhaps a change of the distribution is to prefer? (which one)
Is there a manual which explains how to change fonts (in a way that a normal 
user who is new to context can understand it)?

Thanks a lot
Wolfgang
___
ntg-context mailing list
[EMAIL PROTECTED]
http://www.ntg.nl/mailman/listinfo/ntg-context


Re: [NTG-context] using fonts

2004-12-06 Thread Adam Lindsay
Wolfgang Zillig said this at Mon, 6 Dec 2004 13:40:24 +0100:

Hello,

I think I´mgetting confused with all of the font selection within context.

Don't worry: it's a bit complicated at first... but it's learn-able (and
easier, to my mind, than LaTeX's way of doing things!).

First: I have a miktex environment on on W2K.

I don't have miktex. But I'll try to teach what I know!

1.
to change single fonts:
\definetypeface [palatino] [rm] [serif] [palatino] [default] [encoding=ec]
\switchtotypeface[palatino][12pt,rm]
results in an error that the font is not found (font: uplr8t)

okay, let's expand through the typescripts a bit:
You invoke these typescripts through your typeface definition (primarily;
there are others that automatically get triggered):
 [serif][palatino][name]
 [serif][palatino][ec]
 [serif][default] [size] % etc...

Serif then gets mapped in type-syn:
\starttypescript [serif] [palatino] [name]
  \definefontsynonym [Serif][Palatino] %...

Palatino then gets mapped in type-enc:
\starttypescript [serif] [palatino] [texnansi,ec,8r,t5]
  \definefontsynonym [Palatino][\typefaceencoding-
uplr8a][encoding=\typefaceencoding] %...

This line gets expanded to:
  \definefontsynonym [Palatino][ec-uplr8a][encoding=ec] %...

...So at this point, your system would be looking around for ec-
uplr8a.tfm, but it's not. You provide a clue as to why not:

2.
I thought that the default encoding should be texnansi

In the new cont-sys.rme, it's set to ec encoding:
 \setupencoding [\s!default=ec]

...and the berry type synonyms are invoked:
 \usetypescript [berry] [\defaultencoding]

So the following typescript gets invoked, mapping the above ec-uplr8a:
\starttypescript [berry] [ec]
 \definefontsynonym [ec-uplr8a] [uplr8t]  [encoding=ec]

That, being the last one in the chain, is what ConTeXt looks for. For
those following along at home, the whole chain of name resolution, taking
into account the encoding, is therefore:
(\rm\tf)  Serif  Palatino  ec-uplr8a  uplr8t

on my system following files are available:

That's quite a mixture of types, below. Can you provide a listing of the
.tfm files in fonts/tfm/urw/palatino ?

uplr8a.afm

(The base Adobe Font Metrics file, which enables you to generate new tfms)

uplr8v.tfm
uplr8v.pfb

(Vietnamese variants of the fonts!)

uplr8a.pfb

(That's the postscript font file you ultimately want to include in your
document.)

uplr8v.htf

(Irrelevant to our discussion. TeX4ht-related, I think?)

Summary:

do I need to get the missing fonts/files and why are they not provided
with miktex.
Perhaps a change of the distribution is to prefer? (which one)

Well, I'm wondering where all the tfms have gone on my distribution, as
well (gwTeX on the Mac doesn't seem to include 8r or ec/8t metrics,
either). It looks like you might have to do a texfont run to build
(ConTeXt-named) tfms in order to be useful.

It's not all that scary. I gave a rundown of the steps I followed in this
primitive MyWay. It might be useful so long as you don't treat it as
literal instructions:
http://homepage.mac.com/atl/tex/TexfontExamined.pdf

Cheers,
adam
--
=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=
 Adam T. Lindsay, Computing Dept. [EMAIL PROTECTED]
 Lancaster University, InfoLab21+44(0)1524/510.514
 Lancaster, LA1 4WA, UK Fax:+44(0)1524/510.492
-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-

___
ntg-context mailing list
[EMAIL PROTECTED]
http://www.ntg.nl/mailman/listinfo/ntg-context