Debian Codegraph @

texmf-dist/doc/latex/clefval/example-utf8.tex

raw
1 % Time-stamp: <2020-07-29 12:47:56 administrateur>
2 % Création : 2020-07-28T12:21:18+0200
3 %% =========================================================================
4 %% Part of the `clefval' package.
5 %% Ce fichier fait partie de l'extension « clefval »
6 %%
7 %% 2020-07-27; v0.1
8 %%
9 %% Copyright (C) 2004, 2020 by Yvon Henel Le TeXnicien de surface
10 %% <[email protected]>
11 %%
12 %% This file may be distributed and/or modified under the conditions of
13 %% the LaTeX Project Public License, either version 1.3c of this license
14 %% or (at your option) any later version. The latest version of this
15 %% license is in:
16 %%
17 %% http://www.latex-project.org/lppl.txt
18 %% ========================================================================
19 \documentclass{article}
20 \usepackage{clefval}
21 \usepackage{iftex}
22 \usepackage[french,main=english]{babel}
23
24 \ifpdftex
25 \else
26 \usepackage{fontspec}
27 \setmainfont{DejaVu Serif}
28 \setsansfont{DejaVu Sans}
29 \setmonofont{DejaVu Sans Mono}
30 \fi
31
32 \TheKey{j}{Joe}
33 \TheKey{éçà@§}{bizarre}
34 \TheKey{Разбрах}{in bulgarian: Благодаря за помощта}
35
36 \begin{document}
37 \bgroup
38 \setlength{\parindent}{0pt}
39 \noindent\hrulefill
40 \vspace{0.5\baselineskip}
41
42 \textbf{English}
43
44 Cast a glance to the source to see some examples of \textbf{clefval}
45 usage.
46
47 This file can be processed with \texttt{pdflatex}, \texttt{lualatex}
48 or \texttt{xelatex}.
49
50 \vspace{0.5\baselineskip}
51 \noindent\hrulefill
52 \vspace{0.5\baselineskip}
53
54 \begin{otherlanguage}{french}
55 \textbf{Français}
56
57 Jetez un œil sur le source pour voir quelques exemples d'utilisation
58 de \textbf{clefval}.
59
60 On peut compiler ce document avec \texttt{pdflatex}, \texttt{lualatex}
61 ou \texttt{xelatex}.
62 \end{otherlanguage}
63
64 \vspace{0.5\baselineskip}
65 \noindent\hrulefill
66 \egroup
67
68 \vspace{\baselineskip}
69
70 \(\ast\)\TheKey{}{void key}%
71 % without the `%' character there's a spurious blank
72 % sans le caractère « % » un espace superflu apparait
73 \TheKey{Chip and Dale}{two anthropomorphic \emph{chipmunk} brothers}\(\ast\)
74
75 \TheValue{j}
76
77 \TheValue{k}
78
79 \TheValue{éçà@§}
80
81 \ifpdftex \else \TheValue{Разбрах} \fi
82 % pdflatex doesn't know what to do with that key ;)
83 % pdflatex ne sait pas quoi faire de cette clé ;)
84
85 \TheValue{}
86
87 \TheValue{Chip and Dale}
88
89 \TheKey{$2+3=5$}{interresting equality \(2+3=5\)}
90 \TheValue{$2+3=5$}
91 % we can use $...$ but not \(...\) as a key
92 % on peut utiliser $...$ mais pas \(...\) comme clé
93
94 \end{document}
95
96 %%% Local Variables:
97 %%% coding: utf-8
98 %%% TeX-engine: default
99 %%% mode: latex
100 %%% TeX-master: t
101 %%% End: