| 1 |
\documentclass[11pt]{article} |
| 2 |
\usepackage[textwidth=5.5in,textheight=8.5in]{geometry} |
| 3 |
\usepackage[T1]{fontenc} |
| 4 |
\usepackage[osf,proportional]{libertine} |
| 5 |
\usepackage{lettrine} |
| 6 |
\renewcommand{\ttfamily}{\fontencoding{OT1}\fontfamily{cmtt}\selectfont} |
| 7 |
\PassOptionsToPackage{urlcolor=black,colorlinks}{hyperref} |
| 8 |
\RequirePackage{hyperref} |
| 9 |
\usepackage{xcolor} |
| 10 |
\usepackage{longtable} |
| 11 |
\usepackage{multicol} |
| 12 |
\newcommand{\typeone}{Type~\liningnums{1}} |
| 13 |
\begin{document} |
| 14 |
\title{\LaTeX\ Support for Linux Libertine and Biolinum Fonts} |
| 15 |
\author{Bob Tennent\\ |
| 16 |
\small\url{[email protected]}} |
| 17 |
\date{\today} |
| 18 |
\maketitle |
| 19 |
\thispagestyle{empty} |
| 20 |
\begin{small} |
| 21 |
\tableofcontents |
| 22 |
\end{small} |
| 23 |
\sloppy |
| 24 |
\clearpage |
| 25 |
\section{Introduction} |
| 26 |
|
| 27 |
This package provides support for use of the Linux Libertine and Linux |
| 28 |
Biolinum families of fonts in \LaTeX. |
| 29 |
Most features |
| 30 |
are usable |
| 31 |
with \LaTeX\ and \verb|dvips|, pdf\LaTeX, xe\LaTeX\ and lua\LaTeX; |
| 32 |
the features in Section~\ref{OpenType} are only usable with xe\LaTeX\ or lua\LaTeX. |
| 33 |
This package compatibly replaces several earlier packages (\texttt{libertine-type1}, |
| 34 |
\texttt{biolinum-type1}, \texttt{libertine}) and should provide partial compatibility with |
| 35 |
the obsolete \texttt{libertineotf} and \texttt{libertine-legacy} packages. |
| 36 |
|
| 37 |
\section{Installation} |
| 38 |
|
| 39 |
To install this package on a TDS-compliant \TeX\ system, download the |
| 40 |
file |
| 41 |
\begin{list}{}{}\item \verb\tex-archive/install/fonts/libertine.tds.zip\ |
| 42 |
\end{list} |
| 43 |
and unzip at the root of an appropriate |
| 44 |
\verb\texmf\ tree, likely a personal or local tree. If necessary, update |
| 45 |
the file-name database (e.g., \verb\texhash texmf\). Update the font-map files by |
| 46 |
enabling the Map file \verb\libertine.map\. |
| 47 |
|
| 48 |
|
| 49 |
\section{Basic Usage} |
| 50 |
|
| 51 |
For most purposes, simply add |
| 52 |
|
| 53 |
\begin{list}{}{}\item |
| 54 |
\verb|\usepackage{libertine}| |
| 55 |
\end{list} |
| 56 |
to the preamble of your document. This will activate Libertine as |
| 57 |
the main (seriffed) text font, Biolinum as the sans font, |
| 58 |
and (from January~2013) LibertineMono as the monospaced font. |
| 59 |
It is |
| 60 |
recommended that the font encoding be set to \verb\T1\ or \verb\LY1\ but the default |
| 61 |
\verb\OT1\ encoding is also supported. Available shapes in all series (except \texttt{tt}, which |
| 62 |
only has \texttt{it}) include: |
| 63 |
\begin{list}{}{}\item |
| 64 |
\begin{tabular}{ll} |
| 65 |
\texttt{it} & italic\\ |
| 66 |
\texttt{sc} & small caps\\ |
| 67 |
\texttt{scit} & italic small caps |
| 68 |
\end{tabular} |
| 69 |
\end{list} |
| 70 |
Slanted variants are not supported; the designed italic variants will be |
| 71 |
automatically substituted. The exceptions are the monospaced font and the bold series of Biolinum, |
| 72 |
for which designed italics are not currently available. Artificially |
| 73 |
slanted variants have been generated and treated as if they were italic. |
| 74 |
|
| 75 |
To activate Libertine (without Biolinum), use the \texttt{libertine} (or \texttt{rm}) |
| 76 |
option. Similarly, to activate Biolinum (without Libertine) use the |
| 77 |
\texttt{biolinum} (or \texttt{sf} or \texttt{ss}) option. To use Biolinum as the main text font (as |
| 78 |
well as the sans font), use the option \texttt{sfdefault}. |
| 79 |
Use the \verb|mono=false| (or \verb|tt=false|) option to suppress |
| 80 |
activating LibertineMono. |
| 81 |
To activate single font families, |
| 82 |
use one or more of |
| 83 |
\begin{list}{}{} |
| 84 |
\item \verb|\usepackage{libertineRoman}| |
| 85 |
\item \verb|\usepackage{libertineMono}| |
| 86 |
\item \verb|\usepackage{biolinum}| |
| 87 |
\end{list} |
| 88 |
|
| 89 |
|
| 90 |
\section{Advanced Usage} |
| 91 |
|
| 92 |
Lua\LaTeX\ and xe\LaTeX\ users who might prefer to use Type~1 fonts or who |
| 93 |
wish to avoid \texttt{fontspec} may use the \texttt{type1} (or \texttt{nofontspec}) option. |
| 94 |
The \verb\libertine-type1.sty\, |
| 95 |
\verb\biolinum-type1.sty\ and \verb\libertineMono-type1.sty\ packages provide |
| 96 |
compatibility |
| 97 |
with older packages. For legacy documents that use only basic |
| 98 |
facilities of \verb\libertineotf\, a wrapper package \verb\libertineotf.sty\ is provided. |
| 99 |
The following features of the original \verb|libertine| or \verb|libertineotf| |
| 100 |
packages are |
| 101 |
\emph{not} supported: |
| 102 |
\begin{itemize} |
| 103 |
|
| 104 |
\item font-features such as \texttt{Ligatures} or \texttt{Scale} as option parameters |
| 105 |
|
| 106 |
\item the Outline or Shadow fonts |
| 107 |
|
| 108 |
\item commands \verb|\Lnnum|, \verb|\Lpnum|, \verb|\Lcnum|, etc. |
| 109 |
|
| 110 |
\item environments \texttt{Ltable} and \texttt{libertineenumerate} |
| 111 |
\end{itemize} |
| 112 |
If your documents use any of the features listed above, |
| 113 |
you may have to continue to use the \verb\libertineotf\ package (which is still available from |
| 114 |
CTAN) or access the OpenType fonts directly using \texttt{fontspec}. |
| 115 |
|
| 116 |
|
| 117 |
The following options are available in all styles (except monospaced): |
| 118 |
\begin{list}{}{}\item |
| 119 |
\begin{tabular}{ll} |
| 120 |
\texttt{oldstyle} (\texttt{osf}) & old-style figures\\ |
| 121 |
\texttt{lining} (\texttt{nf}, \texttt{lf}) & lining figures\\ |
| 122 |
\texttt{proportional} (\texttt{p})& varying-width figures\\ |
| 123 |
\texttt{tabular} (\texttt{t}) & fixed-width figures\\ |
| 124 |
\end{tabular} |
| 125 |
\end{list} |
| 126 |
The defaults (from January~2013) are \texttt{lining} and \texttt{tabular}. These apply to both Libertine |
| 127 |
and Biolinum; |
| 128 |
to change the default figure style of just the Biolinum (sans) |
| 129 |
fonts, use options |
| 130 |
\begin{list}{}{}\item |
| 131 |
\texttt{sflining} (\texttt{sflf}) or \texttt{sfoldstyle} (\texttt{sfosf}, \texttt{osfss}) |
| 132 |
\item |
| 133 |
\texttt{sftabular} (\texttt{sft}) or \texttt{sfproportional} (\texttt{sfp}) |
| 134 |
\end{list} |
| 135 |
|
| 136 |
The \texttt{semibold} (\texttt{sb}) option will enable use of the |
| 137 |
semi-bold series of Libertine; this has no effect on the Biolinum fonts, |
| 138 |
for which there is no semi-bold variant. The options \verb|scale=|<\emph{number}> (or |
| 139 |
\verb|scaled=|<\emph{number}>) will scale the Biolinum fonts but have no effect on the |
| 140 |
Libertine fonts. Similarly, the options |
| 141 |
\verb|llscale=|<\emph{number}> (or \verb|llscaled=|<\emph{number}>) |
| 142 |
and |
| 143 |
\verb|ttscale=|<\emph{number}> (or \verb|ttscaled=|<\emph{number}>) |
| 144 |
will scale the LinuxLibertine and LibertineMono fonts, respectively. |
| 145 |
Any of the ``Boolean'' options, such as \texttt{osf}, may |
| 146 |
also be used |
| 147 |
in the form \verb|osf=true| or \verb|osf=false|. |
| 148 |
|
| 149 |
The option \verb\defaultfeatures=...\ allows the user to add default OpenType |
| 150 |
features; for example, \verb\defaultfeatures={Variant=01}\ will force use of the Stylistic~Set~1 |
| 151 |
variant glyphs. |
| 152 |
|
| 153 |
Commands \verb|\oldstylenums{|\ldots\verb|}| and \verb|\oldstylenumsf{|\ldots\verb|}| are defined to |
| 154 |
allow for local use of old-style figures in Libertine and Biolinum, |
| 155 |
respectively, if lining figures is the default, and similarly |
| 156 |
\verb|\liningnums{|\ldots\verb|}| and \verb|\liningnumsf{|\ldots\verb|}|. |
| 157 |
|
| 158 |
Similarly, commands \verb|\tabularnums{|\ldots\verb|}| and \verb|\tabularnumsf{|\ldots\verb|}| are defined |
| 159 |
to allow local use of monospaced figures in Libertine or Biolinum, |
| 160 |
respectively, if proportional figures is the default, and similarly |
| 161 |
\verb|\proportionalnums{|\ldots\verb|}| and \verb|\proportionalnumsf{|\ldots\verb|}|. |
| 162 |
|
| 163 |
Superior numbers (for footnote markers) are available using \verb|\sufigures| |
| 164 |
or \verb|\textsu{|\ldots\verb|}|. |
| 165 |
|
| 166 |
|
| 167 |
Command \verb|\useosf| switches the default figure style for Libertine and Biolinum to old-style figures; this is |
| 168 |
primarily for use \emph{after} calling a math package (such as \verb|newtxmath| with the |
| 169 |
\verb|libertine| option) with lining figures as the default. |
| 170 |
|
| 171 |
The following macros select the font family indicated: |
| 172 |
\begin{center} |
| 173 |
\begin{tabular}{ll} |
| 174 |
\verb|\libertine| & Libertine \\ |
| 175 |
\verb|\libertineSB|& Libertine with semibold \\ |
| 176 |
\verb|\libertineOsF| & Libertine with oldstyle figures \\ |
| 177 |
\verb|\libertineLF| & Libertine with lining figures \\ |
| 178 |
\verb|\libertineDisplay| & Libertine Display \\ |
| 179 |
\verb|\libmono| & Libertine Monospaced \\ |
| 180 |
\verb|\libertineInitial| & Libertine Initials \\ |
| 181 |
\verb|\biolinum| & Biolinum \\ |
| 182 |
\verb|\biolinumOsF|& Biolinum with oldstyle figures \\ |
| 183 |
\verb|\biolinumLF| & Biolinum with lining figures \\ |
| 184 |
\end{tabular} |
| 185 |
\end{center} |
| 186 |
Macro \verb|\libertineInitialGlyph{|\ldots\verb|}| produces a glyph in the Libertine Initial font; |
| 187 |
Appendix~\ref{InitialGlyphs} has a table of some of the glyphs. |
| 188 |
|
| 189 |
\section{OpenType Fonts} |
| 190 |
\label{OpenType} |
| 191 |
|
| 192 |
The features in this section are only available to xe\LaTeX\ and lua\LaTeX\ users. |
| 193 |
|
| 194 |
Macros \verb|\libertineGlyph{|\ldots\verb|}| and \verb|\biolinumGlyph{|\ldots\verb|}| produce the |
| 195 |
glyph named in the argument in the Libertine or Biolinum font, |
| 196 |
respectively; for example, in regular-weight and upright-shape, |
| 197 |
\verb|\libertineGlyph{seven.cap}| and \verb|\libertineGlyph{uniE10F}| both produce a |
| 198 |
lining~7 that matches the height of capital letters, as in |
| 199 |
\begin{list}{}{}\item |
| 200 |
K\libertineGlyph{seven.cap}L~\libertineGlyph{three.cap}N\libertineGlyph{six.cap} |
| 201 |
\end{list} |
| 202 |
Similarly, \verb|\biolinumKeyGlyph{|\ldots\verb|}| produces the named glyph |
| 203 |
in the Biolinum Keyboard font; for example: \verb|\biolinumKeyGlyph{seven}| produces \biolinumKeyGlyph{seven}. |
| 204 |
A large number of macros of the form \verb|\LKey|\ldots or \verb|\LMouse|\ldots |
| 205 |
are provided to simplify production of glyphs in the Biolinum Keyboard font; |
| 206 |
see Appendix~\ref{LKey}. Appendix~\ref{KeyboardGlyphs} has a table of the entire |
| 207 |
Linux Biolinum Keyboard font, with corresponding glyph name and codepoint. |
| 208 |
|
| 209 |
|
| 210 |
The directory |
| 211 |
\verb|/fonts/opentype/public/libertine| |
| 212 |
has the fonts used for these features, as follows: |
| 213 |
\begin{list}{}{}\item\small |
| 214 |
\begin{tabular}{lll} |
| 215 |
\multicolumn{1}{c}{\bf File name} & \multicolumn{1}{c}{\bf Internal name} & \multicolumn{1}{c}{\bf Description} \\ |
| 216 |
\hline |
| 217 |
\verb|LinBiolinum_RBO.otf| & \verb|LinBiolinumOBO| & sans serif bold italic (oblique) \\ |
| 218 |
\verb|LinBiolinum_RB.otf| & \verb|LinBiolinumOB| & sans serif bold \\ |
| 219 |
\verb|LinBiolinum_RI.otf| & \verb|LinBiolinumOI| & sans serif italic \\ |
| 220 |
\verb|LinBiolinum_R.otf| & \verb|LinBiolinumO| & sans serif regular \\ |
| 221 |
\verb|LinLibertine_RBI.otf| & \verb|LinLibertineOBI| & bold italic \\ |
| 222 |
\verb|LinLibertine_RB.otf| & \verb|LinLibertineOB| & bold \\ |
| 223 |
\verb|LinLibertine_RI.otf| & \verb|LinLibertineOI| & italic \\ |
| 224 |
\verb|LinLibertine_R.otf| & \verb|LinLibertineO| & regular \\ |
| 225 |
\verb|LinLibertine_RZI.otf| & \verb|LinLibertineOZI| & semibold italic \\ |
| 226 |
\verb|LinLibertine_RZ.otf| & \verb|LinLibertineOZ| & semibold \\ |
| 227 |
\verb|LinLibertine_MBO.otf| & \verb|LinLibertineMOBO| & mono bold italic (oblique) \\ |
| 228 |
\verb|LinLibertine_MB.otf| & \verb|LinLibertineMOB| & mono bold \\ |
| 229 |
\verb|LinLibertine_MO.otf| & \verb|LinLibertineMOO| & mono italic (oblique) \\ |
| 230 |
\verb|LinLibertine_M.otf| & \verb|LinLibertineMO| & mono \\ |
| 231 |
\verb|LinBiolinum_K.otf| & \verb|LinBiolinumOKb| & keyboard \\ |
| 232 |
\verb|LinLibertine_I.otf| & \verb|LinLibertineIO| & decorative capitals \\ |
| 233 |
\verb|LinLibertine_DR.otf| & \verb|LinLibertineDisplayO| & a display (titling) font \\ |
| 234 |
\end{tabular} |
| 235 |
\end{list} |
| 236 |
|
| 237 |
\section{Concluding Remarks} |
| 238 |
|
| 239 |
|
| 240 |
For compatible mathematics, it is recommended to use |
| 241 |
\begin{verbatim} |
| 242 |
\usepackage[libertine]{newtxmath} |
| 243 |
\end{verbatim} |
| 244 |
with pdf\LaTeX\ and |
| 245 |
\begin{verbatim} |
| 246 |
\usepackage{unicode-math} |
| 247 |
\setmathfont[Scale=MatchUppercase]{libertinusmath-regular.otf} |
| 248 |
\end{verbatim} |
| 249 |
with xe\LaTeX\ or lua\LaTeX. |
| 250 |
|
| 251 |
The original OpenType fonts were created by Philipp H. Poll |
| 252 |
(\url{[email protected]}) and are licensed under the terms of the GNU General |
| 253 |
Public License (Version~2, with font exception) and under the terms of |
| 254 |
the Open Font License. For details look into the \verb|doc| directory of the |
| 255 |
distribution or at |
| 256 |
\begin{list}{}{}\item |
| 257 |
\url{http://www.linuxlibertine.org/} |
| 258 |
\end{list} |
| 259 |
The Glyph and KeyCap support was adapted from the original \verb\libertine\ |
| 260 |
package by Michael Niedermair. |
| 261 |
|
| 262 |
Three of the Libertine fonts were modified by Michael Sharpe (\url{[email protected]}) using |
| 263 |
\texttt{fontforge} to correct minor problems, including adding |
| 264 |
three missing ligatures (\emph{\bfseries fl, ffl, ffi}) to the bold-italic font. |
| 265 |
|
| 266 |
The \typeone\ fonts were created using \verb|cfftot1| or \verb|fontforge|. |
| 267 |
The internal font-family names of the \typeone\ |
| 268 |
fonts have been changed to \verb|Linux Libertine T| and \verb|Linux Biolinum T| to avoid |
| 269 |
interfering with xe\LaTeX\ users who access system fonts. |
| 270 |
|
| 271 |
The support |
| 272 |
files were created using \verb|autoinst|. The support files are licensed under |
| 273 |
the terms of the LaTeX Project Public License. |
| 274 |
See Appendix~\ref{impl} for more detailed discussion of the implementation. |
| 275 |
|
| 276 |
Thanks to Herbert Voss, Patrick Gundlach, Silke Hofstra, Marc Penninga, Michael Sharpe, |
| 277 |
Denis Bitouz\'{e}, and Khaled Hosny for their assistance. |
| 278 |
The maintainer of this |
| 279 |
package is Bob Tennent (\url{[email protected]}) |
| 280 |
|
| 281 |
\clearpage |
| 282 |
|
| 283 |
\appendix |
| 284 |
|
| 285 |
\setlength{\fboxrule}{0.1pt} |
| 286 |
\section{Biolinum KeyCap Macros}\small\tt |
| 287 |
\label{LKey} |
| 288 |
|
| 289 |
\subsection{Special Keys} |
| 290 |
\begin{longtable}[l]{lll} |
| 291 |
Tux & \verb|\LKeyTux| & \LARGE\strut\fbox{\LKeyTux} \\ |
| 292 |
Win & \verb|\LKeyWin| & \LARGE\strut\fbox{\LKeyWin} \\ |
| 293 |
Menu & \verb|\LKeyMenu| & \LARGE\strut\fbox{\LKeyMenu} \\ |
| 294 |
Strg & \verb|\LKeyStrg| & \LARGE\strut\fbox{\LKeyStrg} \\ |
| 295 |
Ctrl & \verb|\LKeyCtrl| & \LARGE\strut\fbox{\LKeyCtrl} \\ |
| 296 |
Alt & \verb|\LKeyAlt| & \LARGE\strut\fbox{\LKeyAlt} \\ |
| 297 |
AltGr & \verb|\LKeyAltGr| & \LARGE\strut\fbox{\LKeyAltGr} \\ |
| 298 |
Shift & \verb|\LKeyShift| & \LARGE\strut\fbox{\LKeyShift} \\ |
| 299 |
Enter & \verb|\LKeyEnter| & \LARGE\strut\fbox{\LKeyEnter} \\ |
| 300 |
Tab & \verb|\LKeyTab| & \LARGE\strut\fbox{\LKeyTab} \\ |
| 301 |
CapsLock & \verb|\LKeyCapsLock| & \LARGE\strut\fbox{\LKeyCapsLock} \\ |
| 302 |
Pos & \verb|\LKeyPos| & \LARGE\strut\fbox{\LKeyPos} \\ |
| 303 |
Entf & \verb|\LKeyEntf| & \LARGE\strut\fbox{\LKeyEntf} \\ |
| 304 |
Einf & \verb|\LKeyEinf| & \LARGE\strut\fbox{\LKeyEinf} \\ |
| 305 |
Leer & \verb|\LKeyLeer| & \LARGE\strut\fbox{\LKeyLeer} \\ |
| 306 |
Esc & \verb|\LKeyEsc| & \LARGE\strut\fbox{\LKeyEsc} \\ |
| 307 |
Ende & \verb|\LKeyEnde| & \LARGE\strut\fbox{\LKeyEnde} \\ |
| 308 |
Back & \verb|\LKeyBack| & \LARGE\strut\fbox{\LKeyBack} \\ |
| 309 |
Up & \verb|\LKeyUp| & \LARGE\strut\fbox{\LKeyUp} \\ |
| 310 |
Dwon & \verb|\LKeyDown| & \LARGE\strut\fbox{\LKeyDown} \\ |
| 311 |
Left & \verb|\LKeyLeft| & \LARGE\strut\fbox{\LKeyLeft} \\ |
| 312 |
Right & \verb|\LKeyRight| & \LARGE\strut\fbox{\LKeyRight} \\ |
| 313 |
PgUp & \verb|\LKeyPgUp| & \LARGE\strut\fbox{\LKeyPgUp} \\ |
| 314 |
PgDown & \verb|\LKeyPgDown| & \LARGE\strut\fbox{\LKeyPgDown} \\ |
| 315 |
At & \verb|\LKeyAt| & \LARGE\strut\fbox{\LKeyAt} \\ |
| 316 |
Fn & \verb|\LKeyFn| & \LARGE\strut\fbox{\LKeyFn} \\ |
| 317 |
Home & \verb|\LKeyHome| & \LARGE\strut\fbox{\LKeyHome} \\ |
| 318 |
Del & \verb|\LKeyDel| & \LARGE\strut\fbox{\LKeyDel} \\ |
| 319 |
Space & \verb|\LKeySpace| & \LARGE\strut\fbox{\LKeySpace} \\ |
| 320 |
ScreenUp & \verb|\LKeyScreenUp| & \LARGE\strut\fbox{\LKeyScreenUp} \\ |
| 321 |
ScreenDown & \verb|\LKeyScreenDown| & \LARGE\strut\fbox{\LKeyScreenDown} \\ |
| 322 |
Ins & \verb|\LKeyIns| & \LARGE\strut\fbox{\LKeyIns} \\ |
| 323 |
End & \verb|\LKeyEnd| & \LARGE\strut\fbox{\LKeyEnd} \\ |
| 324 |
GNU & \verb|\LKeyGNU| & \LARGE\strut\fbox{\LKeyGNU} \\ |
| 325 |
PageUp & \verb|\LKeyPageUp| & \LARGE\strut\fbox{\LKeyPageUp} \\ |
| 326 |
PageDown & \verb|\LKeyPageDown| & \LARGE\strut\fbox{\LKeyPageDown} \\ |
| 327 |
Command & \verb|\LKeyCommand| & \LARGE\strut\fbox{\LKeyCommand} \\ |
| 328 |
OptionKey & \verb|\LKeyOptionKey| & \LARGE\strut\fbox{\LKeyOptionKey} \\ |
| 329 |
% |
| 330 |
F1 & \verb|\LKeyF{1}| & \LARGE\strut\fbox{\LKeyF{1}} \\ |
| 331 |
F2 & \verb|\LKeyF{2}| & \LARGE\strut\fbox{\LKeyF{2}} \\ |
| 332 |
F3 & \verb|\LKeyF{3}| & \LARGE\strut\fbox{\LKeyF{3}} \\ |
| 333 |
F4 & \verb|\LKeyF{4}| & \LARGE\strut\fbox{\LKeyF{4}} \\ |
| 334 |
F5 & \verb|\LKeyF{5}| & \LARGE\strut\fbox{\LKeyF{5}} \\ |
| 335 |
F6 & \verb|\LKeyF{6}| & \LARGE\strut\fbox{\LKeyF{6}} \\ |
| 336 |
F7 & \verb|\LKeyF{7}| & \LARGE\strut\fbox{\LKeyF{7}} \\ |
| 337 |
F8 & \verb|\LKeyF{8}| & \LARGE\strut\fbox{\LKeyF{8}} \\ |
| 338 |
F9 & \verb|\LKeyF{9}| & \LARGE\strut\fbox{\LKeyF{9}} \\ |
| 339 |
F10 & \verb|\LKeyF{10}| & \LARGE\strut\fbox{\LKeyF{10}} \\ |
| 340 |
F11 & \verb|\LKeyF{11}| & \LARGE\strut\fbox{\LKeyF{11}} \\ |
| 341 |
F12 & \verb|\LKeyF{12}| & \LARGE\strut\fbox{\LKeyF{12}} \\ |
| 342 |
F13 & \verb|\LKeyF{13}| & \LARGE\strut\fbox{\LKeyF{13}} \\ |
| 343 |
F14 & \verb|\LKeyF{14}| & \LARGE\strut\fbox{\LKeyF{14}} \\ |
| 344 |
F15 & \verb|\LKeyF{15}| & \LARGE\strut\fbox{\LKeyF{15}} \\ |
| 345 |
F16 & \verb|\LKeyF{16}| & \LARGE\strut\fbox{\LKeyF{16}} \\ |
| 346 |
% |
| 347 |
PAD0 & \verb|\LKeyPad{1}| & \LARGE\strut\fbox{\LKeyPad{0}} \\ |
| 348 |
PAD1 & \verb|\LKeyPad{1}| & \LARGE\strut\fbox{\LKeyPad{1}} \\ |
| 349 |
PAD2 & \verb|\LKeyPad{2}| & \LARGE\strut\fbox{\LKeyPad{2}} \\ |
| 350 |
PAD3 & \verb|\LKeyPad{3}| & \LARGE\strut\fbox{\LKeyPad{3}} \\ |
| 351 |
PAD4 & \verb|\LKeyPad{4}| & \LARGE\strut\fbox{\LKeyPad{4}} \\ |
| 352 |
PAD5 & \verb|\LKeyPad{5}| & \LARGE\strut\fbox{\LKeyPad{5}} \\ |
| 353 |
PAD6 & \verb|\LKeyPad{6}| & \LARGE\strut\fbox{\LKeyPad{6}} \\ |
| 354 |
PAD7 & \verb|\LKeyPad{7}| & \LARGE\strut\fbox{\LKeyPad{7}} \\ |
| 355 |
PAD8 & \verb|\LKeyPad{8}| & \LARGE\strut\fbox{\LKeyPad{8}} \\ |
| 356 |
PAD9 & \verb|\LKeyPad{9}| & \LARGE\strut\fbox{\LKeyPad{9}} \\ |
| 357 |
PAD10 & \verb|\LKeyPad{10}| & \LARGE\strut\fbox{\LKeyPad{10}} \\ |
| 358 |
PAD11 & \verb|\LKeyPad{11}| & \LARGE\strut\fbox{\LKeyPad{11}} \\ |
| 359 |
PAD12 & \verb|\LKeyPad{12}| & \LARGE\strut\fbox{\LKeyPad{12}} \\ |
| 360 |
PAD13 & \verb|\LKeyPad{13}| & \LARGE\strut\fbox{\LKeyPad{13}} \\ |
| 361 |
PAD14 & \verb|\LKeyPad{14}| & \LARGE\strut\fbox{\LKeyPad{14}} \\ |
| 362 |
\end{longtable} |
| 363 |
|
| 364 |
\clearpage |
| 365 |
\subsection{General Keyboard} |
| 366 |
\begin{longtable}[l]{lll} |
| 367 |
0 & \verb|\LKey{zero}|,\verb|\LKey{0}| & \LARGE\strut\fbox{\LKey{0}} \\ |
| 368 |
9 & \verb|\LKey{nine}|,\verb|\LKey{9}| & \LARGE\strut\fbox{\LKey{nine}} \\ |
| 369 |
A & \verb|\LKey{A}| & \LARGE\strut\fbox{\LKey{A}} \\ |
| 370 |
Z & \verb|\LKey{Z}| & \LARGE\strut\fbox{\LKey{Z}} \\ |
| 371 |
\end{longtable} |
| 372 |
|
| 373 |
\subsection{Keyboard Shortcuts} |
| 374 |
\begin{longtable}[l]{lll} |
| 375 |
Strg-A & \verb|\LKeyStrgX{A}| & \LARGE\strut\fbox{\LKeyStrgX{A}} \\ |
| 376 |
Ctrl-A & \verb|\LKeyCtrlX{A}| & \LARGE\strut\fbox{\LKeyCtrlX{A}} \\ |
| 377 |
Shift-A & \verb|\LKeyShiftX{A}| & \LARGE\strut\fbox{\LKeyShiftX{A}} \\ |
| 378 |
Alt-A & \verb|\LKeyAltX{A}| & \LARGE\strut\fbox{\LKeyAltX{A}} \\ |
| 379 |
AltGr-A & \verb|\LKeyAltGrX{A}| & \LARGE\strut\fbox{\LKeyAltGrX{A}} \\ |
| 380 |
Shift-Strg-A & \verb|\LKeyShiftStrgX{A}| & \LARGE\strut\fbox{\LKeyShiftStrgX{A}} \\ |
| 381 |
Shift-Ctrl-A & \verb|\LKeyShiftCtrlX{A}| & \LARGE\strut\fbox{\LKeyShiftCtrlX{A}} \\ |
| 382 |
Shift-Alt-A & \verb|\LKeyShiftAltX{A}| & \LARGE\strut\fbox{\LKeyShiftAltX{A}} \\ |
| 383 |
Shift-AltGr-A & \verb|\LKeyShiftAltGrX{A}| & \LARGE\strut\fbox{\LKeyShiftAltGrX{A}} \\ |
| 384 |
Strg-Alt-A & \verb|\LKeyStrgAltX{A}| & \LARGE\strut\fbox{\LKeyStrgAltX{A}} \\ |
| 385 |
Strg-Alt-Entf & \verb|\LKeyStrgAltEnt| & \LARGE\strut\fbox{\LKeyStrgAltEnt} \\ |
| 386 |
Strg-Alt-Entf & \verb|\LKeyReset| & \LARGE\strut\fbox{\LKeyReset} \\ |
| 387 |
Ctrl-Alt-A & \verb|\LKeyCtrlAltX{A}| & \LARGE\strut\fbox{\LKeyCtrlAltX{A}} \\ |
| 388 |
Ctrl-Alt-Entf & \verb|\LKeyCtrlAltEnt| & \LARGE\strut\fbox{\LKeyCtrlAltEnt} \\ |
| 389 |
% |
| 390 |
Alt-F1 & \verb|\LKeyAltF{1}| & \LARGE\strut\fbox{\LKeyAltF{1}} \\ |
| 391 |
Alt-F2 & \verb|\LKeyAltF{2}| & \LARGE\strut\fbox{\LKeyAltF{2}} \\ |
| 392 |
Alt-F3 & \verb|\LKeyAltF{3}| & \LARGE\strut\fbox{\LKeyAltF{3}} \\ |
| 393 |
Alt-F4 & \verb|\LKeyAltF{4}| & \LARGE\strut\fbox{\LKeyAltF{4}} \\ |
| 394 |
Alt-F5 & \verb|\LKeyAltF{5}| & \LARGE\strut\fbox{\LKeyAltF{5}} \\ |
| 395 |
Alt-F6 & \verb|\LKeyAltF{6}| & \LARGE\strut\fbox{\LKeyAltF{6}} \\ |
| 396 |
Alt-F7 & \verb|\LKeyAltF{7}| & \LARGE\strut\fbox{\LKeyAltF{7}} \\ |
| 397 |
Alt-F8 & \verb|\LKeyAltF{8}| & \LARGE\strut\fbox{\LKeyAltF{8}} \\ |
| 398 |
Alt-F9 & \verb|\LKeyAltF{9}| & \LARGE\strut\fbox{\LKeyAltF{9}} \\ |
| 399 |
Alt-F10 & \verb|\LKeyAltF{10}| & \LARGE\strut\fbox{\LKeyAltF{10}} \\ |
| 400 |
Alt-F11 & \verb|\LKeyAltF{11}| & \LARGE\strut\fbox{\LKeyAltF{11}} \\ |
| 401 |
Alt-F12 & \verb|\LKeyAltF{12}| & \LARGE\strut\fbox{\LKeyAltF{12}} \\ |
| 402 |
Alt-F13 & \verb|\LKeyAltF{13}| & \LARGE\strut\fbox{\LKeyAltF{13}} \\ |
| 403 |
Alt-F14 & \verb|\LKeyAltF{14}| & \LARGE\strut\fbox{\LKeyAltF{14}} \\ |
| 404 |
Alt-F15 & \verb|\LKeyAltF{15}| & \LARGE\strut\fbox{\LKeyAltF{15}} \\ |
| 405 |
Alt-F16 & \verb|\LKeyAltF{16}| & \LARGE\strut\fbox{\LKeyAltF{16}} \\ |
| 406 |
% |
| 407 |
Strg-Alt-F1 & \verb|\LKeyStrgAltF{1}| & \LARGE\strut\fbox{\LKeyStrgAltF{1}} \\ |
| 408 |
Strg-Alt-F2 & \verb|\LKeyStrgAltF{2}| & \LARGE\strut\fbox{\LKeyStrgAltF{2}} \\ |
| 409 |
Strg-Alt-F3 & \verb|\LKeyStrgAltF{3}| & \LARGE\strut\fbox{\LKeyStrgAltF{3}} \\ |
| 410 |
Strg-Alt-F4 & \verb|\LKeyStrgAltF{4}| & \LARGE\strut\fbox{\LKeyStrgAltF{4}} \\ |
| 411 |
Strg-Alt-F5 & \verb|\LKeyStrgAltF{5}| & \LARGE\strut\fbox{\LKeyStrgAltF{5}} \\ |
| 412 |
Strg-Alt-F6 & \verb|\LKeyStrgAltF{6}| & \LARGE\strut\fbox{\LKeyStrgAltF{6}} \\ |
| 413 |
Strg-Alt-F7 & \verb|\LKeyStrgAltF{7}| & \LARGE\strut\fbox{\LKeyStrgAltF{7}} \\ |
| 414 |
Strg-Alt-F8 & \verb|\LKeyStrgAltF{8}| & \LARGE\strut\fbox{\LKeyStrgAltF{8}} \\ |
| 415 |
Strg-Alt-F9 & \verb|\LKeyStrgAltF{9}| & \LARGE\strut\fbox{\LKeyStrgAltF{9}} \\ |
| 416 |
Strg-Alt-F10 & \verb|\LKeyStrgAltF{10}| & \LARGE\strut\fbox{\LKeyStrgAltF{10}} \\ |
| 417 |
Strg-Alt-F11 & \verb|\LKeyStrgAltF{11}| & \LARGE\strut\fbox{\LKeyStrgAltF{11}} \\ |
| 418 |
Strg-Alt-F12 & \verb|\LKeyStrgAltF{12}| & \LARGE\strut\fbox{\LKeyStrgAltF{12}} \\ |
| 419 |
Strg-Alt-F13 & \verb|\LKeyStrgAltF{13}| & \LARGE\strut\fbox{\LKeyStrgAltF{13}} \\ |
| 420 |
Strg-Alt-F14 & \verb|\LKeyStrgAltF{14}| & \LARGE\strut\fbox{\LKeyStrgAltF{14}} \\ |
| 421 |
Strg-Alt-F15 & \verb|\LKeyStrgAltF{15}| & \LARGE\strut\fbox{\LKeyStrgAltF{15}} \\ |
| 422 |
Strg-Alt-F16 & \verb|\LKeyStrgAltF{16}| & \LARGE\strut\fbox{\LKeyStrgAltF{16}} \\ |
| 423 |
Ctrl-Alt-F1 & \verb|\LKeyCtrlAltF{1}| & \LARGE\strut\fbox{\LKeyCtrlAltF{1}} \\ |
| 424 |
Ctrl-Alt-F2 & \verb|\LKeyCtrlAltF{2}| & \LARGE\strut\fbox{\LKeyCtrlAltF{2}} \\ |
| 425 |
Ctrl-Alt-F3 & \verb|\LKeyCtrlAltF{3}| & \LARGE\strut\fbox{\LKeyCtrlAltF{3}} \\ |
| 426 |
Ctrl-Alt-F4 & \verb|\LKeyCtrlAltF{4}| & \LARGE\strut\fbox{\LKeyCtrlAltF{4}} \\ |
| 427 |
Ctrl-Alt-F5 & \verb|\LKeyCtrlAltF{5}| & \LARGE\strut\fbox{\LKeyCtrlAltF{5}} \\ |
| 428 |
Ctrl-Alt-F6 & \verb|\LKeyCtrlAltF{6}| & \LARGE\strut\fbox{\LKeyCtrlAltF{6}} \\ |
| 429 |
Ctrl-Alt-F7 & \verb|\LKeyCtrlAltF{7}| & \LARGE\strut\fbox{\LKeyCtrlAltF{7}} \\ |
| 430 |
Ctrl-Alt-F8 & \verb|\LKeyCtrlAltF{8}| & \LARGE\strut\fbox{\LKeyCtrlAltF{8}} \\ |
| 431 |
Ctrl-Alt-F9 & \verb|\LKeyCtrlAltF{9}| & \LARGE\strut\fbox{\LKeyCtrlAltF{9}} \\ |
| 432 |
Ctrl-Alt-F10 & \verb|\LKeyCtrlAltF{10}| & \LARGE\strut\fbox{\LKeyCtrlAltF{10}} \\ |
| 433 |
Ctrl-Alt-F11 & \verb|\LKeyCtrlAltF{11}| & \LARGE\strut\fbox{\LKeyCtrlAltF{11}} \\ |
| 434 |
Ctrl-Alt-F12 & \verb|\LKeyCtrlAltF{12}| & \LARGE\strut\fbox{\LKeyCtrlAltF{12}} \\ |
| 435 |
Ctrl-Alt-F13 & \verb|\LKeyCtrlAltF{13}| & \LARGE\strut\fbox{\LKeyCtrlAltF{13}} \\ |
| 436 |
Ctrl-Alt-F14 & \verb|\LKeyCtrlAltF{14}| & \LARGE\strut\fbox{\LKeyCtrlAltF{14}} \\ |
| 437 |
Ctrl-Alt-F15 & \verb|\LKeyCtrlAltF{15}| & \LARGE\strut\fbox{\LKeyCtrlAltF{15}} \\ |
| 438 |
Ctrl-Alt-F16 & \verb|\LKeyCtrlAltF{16}| & \LARGE\strut\fbox{\LKeyCtrlAltF{16}} \\ |
| 439 |
\end{longtable} |
| 440 |
|
| 441 |
\clearpage |
| 442 |
\subsection{Mouse Buttons (Three-Button Mice)} |
| 443 |
\begin{longtable}[l]{lll} |
| 444 |
Empty & \verb|\LMouseEmpty| & \LARGE\strut\fbox{\LMouseEmpty} \\ |
| 445 |
No & \verb|\LMouseN| & \LARGE\strut\fbox{\LMouseN} \\ |
| 446 |
Left & \verb|\LMouseL| & \LARGE\strut\fbox{\LMouseL} \\ |
| 447 |
Middle & \verb|\LMouseM| & \LARGE\strut\fbox{\LMouseM} \\ |
| 448 |
Right & \verb|\LMouseR| & \LARGE\strut\fbox{\LMouseR} \\ |
| 449 |
LeftRight & \verb|\LMouseLR| & \LARGE\strut\fbox{\LMouseLR} \\ |
| 450 |
\end{longtable} |
| 451 |
|
| 452 |
\subsection{Mouse Buttons (Two-Button Mice)} |
| 453 |
\begin{longtable}[l]{lll} |
| 454 |
Empty & \verb|\LMouseIIEmpty| & \LARGE\strut\fbox{\LMouseIIEmpty} \\ |
| 455 |
No & \verb|\LMouseIIN| & \LARGE\strut\fbox{\LMouseIIN} \\ |
| 456 |
Left & \verb|\LMouseIIL| & \LARGE\strut\fbox{\LMouseIIL} \\ |
| 457 |
Right & \verb|\LMouseIIR| & \LARGE\strut\fbox{\LMouseIIR} \\ |
| 458 |
LeftRight & \verb|\LMouseIILR| & \LARGE\strut\fbox{\LMouseIILR} \\ |
| 459 |
\end{longtable} |
| 460 |
|
| 461 |
|
| 462 |
\clearpage |
| 463 |
\section{Linux Biolinum Keyboard Glyphs}\small\tt |
| 464 |
\label{KeyboardGlyphs} |
| 465 |
\renewcommand\DeclareTextGlyphY[3]{\makebox[2.5cm]{\LARGE\strut\fbox{\biolinumKeyGlyph{#2}}} #2\\}% |
| 466 |
\catcode`\_=12% |
| 467 |
\begin{multicols}{2} |
| 468 |
\par\noindent |
| 469 |
\input{LinBiolinum_K} |
| 470 |
\end{multicols} |
| 471 |
|
| 472 |
|
| 473 |
\clearpage |
| 474 |
\section{Selected Libertine Initials}\tt |
| 475 |
\label{InitialGlyphs} |
| 476 |
\renewcommand\DeclareTextGlyphY[3]{\makebox[2.0cm]{\LARGE\strut\fbox{\libertineInitialGlyph{#2}}} #2\\}% |
| 477 |
\catcode`\_=12% |
| 478 |
\begin{multicols}{4} |
| 479 |
\par\noindent |
| 480 |
\DeclareTextGlyphY{LinLibertine_I}{zero}{48} |
| 481 |
\DeclareTextGlyphY{LinLibertine_I}{one}{49} |
| 482 |
\DeclareTextGlyphY{LinLibertine_I}{two}{50} |
| 483 |
\DeclareTextGlyphY{LinLibertine_I}{three}{51} |
| 484 |
\DeclareTextGlyphY{LinLibertine_I}{four}{52} |
| 485 |
\DeclareTextGlyphY{LinLibertine_I}{five}{53} |
| 486 |
\DeclareTextGlyphY{LinLibertine_I}{six}{54} |
| 487 |
\DeclareTextGlyphY{LinLibertine_I}{seven}{55} |
| 488 |
\DeclareTextGlyphY{LinLibertine_I}{eight}{56} |
| 489 |
\DeclareTextGlyphY{LinLibertine_I}{nine}{57} |
| 490 |
\DeclareTextGlyphY{LinLibertine_I}{A}{65} |
| 491 |
\DeclareTextGlyphY{LinLibertine_I}{B}{66} |
| 492 |
\DeclareTextGlyphY{LinLibertine_I}{C}{67} |
| 493 |
\DeclareTextGlyphY{LinLibertine_I}{D}{68} |
| 494 |
\DeclareTextGlyphY{LinLibertine_I}{E}{69} |
| 495 |
\DeclareTextGlyphY{LinLibertine_I}{F}{70} |
| 496 |
\DeclareTextGlyphY{LinLibertine_I}{G}{71} |
| 497 |
\DeclareTextGlyphY{LinLibertine_I}{H}{72} |
| 498 |
\DeclareTextGlyphY{LinLibertine_I}{I}{73} |
| 499 |
\DeclareTextGlyphY{LinLibertine_I}{J}{74} |
| 500 |
\DeclareTextGlyphY{LinLibertine_I}{K}{75} |
| 501 |
\DeclareTextGlyphY{LinLibertine_I}{L}{76} |
| 502 |
\DeclareTextGlyphY{LinLibertine_I}{M}{77} |
| 503 |
\DeclareTextGlyphY{LinLibertine_I}{N}{78} |
| 504 |
\DeclareTextGlyphY{LinLibertine_I}{O}{79} |
| 505 |
\DeclareTextGlyphY{LinLibertine_I}{P}{80} |
| 506 |
\DeclareTextGlyphY{LinLibertine_I}{Q}{81} |
| 507 |
\DeclareTextGlyphY{LinLibertine_I}{R}{82} |
| 508 |
\DeclareTextGlyphY{LinLibertine_I}{S}{83} |
| 509 |
\DeclareTextGlyphY{LinLibertine_I}{T}{84} |
| 510 |
\DeclareTextGlyphY{LinLibertine_I}{U}{85} |
| 511 |
\DeclareTextGlyphY{LinLibertine_I}{V}{86} |
| 512 |
\DeclareTextGlyphY{LinLibertine_I}{W}{87} |
| 513 |
\DeclareTextGlyphY{LinLibertine_I}{X}{88} |
| 514 |
\DeclareTextGlyphY{LinLibertine_I}{Y}{89} |
| 515 |
\DeclareTextGlyphY{LinLibertine_I}{Z}{90} |
| 516 |
\end{multicols} |
| 517 |
|
| 518 |
|
| 519 |
% To generate a table of all the glyphs, uncomment the following lines: |
| 520 |
% |
| 521 |
%\begin{multicols}{2} |
| 522 |
%\par\noindent |
| 523 |
%\input{LinLibertine_I} |
| 524 |
%\end{multicols} |
| 525 |
|
| 526 |
\clearpage |
| 527 |
\section{Implementation Notes}\rm |
| 528 |
\label{impl} |
| 529 |
|
| 530 |
\subsection{Aims} |
| 531 |
|
| 532 |
Modern OpenType and TrueType fonts are not directly usable with traditional |
| 533 |
typesetting engines such as \LaTeX\ or pdf\LaTeX. On the other hand, many documents |
| 534 |
that use traditional font-selection mechanisms cannot be processed by |
| 535 |
emerging new technologies such as xe\LaTeX\ and lua\LaTeX. The primary aim |
| 536 |
of the \texttt{libertine} package is, as much as possible, to allow documents |
| 537 |
to use Linux Libertine and Biolinum fonts compatibly with \emph{all} current \LaTeX\ |
| 538 |
engines. Another aim is maintainability: it should be possible to update |
| 539 |
the package easily when updated fonts become available. |
| 540 |
|
| 541 |
\subsection{The Fonts} |
| 542 |
|
| 543 |
OpenType Linux Libertine and Biolinum fonts (with \texttt{otf} extensions) may be downloaded from |
| 544 |
\url{http://sourceforge.net/projects/linuxlibertine/files/linuxlibertine/}. |
| 545 |
There are a few problems with the current versions of the fonts (5.3.0). |
| 546 |
\begin{itemize} |
| 547 |
\item |
| 548 |
Currently, there is no bold-italic variant of the Biolinum family; an \emph{ad hoc} |
| 549 |
solution is to use \texttt{fontforge} to generate an artificially slanted |
| 550 |
version of the bold variant. Note that the most recent version of \texttt{fontforge} |
| 551 |
must be used on Biolinum fonts; an earlier version will generate fonts with incorrect \texttt{ex}-height. |
| 552 |
\item Slanted (oblique) variants are not available |
| 553 |
from the upstream site. These could be |
| 554 |
generated easily but we have decided not to attempt to support slanted |
| 555 |
variants for the fonts; the italic (or fake-italic) variants will be silently substituted. |
| 556 |
\item |
| 557 |
The bold-italic variant of the Libertine family is missing |
| 558 |
several ligatures; the ligatures would be taken from the |
| 559 |
regular-weight italic variant, which is unacceptable. |
| 560 |
Michael Sharpe (\url{[email protected]}) has generated |
| 561 |
the missing glyphs (\emph{\bfseries fl, ffl, ffi}) and added them to the \texttt{otf} |
| 562 |
file. |
| 563 |
|
| 564 |
\item Currently, Libertine Monospaced does not have bold, italic or bold-italic |
| 565 |
variants; \texttt{fontforge} has been used to generate artificially emboldened and/or slanted |
| 566 |
variants. |
| 567 |
|
| 568 |
\item |
| 569 |
When several of the fonts are opened in \texttt{fontforge}, warning |
| 570 |
messages are generated about errors in the glyph programs. Some of |
| 571 |
these are sufficient to cause failures or even crashes when conversion |
| 572 |
to \typeone\ format is attempted using \texttt{cfftot1}. Michael |
| 573 |
Sharpe has corrected the most serious of these. In some cases, |
| 574 |
\texttt{fontforge} |
| 575 |
has been used to convert the format, as it is less sensitive than \texttt{cfftot1} |
| 576 |
to faulty glyph programs. |
| 577 |
\end{itemize} |
| 578 |
|
| 579 |
In some \TeX\ distributions, the OpenType and \typeone\ fonts are installed as system fonts, |
| 580 |
and xe\LaTeX\ or lua\LaTeX\ users may attempt to select the OpenType fonts directly by |
| 581 |
their Postscript FontName. If \typeone\ versions with the \emph{same} FontName |
| 582 |
have been installed, the latter may be selected by the system font-selection |
| 583 |
mechanism. To avoid this, it is appropriate to modify the |
| 584 |
FontNames of the \texttt{otf} fonts before converting to \typeone\ |
| 585 |
format (but not \emph{distribute} these re-named \texttt{otf} fonts). |
| 586 |
The \typeone\ Libertine and Biolinum fonts distributed in this |
| 587 |
package have had the \texttt{O} (for Opentype) in their FontNames replaced by |
| 588 |
\texttt{T} |
| 589 |
(for Type~\liningnums{1}) using \texttt{fontforge}. This font-renaming |
| 590 |
must be done \emph{before} generating the \LaTeX-support files, or else |
| 591 |
\texttt{dvi2ps} will fail. |
| 592 |
|
| 593 |
|
| 594 |
\subsection{Generation of Support Files} |
| 595 |
|
| 596 |
The \texttt{otftotfm} tool of the \texttt{lcdftypetools} |
| 597 |
package and the \texttt{autoinst} script of the \texttt{fontools} package are convenient tools |
| 598 |
for generating \LaTeX\ support files for OpenType families. |
| 599 |
To generate a \texttt{texmf} tree for the \texttt{libertine} |
| 600 |
package on a Unix-like system, one puts all the \texttt{otf} files to be supported for \LaTeX\ or |
| 601 |
pdf\LaTeX\footnote{Currently, all of the OpenType fonts except the Keyboard font are supported |
| 602 |
for \LaTeX\ and pdf\LaTeX.} into a directory, creates a \texttt{texmf} sub-directory and executes |
| 603 |
\begin{verbatim} |
| 604 |
autoinst -target=./texmf -encoding=OT1,T1,LY1,TS1 \ |
| 605 |
-vendor=public -typeface=libertine -noupdmap \ |
| 606 |
-noswash -notitling -noornaments \ |
| 607 |
*.otf |
| 608 |
\end{verbatim} |
| 609 |
Then move to the \texttt{texmf} directory and do |
| 610 |
\begin{verbatim} |
| 611 |
rm -rf fonts/pl fonts/vpl fonts/truetype fonts/type42 |
| 612 |
mv fonts/enc/dvips/public fonts/enc/dvips/libertine |
| 613 |
mv fonts/map/dvips/public fonts/map/dvips/libertine |
| 614 |
\end{verbatim} |
| 615 |
to delete irrelevant sub-directories and re-name directories as required by |
| 616 |
TeXLive. |
| 617 |
|
| 618 |
A few additional steps are needed. |
| 619 |
|
| 620 |
\subsubsection{Renaming of the Encoding Files} |
| 621 |
\texttt{otftotfm} generates encoding files with filenames of the form \verb|a_xxxxxx|; |
| 622 |
to avoid filename conflicts with other packages, the files have been re-named |
| 623 |
to have a distinctive prefix using the |
| 624 |
command |
| 625 |
\begin{verbatim} |
| 626 |
rename_enc libertine lbtn |
| 627 |
\end{verbatim} |
| 628 |
executed in the \texttt{texmf} directory, where |
| 629 |
\verb|rename_enc| is a PERL script in |
| 630 |
\begin{verbatim} |
| 631 |
doc/fonts/libertine |
| 632 |
\end{verbatim} |
| 633 |
Then in \verb|fonts/map/dvips/libertine|, |
| 634 |
the map files can be concatenated into a single file \verb|libertine.map| and |
| 635 |
all instances of \verb|a_| changed to \verb|lbtn_|; the |
| 636 |
original \verb|map| files have been deleted. |
| 637 |
|
| 638 |
\subsubsection{Installation of the Fonts} |
| 639 |
|
| 640 |
The \texttt{otf} files after corrections (but before re-naming) are |
| 641 |
installed into the \texttt{texmf} tree in the following sub-directory: |
| 642 |
\begin{verbatim} |
| 643 |
fonts/OpenType/public/libertine/ |
| 644 |
\end{verbatim} |
| 645 |
The \texttt{autoinst} script will normally use \texttt{cfftot1} |
| 646 |
to create \verb|pfb| files with appropriate internal names |
| 647 |
and filenames; but if more than one font family has been processed |
| 648 |
or if \texttt{cfftot1} runs into trouble, this may not happen. In that |
| 649 |
case, one must do the conversion font-by-font using either \texttt{cfftot1} |
| 650 |
or \texttt{fontforge}; the appropriate internal names and filenames are as specified in |
| 651 |
\verb|libertine.map|. |
| 652 |
The \texttt{pfb} files are installed into the \texttt{texmf} tree in the following |
| 653 |
sub-directory: |
| 654 |
\begin{verbatim} |
| 655 |
fonts/type1/public/libertine/ |
| 656 |
\end{verbatim} |
| 657 |
|
| 658 |
\subsubsection{The \texttt{fd} Files} |
| 659 |
The \texttt{autoinst} script generates a large number of files with |
| 660 |
\verb|.fd| extensions in the \verb|tex/latex/libertine/| directory. |
| 661 |
Recent versions will generate ``silent substitution'' |
| 662 |
rules for mapping \texttt{sl} to \texttt{it} and \texttt{bx} to \texttt{b}; |
| 663 |
if not, these have to be added by hand. |
| 664 |
|
| 665 |
\subsubsection{The \texttt{sty} Files} |
| 666 |
The \texttt{autoinst} script generates files with \verb|.sty| extensions |
| 667 |
in the \verb|tex/latex/libertine/| directory for each of the font families; |
| 668 |
but these are useless for xe\LaTeX\ and lua\LaTeX\ users and have been deleted. |
| 669 |
A \verb|libertine.sty| file has been generated ``by hand'' and is discussed in Section~\ref{sty}. |
| 670 |
|
| 671 |
\subsection{\texttt{libertine.sty}} |
| 672 |
\label{sty} |
| 673 |
This file implements the support for both \typeone\ and OpenType usage; the choice |
| 674 |
is initially determined by the processing engine, but as some xe\LaTeX\ and lua\LaTeX\ |
| 675 |
users may prefer to avoid \texttt{fontspec}, a \texttt{type1} (or \texttt{nofontspec}) option |
| 676 |
is provided to change this. |
| 677 |
|
| 678 |
The \verb\...@scale\ commands are invoked in the \verb\fd\ files or when |
| 679 |
specifying fonts with \texttt{fontspec}; only the scale factors for Biolinum and |
| 680 |
Libertine Mono are adjustable using option parameters. |
| 681 |
|
| 682 |
If the \texttt{sfdefault} option has been used, the \verb|\familydefault| |
| 683 |
is set to the \emph{current} value of \verb|\sfdefault| (with no change to |
| 684 |
\verb|\rmdefault|). |
| 685 |
|
| 686 |
The use of \verb|\newfontfamily| rather than \verb|\addfontfeatures| avoids |
| 687 |
problems in the implementation of the latter for some fonts (including, unfortunately, |
| 688 |
Libertine). |
| 689 |
|
| 690 |
For the Mono and Keyboard font families, the Ligature and SmallCap features must be turned off. |
| 691 |
|
| 692 |
Commands to switch locally to oldstyle/lining/proportional/tabular numbers |
| 693 |
are defined; the definitions of \verb|\oldstylenums| must deal with possible |
| 694 |
pre-existing definitions. |
| 695 |
|
| 696 |
To implement the \verb|\...Glyph| commands, it is necessary to, essentially, iterate |
| 697 |
through all the \emph{defined} glyphs in the relevant OpenType font. This is implemented |
| 698 |
by creating files \verb|LinLibertine_R.tex|, \verb|\LinBiolinum_R.tex|, |
| 699 |
\verb|LinBiolinum_K.tex| and \verb|LinLibertine_I.tex| which declare the glyph name (when available), |
| 700 |
unicode code point, and glyph index for every defined glyph. |
| 701 |
These files are created by using \texttt{fontforge} to generate |
| 702 |
a ``glyph map'' file (extension \verb|.g2n|) for the relevant font and then the small \texttt{C} program |
| 703 |
\verb|doc/fonts/libertine/g2ntotex.c| will convert this into the required \verb|.tex| file. |
| 704 |
|
| 705 |
The final step in \verb|libertine.sty| is to remove all default font features |
| 706 |
in \texttt{fontspec} in case other fonts will be activated by the user. |
| 707 |
|
| 708 |
\subsection{Additional \texttt{sty} Files} |
| 709 |
The \verb|tex/latex/libertine/| directory also contains three ``front-end'' files |
| 710 |
\verb|libertineotf.sty|, \verb|libertine-type1.sty|, and \verb|biolinum-type1.sty|, |
| 711 |
which provide partial compatibility with obsolete packages, primarily for legacy |
| 712 |
documents. |
| 713 |
|
| 714 |
\end{document} |