| 1 |
How to use the TeX Gyre fonts with LaTeX-based engines[1]? |
| 2 |
-------------------------------------------------------------- |
| 3 |
|
| 4 |
By adding: |
| 5 |
|
| 6 |
For TeX Gyre Adventor: |
| 7 |
\usepackage{tgadventor} |
| 8 |
For TeX Gyre Bonum: |
| 9 |
\usepackage{tgbonum} |
| 10 |
For TeX Gyre Cursor: |
| 11 |
\usepackage{tgcursor} |
| 12 |
For TeX Gyre Heros: |
| 13 |
\usepackage{tgheros} |
| 14 |
For TeX Gyre Pagella: |
| 15 |
\usepackage{tgpagella} |
| 16 |
For TeX Gyre Schola: |
| 17 |
\usepackage{tgschola} |
| 18 |
For TeX Gyre Termes: |
| 19 |
\usepackage{tgtermes} |
| 20 |
|
| 21 |
Please don't forget to select a suitable font encoding. For example, for |
| 22 |
most texts using the latin script you should include: |
| 23 |
|
| 24 |
\usepackage[T1]{fontenc} |
| 25 |
\usepackage{textcomp} |
| 26 |
|
| 27 |
in the preamble. |
| 28 |
|
| 29 |
[1] By LaTeX-based engine, I mean a program such as latex or pdflatex. |
| 30 |
|
| 31 |
|
| 32 |
How to use the TeX Gyre fonts with TeX? |
| 33 |
--------------------------------------- |
| 34 |
|
| 35 |
If you are using TeX directly, you should know that. ;-) |
| 36 |
You can find the name of the fonts as far as TeX sees them with the |
| 37 |
following command (this assumes lmodern is installed): |
| 38 |
|
| 39 |
dpkg -L tex-gyre | grep '\.tfm$' | sed 's@.*/\([^/]\{1,\}\)\.tfm$@\1@' |
| 40 |
|
| 41 |
Then, to use Termes Roman in T1 encoding (Cork), for instance, you can do: |
| 42 |
|
| 43 |
\font\Myfont=ec-qtmr {\Myfont Sample text in ec-qtmr Termes} |
| 44 |
|
| 45 |
However, you should be aware that ec-qtmr being T1-encoded makes things |
| 46 |
difficult when using TeX directly; you cannot access all its characters as |
| 47 |
easily as with the LaTeX packages 'inputenc' and 'fontenc'. For instance, |
| 48 |
things such as \'e will probably not do what you would like. |
| 49 |
|
| 50 |
|
| 51 |
The PFM files are not included |
| 52 |
------------------------------ |
| 53 |
|
| 54 |
The upstream tarball of the TeX Gyre fonts comes with PFM files |
| 55 |
(Printer Font Metrics). As they seem to be hardly ever used in the free |
| 56 |
software world, they are not included in this Debian package in order to |
| 57 |
save space. The package contains the AFM files (Adobe Font Metrics) |
| 58 |
however, which should be equivalent to the PFM files but are much more |
| 59 |
common in the free software world in my experience. |
| 60 |
|
| 61 |
If you have a reason to think that the PFM files should be included, |
| 62 |
please contact me. |
| 63 |
|
| 64 |
|
| 65 |
-- Norbert Preining <[email protected]>, Thu Aug 23 19:03:35 CEST 2007 |