Debian Codegraph @

texmf-dist/doc/fonts/dejavu/dejavu-sample.tex

raw
1 %% Copyright 2011 Pavel Farar
2 %
3 % This work may be distributed and/or modified under the
4 % conditions of the LaTeX Project Public License, either version 1.3
5 % of this license or (at your option) any later version.
6 % The latest version of this license is in
7 % http://www.latex-project.org/lppl.txt
8 % and version 1.3 or later is part of all distributions of LaTeX
9 % version 2005/12/01 or later.
10 %
11 % This work has the LPPL maintenance status `maintained'.
12 %
13 % The Current Maintainer of this work is Pavel Farar
14
15
16 \documentclass[oneside]{scrartcl}
17
18 \usepackage[utf8]{inputenc}
19 \usepackage[russian, greek, english]{babel}
20
21 \usepackage{DejaVuSans}
22 \usepackage{DejaVuSerif}
23 \usepackage{DejaVuSansMono}
24
25 \usepackage[T2A, LGR, T1]{fontenc}
26 \usepackage{textcomp}
27 \usepackage[colorlinks]{hyperref}
28 \hypersetup{pdfauthor={Pavel Farar}}
29
30 \setlength{\parindent}{0pt}
31 \setlength{\parskip}{\baselineskip}
32
33 \newcommand{\SampleText}{Basic Latin alphabet:
34 a b c d e f g h i j k l m n o p q r s t u v w x y z
35 A B C D E F G H I J K L M N O P Q R S T U V W X Y Z;
36 some accented letters and germandbls: Š š Ť ť É é Ů ů Ü ü \ss;
37 basic Cyrillic alphabet:
38 \selectlanguage{russian}%
39 а б в г д е ё ж з и й к л м н о п р с т у ф х ц ч ш щ ъ ы ь э ю я
40 А Б В Г Д Е Ё Ж З И Й К Л М Н О П Р С Т У Ф Х Ц Ч Ш Щ Ъ Ы Ь Э Ю Я;
41 \selectlanguage{english}%
42 basic Greek alphabet:
43 \selectlanguage{greek}%
44 %α β γ δ ε ζ η θ ι κ λ μ ν ξ ο π ρ σς τ υ φ χ ψ ω
45 a b g d e z h j i k l m n x o p r ss t u f q y w
46 %Α Β Γ Δ Ε Ζ Η Θ Ι Κ Λ Μ Ν Ξ Ο Π Ρ Σ Τ Υ Φ Χ Ψ Ω
47 A B G D E Z H J I K L M N X O P R S T U F Q Y W;
48 \selectlanguage{english}%
49 figures:
50 0 1 2 3 4 5 6 7 8 9;
51 fractions: \textonequarter\ \textonehalf\ \textthreequarters;
52 some currency: \texteuro\ \$ \pounds\ \textcent\ \textyen;
53 some mathematical symbols: + \textminus\ \textpm\ \texttimes\ \textdiv\ /
54 = \textless\ \textgreater\ \textmu\ \textohm}
55
56 \newcommand{\SampleLigatures}{; Latin ligatures: fi fl ff ffi ffl}
57
58
59
60 \begin{document}
61
62 \selectlanguage{english}
63
64
65 \section*{DejaVu Serif}
66
67 {\usefont{T1}{DejaVuSerif-TLF}{m}{n}\SampleText\SampleLigatures.}\par
68 {\usefont{T1}{DejaVuSerif-TLF}{m}{it}\SampleText\SampleLigatures.}\par
69 \looseness=-1
70 {\usefont{T1}{DejaVuSerif-TLF}{b}{n}\SampleText\SampleLigatures.}\par
71 {\usefont{T1}{DejaVuSerif-TLF}{b}{it}\SampleText\SampleLigatures.}
72
73
74 \section*{DejaVu Serif Condensed}
75
76 {\usefont{T1}{DejaVuSerifCondensed-TLF}{m}{n}\SampleText\SampleLigatures.}\par
77 {\usefont{T1}{DejaVuSerifCondensed-TLF}{m}{it}\SampleText\SampleLigatures.}\par
78 {\usefont{T1}{DejaVuSerifCondensed-TLF}{b}{n}\SampleText\SampleLigatures.}\par
79 {\usefont{T1}{DejaVuSerifCondensed-TLF}{b}{it}\SampleText\SampleLigatures.}
80
81
82 \section*{DejaVu Sans}
83
84 \looseness=-1
85 {\usefont{T1}{DejaVuSans-TLF}{m}{n}\SampleText\SampleLigatures.}\par
86 {\usefont{T1}{DejaVuSans-TLF}{m}{it}\SampleText\SampleLigatures.}\par
87 {\usefont{T1}{DejaVuSans-TLF}{b}{n}\SampleText\SampleLigatures.}\par
88 {\usefont{T1}{DejaVuSans-TLF}{b}{it}\SampleText\SampleLigatures.}
89
90
91 \section*{DejaVu Sans Condensed}
92
93 {\usefont{T1}{DejaVuSansCondensed-TLF}{m}{n}\SampleText\SampleLigatures.}\par
94 {\usefont{T1}{DejaVuSansCondensed-TLF}{m}{it}\SampleText\SampleLigatures.}\par
95 {\usefont{T1}{DejaVuSansCondensed-TLF}{b}{n}\SampleText\SampleLigatures.}\par
96 {\usefont{T1}{DejaVuSansCondensed-TLF}{b}{it}\SampleText\SampleLigatures.}
97
98
99 \section*{DejaVu Sans Extra Light}
100
101 {\usefont{T1}{DejaVuSans-TLF}{el}{n}\SampleText\SampleLigatures.}
102
103
104 \section*{DejaVu Sans Mono}
105
106 \raggedright
107
108 {\usefont{T1}{DejaVuSansMono-TLF}{m}{n}\SampleText.}\par
109 {\usefont{T1}{DejaVuSansMono-TLF}{m}{it}\SampleText.}\par
110 {\usefont{T1}{DejaVuSansMono-TLF}{b}{n}\SampleText.}\par
111 {\usefont{T1}{DejaVuSansMono-TLF}{b}{it}\SampleText.}
112
113 \end{document}