Debian Codegraph @

texmf-dist/tex/latex-dev/tools/fontsmpl.sty

raw
1 %%
2 %% This is file `fontsmpl.sty',
3 %% generated with the docstrip utility.
4 %%
5 %% The original source files were:
6 %%
7 %% fontsmpl.dtx (with options: `package')
8 %%
9 %% This is a generated file.
10 %%
11 %% The source is maintained by the LaTeX Project team and bug
12 %% reports for it can be opened at https://latex-project.org/bugs/
13 %% (but please observe conditions on bug reports sent to that address!)
14 %%
15 %%
16 %% Copyright (C) 1993-2026
17 %% The LaTeX Project and any individual authors listed elsewhere
18 %% in this file.
19 %%
20 %% This file was generated from file(s) of the Standard LaTeX `Tools Bundle'.
21 %% --------------------------------------------------------------------------
22 %%
23 %% It may be distributed and/or modified under the
24 %% conditions of the LaTeX Project Public License, either version 1.3c
25 %% of this license or (at your option) any later version.
26 %% The latest version of this license is in
27 %% https://www.latex-project.org/lppl.txt
28 %% and version 1.3c or later is part of all distributions of LaTeX
29 %% version 2005/12/01 or later.
30 %%
31 %% This file may only be distributed together with a copy of the LaTeX
32 %% `Tools Bundle'. You may however distribute the LaTeX `Tools Bundle'
33 %% without such generated files.
34 %%
35 %% The list of all files belonging to the LaTeX `Tools Bundle' is
36 %% given in the file `manifest.txt'.
37 %%
38 %%
39 \NeedsTeXFormat{LaTeX2e}
40 \ProvidesPackage{fontsmpl}[1994/10/29 Font sample package]
41 \newcommand{\fontsample}{%
42 Test of font \f@encoding/\f@family/\f@series/\f@shape.
43 \fontsampletext
44 \fontsampleglyphs
45 \fontsampleaccents
46 }
47 \newcommand{\fontsampletext}{%
48 Some text:
49 \begin{quote}\begin{flushleft}
50 On November 14, 1885, Senator \& Mrs.~Leland Stanford called
51 together at their San Francisco mansion the 24~prominent men who
52 had been chosen as the first trustees of The Leland Stanford
53 Junior University. They handed to the board the Founding Grant
54 of the University, which they had executed three days before.
55 This document---with various amendments, legislative acts, and
56 court decrees---remains as the University's charter. In bold,
57 sweeping language it stipulates that the objectives of the
58 University are ``to qualify students for personal success and
59 direct usefulness in life; and to promote the publick welfare by
60 exercising an influence in behalf of humanity and civilization,
61 teaching the blessings of liberty regulated by law, and
62 inculcating love and reverence for the great principles of
63 government as derived from the inalienable rights of man to life,
64 liberty, and the pursuit of happiness.''
65 \\
66 (!`THE DAZED BROWN FOX QUICKLY GAVE 12345--67890 JUMPS!)
67 \\
68 ?`But aren't Kafka's Schlo\ss\
69 and \AE sop's \OE uvres often na\"\i ve vis-\`a-vis the
70 d\ae monic ph\oe nix's official r\^ole in fluffy s\t ouffl\'es?
71 \\
72
73 \end{flushleft}\end{quote}
74 }
75 \newcommand{\fontsampleglyphs}{%
76 Some glyphs:
77 \begin{quote}\begin{flushleft}
78 \fontsampleglyph{\#}
79 \fontsampleglyph{\$}
80 \fontsampleglyph{\%}
81 \fontsampleglyph{\&}
82 \fontsampleglyph{\AA}
83 \fontsampleglyph{\AE}
84 \fontsampleglyph{\DH}
85 \fontsampleglyph{\DJ}
86 \fontsampleglyph{\L}
87 \fontsampleglyph{\NG}
88 \fontsampleglyph{\OE}
89 \fontsampleglyph{\O}
90 \fontsampleglyph{\P}
91 \fontsampleglyph{\SS}
92 \fontsampleglyph{\S}
93 \fontsampleglyph{\TH}
94 \fontsampleglyph{\_}
95 \fontsampleglyph{\aa}
96 \fontsampleglyph{\ae}
97 \fontsampleglyph{\copyright}
98 \fontsampleglyph{\dag}
99 \fontsampleglyph{\ddag}
100 \fontsampleglyph{\dh}
101 \fontsampleglyph{\dj}
102 \fontsampleglyph{\dots}
103 \fontsampleglyph{\guillemotleft}
104 \fontsampleglyph{\guillemotright}
105 \fontsampleglyph{\guilsinglleft}
106 \fontsampleglyph{\guilsinglright}
107 \fontsampleglyph{\i}
108 \fontsampleglyph{\j}
109 \fontsampleglyph{\l}
110 \fontsampleglyph{\ng}
111 \fontsampleglyph{\oe}
112 \fontsampleglyph{\o}
113 \fontsampleglyph{\pounds}
114 \fontsampleglyph{\quotedblbase}
115 \fontsampleglyph{\quotesinglbase}
116 \fontsampleglyph{\ss}
117 \fontsampleglyph{\textasciicircum}
118 \fontsampleglyph{\textasciitilde}
119 \fontsampleglyph{\textbackslash}
120 \fontsampleglyph{\textbar}
121 \fontsampleglyph{\textbullet}
122 \fontsampleglyph{\textcompwordmark}
123 \fontsampleglyph{\textemdash}
124 \fontsampleglyph{\textendash}
125 \fontsampleglyph{\textexclamdown}
126 \fontsampleglyph{\textgreater}
127 \fontsampleglyph{\texthyphenchar}
128 \fontsampleglyph{\textless}
129 \fontsampleglyph{\textperiodcentered}
130 \fontsampleglyph{\textquestiondown}
131 \fontsampleglyph{\textquotedblleft}
132 \fontsampleglyph{\textquotedblright}
133 \fontsampleglyph{\textquotedbl}
134 \fontsampleglyph{\textquoteleft}
135 \fontsampleglyph{\textquoteright}
136 \fontsampleglyph{\textvisiblespace}
137 \fontsampleglyph{\th}
138 \fontsampleglyph{\{}
139 \fontsampleglyph{\}}
140 \end{flushleft}\end{quote}
141 }
142 \newcommand{\fontsampleglyph}[1]{%
143 \ifx#1\@undefined
144 {\typewriterfont\string#1}~is~undefined
145 \else
146 {\typewriterfont\string#1}~is~`#1'
147 \fi
148 }
149 \newcommand{\fontsampleaccents}{%
150 Some accents:
151 \begin{quote}\begin{flushleft}
152 \fontsampleaccent{\"} \\
153 \fontsampleaccent{\'} \\
154 \fontsampleaccent{\.} \\
155 \fontsampleaccent{\=} \\
156 \fontsampleaccent{\H} \\
157 \fontsampleaccent{\^} \\
158 \fontsampleaccent{\`} \\
159 \fontsampleaccent{\b} \\
160 \fontsampleaccent{\c} \\
161 \fontsampleaccent{\d} \\
162 \fontsampleaccent{\k} \\
163 \fontsampleaccent{\u} \\
164 \fontsampleaccent{\v} \\
165 \fontsampleaccent{\~}
166 \end{flushleft}\end{quote}
167 }
168 \newcommand{\fontsampleaccent}[1]{%
169 \makebox[1em][r]{\typewriterfont\string#1}
170 \makebox[15em][l]{%
171 #1A#1C#1D#1E#1G#1I#1L#1N%
172 #1O#1R#1S#1T#1U#1Y#1Z%
173 #1a#1c#1d#1e#1g#1\i#1i#1l#1n%
174 #1o#1r#1s#1t#1u#1y#1z%
175 }
176 }
177 \DeclareFixedFont{\typewriterfont}
178 {\encodingdefault}{\ttdefault}{\mddefault}{\updefault}{10}
179 \def\TextSymbolUnavailable#1{%
180 \textbf{?}\PackageInfo{fontsmpl}{%
181 Command \protect#1 undefined in encoding \f@encoding%
182 }%
183 }
184 \endinput
185 %%
186 %% End of file `fontsmpl.sty'.