<html><head><meta name="color-scheme" content="light dark"></head><body><pre style="word-wrap: break-word; white-space: pre-wrap;">%% Part of the `clefval' package.
%%
%% 2020-07-27; v0.1
%% 
%% Copyright (C) 2004, 2020 by Yvon Henel Le TeXnicien de surface
%% &lt;le.texnicien.de.surface@yvon-henel.fr&gt;
%%
%% This file may be distributed and/or modified under the conditions of
%% the LaTeX Project Public License, either version 1.3c of this license
%% or (at your option) any later version.  The latest version of this
%% license is in:
%% 
%%    http://www.latex-project.org/lppl.txt
%% ========================================================================
\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:
%%% coding: iso-8859-15
%%% mode: latex
%%% TeX-master: t
%%% End: 
</pre></body></html>