summaryrefslogtreecommitdiff
path: root/Master/texmf-dist/doc/latex/clefval/example.tex
blob: f2dcc48838d8ea6dd4f53c371df09722df69cf3c (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
% -*- mode: LaTeX; coding: iso-8859-15 -*-
\documentclass[a4paper,10pt]{article}
\usepackage[latin9]{inputenc}
\usepackage[T1]{fontenc}
\usepackage[frenchb]{babel}
\usepackage{lmodern}
\usepackage[tame]{engpron}
\usepackage{clefval}

\newcommand{\Saut}{\par
  \noindent\hspace*{\stretch{1}}%
  \makebox[0.75\linewidth][c]{\hrulefill}%
  \hspace*{\stretch{1}}\par}
\setlength{\parindent}{0pt}

\begin{document}

\makepoundletter
\newcommand{\LaPron}[1]{#1
  \pron{\ActiveLaLivre\expandafter{\TheValue{#1}}}} 
\newcommand{\LaCle}[2]{\TheKey{#1}{#2}\LaPron{#1}}
\makepoundother

\title{Example of usage of package \texttt{clefval}.}
\author{Le \TeX nicien de surface}
\def\today{2004-05-23}
\maketitle
\thispagestyle{empty}

This is an example of usage of packages \texttt{engpron}
---~with option \texttt{tame}~--- and \texttt{clefval}.

\Saut\medskip

This is the main part of the header of this document, one will note that
the definitions of the macros  \verb|\LaPron| and \verb|\LaCle| have been
placed \textbf{after} the \verb|\begin{document}|. 

\begin{verbatim}
\documentclass[a4paper,10pt]{article}
\usepackage[latin9]{inputenc}     \usepackage[T1]{fontenc}
\usepackage[frenchb]{babel}       \usepackage{lmodern}
\usepackage[tame]{engpron}        \usepackage{clefval}
\setlength{\parindent}{0pt}
\begin{document}
\makepoundletter
\newcommand{\LaPron}[1]{#1
\pron{\ActiveLaLivre\expandafter{\TheValue{#1}}}} 
\newcommand{\LaCle}[2]{\TheKey{#1}{#2}\LaPron{#1}}
\makepoundother
\end{verbatim}

\Saut
\medskip

One writes first the word and its pronunciation \LaCle{baby}{b£qb£i}. Later
one writes \emph{almost} just the word as here: \LaPron{baby}.

An other \LaCle{stationery}{£Hst£q£s£en£Xer£i}. And so \LaPron{stationery}.

\bigskip

Which is obtained with:

\bigskip

\verb|One writes first the word and its pronunciation |%
\verb|\LaCle{baby}{b|\texttt{\£}\verb|qb|\texttt{\£}\verb|i}.| \verb|Later|
\verb| one writes \emph{almost} just the word as here: |%
\verb|\LaPron{baby}.| 

\verb|An other \LaCle{stationery}{|\texttt{\£}\verb|Hst|%
\texttt{\£}\verb|q|\texttt{\£} %
\verb|s|\texttt{\£}\verb|en|\texttt{\£}\verb|Xer|\texttt{\£}\verb|i}.|\\
\verb|And so |\verb|\LaPron{stationery}.|

\Saut\medskip

Content of the \texttt{aux} file (extract) :

\verb!\newkey{baby}{b!\texttt{\£}\verb!qb!\texttt{\£}\verb!i}!\\
\verb!\newkey{stationery}{!\texttt{\£}\verb!Hst!\texttt{\£}%
\verb!q!\texttt{\£}\verb!s!\texttt{\£}\verb!en!\texttt{\£}\verb!Xer!%
\texttt{\£}\verb!i}! 

%%% False verbatim for £ because of encodings!

\vspace*{\stretch{1}}
\end{document}

%%% Local Variables: 
%%% mode: latex
%%% TeX-master: t
%%% End: