| 1 |
% \iffalse meta-comment |
| 2 |
% |
| 3 |
%% File: paresse.dtx |
| 4 |
%% Copyright (C) 2021 Yvon Henel aka Le TeXnicien de surface |
| 5 |
%% |
| 6 |
%% It may be distributed and/or modified under the conditions of the |
| 7 |
%% LaTeX Project Public License (LPPL), either version 1.3c of this |
| 8 |
%% license or (at your option) any later version. The latest version |
| 9 |
%% of this license is in the file |
| 10 |
%% |
| 11 |
%% http://www.latex-project.org/lppl.txt |
| 12 |
%% |
| 13 |
% |
| 14 |
%<*driver|package|doc> |
| 15 |
\RequirePackage{expl3}[2020/09/24] |
| 16 |
\GetIdInfo$Id: paresse.dtx 5.0.2 2021-05-16 TdS $ |
| 17 |
{} |
| 18 |
%</driver|package|doc> |
| 19 |
%<*driver> |
| 20 |
\documentclass[full, english, draft]{l3doc} |
| 21 |
\usepackage[utf8]{inputenc} |
| 22 |
\usepackage[T1]{fontenc} |
| 23 |
\usepackage{amsmath} |
| 24 |
\usepackage[french,main=english]{babel} |
| 25 |
\usepackage{xspace} |
| 26 |
|
| 27 |
\usepackage{paresse}[2021-05-16] |
| 28 |
|
| 29 |
\newcommand*\PS{\texttt{\S}\xspace} |
| 30 |
\newcommand*\PSVerb[1]{\texttt{\S #1}} |
| 31 |
\newcommand\BOP{\discretionary{}{}{}} |
| 32 |
\newcommand\Option[1]{\textsc{#1}} |
| 33 |
|
| 34 |
\begin{document} |
| 35 |
\DocInput{\jobname.dtx} |
| 36 |
\end{document} |
| 37 |
%</driver> |
| 38 |
% \fi |
| 39 |
% |
| 40 |
% \title{^^A |
| 41 |
% The \pkg{paresse} package^^A |
| 42 |
% \thanks{This file describes v\ExplFileVersion, last revised \ExplFileDate.}^^A |
| 43 |
% } |
| 44 |
% |
| 45 |
% \author{^^A |
| 46 |
% Yvon Henel\thanks^^A |
| 47 |
% {^^A |
| 48 |
% E-mail: |
| 49 |
% \href{mailto:[email protected]} |
| 50 |
% {[email protected]}^^A |
| 51 |
% }^^A |
| 52 |
% } |
| 53 |
% |
| 54 |
% \date{Released \ExplFileDate} |
| 55 |
% |
| 56 |
% \maketitle |
| 57 |
% |
| 58 |
% \changes{v0.0}{2004/02/07}{New name, some redefinitions, first public version} |
| 59 |
% \changes{v1}{2004/04/17}{Documentation updated} |
| 60 |
% \changes{v1a}{2005/03/01}{Correction of a bug in Infofile which prevented the |
| 61 |
% loading of the package} |
| 62 |
% \changes{v2}{2008/08/13}{A useless macro is deleted} |
| 63 |
% \changes{v2}{2008/08/13}{Documentation reorganised} |
| 64 |
% \changes{v2}{2008/08/13}{New wrapping to provide a tds.zip.} |
| 65 |
% \changes{v2.1}{2008/08/16}{Correction of a bug in Infofile, once again} |
| 66 |
% \changes{v3}{2010/03/19}{Option for Sylvio \textsc{Levi}'s encoding} |
| 67 |
% \changes{v4}{2011/04/16}{Documentation of the code in English} |
| 68 |
% \changes{v4}{2011/04/16}{paresse goes utf8} |
| 69 |
% \changes{v4.1}{2013/02/16}{Using skeyval-bc instead of (moving forward) skeyval} |
| 70 |
% \changes{v5.0}{2020/10/06}{Uses expl3 to replace skeyval.} |
| 71 |
% \changes{v5.0}{2020/10/06}{Two sub-packages.} |
| 72 |
% \changes{v5.0}{2020/10/06}{\cs{varsigma} is added as \PSVerb{j} to legacy encoding.} |
| 73 |
% \changes{v5.0.1}{2020/10/10}{Bug correction: keys ttheta and ttau had disappeared.} |
| 74 |
% \changes{v5.0.1}{2020/10/10}{Some changes in documentation.} |
| 75 |
% \changes{v5.0.2}{2021/05/16}{Correction of a typo in documentation.} |
| 76 |
% |
| 77 |
% \thispagestyle{empty} |
| 78 |
% |
| 79 |
% \noindent\hrulefill |
| 80 |
% |
| 81 |
% \bgroup |
| 82 |
% \begin{otherlanguage}{french} |
| 83 |
% \begin{abstract} |
| 84 |
% Cette extension, reprenant un exemple de T.~\textsc{Lachand-Robert} |
| 85 |
% dans~\cite{tlachand}, fournit un moyen de taper des lettres grecques isolƩes |
| 86 |
% à l'aide du caractère \PS actif et redéfini. Au lieu de |\(\alpha\)| ou tape |
| 87 |
% \PSVerb{a} pour obtenir \(\alpha\). |
| 88 |
% |
| 89 |
% \textbf{Important} : Il doit être chargé \textbf{après} \pkg{inputenc} si ce |
| 90 |
% dernier est utilisƩ. De plus, il faut que le signe \PS soit une lettre pour |
| 91 |
% \TeX. |
| 92 |
% |
| 93 |
% Depuis la version~4, on peut utiliser cette extension mĆŖme dans un source |
| 94 |
% codƩ en utf-8 avec \hologo{LaTeX}, \hologo{LuaLaTeX} ou \hologo{XeLaTeX}. |
| 95 |
% |
| 96 |
% La documentation franƧaise pour l'utilisateur de l'extension \pkg{paresse} |
| 97 |
% est disponible sous le nom de \texttt{paresse-fra}. |
| 98 |
% \end{abstract} |
| 99 |
% \end{otherlanguage} |
| 100 |
% \egroup |
| 101 |
% |
| 102 |
% \noindent\hrulefill |
| 103 |
% |
| 104 |
% \begin{abstract} |
| 105 |
% This package implements an example from T.~\textsc{Lachand-Robert} |
| 106 |
% in~\cite{tlachand}. It provides a means of typing isolated greek letters |
| 107 |
% with the character \PS activated and redefined. Instead of |\(\alpha\)| one |
| 108 |
% types \PSVerb{a} to obtain \(\alpha\). |
| 109 |
% |
| 110 |
% \textbf{Important}: You have to load it \textbf{after} the \pkg{inputenc} |
| 111 |
% package if the latter is used. Moreover the sign \PS must be a letter for |
| 112 |
% \TeX. |
| 113 |
% |
| 114 |
% Since version~4, one can use this package even with utf8-encoded source for |
| 115 |
% \hologo{LaTeX}, \hologo{LuaLaTeX}, or \hologo{XeLaTeX}. |
| 116 |
% |
| 117 |
% The English documentation for the final user of the package \pkg{paresse} is |
| 118 |
% available in the file \texttt{paresse-eng}. |
| 119 |
% \end{abstract} |
| 120 |
% |
| 121 |
% \noindent\hrulefill |
| 122 |
% |
| 123 |
% \DisableDocumentation |
| 124 |
% |
| 125 |
% \begin{documentation} |
| 126 |
% \end{documentation} |
| 127 |
% |
| 128 |
% \iffalse |
| 129 |
%<*doc> |
| 130 |
%<FRA>\documentclass[full, french]{l3doc} |
| 131 |
%<ENG>\documentclass[full, english]{l3doc} |
| 132 |
\usepackage[utf8]{inputenc} |
| 133 |
\usepackage[T1]{fontenc} |
| 134 |
%<FRA>\usepackage[english,main=french]{babel} |
| 135 |
%<ENG>\usepackage[french,main=english]{babel} |
| 136 |
\usepackage{xparse} |
| 137 |
\usepackage{xspace} |
| 138 |
|
| 139 |
\usepackage[tame]{paresse}[2020-10-06] |
| 140 |
|
| 141 |
\newcommand*\PS{\texttt{\S}\xspace} |
| 142 |
\newcommand*\PSVerb[1]{\texttt{\S #1}} |
| 143 |
\newcommand\BOP{\discretionary{}{}{}} |
| 144 |
\newcommand\Option[1]{\textsc{#1}} |
| 145 |
\newcommand{\TO}{\textemdash\ \ignorespaces} |
| 146 |
\newcommand{\TF}{\unskip\ \textemdash\xspace} |
| 147 |
|
| 148 |
\begin{document} |
| 149 |
%<*FRA> |
| 150 |
\title{Guide de l'utilisateur de \pkg{paresse}\thanks{Ce fichier dƩcrit la |
| 151 |
version~\ExplFileVersion, derniĆØre rĆ©vision~\ExplFileDate. Ćdition |
| 152 |
\emph{Adieu Ć skeyval}.}} |
| 153 |
%</FRA> |
| 154 |
%<*ENG> |
| 155 |
\title{\pkg{paresse} user guide\thanks{This file describes |
| 156 |
version~\ExplFileVersion, last revised~\ExplFileDate. \emph{Adieu to |
| 157 |
skeyval} edition.}} |
| 158 |
%</ENG> |
| 159 |
\author{Yvon Henel\thanks{E-mail: |
| 160 |
\href{mailto:[email protected]} |
| 161 |
{[email protected]}}} |
| 162 |
\maketitle |
| 163 |
\noindent\hrulefill |
| 164 |
|
| 165 |
\begin{abstract} |
| 166 |
%<*FRA> |
| 167 |
Cette extension, reprenant un exemple de T.~\textsc{Lachand-Robert} |
| 168 |
dans~\cite{tlachand}, fournit un moyen de taper des lettres grecques isolƩes |
| 169 |
à l'aide du caractère \PS actif et redéfini. Au lieu de |\(\alpha\)| ou tape |
| 170 |
\PSVerb{a} pour obtenir \(\alpha\). |
| 171 |
|
| 172 |
\textbf{Important} : Il doit être chargé \textbf{après} \pkg{inputenc} si ce |
| 173 |
dernier est utilisƩ. De plus, il faut que le signe \PS soit une lettre pour |
| 174 |
\TeX. |
| 175 |
|
| 176 |
Depuis la version~4, on peut utiliser cette extension mĆŖme dans un source |
| 177 |
codƩ en utf-8 avec \hologo{LaTeX}, \hologo{LuaLaTeX} ou \hologo{XeLaTeX}. |
| 178 |
%</FRA> |
| 179 |
%<*ENG> |
| 180 |
This package implements an example from T.~\textsc{Lachand-Robert} |
| 181 |
in~\cite{tlachand}. It provides a means of typing isolated greek letters |
| 182 |
with the character \PS activated and redefined. Instead of |\(\alpha\)| one |
| 183 |
types \PSVerb{a} to obtain \(\alpha\). |
| 184 |
|
| 185 |
\textbf{Important}: You have to load it \textbf{after} the \pkg{inputenc} |
| 186 |
package if the latter is used. Moreover the sign \PS must be a letter for |
| 187 |
\TeX. |
| 188 |
|
| 189 |
Since version~4, one can use this package even with utf8-encoded source for |
| 190 |
\hologo{LaTeX}, \hologo{LuaLaTeX}, or \hologo{XeLaTeX}. |
| 191 |
%</ENG> |
| 192 |
\end{abstract} |
| 193 |
|
| 194 |
\noindent\hrulefill |
| 195 |
|
| 196 |
%<FRA> \begin{otherlanguage}{english} |
| 197 |
%<ENG> \begin{otherlanguage}{french} |
| 198 |
\begin{abstract} |
| 199 |
%<*FRA> |
| 200 |
The English documentation for the final user of the package |
| 201 |
\pkg{paresse} is available in the file \texttt{paresse-eng}. |
| 202 |
%</FRA> |
| 203 |
%<*ENG> |
| 204 |
La documentation franƧaise pour l'utilisateur de l'extension |
| 205 |
\pkg{paresse} est disponible sous le nom de \texttt{paresse-fra}. |
| 206 |
%</ENG> |
| 207 |
\end{abstract} |
| 208 |
\end{otherlanguage} |
| 209 |
|
| 210 |
\noindent\hrulefill |
| 211 |
\vspace{\baselineskip} |
| 212 |
|
| 213 |
\tableofcontents{} |
| 214 |
|
| 215 |
%<*FRA> |
| 216 |
\section{Introduction} |
| 217 |
\label{sec:introduction} |
| 218 |
|
| 219 |
Cette extension ne fournit qu'un accès \og rapide et économique \fg aux lettres |
| 220 |
grecques qui s'obtiennent Ć l'aide d'une macro comme \cs{alpha} ou |
| 221 |
\cs{Omega}. Elle fournit un environnement et une commande qui permettent |
| 222 |
d'utiliser § pour taper ces lettres. Un \cs{ensuremath} nous dispense de nous |
| 223 |
placer explicitement \TO c'est-Ć -dire en tapant |$ $| ou bien |\( \)| ou encore |
| 224 |
|\[ \]| ou tout autre chose ayant le même effet\TF en mode mathématique pour |
| 225 |
obtenir une lettre grecque. |
| 226 |
%</FRA> |
| 227 |
|
| 228 |
|
| 229 |
%<*ENG> |
| 230 |
\section{Introduction} |
| 231 |
\label{sec:introduction} |
| 232 |
|
| 233 |
This package provides only a `quick and low-cost' access to greek letters |
| 234 |
which one can obtain with a macro such as \cs{alpha} or \cs{Omega}. It |
| 235 |
provides also an environment and a macro which make possible the use of § |
| 236 |
to type in those letters. Because of an \cs{ensuremath} we are not bound to |
| 237 |
explicitly enter ---i.e. by typing |$ $| or |\( \)| or else |\[ \]| or |
| 238 |
anything whatsoever with the same effect--- mathematics mode to obtain a |
| 239 |
greek letter. |
| 240 |
%</ENG> |
| 241 |
|
| 242 |
%<*FRA> |
| 243 |
L'idée de la méthode est due à T.~\textsc{Lachand-Robert} et est |
| 244 |
exposƩe dans~\cite{tlachand}. Je n'ai fait qu'ajouter le |
| 245 |
\cs{ensuremath} bien agrƩable pour l'Ʃcriture de macros. |
| 246 |
%</FRA> |
| 247 |
%<*ENG> |
| 248 |
The idea of the method is from T.~\textsc{Lachand-Robert} and described |
| 249 |
in~\cite{tlachand}. I have just add the \cs{ensuremath} which is so |
| 250 |
agreeable to write macros. |
| 251 |
%</ENG> |
| 252 |
|
| 253 |
%<*FRA> |
| 254 |
Bien entendu, on \textbf{ne} dispose \textbf{pas} de macros pour la |
| 255 |
minuscule omicron ni pour les majuscules alpha, beta\dots{} qui |
| 256 |
s'obtiennent Ć l'aide des latines romaines de mĆŖme |
| 257 |
apparence\footnote{Je ne ferai aucune remarque sur les problĆØmes de |
| 258 |
codage que cela pose.}. Je ne me suis pas senti le courage ni la |
| 259 |
force de fournir une solution qui permettent d'obtenir dans une |
| 260 |
formule baignant dans un texte en italique gras un alpha majuscule |
| 261 |
droit, romain, \&c. |
| 262 |
%</FRA> |
| 263 |
%<*ENG> |
| 264 |
There is \emph{no} macros for the lowercase omicron nor for the |
| 265 |
uppercase alpha, beta\dots{} that one can obtain with the latin roman |
| 266 |
letters with the same look. I have not had the courage nor the |
| 267 |
strength to build a solution which would provide a means of obtaining |
| 268 |
an upright uppercase alpha in a math formula enbedded in an italic |
| 269 |
boldfaced text. |
| 270 |
%</ENG> |
| 271 |
|
| 272 |
%<*FRA> |
| 273 |
Pour finir cette introduction, glosons le nom de cette |
| 274 |
extension. |paresse| vient de ce que le signe § indique un \og |
| 275 |
paragraphe \fg en ayant une forme lointainement apparentƩe au |
| 276 |
S et n'a donc aucun lien avec le \emph{dƩfaut} si frƩquent, |
| 277 |
encore que, à bien y réfléchir\dots |
| 278 |
%</FRA> |
| 279 |
%<*ENG> |
| 280 |
Even if the meaning of the French `paresse' is just `lazyness' I would |
| 281 |
like to enphasize that the name of this package comes from the fact |
| 282 |
that the sign § can be used to point at a paragraph and looks like an |
| 283 |
S. So there is no connection between the name and the not unfrequent |
| 284 |
sin of the same (French) name\dots{} or maybe\dots{} |
| 285 |
%</ENG> |
| 286 |
|
| 287 |
%<FRA>\subsection{Pourquoi une 5\ieme version?} |
| 288 |
%<ENG>\subsection{Why a 5th Version?} |
| 289 |
|
| 290 |
%<*FRA> |
| 291 |
\emph{Sur mon brin de laurier, je dormais comme un loir} en utilisant |
| 292 |
\pkg{paresse} presque quotidiennement quand il y a quelques jours, patatras! |
| 293 |
Plus rien ne va, je me fais insulter rien qu'Ć charger l'extension. Je passe sur |
| 294 |
les détails: la faute en revient à une modification du noyau qui vient perturber |
| 295 |
le code acrobatique de \pkg{skeyval}. Comme la mise Ć jour de la dite extension |
| 296 |
semble extrèmement improbable, j'ai décidé de réparer \pkg{paresse} en recourant |
| 297 |
aux commandes de expl3. |
| 298 |
|
| 299 |
Ce n'est donc que pour remettre en marche ce dont je me sers souvent que je |
| 300 |
viens soulever le capot de cette extension vieille de plus de 7~ans. |
| 301 |
%</FRA> |
| 302 |
%<*ENG> |
| 303 |
I was happily using \pkg{paresse} almost every day until when, some days ago, |
| 304 |
all hell broke loose! I was insulted just by loading \pkg{paresse}. To put it in |
| 305 |
a nutshell: the culprit is an improvement of the \LaTeXe{} kernel which wreaks |
| 306 |
havoc in the highly unconventional code of \pkg{skeyval}. As it seems very |
| 307 |
improbable that that package will be corrected any time soon, I've decided to |
| 308 |
rewrite some parts of \pkg{paresse} with expl3. |
| 309 |
|
| 310 |
So that is why I touch the more than seven-year-old code of this package. |
| 311 |
%</ENG> |
| 312 |
|
| 313 |
%<*FRA> |
| 314 |
Avec cette 5\ieme version, apparaissent deux \emph{sous}-extensions: |
| 315 |
\pkg{paresse-old} et \pkg{paresse-utf8} que l'on peut charger directement et qui |
| 316 |
offrent les mĆŖmes options et les mĆŖmes commandes. De fait, \pkg{paresse} charge |
| 317 |
l'une ou l'autre suivant la situation. |
| 318 |
%</FRA> |
| 319 |
%<*ENG> |
| 320 |
With this 5th version come two \emph{sub}-packages: \pkg{paresse-old} and |
| 321 |
\pkg{paresse-utf8} which are directly loadable. They have the same options and |
| 322 |
commands as \pkg{paresse} itself. In fact \pkg{paresse} loads one of them |
| 323 |
according to the situation. |
| 324 |
%</ENG> |
| 325 |
|
| 326 |
%<*FRA> |
| 327 |
On utilisera \pkg{paresse-utf8} uniquement si le source est codƩ en utf-8 et que |
| 328 |
l'on compile avec \texttt{latex} c.-Ć -d. avec le moteur \TeX{} et le format |
| 329 |
\LaTeX{}. Dans tous les autres cas de figure on utilisera \pkg{paresse-old}. |
| 330 |
%</FRA> |
| 331 |
%<*ENG> |
| 332 |
One will use \pkg{paresse-utf8} if and only if the source is utf-8 encoded and |
| 333 |
compiled with \texttt{latex} i.~e. with the \TeX-engine and the \LaTeX{} |
| 334 |
format. In all other case, on will use \pkg{paresse-old}. |
| 335 |
%</ENG> |
| 336 |
|
| 337 |
%<*FRA> |
| 338 |
La documentation de \pkg{paresse} couvre donc l'utilisation des trois |
| 339 |
extensions. |
| 340 |
%</FRA> |
| 341 |
%<*ENG> |
| 342 |
The documentation of \pkg{paresse} covers the use of the three packages. |
| 343 |
%</ENG> |
| 344 |
|
| 345 |
%<FRA>\subsection{Pourquoi une 4\ieme version?} |
| 346 |
%<ENG>\subsection{Why a 4th Version?} |
| 347 |
|
| 348 |
%<*FRA> |
| 349 |
Je ne sais plus bien Ć quelle occasion \TO l'age et les pannes de machine |
| 350 |
avec \og crachage\fg de disque aidant\TF et encore moins quand \TO si ce |
| 351 |
n'est que cela remonte à plus d'un an maintenant\footnote{J'ai écrit cette |
| 352 |
section Ć l'occasion de la sortie de la 4\ieme version, en 2013.}\TF |
| 353 |
Christian \textsc{Tellechea} me faisait part de son dƩsir d'utiliser |
| 354 |
\pkg{paresse} avec des sources codƩes en utf-8 sous \hologo{LaTeX} \TO et |
| 355 |
non \hologo{XeLaTeX} ou \hologo{LuaLaTeX}. |
| 356 |
|
| 357 |
Une discussion s'engagea, Christian me fit parvenir du matƩriel en |
| 358 |
ordre de marche. Il me fit mĆŖme cadeau de deux versions, la deuxiĆØme |
| 359 |
amƩliorant la reconnaissance du codage dƩclarƩ avec |
| 360 |
\pkg{inputenc}. Toutefois, je procrastinais. Il se peut que ma vie |
| 361 |
personnelle et mon travail aient interfƩrƩ avec le dƩveloppement de |
| 362 |
cette extension. |
| 363 |
|
| 364 |
Enfin, voici la chose. |
| 365 |
%</FRA> |
| 366 |
%<*ENG> |
| 367 |
I don't remember exactly on what occasion \TO age, disk crash and computer |
| 368 |
mishap aiding\TF and even less when \TO more than a year ago, I'm |
| 369 |
afraid\footnote{I wrote this section in 2013 when the 4th version was |
| 370 |
published.}\TF Christian \textsc{Tellechea} wrote me that he would be |
| 371 |
glad to use \pkg{paresse} in his utf-8 encoded sources with \hologo{LaTeX} |
| 372 |
\TO not with \hologo{XeLaTeX} nor \hologo{LuaLaTeX}. |
| 373 |
|
| 374 |
We exchanged emails, Christian sent me working material. He even made |
| 375 |
me the gift of two versions, the second better for the identification |
| 376 |
of the encoding passed, as an option, to \pkg{inputenc}. However I |
| 377 |
procrastinated. My personal life and my job may have interfered with |
| 378 |
the development of this package. |
| 379 |
|
| 380 |
At last, here is the thing. |
| 381 |
%</ENG> |
| 382 |
|
| 383 |
%<*FRA> |
| 384 |
Le plus nouveau devrait échapper à l'utilisateur de \hologo{LuaLaTeX} |
| 385 |
ou \hologo{XeLaTeX} et mĆŖme de \hologo{LaTeX} chargeant \pkg{inputenc} |
| 386 |
avec une option comme \texttt{latin1} ou \texttt{latin9}. Cependant, |
| 387 |
dƩsormais, on peut utiliser cette extension avec \hologo{LaTeX} en |
| 388 |
chargeant \pkg{inputenc} avec l'option \texttt{utf8}. |
| 389 |
%</FRA> |
| 390 |
%<*ENG> |
| 391 |
The newest feature should escape the user of \hologo{LuaLaTeX} |
| 392 |
or \hologo{XeLaTeX} and even of \hologo{LaTeX} loading \pkg{inputenc} |
| 393 |
with an option such as \texttt{latin1} or \texttt{latin9}. However, |
| 394 |
henceforth, one can use this package with \hologo{LaTeX} loading |
| 395 |
\pkg{inputenc} with option \texttt{utf8}. |
| 396 |
%</ENG> |
| 397 |
|
| 398 |
%<*FRA> |
| 399 |
J'ai profitƩ de cette nouvelle version pour ajouter une macro en \PS: |
| 400 |
\PSVerb{Z} qui produit \S, symbole déjà accessible par |\S|, ce qui |
| 401 |
fait que je n'ose pas vraiment parler de \og raccourci\fg. |
| 402 |
%</FRA> |
| 403 |
%<*ENG> |
| 404 |
I take advantage of this new version to add a \PS-macro: |
| 405 |
\PSVerb{Z} which produces \S, symbol already available with |
| 406 |
|\S|, so I don't dare to present it as a real ``shortcut''. |
| 407 |
%</ENG> |
| 408 |
|
| 409 |
%<FRA>\subsection{Pourquoi une 3\ieme version?} |
| 410 |
%<ENG>\subsection{Why a 3rd Version?} |
| 411 |
|
| 412 |
%<*FRA> |
| 413 |
C'est par courriel que Claudio \textsc{Beccari} m'a signalé très |
| 414 |
aimablement qu'il existait un codage de l'alphabet grec en lettres |
| 415 |
latines prĆØs de 15~ans avant que je ne commette cette extension. Ce |
| 416 |
codage était dû à Sylvio \textsc{Levi} qui l'avait mis au point, alors |
| 417 |
qu'il dessinait les premiĆØres fontes grecques pour \TeX, en s'appuyant |
| 418 |
sur la correspondance entre les claviers amƩricain et grec. Il me |
| 419 |
faisait remarquer Ć juste titre que si quelqu'un avait pris l'habitude |
| 420 |
du codage de Sylvio \textsc{Levi}, il prƩfƩrerait conserver ses |
| 421 |
habitudes pour \pkg{paresse}. |
| 422 |
%</FRA> |
| 423 |
%<*ENG> |
| 424 |
With a mail Claudio \textsc{Beccari} kindly informed me that there was |
| 425 |
an encoding of the greek alphabet with latin letters some 15~years |
| 426 |
before I commited this extension. This encoding was devised by Sylvio |
| 427 |
\textsc{Levi} who, at the time, was designing the first greek font for |
| 428 |
\TeX, using the correspondance between greek and US keyboard. Claudio |
| 429 |
wrote to me, and I can't but agree with him, that if one is used to |
| 430 |
\textsc{Levi}'s encoding, one would rather keep one's habit in order |
| 431 |
to use \pkg{paresse}. |
| 432 |
%</ENG> |
| 433 |
|
| 434 |
%<*FRA> |
| 435 |
J'ai donc dƩcidƩ de fournir un nouveau couple d'options exclusives |
| 436 |
l'une de l'autre que j'ai nommƩes, pour l'une, \Option{legacy} --- |
| 437 |
pour \og hƩritage\fg --- qui assure le codage originel de cette |
| 438 |
extension et qui est active par dƩfaut et, pour l'autre, \Option{Levi} |
| 439 |
qui assure le codage de Sylvio \textsc{Levi}. |
| 440 |
%</FRA> |
| 441 |
%<*ENG> |
| 442 |
I, then, decided to provide a new couple of mutually exclusive |
| 443 |
options: the first one is \Option{legacy} with which one obtain the |
| 444 |
original encoding of this extension and which is active by default, |
| 445 |
the other one is \Option{Levi} which provides Sylvio \textsc{Levi}'s |
| 446 |
encoding. |
| 447 |
%</ENG> |
| 448 |
|
| 449 |
%<*FRA> |
| 450 |
J'en profite pour faire quelques changements cosmƩtiques: |
| 451 |
désormais toutes les macros internes \emph{secrètes}\footnote{à la mode |
| 452 |
\LaTeXe{}, pour la version~5.0 j'utilise en partie expl3 et, dans ce cas, |
| 453 |
le prƩfixe \texttt{paresse}.} ont un nom qui |
| 454 |
commence par \cs{GA@}; |
| 455 |
le fichier |.dtx| est rƩorganisƩ pour faciliter la tache de |
| 456 |
traduction de la documentation. |
| 457 |
%</FRA> |
| 458 |
%<*ENG> |
| 459 |
I take advantage of this update to make some cosmetic changes: from now on |
| 460 |
all inner \emph{secret} macros\footnote{Macros \emph{Ć la mode} |
| 461 |
\LaTeXe{}. As of version~5.0, partially \emph{translated} in expl3, when |
| 462 |
dealing with expl3 commands and variables I use the prefix |
| 463 |
\texttt{paresse}.} have a name which begins with \cs{GA@}; the |.dtx| |
| 464 |
file is reorganised to facilitate the translation of the documentation. |
| 465 |
%</ENG> |
| 466 |
|
| 467 |
%<FRA>\section{Utilisation} |
| 468 |
%<ENG>\section{Usage} |
| 469 |
|
| 470 |
%<*FRA> |
| 471 |
On charge cette extension avec |\usepackage{paresse}|. Quand on utilise |
| 472 |
\hologo{LaTeX} avec un codage 8-bits (comme \texttt{latin9} par exemple), |
| 473 |
on la charge \textbf{aprĆØs} l'extension \pkg{inputenc} avec l'option |
| 474 |
idoine. Avec un \hologo{LaTeX} moderne \TO post 2019\TF et un source codƩ |
| 475 |
en utf-8, on n'a pas besoin de charger explicitement \pkg{inputenc}. Dans |
| 476 |
ce cas, \pkg{paresse} suppose que le source est codƩ en utf-8. |
| 477 |
|
| 478 |
Dans tous les cas il faut que le \og caractère \fg § soit reconnu par \TeX\ |
| 479 |
comme une lettre. |
| 480 |
|
| 481 |
% On pourra, par exemple, utiliser l'option \texttt{latin1} de |
| 482 |
% \pkg{inputenc} pour obtenir cela. |
| 483 |
|
| 484 |
On obtiendra le même comportement, à l'exception \TO signalée dans le |
| 485 |
paragraphe intitulƩ \textbf{restriction} page~\pageref{restriction}\TF |
| 486 |
prĆØs, avec \pkg{inputenc} et l'option \texttt{utf8}. |
| 487 |
|
| 488 |
Il n'y a pas ce genre de restriction quand on travaille avec |
| 489 |
\hologo{LuaLaTeX} ou \hologo{XeLaTeX} sur un source codƩ en utf-8. |
| 490 |
%</FRA> |
| 491 |
%<*ENG> |
| 492 |
One loads the package with |\usepackage{paresse}|. |
| 493 |
When one uses \hologo{LaTeX} with an 8-bit encoded source |
| 494 |
(e.g. \texttt{latin9}), one must load \pkg{paresse} \textbf{after} the |
| 495 |
package \pkg{inputenc} whith the correct option. |
| 496 |
|
| 497 |
In all cases the sign § must be recognised as a letter by \TeX. |
| 498 |
|
| 499 |
% On can use for instance \pkg{inputenc} with option |latin1| for such a |
| 500 |
% purpose. |
| 501 |
|
| 502 |
One will obtain the same behaviour, but for the exception pointed out in |
| 503 |
paragraph \textbf{restriction} on page~\pageref{restriction}, with |
| 504 |
\pkg{inputenc} and option \texttt{utf8}. |
| 505 |
|
| 506 |
There is no such restriction when one compiles with \hologo{LuaLaTeX} |
| 507 |
or \hologo{XeLaTeX} a source encoded in utf-8. |
| 508 |
%</ENG> |
| 509 |
|
| 510 |
%<*FRA> |
| 511 |
Par dƩfaut, l'extension est chargƩe avec l'option |wild| ce qui |
| 512 |
signifie que les macros de la forme |§a| sont disponibles. Si l'on |
| 513 |
préfère, on peut passer à \pkg{paresse} l'option \Option{tame} avec |
| 514 |
|\usepackage[tame]|\BOP|{paresse}|. Il faut alors utiliser la commande |
| 515 |
\cs{ActiveLaParesse} ou l'environnement |ParesseActive| pour utiliser |
| 516 |
les macros en~§. |
| 517 |
%</FRA> |
| 518 |
%<*ENG> |
| 519 |
By default the package is loaded with option |wild| and so the macros |
| 520 |
such as |§a| are immediately available. If one prefers one can choose |
| 521 |
the option \Option{tame} by writing |\usepackage[tame]|\BOP|{paresse}|. One |
| 522 |
must then use the command \cs{ActiveLaParesse} or the environment |
| 523 |
|ParesseActive| to use the `§-macros'. |
| 524 |
%</ENG> |
| 525 |
|
| 526 |
%<*FRA> |
| 527 |
Lorsque la \og paresse est active \fg, il suffit de taper |§a| pour |
| 528 |
obtenir \(\alpha\). On a de mĆŖme accĆØs Ć toutes les lettres grecques |
| 529 |
auxquelles sont consacrƩes une macro comme \cs{alpha}, |
| 530 |
voyez~\ref{codageorig} et~\ref{codagelevi}. On obtient, de mĆŖme, |
| 531 |
\(\alpha^{\beta}\) avec |\(§a^{§b}\)| lorsque § est active. |
| 532 |
%</FRA> |
| 533 |
%<*ENG> |
| 534 |
When `paresse' is active, one has just to type |§a| in to obtain |
| 535 |
\(\alpha\). One has access, by the same means, to all the other greek |
| 536 |
letters to which a macro is devoted such as \cs{alpha}, see the |
| 537 |
tables~\ref{codageorig} and~\ref{codagelevi}. One obtains |
| 538 |
\(\alpha^{\beta}\) with |\(§a^{§b}\)| when § is active. |
| 539 |
%</ENG> |
| 540 |
|
| 541 |
\paragraph{Restriction} |
| 542 |
%<*FRA> |
| 543 |
On notera que les accolades sont optionelles et qu'on obtient un |
| 544 |
résultat identique avec |\(§a^§b\)|, \textbf{à moins que} l'on utilise |
| 545 |
un source codƩ en utf-8 avec \hologo{LaTeX}.\label{restriction} |
| 546 |
%</FRA> |
| 547 |
%<*ENG> |
| 548 |
One will note that the curly braces are \emph{not} compulsory and that |
| 549 |
one obtains the same result with just |\(§a^§b\)| \textbf{unless} one |
| 550 |
uses a utf-8 encoded source with \hologo{LaTeX}.\label{restriction} |
| 551 |
%</ENG> |
| 552 |
|
| 553 |
%<*ENG> |
| 554 |
\section{The Package Options} |
| 555 |
\label{sec:keys} |
| 556 |
|
| 557 |
In the margin the default options are in boldface. |
| 558 |
|
| 559 |
%</ENG> |
| 560 |
|
| 561 |
%<*FRA> |
| 562 |
\section{Les options de l'extension} |
| 563 |
\label{sec:clefs} |
| 564 |
|
| 565 |
Dans la marge, les options par dƩfaut sont donnƩes en gras. |
| 566 |
|
| 567 |
%</FRA> |
| 568 |
|
| 569 |
\begin{itemize} |
| 570 |
%<*FRA> |
| 571 |
\item \Option{tame} \DescribeOption{tame / \textbf{wild}} s'oppose Ć |
| 572 |
\Option{wild} qui est l'option par dƩfaut. Lorsque \Option{tame} |
| 573 |
rĆØgne, il \textbf{faut} un environnement |ParesseActive| ou une |
| 574 |
commande \cs{ActiveLaParesse} pour utiliser les macros à §. |
| 575 |
%</FRA> |
| 576 |
%<*ENG> |
| 577 |
\item \Option{tame} \DescribeOption{tame / \textbf{wild}} is the contrary of |
| 578 |
\Option{wild} which is the option by default. When \Option{tame} |
| 579 |
reigns, one \textbf{must} use an environment |ParesseActive| or a |
| 580 |
command \cs{ActiveLaParesse} in order to use the §-macros. |
| 581 |
%</ENG> |
| 582 |
|
| 583 |
|
| 584 |
%<*FRA> |
| 585 |
\item \Option{Levi} \DescribeOption{\textbf{legacy} / Levi} s'oppose Ć |
| 586 |
\Option{legacy} qui est l'option par dƩfaut. Avec l'option |
| 587 |
\Option{legacy} on utilise le codage \og originel\fg de |
| 588 |
\pkg{paresse} tel que le donne la |
| 589 |
table~\ref{codageorig}. Sinon, le codage est celui dƩfini par Sylvio |
| 590 |
\textsc{Levi}, cf. la table~\ref{codagelevi}. |
| 591 |
%</FRA> |
| 592 |
%<*ENG> |
| 593 |
\item \Option{Levi} \DescribeOption{\textbf{legacy} / Levi} is the |
| 594 |
contrary of \Option{legacy} which is the default. With |
| 595 |
\Option{legacy} one uses the original encoding of |
| 596 |
\pkg{paresse} as it is given by the |
| 597 |
table~\ref{codageorig}. If the option \Option{Levi} is enforced, one |
| 598 |
uses the Sylvio \textsc{Levi} encoding, see the |
| 599 |
table~\ref{codagelevi}. |
| 600 |
%</ENG> |
| 601 |
|
| 602 |
%<*FRA> |
| 603 |
\item \Option{ttau} \DescribeOption{ttau / \textbf{ttheta}} s'oppose Ć |
| 604 |
\Option{ttheta} qui est l'option par dƩfaut. Lorsque \Option{ttheta} |
| 605 |
est active |§t| donne \(\theta\) dans le cas contraire |§t| donne |
| 606 |
\(\tau\). En tous cas, \(\theta\) est accessible par |§v| et |
| 607 |
\(\tau\) par |§y|. Cette option est inopérante si l'option |
| 608 |
\Option{Levi} a ƩtƩ choisie. |
| 609 |
%</FRA> |
| 610 |
%<*ENG> |
| 611 |
\item \Option{ttau} \DescribeOption{ttau / \textbf{ttheta}} is the contrary of |
| 612 |
\Option{ttheta} which is selected by default. When \Option{ttheta} |
| 613 |
is active |§t| gives \(\theta\) in the contrary |§t| gives |
| 614 |
\(\tau\). In all cases, \(\theta\) is given by |§v| and \(\tau\) by |
| 615 |
|§y|. That option is ineffective when one has chosen |
| 616 |
\Option{Levi}. |
| 617 |
%</ENG> |
| 618 |
|
| 619 |
%<*FRA> |
| 620 |
\textbf{Remarque :} quand l'option \Option{legacy} a ƩtƩ choisie, |
| 621 |
\(\Theta\) est obtenu par |§V| de manière \og régulière \fg et |
| 622 |
\emph{également} par |§T| quelle que soit l'option choisie. Dans |
| 623 |
le cas de l'option \Option{Levi}, |§V| ne correspond à aucune lettre |
| 624 |
grecque. |
| 625 |
%</FRA> |
| 626 |
%<*ENG> |
| 627 |
\textbf{Remark:} when one has chosen the option |
| 628 |
\Option{legacy}, \(\Theta\) is `regularly' obtained with |§V| and |
| 629 |
\emph{also} with |§T| whatever is the chosen option. In the case of |
| 630 |
the option \Option{Levi}, |§V| doesn't correspond to any greek letter. |
| 631 |
%</ENG> |
| 632 |
|
| 633 |
%<*FRA> |
| 634 |
\item \Option{epsilon} \DescribeOption{epsilon / \textbf{varepsilon}} s'oppose Ć |
| 635 |
\Option{varepsilon} qui est l'option par dƩfaut. Avec |
| 636 |
\Option{epsilon}, |§e| donne \(\epsilon\) sinon |§e| donne |
| 637 |
\(\varepsilon\). |
| 638 |
%</FRA> |
| 639 |
%<*ENG> |
| 640 |
\item \Option{epsilon} \DescribeOption{epsilon / \textbf{varepsilon}} is the |
| 641 |
contrary of \Option{varepsilon} which is selected by default. With |
| 642 |
\Option{epsilon}, |§e| gives \(\epsilon\) otherwise |§e| gives |
| 643 |
\(\varepsilon\). |
| 644 |
%</ENG> |
| 645 |
|
| 646 |
%<*FRA> |
| 647 |
\item Se comportent comme le couple \Option{epsilon}, |
| 648 |
\Option{varepsilon} les couples suivants \Option{theta} et |
| 649 |
\Option{vartheta} ; \Option{pi} et \Option{varpi} ; \Option{rho} et |
| 650 |
\Option{varrho} ; \Option{sigma} et \Option{varsigma} \og |§s| donne |
| 651 |
\(\varsigma\)\fg; \Option{phi} et \Option{varphi}. |
| 652 |
%</FRA> |
| 653 |
%<*ENG> |
| 654 |
\item The following `couples' behave as \Option{epsilon}, |
| 655 |
\Option{varepsilon}: \Option{theta} and \Option{vartheta}; |
| 656 |
\Option{pi} and \Option{varpi}; \Option{rho} and \Option{varrho}; |
| 657 |
\Option{sigma} and \Option{varsigma}; \Option{phi} and |
| 658 |
\Option{varphi}. |
| 659 |
%</ENG> |
| 660 |
\end{itemize} |
| 661 |
|
| 662 |
%<*FRA> |
| 663 |
Par dƩfaut on a \Option{varepsilon}, \Option{theta}, \Option{pi}, |
| 664 |
\Option{rho}, \Option{sigma}, \Option{varphi}, \Option{wild} et |
| 665 |
\Option{legacy}. Cela assure que cette version~3, se comporte, |
| 666 |
par dƩfaut, comme la prƩcƩdente. |
| 667 |
%</FRA> |
| 668 |
%<*ENG> |
| 669 |
The default options are \Option{varepsilon}, \Option{theta}, |
| 670 |
\Option{pi}, \Option{rho}, \Option{sigma}, \Option{varphi}, |
| 671 |
\Option{wild} and \Option{legacy}. That ensures that this 3rd |
| 672 |
version behaves, by default, as the preceding one. |
| 673 |
%</ENG> |
| 674 |
|
| 675 |
%<FRA>\section{Commandes et environnement} |
| 676 |
%<ENG>\section{Commands and Environment} |
| 677 |
|
| 678 |
\DescribeMacro{\makeparesseletter} |
| 679 |
%<*FRA> |
| 680 |
Cette macro donne au \og caractère \fg § le catcode d'une |
| 681 |
lettre. Après cela, on peut se servir de § dans un nom de macro, par |
| 682 |
exemple. C'est le pendant de \cs{makeatletter}. |
| 683 |
%</FRA> |
| 684 |
%<*ENG> |
| 685 |
This command gives the letter-catcode to the `character' §. After that |
| 686 |
one can use § in the name of a macro, for instance. It corresponds to |
| 687 |
the well-known |\makeatletter|. |
| 688 |
%</ENG> |
| 689 |
|
| 690 |
\DescribeMacro{\makeparesseother} |
| 691 |
%<*FRA> |
| 692 |
Cette macro donne au caractère § le catcode \emph{other}. C'est le \og |
| 693 |
contraire \fg de la prƩcƩdente. Cela Ʃquivaut au \cs{makeatother}. |
| 694 |
|
| 695 |
Cette macro est inactive avec un codage utf-8 sous |
| 696 |
\hologo{LaTeX}. Elle n'aurait d'ailleurs pas vraiment de sens. Son |
| 697 |
utilisation produit un avertissement dans le fichier |.log|. |
| 698 |
%</FRA> |
| 699 |
%<*ENG> |
| 700 |
This macro gives the catcode \emph{other} to the character §. It is |
| 701 |
the `contrary' of the preceding one. It corresponds to |\makeatother|. |
| 702 |
|
| 703 |
This macro is inactivated when one uses a utf-8 encoding with |
| 704 |
\hologo{LaTeX}. In such a case it wouldn't have a clear meaning. When |
| 705 |
used it issues a warning in the |.log| file. |
| 706 |
%</ENG> |
| 707 |
|
| 708 |
\DescribeMacro{\ActiveLaParesse} |
| 709 |
%<*FRA> |
| 710 |
Cette macro active le caractère § et permet ainsi d'accéder aux |
| 711 |
macros dont le nom commence par § comme |§a|. Pour une liste de ces |
| 712 |
macros et leurs significations, voyez les tableaux~\ref{codageorig} |
| 713 |
et~\ref{codagelevi}. |
| 714 |
%</FRA> |
| 715 |
%<*ENG> |
| 716 |
This macro makes § active and thus enable one to access the macros the |
| 717 |
name of which begins with § such as |§a|. A list of these macros and |
| 718 |
theirs meanings is given in the tables~\ref{codageorig} |
| 719 |
and~\ref{codagelevi}. |
| 720 |
%</ENG> |
| 721 |
|
| 722 |
\DescribeEnv{ParesseActive} |
| 723 |
%<*FRA> |
| 724 |
Dans cet environnement le caractère § est actif ce qui permet |
| 725 |
d'utiliser les macros en §. On utilisera cet environnement si l'on |
| 726 |
veut utiliser les macros quand on a chargƩ l'extension |
| 727 |
\pkg{paresse} avec l'option \texttt{tame}. |
| 728 |
%</FRA> |
| 729 |
%<*ENG> |
| 730 |
In this environment § is active and one can use the §-macros. One |
| 731 |
could use this environment if one want to use the §-macros when the |
| 732 |
package \texttt{paresse} is loaded whith the option \texttt{tame}. |
| 733 |
%</ENG> |
| 734 |
|
| 735 |
\newpage{} |
| 736 |
|
| 737 |
%<FRA>\section{Tableaux des macros} |
| 738 |
%<ENG>\section{Tables of the Macros} |
| 739 |
|
| 740 |
%<FRA>\subsection{Codage originel de \pkg{paresse}} |
| 741 |
%<ENG>\subsection{\pkg{paresse}'s Original Encoding} |
| 742 |
|
| 743 |
%<*FRA> |
| 744 |
C'est le codage actif lorsque l'on a choisit les options \Option{legacy} et |
| 745 |
\Option{ttheta} qui sont des options par dƩfaut. |
| 746 |
|
| 747 |
Cette version~5.0 ajoute \(\varsigma\) obtenu avec \PSVerb{j}. |
| 748 |
%</FRA> |
| 749 |
%<*ENG> |
| 750 |
This is the active encoding when one choses the options \Option{legacy} and |
| 751 |
\Option{ttheta} which are the default. |
| 752 |
|
| 753 |
This version~5.0 adds \(\varsigma\) obtained with \PSVerb{j}. |
| 754 |
%</ENG> |
| 755 |
|
| 756 |
\begin{center}\Large |
| 757 |
\begin{ParesseActive} \label{codageorig} |
| 758 |
\begin{tabular}{*4{||>{\ttfamily \S}c|c}||}\hline |
| 759 |
a & §a & b & §b & g & §g & d & §d\\ \hline |
| 760 |
e & §e & z & §z & h & §h & v & §v\\ \hline |
| 761 |
i & §i & k & §k & l & §l & m & §m\\ \hline |
| 762 |
n & §n & x & §x & p & §p & r & §r\\ \hline |
| 763 |
s & §s & y & §y & u & §u & f & §f\\ \hline |
| 764 |
c & §c & q & §q & w & §w & j & §j\\ \hline\hline |
| 765 |
G & §G & D & §D & V & §V & L & §L\\ \hline |
| 766 |
X & §X & P & §P & S & §S & U & §U\\ \hline |
| 767 |
F & §F & Q & §Q & W & §W & Z & §Z\\ \hline |
| 768 |
\end{tabular} |
| 769 |
\end{ParesseActive} |
| 770 |
\end{center} |
| 771 |
|
| 772 |
\vspace{2\baselineskip} |
| 773 |
|
| 774 |
\begin{center}\Large |
| 775 |
\begin{ParesseActive} \label{codageorig} |
| 776 |
\begin{tabular}{*7{||>{\ttfamily \S}c|c}||}\hline |
| 777 |
a&§a&b&§b&c&§c&d&§d&e&§e&f&§f\\ \hline |
| 778 |
g&§g&h&§h&i&§i&j&§j&k&§k&l&§l\\ \hline |
| 779 |
m&§m&n&§n&o& &p&§p&q&§q&r&§r\\ \hline |
| 780 |
s&§s&t&§t&u&§u&v&§v&w&§w&x&§x\\ \hline |
| 781 |
y&§y&z&§z&A& &B& &C& &D&§D\\ \hline |
| 782 |
E& &F&§F&G&§G&H& &I& &J& \\ \hline |
| 783 |
K& &L&§L&M& &N& &O& &P&§P\\ \hline |
| 784 |
Q&§Q&R& &S&§S&T&§T&U&§U&V&§V\\ \hline |
| 785 |
W&§W&X&§X&Y& &Z&§Z&\multicolumn{4}{c||}{}\\ \hline |
| 786 |
\end{tabular} |
| 787 |
\end{ParesseActive} |
| 788 |
\end{center} |
| 789 |
|
| 790 |
|
| 791 |
%<*FRA> |
| 792 |
\paragraph{Remarques : } à l'exception de {\ActiveLaParesse §v, §y, §q et §j} |
| 793 |
les lettres utilisƩes dans les noms des macros sont chargƩes de vertu |
| 794 |
mnƩmotechniques \texttt{:-)} et les capitales grecques, quand elles diffƩrent |
| 795 |
des capitales latines, s'obtiennent Ć l'aide de la majuscule correspondante. |
| 796 |
%</FRA> |
| 797 |
%<*ENG> |
| 798 |
\paragraph{Remarks : } all the latin letters used in the name of the |
| 799 |
§-macros, but for {\ActiveLaParesse §v, §y, §q and §j}, are loaded with |
| 800 |
reminiscences, I hope \texttt{:-)} and the greek uppercases are |
| 801 |
obtained with the (latin) corresponding uppercases. |
| 802 |
%</ENG> |
| 803 |
|
| 804 |
\pagebreak[4] |
| 805 |
|
| 806 |
%<FRA>\subsection{Codage de Sylvio \textsc{Levi}} |
| 807 |
%<ENG>\subsection{Sylvio \textsc{Levi}'s Encoding} |
| 808 |
|
| 809 |
%<*FRA> |
| 810 |
On active ce codage avec l'option \Option{Levi}. |
| 811 |
%</FRA> |
| 812 |
%<*ENG> |
| 813 |
One make this encoding active with the option \Option{Levi}. |
| 814 |
%</ENG> |
| 815 |
|
| 816 |
\begin{center}\Large |
| 817 |
\begin{ParesseActive} \label{codagelevi} |
| 818 |
\begin{tabular}{*4{||>{\ttfamily \S}c|c}||}\hline |
| 819 |
a & §a & b & §b & g & §g & d & §d\\ \hline |
| 820 |
e & §e & z & §z & h & §h & j & §v\\ \hline |
| 821 |
i & §i & k & §k & l & §l & m & §m\\ \hline |
| 822 |
n & §n & x & §x & p & §p & r & §r\\ \hline |
| 823 |
s & §s & t & §y & u & §u & f & §f\\ \hline |
| 824 |
q & §c & y & §q & w & §w & c & \(\varsigma\)\\ \hline\hline |
| 825 |
G & §G & D & §D & J & §V & L & §L\\ \hline |
| 826 |
X & §X & P & §P & S & §S & U & §U\\ \hline |
| 827 |
F & §F & Y & §Q & W & §W & Z & §Z\\ \hline |
| 828 |
\end{tabular} |
| 829 |
\end{ParesseActive} |
| 830 |
\end{center} |
| 831 |
|
| 832 |
%<*FRA> |
| 833 |
Le codage de Sylvio \textsc{Levi} donne accĆØs directement Ć \cs{varsigma} |
| 834 |
(\(\varsigma\)) avec |§||c| et ne diffère du codage originel que pour |
| 835 |
les lettres {\ActiveLaParesse §v, §y, §c et §q}. Voici un résumé de |
| 836 |
ces diffƩrences: |
| 837 |
%</FRA> |
| 838 |
%<*ENG> |
| 839 |
Sylvio \textsc{Levi}'s encoding gives a direct acces to \cs{varsigma} |
| 840 |
(\(\varsigma\)) with |§||c| and is different from the original encoding |
| 841 |
just for the letters {\ActiveLaParesse §v, §y, §c et §q}. Here is a |
| 842 |
summary of theses differences: |
| 843 |
%</ENG> |
| 844 |
|
| 845 |
\begin{center} |
| 846 |
\newcommand\CT[1]{\multicolumn{1}{c|}{\texttt{#1}}} |
| 847 |
\begin{ParesseActive} |
| 848 |
\begin{tabular}{|l|*{7}{c|}}\hline |
| 849 |
%<FRA>lettres grecques |
| 850 |
%<ENG>greek letters |
| 851 |
& §v & §y & §c & §q & §V & §Q & \(\varsigma\)\\\hline |
| 852 |
%<FRA>codage originel |
| 853 |
%<ENG>original encoding |
| 854 |
&\CT{\S{}v/\S{}t}&\CT{\S{}y/\S{}t}&\CT{\S{}c} |
| 855 |
&\CT{\S{}q}&\CT{\S{}V/\S{}T}&\CT{\S{}Q}& \CT{\S{}j} \\\hline |
| 856 |
%<FRA>codage de S. \textsc{Levi} |
| 857 |
%<ENG>S. \textsc{Levi}'s encoding |
| 858 |
&\CT{\S{}j}&\CT{\S{}t}&\CT{\S{}q}&\CT{\S{}y} |
| 859 |
&\CT{\S{}J}&\CT{\S{}Y} & \CT{\S{}c}\\\hline |
| 860 |
\end{tabular} |
| 861 |
\end{ParesseActive} |
| 862 |
\end{center} |
| 863 |
|
| 864 |
|
| 865 |
\vspace{\stretch{2}} |
| 866 |
|
| 867 |
\begin{thebibliography}{99} |
| 868 |
\addcontentsline{toc}{section}{Bibliographie} |
| 869 |
\bibitem{tlachand} T.~\textsc{Lachand-Robert}. |
| 870 |
\emph{La maƮtrise de \TeX{} et \LaTeX{}}. |
| 871 |
Masson, Paris, Milan, Barcelone, \oldstylenums{1995}. |
| 872 |
\textsc{isbn} : \texttt{2-225-84832-7}. |
| 873 |
\end{thebibliography} |
| 874 |
|
| 875 |
\vspace{\stretch{2}} |
| 876 |
|
| 877 |
\noindent\hspace*{0.2\textwidth}\hrulefill\hspace*{0.2\textwidth} |
| 878 |
\begin{center} |
| 879 |
\textsl{Le TeXnicien de Surface scripsit.} |
| 880 |
\end{center} |
| 881 |
\noindent\hspace*{0.2\textwidth}\hrulefill\hspace*{0.2\textwidth} |
| 882 |
|
| 883 |
\vspace*{\stretch{2}} |
| 884 |
|
| 885 |
\end{document} |
| 886 |
%</doc> |
| 887 |
% \fi |
| 888 |
% \begin{implementation} |
| 889 |
% |
| 890 |
% \section{\pkg{paresse} implementation} |
| 891 |
% |
| 892 |
% Three packages are coded below: the main one \pkg{paresse} loads one of the |
| 893 |
% other two \pkg{paresse-old} or \pkg{paresse-utf8} depending on the |
| 894 |
% \TeX{}-engine used and the encoding of the source. |
| 895 |
% |
| 896 |
% \iffalse |
| 897 |
%<*package> |
| 898 |
% \fi |
| 899 |
% The prefix is \texttt{paresse} for the three packages. |
| 900 |
% \begin{macrocode} |
| 901 |
%<@@=paresse> |
| 902 |
% \end{macrocode} |
| 903 |
% |
| 904 |
% \iffalse |
| 905 |
%<*MAIN> |
| 906 |
% \fi |
| 907 |
% The main package \pkg{paresse} begins here. |
| 908 |
% \begin{macrocode} |
| 909 |
\ProvidesExplPackage |
| 910 |
{\ExplFileName}{\ExplFileDate}{\ExplFileVersion}{\ExplFileDescription} |
| 911 |
% \end{macrocode} |
| 912 |
% \iffalse |
| 913 |
%</MAIN> |
| 914 |
% \fi |
| 915 |
% \iffalse |
| 916 |
%<*OLD> |
| 917 |
% \fi |
| 918 |
% Header of \pkg{paresse-old}: |
| 919 |
% \begin{macrocode} |
| 920 |
\ProvidesExplPackage |
| 921 |
{\ExplFileName-old}{\ExplFileDate}{\ExplFileVersion}{\ExplFileDescription} |
| 922 |
% \end{macrocode} |
| 923 |
% \iffalse |
| 924 |
%</OLD> |
| 925 |
% \fi |
| 926 |
% \iffalse |
| 927 |
%<*UTF> |
| 928 |
% \fi |
| 929 |
% Header of \pkg{paresse-utf8}: |
| 930 |
% \begin{macrocode} |
| 931 |
\ProvidesExplPackage |
| 932 |
{\ExplFileName-utf8}{\ExplFileDate}{\ExplFileVersion}{\ExplFileDescription} |
| 933 |
% \end{macrocode} |
| 934 |
% \iffalse |
| 935 |
%</UTF> |
| 936 |
% \fi |
| 937 |
% |
| 938 |
% The three packages require \pkg{xparse} and \pkg{l3keys2}: |
| 939 |
% \begin{macrocode} |
| 940 |
\RequirePackage{xparse} |
| 941 |
\RequirePackage{l3keys2e} |
| 942 |
% \end{macrocode} |
| 943 |
% \iffalse |
| 944 |
%<*MAIN> |
| 945 |
% \fi |
| 946 |
% but the main \pkg{paresse} alone requires \pkg{iftex} to proceed according to |
| 947 |
% the \TeX-engine. |
| 948 |
% \begin{macrocode} |
| 949 |
\RequirePackage{iftex} |
| 950 |
% \end{macrocode} |
| 951 |
% \iffalse |
| 952 |
%</MAIN> |
| 953 |
% \fi |
| 954 |
% |
| 955 |
% \iffalse |
| 956 |
%<*!MAIN> |
| 957 |
% \fi |
| 958 |
% \begin{macrocode} |
| 959 |
\cs_if_exist:NF \@@_main_package_loaded: |
| 960 |
{ |
| 961 |
% \end{macrocode} |
| 962 |
% \iffalse |
| 963 |
%</!MAIN> |
| 964 |
% \fi |
| 965 |
% |
| 966 |
% \begin{macrocode} |
| 967 |
\keys_define:nn {paresse} |
| 968 |
{ |
| 969 |
encoding_is_legacy .bool_set:N = \g_@@_encoding_is_legacy_bool, |
| 970 |
encoding_is_levi .bool_set_inverse:N = |
| 971 |
\g_@@_encoding_is_legacy_bool, |
| 972 |
legacy .meta:n = { |
| 973 |
encoding_is_legacy = #1 |
| 974 |
}, |
| 975 |
legacy .default:n = {true}, |
| 976 |
legacy .initial:n = {true}, |
| 977 |
levi .meta:n = { |
| 978 |
encoding_is_levi = #1 |
| 979 |
}, |
| 980 |
levi .default:n = {true}, |
| 981 |
levi .initial:n = {false}, |
| 982 |
|
| 983 |
mood_is_wild .bool_set:N = \g_@@_mood_is_wild_bool, |
| 984 |
mood_is_tame .bool_set_inverse:N = |
| 985 |
\g_@@_mood_is_wild_bool, |
| 986 |
wild .meta:n = { |
| 987 |
mood_is_wild = #1 |
| 988 |
}, |
| 989 |
wild .default:n = {true}, |
| 990 |
wild .initial:n = {true}, |
| 991 |
tame .meta:n = { |
| 992 |
mood_is_tame = #1 |
| 993 |
}, |
| 994 |
tame .default:n = {true}, |
| 995 |
tame .initial:n = {false}, |
| 996 |
|
| 997 |
letter_t_is_theta .bool_set:N = |
| 998 |
\g_@@_letter_t_is_theta_bool, |
| 999 |
letter_t_is_tau .bool_set_inverse:N = |
| 1000 |
\g_@@_letter_t_is_theta_bool, |
| 1001 |
ttheta .meta:n = { |
| 1002 |
letter_t_is_theta = #1 |
| 1003 |
}, |
| 1004 |
ttheta .default:n = {true}, |
| 1005 |
ttheta .initial:n = {true}, |
| 1006 |
ttau .meta:n = { |
| 1007 |
letter_t_is_tau = #1 |
| 1008 |
}, |
| 1009 |
ttau .default:n = {true}, |
| 1010 |
ttau .initial:n = {false}, |
| 1011 |
|
| 1012 |
letter_theta_is_theta .bool_set:N = |
| 1013 |
\g_@@_letter_theta_is_theta_bool, |
| 1014 |
letter_theta_is_vartheta .bool_set_inverse:N = |
| 1015 |
\g_@@_letter_theta_is_theta_bool, |
| 1016 |
theta .meta:n = { |
| 1017 |
letter_theta_is_theta = #1 |
| 1018 |
}, |
| 1019 |
theta .default:n = {true}, |
| 1020 |
theta .initial:n = {true}, |
| 1021 |
vartheta .meta:n = { |
| 1022 |
letter_theta_is_vartheta = #1 |
| 1023 |
}, |
| 1024 |
vartheta .default:n = {true}, |
| 1025 |
vartheta .initial:n = {false}, |
| 1026 |
|
| 1027 |
letter_pi_is_pi .bool_set:N = |
| 1028 |
\g_@@_letter_pi_is_pi_bool, |
| 1029 |
letter_pi_is_varpi .bool_set_inverse:N = |
| 1030 |
\g_@@_letter_pi_is_pi_bool, |
| 1031 |
pi .meta:n = { |
| 1032 |
letter_pi_is_pi = #1 |
| 1033 |
}, |
| 1034 |
pi .default:n = {true}, |
| 1035 |
pi .initial:n = {true}, |
| 1036 |
varpi .meta:n = { |
| 1037 |
letter_pi_is_varpi = #1 |
| 1038 |
}, |
| 1039 |
varpi .default:n = {true}, |
| 1040 |
varpi .initial:n = {false}, |
| 1041 |
|
| 1042 |
letter_rho_is_rho .bool_set:N = |
| 1043 |
\g_@@_letter_rho_is_rho_bool, |
| 1044 |
letter_rho_is_varrho .bool_set_inverse:N = |
| 1045 |
\g_@@_letter_rho_is_rho_bool, |
| 1046 |
rho .meta:n = { |
| 1047 |
letter_rho_is_rho = #1 |
| 1048 |
}, |
| 1049 |
rho .default:n = {true}, |
| 1050 |
rho .initial:n = {true}, |
| 1051 |
varrho .meta:n = { |
| 1052 |
letter_rho_is_varrho = #1 |
| 1053 |
}, |
| 1054 |
varrho .default:n = {true}, |
| 1055 |
varrho .initial:n = {false}, |
| 1056 |
|
| 1057 |
letter_sigma_is_sigma .bool_set:N = |
| 1058 |
\g_@@_letter_sigma_is_sigma_bool, |
| 1059 |
letter_sigma_is_varsigma .bool_set_inverse:N = |
| 1060 |
\g_@@_letter_sigma_is_sigma_bool, |
| 1061 |
sigma .meta:n = { |
| 1062 |
letter_sigma_is_sigma = #1 |
| 1063 |
}, |
| 1064 |
sigma .default:n = {true}, |
| 1065 |
sigma .initial:n = {true}, |
| 1066 |
varsigma .meta:n = { |
| 1067 |
letter_sigma_is_varsigma = #1 |
| 1068 |
}, |
| 1069 |
varsigma .default:n = {true}, |
| 1070 |
varsigma .initial:n = {false}, |
| 1071 |
|
| 1072 |
letter_epsilon_is_epsilon .bool_set:N = |
| 1073 |
\g_@@_letter_epsilon_is_epsilon_bool, |
| 1074 |
letter_epsilon_is_varepsilon .bool_set_inverse:N = |
| 1075 |
\g_@@_letter_epsilon_is_epsilon_bool, |
| 1076 |
epsilon .meta:n = { |
| 1077 |
letter_epsilon_is_epsilon = #1 |
| 1078 |
}, |
| 1079 |
epsilon .default:n = {true}, |
| 1080 |
epsilon .initial:n = {false}, |
| 1081 |
varepsilon .meta:n = { |
| 1082 |
letter_epsilon_is_varepsilon = #1 |
| 1083 |
}, |
| 1084 |
varepsilon .default:n = {true}, |
| 1085 |
varepsilon .initial:n = {true}, |
| 1086 |
|
| 1087 |
letter_phi_is_phi .bool_set:N = |
| 1088 |
\g_@@_letter_phi_is_phi_bool, |
| 1089 |
letter_phi_is_varphi .bool_set_inverse:N = |
| 1090 |
\g_@@_letter_phi_is_phi_bool, |
| 1091 |
phi .meta:n = { |
| 1092 |
letter_phi_is_phi = #1 |
| 1093 |
}, |
| 1094 |
phi .default:n = {true}, |
| 1095 |
phi .initial:n = {false}, |
| 1096 |
varphi .meta:n = { |
| 1097 |
letter_phi_is_varphi = #1 |
| 1098 |
}, |
| 1099 |
varphi .default:n = {true}, |
| 1100 |
varphi .initial:n = {true}, |
| 1101 |
} |
| 1102 |
% \end{macrocode} |
| 1103 |
% |
| 1104 |
% \begin{macrocode} |
| 1105 |
\ProcessKeysOptions {paresse} |
| 1106 |
% \end{macrocode} |
| 1107 |
% |
| 1108 |
% \begin{macrocode} |
| 1109 |
\bool_if:nTF {\g_@@_letter_epsilon_is_epsilon_bool} |
| 1110 |
{\cs_new:Npn \@@_epsilon {\epsilon}} |
| 1111 |
{\cs_new:Npn \@@_epsilon {\varepsilon}} |
| 1112 |
|
| 1113 |
\bool_if:nTF {\g_@@_letter_theta_is_theta_bool} |
| 1114 |
{\cs_new:Npn \@@_theta {\theta}} |
| 1115 |
{\cs_new:Npn \@@_theta {\vartheta}} |
| 1116 |
|
| 1117 |
\bool_if:nTF {\g_@@_letter_pi_is_pi_bool} |
| 1118 |
{\cs_new:Npn \@@_pi {\pi}} |
| 1119 |
{\cs_new:Npn \@@_pi {\varpi}} |
| 1120 |
|
| 1121 |
\bool_if:nTF {\g_@@_letter_rho_is_rho_bool} |
| 1122 |
{\cs_new:Npn \@@_rho {\rho}} |
| 1123 |
{\cs_new:Npn \@@_rho {\varrho}} |
| 1124 |
|
| 1125 |
\bool_if:nTF {\g_@@_letter_sigma_is_sigma_bool} |
| 1126 |
{\cs_new:Npn \@@_sigma {\sigma}} |
| 1127 |
{\cs_new:Npn \@@_sigma {\varsigma}} |
| 1128 |
|
| 1129 |
\bool_if:nTF {\g_@@_letter_phi_is_phi_bool} |
| 1130 |
{\cs_new:Npn \@@_phi {\phi}} |
| 1131 |
{\cs_new:Npn \@@_phi {\varphi}} |
| 1132 |
|
| 1133 |
\bool_new:c {g__paresse_file_encoding_is_utf8_bool} |
| 1134 |
% \end{macrocode} |
| 1135 |
% |
| 1136 |
% \iffalse |
| 1137 |
%<*!MAIN> |
| 1138 |
% \fi |
| 1139 |
% \begin{macrocode} |
| 1140 |
} |
| 1141 |
% \end{macrocode} |
| 1142 |
% \iffalse |
| 1143 |
%</!MAIN> |
| 1144 |
% \fi |
| 1145 |
% \iffalse |
| 1146 |
%<*MAIN> |
| 1147 |
% \fi |
| 1148 |
% \begin{macrocode} |
| 1149 |
\cs_new:Nn \__paresse_main_package_loaded: {} |
| 1150 |
% \end{macrocode} |
| 1151 |
% |
| 1152 |
% \begin{macrocode} |
| 1153 |
\ifluatex |
| 1154 |
% \end{macrocode} |
| 1155 |
% luatex specific code |
| 1156 |
% \begin{macrocode} |
| 1157 |
\PackageInfo{paresse}{compiling~with~luatex} |
| 1158 |
\RequirePackageWithOptions{paresse-old} |
| 1159 |
\else |
| 1160 |
% \end{macrocode} |
| 1161 |
% code for other engines |
| 1162 |
% \begin{macrocode} |
| 1163 |
\ifxetex |
| 1164 |
% \end{macrocode} |
| 1165 |
% xetex specific code |
| 1166 |
% \begin{macrocode} |
| 1167 |
\PackageInfo{paresse}{compiling~with~xetex} |
| 1168 |
\RequirePackageWithOptions{paresse-old} |
| 1169 |
\else |
| 1170 |
% \end{macrocode} |
| 1171 |
% nor luatex nor xetex |
| 1172 |
% \begin{macrocode} |
| 1173 |
|
| 1174 |
\PackageInfo{paresse}{compiling~with~tex} |
| 1175 |
|
| 1176 |
\newcommand\default@encoding@message{ |
| 1177 |
\bool_gset_true:c {g__paresse_file_encoding_is_utf8_bool} |
| 1178 |
\PackageWarningNoLine{paresse}{ |
| 1179 |
The~package~"paresse"~expects~a~"utf8"~encoded~file.~ |
| 1180 |
In~case~of~an~8~bits~encoding,~ |
| 1181 |
please~use~inputenc~with~the~correct~option} |
| 1182 |
} |
| 1183 |
|
| 1184 |
\newcommand\find@encoding{ |
| 1185 |
\begingroup |
| 1186 |
\def\utf@encoding{utf8} |
| 1187 |
\def\temp@a{ |
| 1188 |
\bool_gset_false:c {g__paresse_file_encoding_is_utf8_bool} |
| 1189 |
\PackageInfo{paresse}{8-bit~encoding~expected\@gobble} |
| 1190 |
} |
| 1191 |
\ifx\utf@encoding\inputencodingname |
| 1192 |
\def\temp@a{ |
| 1193 |
\bool_gset_true:c {g__paresse_file_encoding_is_utf8_bool} |
| 1194 |
\PackageInfo{paresse}{utf8~encoding~detected\@gobble} |
| 1195 |
} |
| 1196 |
\fi |
| 1197 |
\expandafter\endgroup\temp@a} |
| 1198 |
|
| 1199 |
\@ifpackageloaded{inputenc} |
| 1200 |
{ |
| 1201 |
\PackageInfo{paresse}{inputenc~loaded} |
| 1202 |
} |
| 1203 |
{ |
| 1204 |
\PackageInfo{paresse}{inputenc~not~loaded,~utf8~expected\@gobble} |
| 1205 |
} |
| 1206 |
|
| 1207 |
\AtBeginDocument |
| 1208 |
{ |
| 1209 |
\@ifpackageloaded{inputenc} \find@encoding \default@encoding@message |
| 1210 |
\ExplSyntaxOn |
| 1211 |
\makeatletter |
| 1212 |
\bool_if:nTF {\use:c{g__paresse_file_encoding_is_utf8_bool}} |
| 1213 |
{ |
| 1214 |
\PackageInfo{paresse}{charge~utf8} |
| 1215 |
\RequirePackageWithOptions{paresse-utf8} |
| 1216 |
} |
| 1217 |
{ |
| 1218 |
\PackageInfo{paresse}{charge~vieux} |
| 1219 |
\RequirePackageWithOptions{paresse-old} |
| 1220 |
} |
| 1221 |
\makeatother |
| 1222 |
\ExplSyntaxOff |
| 1223 |
} |
| 1224 |
|
| 1225 |
\fi % END OF ifxetex |
| 1226 |
\fi % END OF ifluatex |
| 1227 |
% \end{macrocode} |
| 1228 |
% \iffalse |
| 1229 |
%</MAIN> |
| 1230 |
% \fi |
| 1231 |
% |
| 1232 |
% \iffalse |
| 1233 |
%<*OLD> |
| 1234 |
% \fi |
| 1235 |
% \begin{macrocode} |
| 1236 |
\count@=\catcode`\^^a7 |
| 1237 |
\let\GA@LaVieilleParesse= ^^a7 |
| 1238 |
\def\^^a7{\S} |
| 1239 |
\newcommand{\makeparesseletter}{\catcode `\^^a7=11\relax} |
| 1240 |
\newcommand{\makeparesseother}{\catcode `\^^a7=12\relax} |
| 1241 |
\newcommand{\GA@MakeParesseActive}{\catcode `\^^a7=\active} |
| 1242 |
\def\GA@ActiveLaParessexii{\catcode `\^^a7=\active} |
| 1243 |
\def\GA@ActiveLaParessexiii{\catcode `\^^a7=\active |
| 1244 |
\def^^a7##1{\ensuremath{\csname \string^^a7##1\endcsname}}} |
| 1245 |
\ifnum\count@=12 |
| 1246 |
\let\GA@ActiveLaParesse \GA@ActiveLaParessexii |
| 1247 |
\else |
| 1248 |
\let\GA@ActiveLaParesse \GA@ActiveLaParessexiii |
| 1249 |
\fi |
| 1250 |
\newcommand{\ActiveLaParesse}{\GA@ActiveLaParesse} |
| 1251 |
\newenvironment{ParesseActive}{\GA@ActiveLaParesse}{} |
| 1252 |
|
| 1253 |
\makeparesseletter |
| 1254 |
\def\^^a7a {\alpha} |
| 1255 |
\def\^^a7b {\beta} |
| 1256 |
\def\^^a7g {\gamma} |
| 1257 |
\def\^^a7d {\delta} |
| 1258 |
\def\^^a7e {\__paresse_epsilon} |
| 1259 |
\def\^^a7z {\zeta} |
| 1260 |
\def\^^a7h {\eta} |
| 1261 |
\def\^^a7i {\iota} |
| 1262 |
\def\^^a7k {\kappa} |
| 1263 |
\def\^^a7l {\lambda} |
| 1264 |
\def\^^a7m {\mu} |
| 1265 |
\def\^^a7n {\nu} |
| 1266 |
\def\^^a7x {\xi} |
| 1267 |
\def\^^a7p {\__paresse_pi} |
| 1268 |
\def\^^a7r {\__paresse_rho} |
| 1269 |
\def\^^a7s {\__paresse_sigma} |
| 1270 |
\def\^^a7u {\upsilon} |
| 1271 |
\def\^^a7f {\__paresse_phi} |
| 1272 |
\def\^^a7w {\omega} |
| 1273 |
|
| 1274 |
\bool_if:nTF {\g__paresse_encoding_is_legacy_bool} |
| 1275 |
{ |
| 1276 |
\def\^^a7j {\varsigma} |
| 1277 |
\def\^^a7v {\__paresse_theta} |
| 1278 |
\def\^^a7y {\tau} |
| 1279 |
\def\^^a7c {\chi} |
| 1280 |
\def\^^a7q {\psi} |
| 1281 |
\bool_if:nTF {\g__paresse_letter_t_is_theta_bool} |
| 1282 |
{ |
| 1283 |
\def\^^a7t {\__paresse_theta} |
| 1284 |
} |
| 1285 |
{ |
| 1286 |
\def\^^a7t {\tau} |
| 1287 |
} |
| 1288 |
} |
| 1289 |
{ |
| 1290 |
\def\^^a7j {\__paresse_theta} |
| 1291 |
\def\^^a7t {\tau} |
| 1292 |
\def\^^a7q {\chi} |
| 1293 |
\def\^^a7y {\psi} |
| 1294 |
\def\^^a7c {\varsigma} |
| 1295 |
} |
| 1296 |
\def\^^a7G {\Gamma} |
| 1297 |
\def\^^a7D {\Delta} |
| 1298 |
\def\^^a7L {\Lambda} |
| 1299 |
\def\^^a7P {\Pi} |
| 1300 |
\def\^^a7S {\Sigma} |
| 1301 |
\def\^^a7U {\Upsilon} |
| 1302 |
\def\^^a7F {\Phi} |
| 1303 |
\def\^^a7X {\Xi} |
| 1304 |
\def\^^a7W {\Omega} |
| 1305 |
\bool_if:nTF {\g__paresse_encoding_is_legacy_bool} |
| 1306 |
{ |
| 1307 |
\def\^^a7V {\Theta} |
| 1308 |
\def\^^a7T {\Theta} |
| 1309 |
\def\^^a7Q {\Psi} |
| 1310 |
} |
| 1311 |
{ |
| 1312 |
\def\^^a7J {\Theta} |
| 1313 |
\def\^^a7Y {\Psi} |
| 1314 |
} |
| 1315 |
\def\^^a7Z {\S} |
| 1316 |
\catcode `\^^a7=\active |
| 1317 |
\def^^a7#1{\ensuremath{\csname \string^^a7#1\endcsname}} |
| 1318 |
|
| 1319 |
\bool_if:nF {\g__paresse_mood_is_wild_bool} |
| 1320 |
{ |
| 1321 |
\catcode`\^^a7=\count@ |
| 1322 |
\ifnum\count@=13 \let ^^a7=\GA@LaVieilleParesse \fi |
| 1323 |
} |
| 1324 |
% \end{macrocode} |
| 1325 |
% \iffalse |
| 1326 |
%</OLD> |
| 1327 |
% \fi |
| 1328 |
% \iffalse |
| 1329 |
%<*UTF> |
| 1330 |
% \fi |
| 1331 |
% \begin{macrocode} |
| 1332 |
\begingroup |
| 1333 |
\catcode`\"=12 |
| 1334 |
\catcode`\<=12 |
| 1335 |
\catcode`\.=12 |
| 1336 |
\catcode`\,=12 |
| 1337 |
\catcode`\;=12 |
| 1338 |
\catcode`\!=12 |
| 1339 |
\catcode`\~=13 |
| 1340 |
\global\let\GA@parse@UTFviii@a=\parse@UTFviii@a |
| 1341 |
\global\let\GA@parse@UTFviii@b=\parse@UTFviii@b |
| 1342 |
\gdef\declareunicodecharacter#1#2{ |
| 1343 |
\count@"#1\relax |
| 1344 |
\wlog{\space\space Redefining~Unicode~char~U+#1~(decimal~\the\count@)} |
| 1345 |
\begingroup |
| 1346 |
\GA@parse@XML@charref |
| 1347 |
\def\UTFviii@two@octets##1##2{\csname u8:##1\string##2\endcsname} |
| 1348 |
\def\UTFviii@three@octets##1##2##3{\csname u8:##1 |
| 1349 |
\string##2\string##3\endcsname} |
| 1350 |
\def\UTFviii@four@octets##1##2##3##4{\csname u8:##1 |
| 1351 |
\string##2\string##3\string##4\endcsname} |
| 1352 |
\expandafter\expandafter\expandafter |
| 1353 |
\expandafter\expandafter\expandafter |
| 1354 |
\expandafter |
| 1355 |
\gdef\UTFviii@tmp{\IeC{#2}} |
| 1356 |
\endgroup} |
| 1357 |
\gdef\GA@parse@XML@charref{ |
| 1358 |
\ifnum\count@<"A0\relax |
| 1359 |
\PackageError{inputenc}{Cannot\space define\space Unicode\space |
| 1360 |
char\space value\space <\space 00A0}\@eha |
| 1361 |
\else\ifnum\count@<"800\relax |
| 1362 |
\GA@parse@UTFviii@a, |
| 1363 |
\GA@parse@UTFviii@b C\UTFviii@two@octets., |
| 1364 |
\else\ifnum\count@<"10000\relax |
| 1365 |
\GA@parse@UTFviii@a; |
| 1366 |
\GA@parse@UTFviii@a, |
| 1367 |
\GA@parse@UTFviii@b E\UTFviii@three@octets.{,;} |
| 1368 |
\else |
| 1369 |
\GA@parse@UTFviii@a; |
| 1370 |
\GA@parse@UTFviii@a, |
| 1371 |
\GA@parse@UTFviii@a! |
| 1372 |
\GA@parse@UTFviii@b F\UTFviii@four@octets.{!,;} |
| 1373 |
\fi |
| 1374 |
\fi |
| 1375 |
\fi} |
| 1376 |
\endgroup |
| 1377 |
\newcommand{\makeparesseletter}{\DeclareUnicodeCharacter{00A7}\S} |
| 1378 |
\newcommand{\makeparesseother}{ |
| 1379 |
\PackageWarning{paresse}{ |
| 1380 |
Command \string\makeparesseother disabled}{ |
| 1381 |
The command \string\makeparesseother would have been meaningless |
| 1382 |
in the current context}} |
| 1383 |
\newcommand{\ActiveLaParesse}{\declareunicodecharacter{00A7}\@paresse} |
| 1384 |
\newenvironment{ParesseActive}{\ActiveLaParesse}{} |
| 1385 |
\ActiveLaParesse |
| 1386 |
\def\@paresse{\futurelet\@toks\@i@paresse} |
| 1387 |
\def\@i@paresse{ |
| 1388 |
\csname\ifcat a\@toks @ii@paresse\else S\fi\endcsname} |
| 1389 |
\def\@ii@paresse#1{ |
| 1390 |
\ifcsname @paresse@#1\endcsname |
| 1391 |
\csname @paresse@#1\endcsname\expandafter\@gobble |
| 1392 |
\else |
| 1393 |
\expandafter\@firstofone |
| 1394 |
\fi{\S#1}} |
| 1395 |
\def\define@paresse@car#1#2{ |
| 1396 |
\expandafter\def\csname @paresse@#1\endcsname{\ensuremath{#2}}} |
| 1397 |
|
| 1398 |
\define@paresse@car Z\S |
| 1399 |
\define@paresse@car a\alpha |
| 1400 |
\define@paresse@car b\beta |
| 1401 |
\define@paresse@car g\gamma |
| 1402 |
\define@paresse@car d\delta |
| 1403 |
\define@paresse@car e\__paresse_epsilon |
| 1404 |
\define@paresse@car z\zeta |
| 1405 |
\define@paresse@car h\eta |
| 1406 |
\define@paresse@car i\iota |
| 1407 |
\define@paresse@car k\kappa |
| 1408 |
\define@paresse@car l\lambda |
| 1409 |
\define@paresse@car m\mu |
| 1410 |
\define@paresse@car n\nu |
| 1411 |
\define@paresse@car x\xi |
| 1412 |
\define@paresse@car p\__paresse_pi |
| 1413 |
\define@paresse@car r\__paresse_rho |
| 1414 |
\define@paresse@car s\__paresse_sigma |
| 1415 |
\define@paresse@car u\upsilon |
| 1416 |
\define@paresse@car f\__paresse_phi |
| 1417 |
\define@paresse@car w\omega |
| 1418 |
|
| 1419 |
\bool_if:nTF {\g__paresse_encoding_is_legacy_bool} |
| 1420 |
{ |
| 1421 |
\define@paresse@car j\varsigma |
| 1422 |
\define@paresse@car v\__paresse_theta |
| 1423 |
\define@paresse@car y\tau |
| 1424 |
\define@paresse@car c\chi |
| 1425 |
\define@paresse@car q\psi |
| 1426 |
|
| 1427 |
\bool_if:nTF {\g__paresse_letter_t_is_theta_bool} |
| 1428 |
{ |
| 1429 |
\define@paresse@car t\__paresse_theta |
| 1430 |
} |
| 1431 |
{ |
| 1432 |
\define@paresse@car t\tau |
| 1433 |
} |
| 1434 |
} |
| 1435 |
{ |
| 1436 |
\define@paresse@car j\__paresse_theta |
| 1437 |
\define@paresse@car t\tau |
| 1438 |
\define@paresse@car q\chi |
| 1439 |
\define@paresse@car y\psi |
| 1440 |
\define@paresse@car c\varsigma |
| 1441 |
} |
| 1442 |
\define@paresse@car G\Gamma |
| 1443 |
\define@paresse@car D\Delta |
| 1444 |
\define@paresse@car L\Lambda |
| 1445 |
\define@paresse@car P\Pi |
| 1446 |
\define@paresse@car S\Sigma |
| 1447 |
\define@paresse@car U\Upsilon |
| 1448 |
\define@paresse@car F\Phi |
| 1449 |
\define@paresse@car X\Xi |
| 1450 |
\define@paresse@car W\Omega |
| 1451 |
|
| 1452 |
\bool_if:nTF {\g__paresse_encoding_is_legacy_bool} |
| 1453 |
{ |
| 1454 |
\define@paresse@car V\Theta |
| 1455 |
\define@paresse@car T\Theta |
| 1456 |
\define@paresse@car Q\Psi |
| 1457 |
} |
| 1458 |
{ |
| 1459 |
\define@paresse@car J\Theta |
| 1460 |
\define@paresse@car Y\Psi |
| 1461 |
} |
| 1462 |
|
| 1463 |
\bool_if:nF {\g__paresse_mood_is_wild_bool}{\makeparesseletter} |
| 1464 |
% \end{macrocode} |
| 1465 |
% \iffalse |
| 1466 |
%</UTF> |
| 1467 |
% \fi |
| 1468 |
% |
| 1469 |
% \iffalse |
| 1470 |
%</package> |
| 1471 |
% \fi |
| 1472 |
% |
| 1473 |
% \end{implementation} |
| 1474 |
% |
| 1475 |
% \Finale |
| 1476 |
% \begin{thebibliography}{99} |
| 1477 |
% \addcontentsline{toc}{section}{Bibliographie} |
| 1478 |
% \bibitem{tlachand} T.~\textsc{Lachand-Robert}. |
| 1479 |
% \emph{La maƮtrise de \TeX{} et \LaTeX{}}. |
| 1480 |
% Masson, Paris, Milan, Barcelone, \oldstylenums{1995}. |
| 1481 |
% \textsc{isbn} : \texttt{2-225-84832-7}. |
| 1482 |
% \end{thebibliography} |
| 1483 |
% \PrintChanges\PrintIndex |
| 1484 |
% |
| 1485 |
\endinput |
| 1486 |
%%% Local Variables: |
| 1487 |
%%% mode: doctex |
| 1488 |
%%% coding: utf-8 |
| 1489 |
%%% fill-column: 80 |
| 1490 |
%%% TeX-master: t |
| 1491 |
%%% End: |