Debian Codegraph @

texmf-dist/doc/latex/psnfss/test/test1.tex

raw
1 \documentclass[11pt]{article}
2
3 \renewcommand{\rmdefault}{ptm}
4 \usepackage[scaled=0.92]{helvet}
5 \renewcommand{\bfdefault}{b}
6
7 \usepackage[T1]{fontenc}
8 \usepackage{textcomp}
9
10 \begin{document}
11 \frenchspacing
12 \title{PSNFSS:\\ Times, Helvetica, Courier}
13 \author{Sebastian Rahtz \and Walter Schmidt}
14 \date{2004-09-06}
15 \maketitle
16 \def\Try#1#2{%
17 {\fontfamily{#1}\selectfont
18 This is typeset in #2 (#1):
19 \begin{quote}
20 \raggedright
21 A regular f\'ee costs 123\,\texteuro.\\
22 \textit{An italic f\'ee.costs 123\,\texteuro.}\\
23 \textsl{A slanted f\'ee costs 123\,\texteuro.}\\
24 \textsc{A SmallCaps f\'ee.}\\
25 {\bfseries A bold f\'ee costs 123\,\texteuro.\\
26 \textit{A bold italic f\'ee costs 123\,\texteuro.}\\
27 \textsl{A bold slanted f\'ee costs 123\,\texteuro.}\\
28 \textsc{A bold SmallCaps f\'ee.}\\
29 }
30 \end{quote}
31 \par
32 }}
33
34 \Try{ptm}{Adobe Times Roman}
35 \Try{phv}{Adobe Helvetica}
36 \Try{pcr}{Adobe Courier}
37
38 \textsf{In Helvetica we can try the narrow font series, too.\footnote{Thanks to Frank
39 Poppe for putting this in.}}
40 \begin{quote}
41 \raggedright
42 \fontfamily{phv}\fontseries{c}\selectfont
43 \upshape A narrow f\'ee costs 123\,\texteuro.\\
44 \slshape A narrow slanted f\'ee costs 123\,\texteuro.\\
45 {\fontseries{bc}\selectfont
46 \upshape A bold narrow f\'ee costs 123\,\texteuro.\\
47 \slshape A bold narrow slanted f\'ee costs 123\,\texteuro.
48 }
49 \end{quote}
50
51 \end{document}