diff options
Diffstat (limited to 'Master/texmf-dist/doc/latex/clefval/example.tex')
-rw-r--r-- | Master/texmf-dist/doc/latex/clefval/example.tex | 94 |
1 files changed, 94 insertions, 0 deletions
diff --git a/Master/texmf-dist/doc/latex/clefval/example.tex b/Master/texmf-dist/doc/latex/clefval/example.tex new file mode 100644 index 00000000000..f2dcc48838d --- /dev/null +++ b/Master/texmf-dist/doc/latex/clefval/example.tex @@ -0,0 +1,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: |