texcmfonts
no way to compare when less than two revisions
Differences
This shows you the differences between two versions of the page.
— | texcmfonts [2008/02/12 14:17] (current) – created kleiner | ||
---|---|---|---|
Line 1: | Line 1: | ||
+ | ====== Different Versions of the Computer Modern Fonts ====== | ||
+ | This article discusses the difference between OT1 and T1 encodings in LaTeX and the different available versions of the Computer Modern font. | ||
+ | |||
+ | ===== Font Encodings: OT1 and T1 ===== | ||
+ | ==== Computer Modern and the OT1 Encoding ==== | ||
+ | |||
+ | Originally, the only fonts that existed for LaTeX were the //Computer Modern// fonts, designed by Donald Knuth himself. These fonts were created using MetaFont and thus were only available as bitmap fonts. | ||
+ | |||
+ | The font encoding used by Knuth, i.e., the mapping between the " | ||
+ | |||
+ | * A word containing such an accented character cannot by hyphenated. | ||
+ | * The position of the accent over the character is often inaccurate, since TeX does not know the exact shape of the character. | ||
+ | * Final documents such as DVI or PDF files do not allow you to search for a word containing accents. | ||
+ | |||
+ | As of 2005, OT1 is still the default encoding used in TeX and LaTeX. | ||
+ | |||
+ | ==== The T1 Encoding ==== | ||
+ | |||
+ | At the TeX conference in 1989 in Cork, the TeX user community defined a new encoding called T1. T1 uses 8 bits per character and therefore allows accented characters and other special characters to be stored as separate glyphs. | ||
+ | |||
+ | To take advantage of this new encoding, the //European Computer Modern// fonts (or "EC fonts" | ||
+ | |||
+ | Both Computer Modern and the EC fonts are now considered standard in LaTeX and must be available in any installation. | ||
+ | |||
+ | |||
+ | ==== The TS1 Encoding ==== | ||
+ | |||
+ | At the Cork conference it was decided that the T1 encoding should omit many standard text symbols and instead include as many composite glyphs (mainly accented characters) as possible. The extra symbols have been collected in a companion encoding called TS1. | ||
+ | |||
+ | ==== How To Select an Encoding ==== | ||
+ | |||
+ | To change the font encoding of a LaTeX document from the default (OT1) to T1, load the package '' | ||
+ | \usepackage[T1]{fontenc} | ||
+ | By default, LaTeX uses the bitmap versions of the EC modern fonts. Use the lmodern package to use their PostScript Type1 version (see below). | ||
+ | |||
+ | If you use the lmodern package, you also need to load the textcomp package if you use any symbols to make the TS1 encoding available. | ||
+ | |||
+ | |||
+ | ===== Type1 (PostScript) Implementations ===== | ||
+ | |||
+ | Although both the Computer Modern and the EC fonts were developped with MetaFont and hence bitmap fonts, there are now free Type1 PostScript replacements as well. For Computer Modern, these were developped by Blue Sky Research and Y&Y; they are available [[http:// | ||
+ | |||
+ | As for the EC fonts, they have been recently converted from MetaFont sources to Type1 PostScript. Although a sophisticated algorithm was used for this conversion, according to The LaTeX Companion (2nd Ed.) you cannot expect exactly the same quality as could be achieved by a manual conversion process. The Type1 PostScript EC fonts are available as the '' | ||
+ | |||
+ | ** Update:** Use the '' | ||
+ | |||
+ | Source: The LaTeX Companion, 2nd Ed. (Mittelbach et al., 2004) |
texcmfonts.txt · Last modified: 2008/02/12 14:17 by kleiner