summaryrefslogtreecommitdiff
path: root/Master/texmf-dist/doc/fonts/libris/librisadf.tex
blob: e5d14fb3e4113d761163950150a3d910c0e63a4d (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
% !TEX TS-program = pdflatex
% !TEX encoding = UTF-8 Unicode
%% librisadf.tex
%% Copyright 2010 Clea F. Rees
%
% This work may be distributed and/or modified under the
% conditions of the LaTeX Project Public License, either version 1.3
% of this license or (at your option) any later version.
% The latest version of this license is in
%   http://www.latex-project.org/lppl.txt
% and version 1.3 or later is part of all distributions of LaTeX
% version 2005/12/01 or later.
%
% This work has the LPPL maintenance status `maintained'.
% 
% The Current Maintainer of this work is Clea F. Rees.
%
% This work consists of all files listed in manifest.txt.
\listfiles
\documentclass[11pt,british]{article}
\usepackage{babel}
\usepackage[T1]{fontenc}
\usepackage{textcomp}
\usepackage{lmodern}
\renewcommand{\ttdefault}{lmvtt}
\let\origsfdefault\sfdefault
\DeclareRobustCommand{\origsffamily}{%
	\fontencoding{T1}%
	\fontfamily{\origsfdefault}%
	\selectfont}
\DeclareTextFontCommand{\textorigsf}{\origsffamily}
\usepackage{libris}
	\pdfmapfile{+yly.map}	% not necessary for installed package
\usepackage{fancyhdr,lastpage,fancyref}
\usepackage{array,longtable,verbatim}
\usepackage{booktabs}
\usepackage{url}
	\urlstyle{tt}
\usepackage{microtype}
\usepackage[a4paper,headheight=14pt]{geometry}	% use 14pt for 11pt text, 15pt for 12pt text

\title{librisadf}
\author{Clea F.\ Rees\footnote{cfrees <at> imapmail <dot> org}}
\newcommand*{\dyddiad}{6\textsuperscript{th} July, 2010}
\date{\dyddiad}
\pagestyle{fancy}
	\fancyhf[lh]{\itshape librisadf}
	\fancyhf[rh]{\itshape\dyddiad}
	\fancyhf[ch]{}
	\fancyhf[lf]{}
	\fancyhf[rf]{}
	\fancyhf[cf]{\itshape --- \thepage~\ofname~\pageref{LastPage} ---}
	

\begin{document}
\maketitle\thispagestyle{empty}
\pdfinfo{%
	/Creator		(TeX)
	/Producer		(pdfTeX)
	/Author			(Clea F.\ Rees)
	/Title				(librisadf)
	/Subject		(TeX)
	/Keywords		(TeX,LaTeX,font,fonts,tex,latex,Libris,libris,librisadf,LibrisADF,ADF,adf,Arkandis,Digital,Foundry,arkandis,digital,foundry,Hirwen,Harendal,Clea,Rees)}
\pdfcatalog{%
	/URL				()
	/PageMode	/UseOutlines}	% other values: /UseNone, /UseOutlines, /UseThumbs, /FullScreen
	%[openaction <actionspec>]
%	\pagestyle{empty}	% if you want this, you probably want to comment out \maketitle as well...?
\setlength{\parindent}{0pt}
\setlength{\parskip}{0.5em}
	
	
\newcommand*{\adf}{\textsc{adf}}
\newcommand*{\lpack}[1]{\textorigsf{#1}}
\newcommand*{\fgroup}[1]{\textorigsf{#1}}
\newcommand*{\fname}[1]{\textorigsf{#1}}
%\newcommand*{\lpack}[1]{\textsf{#1}}
%\newcommand*{\fgroup}[1]{\textsf{#1}}
%\newcommand*{\fname}[1]{\textsf{#1}}

\begin{abstract}
	\hspace*{-\parindent}Hirwen Harendal, Arkandis Digital Foundry (\adf) has produced the Libris \adf\ font collection. This guide outlines the \emph{experimental} \TeX/\LaTeX\ support provided with version 1.007 of the fonts.
\end{abstract}

This document explains how to use the \TeX/\LaTeX\ support included with version 1.007 of the Libris \adf\ font collection. The fonts were developed by Hirwen Harendal of the Arkandis Digital Foundry (\adf) and information about the fonts themselves can be found at \url{http://arkandis.tuxfamily.org/adffonts.html}. The fonts are released under the \textsc{gnu} General Public License as published by the Free Software Foundation; either version 2 of the License, or any later version, with font exception. For details, see \textsc{notice}.txt and \textsc{copying}.

The \TeX/\LaTeX\ support package consists of all files listed in \path{manifest.txt}\ and these files are released under the \LaTeX\ Project Public Licence as explained in the included licensing notices. Please let me know of any problems so that I can solve them if I can. If you can correct the problems and send me the fix, that would be even better. Unlike the fonts themselves, the \TeX/\LaTeX\ support is still somewhat experimental.

\section{The collection}

Libris \adf\ is a sans-serif family with lining figures. The family currently includes upright and italic shapes in each of regular and bold weights. The support package renames the fonts according to the Karl Berry fontname scheme and defines two families. The first of these is primarily designed to provide access to the ``standard'' or default characters while the second ``swash'' family supports alternate characters and additional ligatures. The included package files provide access to these features in \LaTeX\ as explained in \fref{sec:support} and \fref{sec:commands}. 

\begin{longtable}{llll}
	\toprule
	{\fontseries{b}\selectfont Original grouping}		&	{\fontseries{b}\selectfont\TeX\ directory/group}	&	{\fontseries{b}\selectfont Original} \textbf{name}	& {\fontseries{b}\selectfont\TeX\ name}\\\midrule\endhead
		\bottomrule\endfoot
	Libris-Std		&	libris	&	LibrisADFStd-Regular		&	ylyr8a\\
							&				&	LibrisADFStd-Italic			&	ylyri8a\\
							&				&	LibrisADFStd-Bold				&	ylyb8a\\
							&				&	LibrisADFStd-BoldItalic	&	ylybi8a\\
\end{longtable}

\section{Requirements}

Apart from such obvious requirements as \LaTeXe, the \LaTeX\ support provided by \path{libris.sty} requires \lpack{nfssext-cfr}. Without this, you will get errors complaining that the package cannot be found and you will not be able to use any of the additional font commands described in \fref{sec:commands}.

The documentation requires in addition:
\begin{itemize}
	\item \lpack{babel}
	\item	\lpack{lm}
	\item \lpack{microtype}
	\item \lpack{geometry}
	\item \lpack{fancyhdr}
	\item \lpack{lastpage}
	\item \lpack{fancyref}
	\item \lpack{array}
	\item \lpack{longtable}
	\item \lpack{verbatim}
	\item \lpack{booktabs}
	\item \lpack{url}
\end{itemize}
though you can always comment out the relevant lines if you don't have these packages.


\section{Installation}

Installation varies with \TeX\ distribution so you should consult the documentation which came with your system for details. In most cases, you will need to perform three steps:
		\begin{enumerate}
			\item move or copy the package files to appropriate locations on your system;
			\item refresh the \TeX\ database;
			\item incorporate the included map file fragments for the different engines your distribution supports.
		\end{enumerate}

The following instructions assume you are using \TeX~Live\footnote{This includes Mac\TeX\ for OS X users.}. They should not be too difficult to adapt if you are using a different distribution.

\subsection{Install the files}

The files should be installed in one of two locations: \emph{either} the local system-wide \TeX\ tree \emph{or} your personal tree. If the package is installed system-wide, all users will have access to it. On the other hand, you may need privileges you do not have to do this in which case you must use your personal tree.

For \TeX~Live, \verb|kpsewhich -var-value TEXMFLOCAL| will return the path to the local tree and \verb|kpsewhich -var-value TEXMFHOME| the path to your personal tree. The package already includes a hierarchy of files to help you install them correctly. Ignoring any symbolic link in the top directory, move or copy the files in \path{doc}, \path{fonts} and \path{tex} into the appropriate locations. If the tree is initially empty, you can simply move or copy the directories in as they are. If the tree already contains other packages, you may need to merge the package hierarchy with the pre-existing one. For example, if you already have a \path{doc/fonts} directory, move or copy \path{doc/fonts/libris} into \path{doc/fonts/}. If you have a \path{doc} directory but not a \path{doc/fonts}, move \path{doc/fonts} into \path{doc/}.

\subsection{Refresh the database}

Again, this depends on your distribution. For \TeX~Live, \verb|mktexlsr <path to directory>| for the directory you used in the first step should do the trick. Note that you \emph{may} be able to skip this step if you install into your personal tree. Whether this is so depends on the details of your set-up. As a test, move to a directory containing none of the package files and try \verb|kpsewhich libris.sty|. If the file is found, you don't need to refresh the database; otherwise use \verb|mktexlsr| and then try again.

\subsection{Install the map fragments}

For \TeX~Live, there are at least two ways of doing this. The second method varies according to the version of \TeX~Live and instructions are provided accordingly. Both methods depend on whether you installed into \verb|TEXMFLOCAL| or \verb|TEXMFHOME|. If you installed system-wide, the choice is relatively straightforward --- it obviously makes sense in that case to update the font maps system-wide as well. If, on the other hand, you installed into your personal tree, the matter is more complex. On the one hand, updating the system-wide maps may create difficulties or confusion for other users because while the map files will list the fonts as available, they will not be able to access them. On the other hand, maintaining personal font map files can produce difficulties and confusions of its own. Whether it is to be preferred or not is a complex issue and depends on the details of your \TeX\ distribution, local configuration and personal preference. The one clear case is that in which you install into your personal tree because you lack the privileges needed to install system-wide. In that case, you have no choice but to maintain personal font map files or forgo the use of all fonts not provided by your administrator. Other cases are thankfully beyond the scope of this document.

\subsubsection{Method 1}

If you installed the package system-wide, use the command:
\begin{verbatim}
	updmap-sys --enable Map=yly.map
\end{verbatim}
If you installed the package in your personal tree, you \emph{may} prefer to use:
\begin{verbatim}
	updmap --enable Map=yly.map
\end{verbatim}

Either way, \verb|updmap| will output a good deal of information after each incantation. This is normal. Just check that it does not end with an error and that it found the new map file.

\subsubsection{Method 2: \TeX~Live 2008 (and probably earlier)}

If you installed the package system-wide, use \verb|updmap-sys --edit|.

If you installed into your personal tree, you \emph{may} prefer to use	\verb|updmap --edit|.

Either way, a configuration file will be opened which you can edit. Move to the end of the file and add the following line:
\begin{verbatim}
	Map yly.map
\end{verbatim}
When you are done, save the file. \verb|updmap| or \verb|updmap-sys| will produce a great deal of output if all is well. Just check that it does not end with an error and that \path{yly.map} is found.

\subsubsection{Method 2: \TeX~Live 2009 (and possibly later)}

If you installed the package system-wide, edit or or create \path{TEXMFLOCAL/web2c/updmap-local.cfg} and add the following line to the end of the file:
\begin{verbatim}
	Map yly.map
\end{verbatim}
Save the file and tell \verb|tlmgr| to merge in your addition using the command:
\begin{verbatim}
	tlmgr generate updmap
\end{verbatim}
\verb|tlmgr| will then tell you that you need to ensure the changes are propagated correctly by calling \verb|updmap-sys|. This should produce a great deal of output. Check that it finds the new map file and does not end with an error.

If you installed into your personal tree, you \emph{may} prefer to use \verb|	updmap --edit| as described above for \TeX~Live 2008.

To test your installation and that the package works on your system, latex this file (\path{librisadf.tex}). The console output and/or log should tell you whether any fonts were not found. If you are careful not to overwrite it, you may also compare your output with \path{librisadf.pdf}.

\section{The support package}\label{sec:support}

\subsection{Encodings}

The package supports modified \textsc{ec}/\textsc{t1} and Text Companion (\textsc{ts1}) encodings. Most characters in the \textsc{ec} encoding are available and the fonts provide a small number of characters from the \textsc{ts1} encoding as well, including the \texteuro. The regular version of the \textsc{ec}/\textsc{t1} encoding (\path{t1-libris.enc}) reassigns three slots which would otherwise be empty due to missing glyphs which \path{fontinst} cannot fake. In the \textsc{t1} encoding, these slots are standardly used for the per thousand zero and the Sami Eng/eng characters (\NG/\ng). \path{t1-libris.enc} uses them for three additional ligatures (`\textsf{tt}', `\textsf{fj}' and `\textsf{ffj}').

The ``swash'' version of the \textsc{ec}/\textsc{t1} encoding (\path{t1-librisswash.enc}) provides access to the full range of ligatures available, in addition to replacing default glyphs by alternates. Because additional slots are required to accommodate the additional ligatures, a number of characters normally available in the \textsc{ec} encoding are unavailable. These are the \textsc{ascii} circumflex (\textsf{\textasciicircum}), the \textsc{ascii} tilde (\textsf{\textasciitilde}), the IJ/ij ligature (\textsf\IJ/\textsf\ij), dbar (\textsf\dj), the Eth/eth (\textsf\DH/\textsf\dh) and the Thorn/thorn (\textsf\TH/\textsf\th). Attempting to access these characters while using this font may result in errors of various kinds and will certainly produce unexpected output even though the characters are provided by the font, as the previous sentence demonstrates. To access these glyphs, ensure that the regular version of the font is active.

\subsection{\LaTeX\ package}

To use the fonts in a \LaTeX\ document, add \verb|\usepackage{libris}| to your document preamble. This will set the default sans-serif family to \fname{yly} (\fgroup{libris}) and enable access to the various alternates and additional glyphs available in \fname{ylyw}.

Note that loading \path{libris.sty} will not affect the default roman family or, therefore, the default document font. To use \fgroup{libris} (\fname{yly}) as the default document font, add the line \verb|\renewcommand{\familydefault}{\sfdefault}| to your preamble as well.
	
\section{Additional font selection commands}\label{sec:commands}

	The \LaTeX\ package \lpack{libris}\ loads \lpack{nfssext-cfr}\ which is an extension of the package \lpack{nfssext}\ supplied by Philipp Lehman as part of The Font Installation Guide. The file extends the font selection commands to facilitate access to various font features. Both the original and the extension are designed for use with a wide range of fonts. For this reason, only a subset of the additional commands are relevant to any particular font support package. Those relevant to \lpack{librisadf}\ are described below.
	
	I consider my additions to \lpack{nfssext-cfr}\ to be \emph{highly experimental}. If things don't work as advertised, apart from letting me know about the problem, you may be able to access the features you need by issuing a \verb|\normalfont| and then selecting features from there. This command will return you to the default document text font --- typically the relevant serif in regular weight, standard width and upright shape with oldstyle or lining figures etc.\ as determined by the packages and options loaded or your distribution's setup.
	
\subsection{nfssext-cfr}

These commands are available when \lpack{libris} is loaded. If for some reason you wish to make them available when no relevant package is loaded, use \verb|\usepackage{nfssext-cfr}| in your document preamble.
	
\subsubsection{Styles}

	\begin{longtable}{lll}
		\toprule
		\textbf{style}			&	\textbf{style command}	&	\textbf{text command}\\\midrule\endhead
		\bottomrule\endfoot
		swash							&	\verb|\swashstyle|				&	\verb|\textswash{}|\\
	\end{longtable}
	
	For example, if \lpack{libris}\ was loaded then:
		\begin{verbatim}
				\newcommand*{\fytext}{%
				ABCDEFGHIJKLMNOPQRSTUVWXYZ abcdefghijklmnopqrs{}tuvwxyz\\
				0123456789 \textonequarter \textonehalf \textthreequarters \textsurd \texttimes 
				\textdiv \textpm\ 	\& \texteuro \textcent \textsterling \textcurrency \textyen 
				\textflorin \textdollar\ \textregistered \textcopyright \texttrademark 
				\textestimated \textnumero\ \textohm \textmu\ \textsection \textparagraph\ 
				\textdagger \textdaggerdbl\ \textcelsius\\
				Sphinx of black quartz, judge my vow.\\
				The quick brown fox jumps over the lazy dog.\\
				The quick bronzing wax lay over the impish fjord.\\
				A churlish skittish bespectacled clerk strictly slacks.}
			\newcommand*{\fytest}{\fytext\\[.5em]\textswash{\fytext}}
			\textsf{%	
				\fytest\\[1em]
				\textit{\fytest}\\[1em]
				\textbf{\fytest}\\[1em]
				\textbf{\textit{\fytest}}}
		\end{verbatim}
		produces:
		\begin{center}
			\newcommand*{\fytext}{%
				ABCDEFGHIJKLMNOPQRSTUVWXYZ abcdefghijklmnopqrs{}tuvwxyz\\
				0123456789 \textonequarter \textonehalf \textthreequarters \textsurd \texttimes 
				\textdiv \textpm\ 	\& \texteuro \textcent \textsterling \textcurrency \textyen 
				\textflorin \textdollar\ \textregistered \textcopyright \texttrademark 
				\textestimated \textnumero\ \textohm \textmu\ \textsection \textparagraph\ 
				\textdagger \textdaggerdbl\ \textcelsius\\
				Sphinx of black quartz, judge my vow.\\
				The quick brown fox jumps over the lazy dog.\\
				The quick bronzing wax lay over the impish fjord.\\
				A churlish skittish bespectacled clerk strictly slacks.}
			\newcommand*{\fytest}{\fytext\\[.5em]\textswash{\fytext}}
			\textsf{%	
				\fytest\\[1em]
				\textit{\fytest}\\[1em]
				\textbf{\fytest}\\[1em]
				\textbf{\textit{\fytest}}}
		\end{center}

\end{document}