Typo
[latex2e.git] / latex2e-20150101 / required / babel / test-unicode.tex
blobb49c9e2298060fb79ef7bfc61ddbade9fb26ad1b
1 %$PDFLaTeX -*- coding: utf-8 -*-
2 \documentclass{article}
4 % ========================
6 \ifx\XeTeXinputencoding\undefined\else
7 % XeTeX
8 \usepackage[EU1]{fontenc}
9 \fi
10 \ifx\directlua\undefined\else
11 % LuaTeX
12 \usepackage[EU2]{fontenc}
13 \fi
15 % ==================================
17 \ifx\XeTeXinputencoding\undefined\else
18 % XeTeX
19 \usepackage{fontspec}
20 \setmainfont{CMU Serif}
21 \fi
22 \ifx\directlua\undefined\else
23 % LuaTeX (a bit more explicit, as fontenc is not so stable as in XeTeX)
24 \pdfoutput=1
25 \pdfprotrudechars2
26 \pdfadjustspacing2
28 \usepackage{luaotfload}
30 \DeclareFontFamily{OT1}{cmu}{}
31 \DeclareFontShape{OT1}{cmu}{m}{n}
32 {<-> cmr10 }{}
34 \DeclareFontFamily{EU2}{cmu}{}
35 \DeclareFontShape{EU2}{cmu}{m}{n}
36 {<-> "name:CMU Serif:style=Roman"}{}
37 \DeclareFontShape{EU2}{cmu}{m}{it}
38 {<-> "name:CMU Serif:style=Italic"}{}
39 \DeclareFontShape{EU2}{cmu}{bx}{n}
40 {<-> "name:CMU Serif:style=Bold"}{}
41 \DeclareFontShape{EU2}{cmu}{bx}{it}
42 {<-> "name:CMU Serif:style=BoldItalic"}{}
44 \renewcommand{\rmdefault}{cmu}
46 \fi
48 % ========================
50 % Values for strings= are unicode, generic and encoded (or no key at
51 % all, of course, but it won't work with this test file). In this
52 % document \chaptername and:
53 % - generic prints Greek chars in math mode with both EU1 and OT1
54 % (this is the fallback)
55 % - encoded prints real Greek chars with EUx, and math Greek with OT1
56 % - unicode prints real Greek chars with EUx, but nothing with OT1
57 % because it has none.
59 \tracingmacros2
61 \usepackage[multienc,unigerman,strings=encoded]{babel}
63 % =============================
65 \begin{document}
66 % \selectlanguage{austrian}
67 roman абвгд αβγδε \textit{italic абвгд αβγδε} \textbf{bold абвгд
68 αβγδε}
70 % \show\captionsmultienc
71 % \show\captionsunienc
72 % \show\multiencchaptername
73 % \show\uniencchaptername
75 \month=3
76 \chaptername{} \today
78 \fontencoding{OT1}\fontfamily{cmr}\selectfont
80 % \show\multiencchaptername
82 \chaptername{} {\tracingmacros2 \tracingcommands2 \today}
85 \end{document}