| 1 |
|
| 2 |
type1cm package for LaTeX |
| 3 |
========================== |
| 4 |
Copyright 1997 2002 David Carlisle |
| 5 |
|
| 6 |
|
| 7 |
|
| 8 |
All the files in this directory, and the LaTeX packages |
| 9 |
that can be extracted from the source files in this directory |
| 10 |
may be redistributed and/or modified under the terms |
| 11 |
of the LaTeX Project Public License Distributed from CTAN |
| 12 |
archives in directory macros/latex/base/lppl.txt; either |
| 13 |
version 1 of the License, or (at your option) any later version. |
| 14 |
|
| 15 |
David Carlisle [email protected] |
| 16 |
|
| 17 |
|
| 18 |
|
| 19 |
|
| 20 |
LaTeX separates its internal notion of font specification |
| 21 |
from the external fonts available on the system by means of |
| 22 |
`Font Shape Specifications', that are normally held in |
| 23 |
`Font Descriptor' (fd) files. |
| 24 |
|
| 25 |
The fd files that come with LaTeX that refer to the standard |
| 26 |
Computer Modern set (and the related AMS set) are based on |
| 27 |
the classical bitmap fonts which are available in `magstep' |
| 28 |
sizes only. For instance The specification of the main roman font is |
| 29 |
\DeclareFontShape{OT1}{cmr}{m}{n} |
| 30 |
{ <5> <6> <7> <8> <9> <10> <12> gen * cmr |
| 31 |
<10.95> cmr10 |
| 32 |
<14.4> cmr12 |
| 33 |
<17.28><20.74><24.88>cmr17}{} |
| 34 |
which says for instance that no font is available at 10.5pt (LaTeX |
| 35 |
will substitute the nearest available size if you ask for this) |
| 36 |
and similarly the font is not available at all above 25pt. |
| 37 |
|
| 38 |
Such restrictions are essential with bitmap fonts to save generating |
| 39 |
huge numbers of bitmaps for any size that might be requested, however |
| 40 |
with scalable versions of the fonts these restrictions are not really |
| 41 |
needed. For instance the equivalent definition defined here is: |
| 42 |
\DeclareFontShape{OT1}{cmr}{m}{n}{ |
| 43 |
<-6> cmr5 |
| 44 |
<6-7> cmr6 |
| 45 |
<7-8> cmr7 |
| 46 |
<8-9> cmr8 |
| 47 |
<9-10> cmr9 |
| 48 |
<10-12> cmr10 |
| 49 |
<12-17> cmr12 |
| 50 |
<17-> cmr17 |
| 51 |
}{} |
| 52 |
|
| 53 |
which means that you can (Although some may consider it bad style) |
| 54 |
go \fontsize{10.7pt}{12pt}\selectfont and be given a suitably scaled |
| 55 |
version of cmr10 and a baseline setting of 12pt. Similarly if you really |
| 56 |
want, you can go \fontsize{2cm}{2.5cm}\selectfont and use cmr17 scaled |
| 57 |
to 2cm height for a special display context. |
| 58 |
|
| 59 |
**** Warning**** |
| 60 |
If you use this setup and produce dvi files using these sizes, be very |
| 61 |
careful if you give the dvi files so created to someone using classical |
| 62 |
bitmap versions of the cm fonts. Depending on how their system is set up |
| 63 |
they will either not be able to print the file at all, as they will not |
| 64 |
have the fonts at the corrrect sizes, or the system will make all these |
| 65 |
strange sizes `on demand' and fill the disk with bitmaps. |
| 66 |
**************** |
| 67 |
|
| 68 |
So the default way of using this package is as a LaTeX package file. |
| 69 |
Install type1cm.sty as described below and then just add |
| 70 |
\usepackage{type1cm} |
| 71 |
to your document. This will override the definitions for all the fonts |
| 72 |
and so the standard fd files are not used. |
| 73 |
The disadvantage of this method is all the definitions are then loaded |
| 74 |
into memory, even for fonts you don't use in the document. (However |
| 75 |
only the size specifications are so loaded, not the fonts themselves). |
| 76 |
However the advantage is that you can always choose not to specify |
| 77 |
\usepackage{type1cm} and so use the same font sizes (and get the |
| 78 |
same line and page breaks) as everyone else. |
| 79 |
|
| 80 |
Alternatively you may use this package to produce a set of fd |
| 81 |
files that *replace* the standard files (such as ot1cmr.fd) |
| 82 |
You will then need to remake the LaTeX format by running initex on |
| 83 |
latex.ltx (as some fd files are loaded into the format). Then you |
| 84 |
will not need to use \usepackage. All your documents will have the |
| 85 |
freedom of scalable font choices. |
| 86 |
|
| 87 |
INSTALLATION INSTRUCTIONS |
| 88 |
========================== |
| 89 |
|
| 90 |
The installation is controlled by the file type1cm.ins which you may |
| 91 |
edit in two places. |
| 92 |
|
| 93 |
|
| 94 |
1) If you have not got the AMS Font set available in scalable form |
| 95 |
remove the `%' from the line %\def\ams{} |
| 96 |
This will cause a more restricted font specification to be used. |
| 97 |
|
| 98 |
If you have an extended AMS font set available in scalable form |
| 99 |
(msam6, msam8 and msam9 in addition to msam5, msam7 and msam10) |
| 100 |
then remove the `%' from the line %\def\ams{ams,extra} |
| 101 |
|
| 102 |
|
| 103 |
2) If after reading the warning above you decide to make a set of fd |
| 104 |
files, remove the `%'from the line %\makefdtrue |
| 105 |
|
| 106 |
|
| 107 |
Then run tex (or latex) on the file type1cm.ins and a package file |
| 108 |
type1cm.sty (and perhaps a set of fd files) will be produced |
| 109 |
which you should place in a directory where TeX looks for input files. |
| 110 |
|
| 111 |
========================================================================= |
| 112 |
|
| 113 |
Small technical note about the Font Shape specifications used. |
| 114 |
I consistantly specified that given a requested size, the largest |
| 115 |
available font size smaller than the requested size should be used |
| 116 |
and then enlarged to the requested size. The exception being sizes |
| 117 |
smaller than the smallest available font, which use a reduced version |
| 118 |
of that font. The rationale for this is that enlarging a small font |
| 119 |
typically produces a rather `fat' font, but something readable, whereas |
| 120 |
shrinking a font may produce something unreadable quite quickly |
| 121 |
|
| 122 |
So for msam (if `extra' is not specified) I used: |
| 123 |
|
| 124 |
\DeclareFontShape{U}{msa}{m}{n}{ |
| 125 |
<-7> msam5 |
| 126 |
<7-10> msam7 |
| 127 |
<10-> msam10 |
| 128 |
}{} |
| 129 |
|
| 130 |
That is sizes strictly below 7pt use msam5, 7pt to (less than) 10pt |
| 131 |
use msam7 and sizes 10pt and above use msam10. |
| 132 |
|
| 133 |
This differs from the Specification that the AMS use for the scalable |
| 134 |
AMS fonts (used by the psfonts option to the amsfonts package) |
| 135 |
They use |
| 136 |
|
| 137 |
\DeclareFontShape{U}{msa}{m}{n}{ |
| 138 |
<-6> msam5 |
| 139 |
<6-8> msam7 |
| 140 |
<8-> msam10 |
| 141 |
}{} |
| 142 |
|
| 143 |
This has the advantage of minimising the scaling used, so for instance |
| 144 |
a 9pt request is satisfied by msam7 scaled up to 9 by this package, but |
| 145 |
by msam10 scaled down to 9 by the AMS package. |
| 146 |
|
| 147 |
In practice this is not likely to make a difference that anyone notices, |
| 148 |
but it could in principle affect line breaks etc, so I thought that |
| 149 |
I would mention it here. |
| 150 |
|
| 151 |
|
| 152 |
|
| 153 |
[1997/01/27 v0.02 BlueSky/Y&Y Type1 CM font definitions (DPC)] |
| 154 |
Possibly first public release? Maybe there was a 0.01.. |
| 155 |
|
| 156 |
[2002/04/01 v0.03 BlueSky/Y&Y Type1 CM font definitions (DPC)] |
| 157 |
cmdunhill hasn't worked since the beginning: \hypenchar |
| 158 |
^ |
| 159 |
Reported by Brian Mays via the Debian bug tracking system. |
| 160 |
Also, made distribution conditions LPPL (previously unspecified) |