Debian Codegraph @

texmf-dist/doc/latex/cfr-initials/cfr-initials.tex

raw
1 % !TEX TS-program = pdflatex
2 % !TEX encoding = UTF-8 Unicode
3 % arara: pdflatex: { synctex: true }
4 %% cfr-initials.tex
5 %% Copyright 2015 Clea F. Rees
6 %
7 % This work may be distributed and/or modified under the
8 % conditions of the LaTeX Project Public License, either version 1.3
9 % of this license or (at your option) any later version.
10 % The latest version of this license is in
11 % http://www.latex-project.org/lppl.txt
12 % and version 1.3 or later is part of all distributions of LaTeX
13 % version 2005/12/01 or later.
14 %
15 % This work has the LPPL maintenance status `maintained'.
16 %
17 % The Current Maintainer of this work is Clea F. Rees.
18 %
19 % This work consists of all files listed in manifest.txt.
20 \listfiles
21 \documentclass[11pt,british,a4paper]{article}
22 \usepackage{babel}
23 \usepackage[utf8]{inputenc}
24 \usepackage[T1]{fontenc}
25 \usepackage{textcomp,cfr-lm}
26 \usepackage{fancyhdr,pageslts}
27 \usepackage{longtable,verbatim}
28 \usepackage{lettrine}
29 \usepackage{booktabs,url}
30 \usepackage{microtype}
31 \usepackage[headheight=14pt,vscale=.71]{geometry} % use 14pt for 11pt text, 15pt for 12pt text
32 \usepackage{parskip}
33 \usepackage{Acorn, AnnSton, ArtNouv, ArtNouvc, Carrickc, Eichenla, Eileen, EileenBl, Elzevier, GotIn, GoudyIn, Kinigcap, Konanur, Kramer, MorrisIn, Nouveaud, Romantik, Rothdn, Royal, Sanremo, Starburst, Typocaps, Zallman}
34
35 \title{cfr-initials}
36 \author{Clea F.\ Rees\footnote{reesc21 <at> cardiff <dot> ac <dot> uk}}
37 \def\dyddiad{2015--04--06}
38 \def\fyversion{Version 1.01}
39 \date{\fyversion\ --- \dyddiad}
40 \pagestyle{fancy}
41 \fancyhf[lh]{\itshape \fyversion}
42 \fancyhf[rh]{\itshape \dyddiad}
43 \fancyhf[ch]{\itshape cfr-initials}
44 \fancyhf[lf]{}
45 \fancyhf[rf]{}
46 \fancyhf[cf]{\itshape --- \thepage~of~\lastpageref*{LastPage} ---}
47
48 \makeatletter
49 \newcommand\lettrinetest[1]{% text is from the kantlipsum package
50 \setcounter{DefaultLines}{3}%
51 \renewcommand{\rmdefault}{fnc}%
52 \gdef\fontlist{#1}%
53 \@for \xx:=\fontlist \do {%
54 % \lettrinetest{\xx}
55 \renewcommand\LettrineFontHook{\xx}%
56 \lettrine{A}{s} any dedicated reader can clearly see, the Ideal of practical reason is a representation of, as far as I know, the things in themselves; as I have shown elsewhere, the phenomena should only be
57 used as a canon for our understanding.}}
58 \makeatother
59
60 \begin{document}
61 \maketitle\thispagestyle{empty}
62 \pdfinfo{%
63 /Creator (TeX)
64 /Producer (pdfTeX)
65 /Author (Clea F.\ Rees)
66 /Title (cfr-initials)
67 /Subject (TeX)
68 /Keywords (TeX,LaTeX,font,fonts,tex,latex,cfr-initials,initials,Clea,Rees)}
69 \pdfcatalog{%
70 /URL ()
71 /PageMode /UseOutlines} % other values: /UseNone, /UseOutlines, /UseThumbs, /FullScreen
72 %[openaction <actionspec>]
73 \pagenumbering{arabic}
74 \newcommand*{\lpack}[1]{\textsf{#1}}
75
76 \begin{abstract}
77 \hspace*{-\parindent}\lpack{cfr-initials} is a set of 23 tiny packages designed to make it easier to use the decorative and ornamental initials provided by \lpack{initials} in \LaTeX.
78 \lpack{initials} provides 23 such fonts in type 1 format, together with the support files required to use them.
79 They cannot be used straightforwardly in \LaTeX, however, because the lack of package files providing ready-to-use commands is complicated by the non-standard naming of the font definition files.
80 \lpack{cfr-initials} is designed to make good that deficit.
81 \end{abstract}
82
83 \section{Requirements}\label{sec:require}
84
85 The next sentence but one states the blindingly obvious.
86 Sine the blindingly obvious is extremely easy to miss, the previous sentence draws crucial attention to the next sentence in the hopes that readers will avoid the attendant pitfalls.
87 In addition to the usual suspects (\LaTeX\ etc.), the packages provided by \path{cfr-initials} require \lpack{initials}.
88
89 In addition, the documentation requires:
90 \begin{itemize}
91 \item \lpack{babel}
92 \item \lpack{microtype}
93 \item \lpack{geometry}
94 \item \lpack{booktabs}
95 \item \lpack{fancyhdr}
96 \item \lpack{pageslts}
97 \item \lpack{longtable}
98 \item \lpack{verbatim}
99 \item \lpack{url}
100 \item \lpack{lettrine}
101 \end{itemize}
102
103 \section{Using the fonts}\label{sec:usage}
104
105 To access the fonts, you simply load the relevant package in your preamble.
106 For example:
107 \begin{verbatim}
108 \usepackage{Zallman}
109 \end{verbatim}
110
111 Each package provides two new commands.
112 The first is a font \emph{switch}.
113 It switches to the relevant set of initials until the end of the group, or until another command switches to a different family.
114 You will rarely wish to use these commands directly but they are useful in the definitions of macros.
115 For example, these are the commands you will need if using the fonts with the \lpack{lettrine} package.
116 (See section \ref{sec:lettrine} for examples.)
117
118 The second takes a single, mandatory argument and typesets that argument in the appropriate font.
119
120 \begin{longtable}{llllll}
121 \toprule
122 \bfseries Family & \bfseries Package & \bfseries Switch & \bfseries Command & \verb|ABC| & \verb|abc| \\\midrule\endhead
123 \bottomrule\endfoot
124 Acorn & \lpack{Acorn} & \verb|\Acornfamily| & \verb|\acorn{}| & \acorn{ABC} & \acorn{abc} \\
125 AnnSton & \lpack{AnnSton} & \verb|\AnnStonfamily| & \verb|\astone{}| & \astone{ABC} & \astone{abc} \\
126 ArtNouv & \lpack{ArtNouv} & \verb|\ArtNouvfamily| & \verb|\artnouv{}| & \artnouv{ABC} & --- \\
127 ArtNouvc & \lpack{ArtNouvc} & \verb|\ArtNouvcfamily| & \verb|\artnouvc{}| & \artnouvc{ABC} & \artnouvc{abc} \\
128 Carrickc & \lpack{Carrickc} & \verb|\Carrickcfamily| & \verb|\carr{}| & \carr{ABC} & \carr{abc} \\
129 Eichenla & \lpack{Eichenla} & \verb|\Eichenlafamily| & \verb|\eichen{}| & \eichen{ABC} & \eichen{abc} \\
130 Eileen & \lpack{Eileen} & \verb|\Eileenfamily| & \verb|\eileen{}| & \eileen{ABC} & \eileen{abc} \\
131 EileenBl & \lpack{EileenBl} & \verb|\EileenBlfamily| & \verb|\eileenbl{}| & \eileenbl{ABC} & \eileenbl{abc} \\
132 Elzevier & \lpack{Elzevier} & \verb|\Elzevier| & \verb|\elz{}| & \elz{ABC} & \elz{abc} \\
133 GotIn & \lpack{GotIn} & \verb|\GotInfamily| & \verb|\gotin{}| & \gotin{ABC} & --- \\
134 GoudyIn & \lpack{GoudyIn} & \verb|\GoudyInfamily| & \verb|\goudyin{}| & \goudyin{ABC} & --- \\
135 Kinigcap & \lpack{Kinigcap} & \verb|\Kinigcapfamily| & \verb|\kinig{}| & \kinig{ABC} & \kinig{abc} \\
136 Konanur & \lpack{Konanur} & \verb|\Konanurfamily| & \verb|\konanur{}| & \konanur{ABC} & \konanur{abc} \\
137 Kramer & \lpack{Kramer} & \verb|\Kramerfamily| & \verb|\kramer{}| & \kramer{ABC} & \kramer{abc} \\
138 MorrisIn & \lpack{MorrisIn} & \verb|\MorrisInfamily| & \verb|\morrisin{}| & \morrisin{ABC} & \morrisin{abc} \\
139 Nouveaud & \lpack{Nouveaud} & \verb|\Nouveaudfamily| & \verb|\nouvd{}| & \nouvd{ABC} & \nouvd{abc} \\
140 Romantik & \lpack{Romantik} & \verb|\Romantik| & \verb|\romantik{}| & \romantik{ABC} & \romantik{abc} \\
141 Rothdn & \lpack{Rothdn} & \verb|\Rothdnfamily| & \verb|\roth{}| & \roth{ABC} & \roth{abc} \\
142 Royal & \lpack{Royal} & \verb|\Royal| & \verb|\royal{}| & \royal{ABC} & ---\\
143 Sanremo & \lpack{Sanremo} & \verb|\Sanremofamily| & \verb|\sanremo{}| & \sanremo{ABC} & \sanremo{abc} \\
144 Starburst & \lpack{Starburst} & \verb|\Starburstfamily| & \verb|\starburst{}| & \starburst{ABC} & \starburst{abc} \\
145 Typocaps & \lpack{Typocaps} & \verb|\Typocapsfamily| & \verb|\typocap{}| & \typocap{ABC} & \typocap{abc} \\
146 Zallman & \lpack{Zallman} & \verb|\Zallmanfamily| & \verb|\zall{}| & \zall{ABC} & \zall{abc} \\
147 \end{longtable}
148 \clearpage
149
150 \section{Sample lettrines}\label{sec:lettrine}
151
152 \lettrinetest{\Royal,\Romantik,\ArtNouvfamily,\EileenBlfamily,\Zallmanfamily,\Konanurfamily,\Starburstfamily,\Typocapsfamily,\ArtNouvcfamily,\Kinigcapfamily,\Kramerfamily,\GotInfamily}
153
154 \end{document}
155