Debian Codegraph @

texmf-dist/doc/latex/paresse/paresse-eng.tex

raw
1 %%
2 %% This is file `paresse-eng.tex',
3 %% generated with the docstrip utility.
4 %%
5 %% The original source files were:
6 %%
7 %% paresse.dtx (with options: `doc,ENG')
8 %%
9 %% Do not distribute this file without also distributing the
10 %% source files specified above.
11 %%
12 %% Do not distribute a modified version of this file.
13 %%
14 %% File: paresse.dtx
15 %% Copyright (C) 2021 Yvon Henel aka Le TeXnicien de surface
16 %%
17 %% It may be distributed and/or modified under the conditions of the
18 %% LaTeX Project Public License (LPPL), either version 1.3c of this
19 %% license or (at your option) any later version. The latest version
20 %% of this license is in the file
21 %%
22 %% http://www.latex-project.org/lppl.txt
23 %%
24 \RequirePackage{expl3}[2020/09/24]
25 \GetIdInfo$Id: paresse.dtx 5.0.2 2021-05-16 TdS $
26 {}
27 \documentclass[full, english]{l3doc}
28 \usepackage[utf8]{inputenc}
29 \usepackage[T1]{fontenc}
30 \usepackage[french,main=english]{babel}
31 \usepackage{xparse}
32 \usepackage{xspace}
33
34 \usepackage[tame]{paresse}[2020-10-06]
35
36 \newcommand*\PS{\texttt{\S}\xspace}
37 \newcommand*\PSVerb[1]{\texttt{\S #1}}
38 \newcommand\BOP{\discretionary{}{}{}}
39 \newcommand\Option[1]{\textsc{#1}}
40 \newcommand{\TO}{\textemdash\ \ignorespaces}
41 \newcommand{\TF}{\unskip\ \textemdash\xspace}
42
43 \begin{document}
44 \title{\pkg{paresse} user guide\thanks{This file describes
45 version~\ExplFileVersion, last revised~\ExplFileDate. \emph{Adieu to
46 skeyval} edition.}}
47 \author{Yvon Henel\thanks{E-mail:
48 \href{mailto:[email protected]}
49 {[email protected]}}}
50 \maketitle
51 \noindent\hrulefill
52
53 \begin{abstract}
54 This package implements an example from T.~\textsc{Lachand-Robert}
55 in~\cite{tlachand}. It provides a means of typing isolated greek letters
56 with the character \PS activated and redefined. Instead of |\(\alpha\)| one
57 types \PSVerb{a} to obtain \(\alpha\).
58
59 \textbf{Important}: You have to load it \textbf{after} the \pkg{inputenc}
60 package if the latter is used. Moreover the sign \PS must be a letter for
61 \TeX.
62
63 Since version~4, one can use this package even with utf8-encoded source for
64 \hologo{LaTeX}, \hologo{LuaLaTeX}, or \hologo{XeLaTeX}.
65 \end{abstract}
66
67 \noindent\hrulefill
68
69 \begin{otherlanguage}{french}
70 \begin{abstract}
71 La documentation française pour l'utilisateur de l'extension
72 \pkg{paresse} est disponible sous le nom de \texttt{paresse-fra}.
73 \end{abstract}
74 \end{otherlanguage}
75
76 \noindent\hrulefill
77 \vspace{\baselineskip}
78
79 \tableofcontents{}
80
81
82 \section{Introduction}
83 \label{sec:introduction}
84
85 This package provides only a `quick and low-cost' access to greek letters
86 which one can obtain with a macro such as \cs{alpha} or \cs{Omega}. It
87 provides also an environment and a macro which make possible the use of §
88 to type in those letters. Because of an \cs{ensuremath} we are not bound to
89 explicitly enter ---i.e. by typing |$ $| or |\( \)| or else |\[ \]| or
90 anything whatsoever with the same effect--- mathematics mode to obtain a
91 greek letter.
92
93 The idea of the method is from T.~\textsc{Lachand-Robert} and described
94 in~\cite{tlachand}. I have just add the \cs{ensuremath} which is so
95 agreeable to write macros.
96
97 There is \emph{no} macros for the lowercase omicron nor for the
98 uppercase alpha, beta\dots{} that one can obtain with the latin roman
99 letters with the same look. I have not had the courage nor the
100 strength to build a solution which would provide a means of obtaining
101 an upright uppercase alpha in a math formula enbedded in an italic
102 boldfaced text.
103
104 Even if the meaning of the French `paresse' is just `lazyness' I would
105 like to enphasize that the name of this package comes from the fact
106 that the sign § can be used to point at a paragraph and looks like an
107 S. So there is no connection between the name and the not unfrequent
108 sin of the same (French) name\dots{} or maybe\dots{}
109
110 \subsection{Why a 5th Version?}
111
112 I was happily using \pkg{paresse} almost every day until when, some days ago,
113 all hell broke loose! I was insulted just by loading \pkg{paresse}. To put it in
114 a nutshell: the culprit is an improvement of the \LaTeXe{} kernel which wreaks
115 havoc in the highly unconventional code of \pkg{skeyval}. As it seems very
116 improbable that that package will be corrected any time soon, I've decided to
117 rewrite some parts of \pkg{paresse} with expl3.
118
119 So that is why I touch the more than seven-year-old code of this package.
120
121 With this 5th version come two \emph{sub}-packages: \pkg{paresse-old} and
122 \pkg{paresse-utf8} which are directly loadable. They have the same options and
123 commands as \pkg{paresse} itself. In fact \pkg{paresse} loads one of them
124 according to the situation.
125
126 One will use \pkg{paresse-utf8} if and only if the source is utf-8 encoded and
127 compiled with \texttt{latex} i.~e. with the \TeX-engine and the \LaTeX{}
128 format. In all other case, on will use \pkg{paresse-old}.
129
130 The documentation of \pkg{paresse} covers the use of the three packages.
131
132 \subsection{Why a 4th Version?}
133
134 I don't remember exactly on what occasion \TO age, disk crash and computer
135 mishap aiding\TF and even less when \TO more than a year ago, I'm
136 afraid\footnote{I wrote this section in 2013 when the 4th version was
137 published.}\TF Christian \textsc{Tellechea} wrote me that he would be
138 glad to use \pkg{paresse} in his utf-8 encoded sources with \hologo{LaTeX}
139 \TO not with \hologo{XeLaTeX} nor \hologo{LuaLaTeX}.
140
141 We exchanged emails, Christian sent me working material. He even made
142 me the gift of two versions, the second better for the identification
143 of the encoding passed, as an option, to \pkg{inputenc}. However I
144 procrastinated. My personal life and my job may have interfered with
145 the development of this package.
146
147 At last, here is the thing.
148
149 The newest feature should escape the user of \hologo{LuaLaTeX}
150 or \hologo{XeLaTeX} and even of \hologo{LaTeX} loading \pkg{inputenc}
151 with an option such as \texttt{latin1} or \texttt{latin9}. However,
152 henceforth, one can use this package with \hologo{LaTeX} loading
153 \pkg{inputenc} with option \texttt{utf8}.
154
155 I take advantage of this new version to add a \PS-macro:
156 \PSVerb{Z} which produces \S, symbol already available with
157 |\S|, so I don't dare to present it as a real ``shortcut''.
158
159 \subsection{Why a 3rd Version?}
160
161 With a mail Claudio \textsc{Beccari} kindly informed me that there was
162 an encoding of the greek alphabet with latin letters some 15~years
163 before I commited this extension. This encoding was devised by Sylvio
164 \textsc{Levi} who, at the time, was designing the first greek font for
165 \TeX, using the correspondance between greek and US keyboard. Claudio
166 wrote to me, and I can't but agree with him, that if one is used to
167 \textsc{Levi}'s encoding, one would rather keep one's habit in order
168 to use \pkg{paresse}.
169
170 I, then, decided to provide a new couple of mutually exclusive
171 options: the first one is \Option{legacy} with which one obtain the
172 original encoding of this extension and which is active by default,
173 the other one is \Option{Levi} which provides Sylvio \textsc{Levi}'s
174 encoding.
175
176 I take advantage of this update to make some cosmetic changes: from now on
177 all inner \emph{secret} macros\footnote{Macros \emph{à la mode}
178 \LaTeXe{}. As of version~5.0, partially \emph{translated} in expl3, when
179 dealing with expl3 commands and variables I use the prefix
180 \texttt{paresse}.} have a name which begins with \cs{GA@}; the |.dtx|
181 file is reorganised to facilitate the translation of the documentation.
182
183 \section{Usage}
184
185 One loads the package with |\usepackage{paresse}|.
186 When one uses \hologo{LaTeX} with an 8-bit encoded source
187 (e.g. \texttt{latin9}), one must load \pkg{paresse} \textbf{after} the
188 package \pkg{inputenc} whith the correct option.
189
190 In all cases the sign § must be recognised as a letter by \TeX.
191
192
193 One will obtain the same behaviour, but for the exception pointed out in
194 paragraph \textbf{restriction} on page~\pageref{restriction}, with
195 \pkg{inputenc} and option \texttt{utf8}.
196
197 There is no such restriction when one compiles with \hologo{LuaLaTeX}
198 or \hologo{XeLaTeX} a source encoded in utf-8.
199
200 By default the package is loaded with option |wild| and so the macros
201 such as |§a| are immediately available. If one prefers one can choose
202 the option \Option{tame} by writing |\usepackage[tame]|\BOP|{paresse}|. One
203 must then use the command \cs{ActiveLaParesse} or the environment
204 |ParesseActive| to use the `§-macros'.
205
206 When `paresse' is active, one has just to type |§a| in to obtain
207 \(\alpha\). One has access, by the same means, to all the other greek
208 letters to which a macro is devoted such as \cs{alpha}, see the
209 tables~\ref{codageorig} and~\ref{codagelevi}. One obtains
210 \(\alpha^{\beta}\) with |\(§a^{§b}\)| when § is active.
211
212 \paragraph{Restriction}
213 One will note that the curly braces are \emph{not} compulsory and that
214 one obtains the same result with just |\(§a^§b\)| \textbf{unless} one
215 uses a utf-8 encoded source with \hologo{LaTeX}.\label{restriction}
216
217 \section{The Package Options}
218 \label{sec:keys}
219
220 In the margin the default options are in boldface.
221
222
223
224 \begin{itemize}
225 \item \Option{tame} \DescribeOption{tame / \textbf{wild}} is the contrary of
226 \Option{wild} which is the option by default. When \Option{tame}
227 reigns, one \textbf{must} use an environment |ParesseActive| or a
228 command \cs{ActiveLaParesse} in order to use the §-macros.
229
230 \item \Option{Levi} \DescribeOption{\textbf{legacy} / Levi} is the
231 contrary of \Option{legacy} which is the default. With
232 \Option{legacy} one uses the original encoding of
233 \pkg{paresse} as it is given by the
234 table~\ref{codageorig}. If the option \Option{Levi} is enforced, one
235 uses the Sylvio \textsc{Levi} encoding, see the
236 table~\ref{codagelevi}.
237
238 \item \Option{ttau} \DescribeOption{ttau / \textbf{ttheta}} is the contrary of
239 \Option{ttheta} which is selected by default. When \Option{ttheta}
240 is active |§t| gives \(\theta\) in the contrary |§t| gives
241 \(\tau\). In all cases, \(\theta\) is given by |§v| and \(\tau\) by
242 |§y|. That option is ineffective when one has chosen
243 \Option{Levi}.
244
245 \textbf{Remark:} when one has chosen the option
246 \Option{legacy}, \(\Theta\) is `regularly' obtained with |§V| and
247 \emph{also} with |§T| whatever is the chosen option. In the case of
248 the option \Option{Levi}, |§V| doesn't correspond to any greek letter.
249
250 \item \Option{epsilon} \DescribeOption{epsilon / \textbf{varepsilon}} is the
251 contrary of \Option{varepsilon} which is selected by default. With
252 \Option{epsilon}, |§e| gives \(\epsilon\) otherwise |§e| gives
253 \(\varepsilon\).
254
255 \item The following `couples' behave as \Option{epsilon},
256 \Option{varepsilon}: \Option{theta} and \Option{vartheta};
257 \Option{pi} and \Option{varpi}; \Option{rho} and \Option{varrho};
258 \Option{sigma} and \Option{varsigma}; \Option{phi} and
259 \Option{varphi}.
260 \end{itemize}
261
262 The default options are \Option{varepsilon}, \Option{theta},
263 \Option{pi}, \Option{rho}, \Option{sigma}, \Option{varphi},
264 \Option{wild} and \Option{legacy}. That ensures that this 3rd
265 version behaves, by default, as the preceding one.
266
267 \section{Commands and Environment}
268
269 \DescribeMacro{\makeparesseletter}
270 This command gives the letter-catcode to the `character' §. After that
271 one can use § in the name of a macro, for instance. It corresponds to
272 the well-known |\makeatletter|.
273
274 \DescribeMacro{\makeparesseother}
275 This macro gives the catcode \emph{other} to the character §. It is
276 the `contrary' of the preceding one. It corresponds to |\makeatother|.
277
278 This macro is inactivated when one uses a utf-8 encoding with
279 \hologo{LaTeX}. In such a case it wouldn't have a clear meaning. When
280 used it issues a warning in the |.log| file.
281
282 \DescribeMacro{\ActiveLaParesse}
283 This macro makes § active and thus enable one to access the macros the
284 name of which begins with § such as |§a|. A list of these macros and
285 theirs meanings is given in the tables~\ref{codageorig}
286 and~\ref{codagelevi}.
287
288 \DescribeEnv{ParesseActive}
289 In this environment § is active and one can use the §-macros. One
290 could use this environment if one want to use the §-macros when the
291 package \texttt{paresse} is loaded whith the option \texttt{tame}.
292
293 \newpage{}
294
295 \section{Tables of the Macros}
296
297 \subsection{\pkg{paresse}'s Original Encoding}
298
299 This is the active encoding when one choses the options \Option{legacy} and
300 \Option{ttheta} which are the default.
301
302 This version~5.0 adds \(\varsigma\) obtained with \PSVerb{j}.
303
304 \begin{center}\Large
305 \begin{ParesseActive} \label{codageorig}
306 \begin{tabular}{*4{||>{\ttfamily \S}c|c}||}\hline
307 a & §a & b & §b & g & §g & d & §d\\ \hline
308 e & §e & z & §z & h & §h & v & §v\\ \hline
309 i & §i & k & §k & l & §l & m & §m\\ \hline
310 n & §n & x & §x & p & §p & r & §r\\ \hline
311 s & §s & y & §y & u & §u & f & §f\\ \hline
312 c & §c & q & §q & w & §w & j & §j\\ \hline\hline
313 G & §G & D & §D & V & §V & L & §L\\ \hline
314 X & §X & P & §P & S & §S & U & §U\\ \hline
315 F & §F & Q & §Q & W & §W & Z & §Z\\ \hline
316 \end{tabular}
317 \end{ParesseActive}
318 \end{center}
319
320 \vspace{2\baselineskip}
321
322 \begin{center}\Large
323 \begin{ParesseActive} \label{codageorig}
324 \begin{tabular}{*7{||>{\ttfamily \S}c|c}||}\hline
325 a&§a&b&§b&c&§c&d&§d&e&§e&f&§f\\ \hline
326 g&§g&h&§h&i&§i&j&§j&k&§k&l&§l\\ \hline
327 m&§m&n&§n&o& &p&§p&q&§q&r&§r\\ \hline
328 s&§s&t&§t&u&§u&v&§v&w&§w&x&§x\\ \hline
329 y&§y&z&§z&A& &B& &C& &D&§D\\ \hline
330 E& &F&§F&G&§G&H& &I& &J& \\ \hline
331 K& &L&§L&M& &N& &O& &P&§P\\ \hline
332 Q&§Q&R& &S&§S&T&§T&U&§U&V&§V\\ \hline
333 W&§W&X&§X&Y& &Z&§Z&\multicolumn{4}{c||}{}\\ \hline
334 \end{tabular}
335 \end{ParesseActive}
336 \end{center}
337
338 \paragraph{Remarks : } all the latin letters used in the name of the
339 §-macros, but for {\ActiveLaParesse §v, §y, §q and §j}, are loaded with
340 reminiscences, I hope \texttt{:-)} and the greek uppercases are
341 obtained with the (latin) corresponding uppercases.
342
343 \pagebreak[4]
344
345 \subsection{Sylvio \textsc{Levi}'s Encoding}
346
347 One make this encoding active with the option \Option{Levi}.
348
349 \begin{center}\Large
350 \begin{ParesseActive} \label{codagelevi}
351 \begin{tabular}{*4{||>{\ttfamily \S}c|c}||}\hline
352 a & §a & b & §b & g & §g & d & §d\\ \hline
353 e & §e & z & §z & h & §h & j & §v\\ \hline
354 i & §i & k & §k & l & §l & m & §m\\ \hline
355 n & §n & x & §x & p & §p & r & §r\\ \hline
356 s & §s & t & §y & u & §u & f & §f\\ \hline
357 q & §c & y & §q & w & §w & c & \(\varsigma\)\\ \hline\hline
358 G & §G & D & §D & J & §V & L & §L\\ \hline
359 X & §X & P & §P & S & §S & U & §U\\ \hline
360 F & §F & Y & §Q & W & §W & Z & §Z\\ \hline
361 \end{tabular}
362 \end{ParesseActive}
363 \end{center}
364
365 Sylvio \textsc{Levi}'s encoding gives a direct acces to \cs{varsigma}
366 (\(\varsigma\)) with |§||c| and is different from the original encoding
367 just for the letters {\ActiveLaParesse §v, §y, §c et §q}. Here is a
368 summary of theses differences:
369
370 \begin{center}
371 \newcommand\CT[1]{\multicolumn{1}{c|}{\texttt{#1}}}
372 \begin{ParesseActive}
373 \begin{tabular}{|l|*{7}{c|}}\hline
374 greek letters
375 & §v & §y & §c & §q & §V & §Q & \(\varsigma\)\\\hline
376 original encoding
377 &\CT{\S{}v/\S{}t}&\CT{\S{}y/\S{}t}&\CT{\S{}c}
378 &\CT{\S{}q}&\CT{\S{}V/\S{}T}&\CT{\S{}Q}& \CT{\S{}j} \\\hline
379 S. \textsc{Levi}'s encoding
380 &\CT{\S{}j}&\CT{\S{}t}&\CT{\S{}q}&\CT{\S{}y}
381 &\CT{\S{}J}&\CT{\S{}Y} & \CT{\S{}c}\\\hline
382 \end{tabular}
383 \end{ParesseActive}
384 \end{center}
385
386 \vspace{\stretch{2}}
387
388 \begin{thebibliography}{99}
389 \addcontentsline{toc}{section}{Bibliographie}
390 \bibitem{tlachand} T.~\textsc{Lachand-Robert}.
391 \emph{La maîtrise de \TeX{} et \LaTeX{}}.
392 Masson, Paris, Milan, Barcelone, \oldstylenums{1995}.
393 \textsc{isbn} : \texttt{2-225-84832-7}.
394 \end{thebibliography}
395
396 \vspace{\stretch{2}}
397
398 \noindent\hspace*{0.2\textwidth}\hrulefill\hspace*{0.2\textwidth}
399 \begin{center}
400 \textsl{Le TeXnicien de Surface scripsit.}
401 \end{center}
402 \noindent\hspace*{0.2\textwidth}\hrulefill\hspace*{0.2\textwidth}
403
404 \vspace*{\stretch{2}}
405
406 \end{document}
407 \endinput
408 %%
409 %% End of file `paresse-eng.tex'.