| 1 |
============================================================ |
| 2 |
Using the Bera fonts with LaTeX |
| 3 |
============================================================ |
| 4 |
2004-09-07 |
| 5 |
Walter Schmidt |
| 6 |
[email protected] |
| 7 |
|
| 8 |
"Bera" is a set of three PostScript Type1 font families: |
| 9 |
Bera Serif (a slab-serif Roman), Bera Sans (a "Frutiger |
| 10 |
descendant") and Bera Mono (monospaced/typewriter). |
| 11 |
|
| 12 |
|
| 13 |
USING SINGLE FONT FAMILIES |
| 14 |
|
| 15 |
Several macro packages are provided to use these font |
| 16 |
families with LaTeX: |
| 17 |
|
| 18 |
package: effect: |
| 19 |
------------------------------------------------------------ |
| 20 |
beraserif selects Bera Serif as the default roman family |
| 21 |
berasans selects Bera Sans as the default sansserif family |
| 22 |
beramono selects Bera Mono as the default typewriter family |
| 23 |
|
| 24 |
You need not necessarily use all three font families |
| 25 |
together (even though this is supported, see below). |
| 26 |
Bera Sans blends well with many roman typefaces, as long as |
| 27 |
their x-height is not too low. Bera Mono is a versatile |
| 28 |
"all-purpose" monospaced typeface, whose advantage over |
| 29 |
CM-Typewriter is the availability of a bold font series. |
| 30 |
|
| 31 |
Notice that the Bera fonts are supported with T1 (european) |
| 32 |
and TS1 (textcompanion) encoding only, so you should issue |
| 33 |
the commands |
| 34 |
|
| 35 |
\usepackage[T1]{fontenc} |
| 36 |
\usepackage{textcomp} |
| 37 |
|
| 38 |
in the document preamble. The obsolete OT1 encoding, which |
| 39 |
is still the default with LaTeX, is _not_ supported. |
| 40 |
|
| 41 |
The Bera fonts are much larger than many others, when used |
| 42 |
at the same nominal size. This can be fixed by loading the |
| 43 |
above package so with the option [scaled=...]. For |
| 44 |
instance, |
| 45 |
|
| 46 |
\usepackage[scaled=0.95]{berasans} |
| 47 |
|
| 48 |
loads the Bera Sans fonts, scaled down to 95% of their |
| 49 |
"natural" size. Omitting the factor, i.e., |
| 50 |
|
| 51 |
\usepackage[scaled]{...} |
| 52 |
|
| 53 |
selects a default scaling of 90%, which makes the Bera fonts |
| 54 |
approximately match the size of the Computer Modern fonts. |
| 55 |
|
| 56 |
|
| 57 |
USING THE BERA FONT FAMILIES TOGETHER |
| 58 |
|
| 59 |
To make the use of the three Bera fonts families together |
| 60 |
most easy, a further macro package bera.sty is provided: |
| 61 |
|
| 62 |
\usepackage{bera} |
| 63 |
|
| 64 |
effects all of the following: |
| 65 |
|
| 66 |
* T1 and textcompanion encoding is selected |
| 67 |
|
| 68 |
* Bera Roman, Sans and Mono at 90% are loaded as the three |
| 69 |
main text font families (while the math fonts remain |
| 70 |
unchanged!) |
| 71 |
|
| 72 |
* the line spacing is enlarged by 5%, i.e., |
| 73 |
\linespread{1.05}, with respect to the large x-height of |
| 74 |
the Bera typefaces; |
| 75 |
|
| 76 |
* the definitions of the TeX and LaTeX logos \TeX and \LaTeX |
| 77 |
are changed so as to suit BeraSerif. |
| 78 |
|
| 79 |
Even though there are no math fonts that were designed |
| 80 |
particularly to go with Bera Serif, math typesetting is |
| 81 |
possible. It is recommended to use the the math fonts of |
| 82 |
Y&Y's Lucida font set <http://www.yandy.com/lucida.htm>, |
| 83 |
which blend surprisingly well with Bera. Notice that the |
| 84 |
Lucida math fonts are to be scaled correspondingly: |
| 85 |
|
| 86 |
\usepackage{bera} |
| 87 |
\usepackage[expert]{lucbmath} |
| 88 |
\def\DeclareLucidaFontShape#1#2#3#4#5#6{% |
| 89 |
\DeclareFontShape{#1}{#2}{#3}{#4}{<->s*[0.90]#5}{#6}} |
| 90 |
|
| 91 |
|
| 92 |
|
| 93 |
|
| 94 |
NFSS CLASSIFICATION |
| 95 |
|
| 96 |
encodings family series shape(s) Postscript font name |
| 97 |
--------------------------------------------------------- |
| 98 |
T1, TS1 fve m n, sl(*) BeraSerif-Roman |
| 99 |
T1, TS1 fve b n, sl(*) BeraSerif-Bold |
| 100 |
T1, TS1 fvs m n, sl BeraSans-Roman |
| 101 |
BeraSans-Oblique |
| 102 |
T1, TS1 fvs b n, sl BeraSans-Bold |
| 103 |
BeraSans-BoldOblique |
| 104 |
T1, TS1 fvm m n, sl BeraSansMono-Roman |
| 105 |
BeraSansMono-Oblique |
| 106 |
T1, TS1 fvm b n, sl BeraSansMono-Bold |
| 107 |
BeraSansMono-BoldOb |
| 108 |
|
| 109 |
(*) The slanted series of the Bera Serif fonts are |
| 110 |
artificially slanted; there are no correspoding real fonts. |
| 111 |
|
| 112 |
In the TS1 encoding only the characters of the ISO-Adobe |
| 113 |
character set plus the Euro (\texteuro) and the Omega |
| 114 |
(\textomega) are available. |
| 115 |
|
| 116 |
|
| 117 |
== finis |