From fe937c977dab62691fe93e39afc85bc7ceb59990 Mon Sep 17 00:00:00 2001 From: Karl Berry Date: Wed, 13 Aug 2008 23:49:08 +0000 Subject: paresse 2 (13aug08) git-svn-id: svn://tug.org/texlive/trunk@10313 c570f23f-e606-0410-a88d-b1316a301751 --- Master/texmf-dist/source/latex/paresse/LISEZMOI | 38 ++ Master/texmf-dist/source/latex/paresse/Makefile | 241 ++++----- Master/texmf-dist/source/latex/paresse/README | 40 ++ .../source/latex/paresse/english-paresse.dtx | 402 --------------- Master/texmf-dist/source/latex/paresse/paresse.dtx | 543 +++++++++++++++++---- Master/texmf-dist/source/latex/paresse/paresse.ins | 89 ++-- 6 files changed, 676 insertions(+), 677 deletions(-) create mode 100755 Master/texmf-dist/source/latex/paresse/LISEZMOI create mode 100755 Master/texmf-dist/source/latex/paresse/README delete mode 100644 Master/texmf-dist/source/latex/paresse/english-paresse.dtx (limited to 'Master/texmf-dist/source/latex/paresse') diff --git a/Master/texmf-dist/source/latex/paresse/LISEZMOI b/Master/texmf-dist/source/latex/paresse/LISEZMOI new file mode 100755 index 00000000000..0a0d66064f4 --- /dev/null +++ b/Master/texmf-dist/source/latex/paresse/LISEZMOI @@ -0,0 +1,38 @@ +% -*- coding: utf-8 -*- +% Time-stamp: <2008-08-13T17:13:06 (cest) [yvon sur hypatie]> + +====================================================================== + +PARESSE version 2 2008/08/13 Édition du cinquantenaire + +====================================================================== + +Ce lot comprend + +LISEZMOI % ce fichier +README % la version anglaise + +Makefile % pour les utilisateurs de *nix +paresse.dtx % fichier source +paresse.ins % fichier d'installation +paresse.sty % le fichier de l'extension + +paresse.pdf % documentation anglaise +paresse-fr.pdf % documentation française +paresse-ex-fr.pdf % exemple en français +paresse-ex-en.pdf % le même en anglais +paresse-fourier-fr.pdf % exemple en français avec fourier +paresse-fourier-en.pdf % le même en anglais + +paresse.tds.zip % l'archive conforme à la TDS + +====================================================================== + +Cette extension est faite pour taper « facilement » les lettres +grecques avec un minimum d'effort ;) Elle ne concerne que les +lettres grecques qui ont un nom de macro comme \alpha ou \Omega. + + +-- +Le \TeX nicien de surface +Yvon.Henel@wanadoo.fr diff --git a/Master/texmf-dist/source/latex/paresse/Makefile b/Master/texmf-dist/source/latex/paresse/Makefile index 221c66ed2c9..da032a3c616 100644 --- a/Master/texmf-dist/source/latex/paresse/Makefile +++ b/Master/texmf-dist/source/latex/paresse/Makefile @@ -4,53 +4,69 @@ # many thanks to Harald Harders whose kerntest.xml I have also # hacked to obtain my paresse.xml # --------------------------------------------------------------- +PKGNAME=paresse +VERSION=2 # Edition du cinquantenaire -SRCDIR=paresse -INSTALLDIR=`kpsewhich --expand-path='$$TEXMFLOCAL'`/tex/latex/paresse -DOCDIR=`kpsewhich --expand-path='$$TEXMFLOCAL'`/doc/latex/paresse -SOURCEDIR=`kpsewhich --expand-path='$$TEXMFLOCAL'`/source/latex/paresse -VERSION=1a +SOURCE= \ + Makefile \ + $(PKGNAME).dtx \ + $(PKGNAME).ins \ + LISEZMOI \ + README + +COMPDFDOC= \ + $(PKGNAME).pdf \ + $(PKGNAME)-ex-fr.pdf \ + $(PKGNAME)-ex-en.pdf \ + $(PKGNAME)-fourier-fr.pdf \ + $(PKGNAME)-fourier-en.pdf \ -TEX= \ - paresse.sty \ +PDFDOC= \ + $(PKGNAME)-en.pdf \ + $(COMPDFDOC) + +SRCDOC= \ + $(PKGNAME).dtx + +TEXDOC= \ + $(PKGNAME)-en.tex \ + $(PKGNAME)-ex-fr.tex \ + $(PKGNAME)-ex-en.tex \ + $(PKGNAME)-fourier-fr.tex \ + $(PKGNAME)-fourier-en.tex \ DOC= \ - paresse.pdf \ - exemple.tex \ - exemple-fourier.tex \ - exemple-fourier.pdf \ - exemple.pdf \ - LISEZMOI \ - paresse.xml \ + $(PDFDOC)\ + $(SRCDOC)\ + $(TEXDOC) -ENGLISHDOC= \ - paresse.pdf \ - example.tex \ - example.pdf \ - example-fourier.tex \ - example-fourier.pdf \ - README \ - paresse.xml \ +CTANDOC= \ + $(PKGNAME)-fr.pdf \ + $(COMPDFDOC) -SOURCE= \ - Makefile \ - paresse.dtx \ - paresse.ins \ +DECHETS = \ + $(PKGNAME)-fr.pdf\ + $(COMPDFDOC)\ + $(TEXDOC) + +REPERTS = \ + doc \ + tex \ + source + +TEX = $(PKGNAME).sty -ENGLISHSOURCE= \ - Makefile \ - english-paresse.dtx \ - english-paresse.ins \ # --------------------------------------------------------------- -.SUFFIXES: .sty .ins .dtx .dvi .ps .pdf +.SUFFIXES: .sty .ins .dtx .pdf # --------------------------------------------------------------- .ins.sty: latex $< .dtx.pdf: + pdflatex $< pdflatex $< makeindex -s gind.ist $(*D)/$(*F) makeindex -s gglo.ist -o $(*D)/$(*F).gls $(*D)/$(*F).glo @@ -60,142 +76,85 @@ ENGLISHSOURCE= \ pdflatex $< pdflatex $< -.dvi.ps: - dvips -o $(*D)/$(*F).ps $(*D)/$(*F) - # --------------------------------------------------------------- +all: $(PKGNAME).sty $(PDFDOC)\ + $(TEXDOC) $(PKGNAME).ins + @-mv paresse.pdf paresse-fr.pdf + @-mv paresse-en.pdf paresse.pdf + + +# produce rename + +produce: $(PKGNAME).sty $(PDFDOC)\ + $(TEXDOC) $(PKGNAME).ins + +rename: + @-mv paresse.pdf paresse-fr.pdf + @-mv paresse-en.pdf paresse.pdf + help: @-echo "******************************************************" - @-echo "** Choisir une des options :" - @-echo "== Choose one of the options:" - @-echo "** 'doc' ou 'frenchdoc' pour la documentation" - @-echo "== 'englishdoc' for the English documentation" - @-echo "** 'sty' -> paresse.sty (version francaise)" - @-echo "== 'eng-sty' -> paresse.sty (English version)" - @-echo "** 'dist'-> paresse.sty & frenchdoc & englishdoc" - @-echo "** 'clean' petit nettoyage" - @-echo "** 'distclean' (encore plus propre)" - @-echo "** 'tar' -> paresse-VERSION.tar.gz" - @-echo "** 'install' pour l'installation" - @-echo "** de l'extension et de la documentation." - @-echo "== OR 'install-english' for an installation" - @-echo "== of the English version of package and documentation." - @-echo "************ NOTA BENE ***********" - @-echo "** l'installation est faite par defaut dans TEXMFLOCAL " - @-echo "== by default installs in TEXMFLOCAL" - @-echo " c'est a dire / that is : "`kpsewhich --expand-path='$$TEXMFLOCAL'` + @-echo "** Choisir une des options : *" + @-echo "== Choose one of the options: *" + @-echo "** 'all' pour produire tous les fichiers *" + @-echo "== 'all' to produce all the files *" + @-echo "** 'clean' suppression des fichiers auxiliaires *" + @-echo "== 'clean' delete the auxiliary files *" + @-echo "** 'distclean' pour ne conserver que les sources *" + @-echo "== 'distclean' to keep only the sources *" @-echo "******************************************************" -sty: paresse.sty - -eng-sty: - latex english-paresse.ins - -dist: sty example.pdf exemple.pdf \ - english-paresse.pdf paresse.pdf \ - exemple-fourier.pdf example-fourier.pdf +dist: all clean # --------------------------------------------------------------- clean: - @-rm -f paresse.glo paresse.gls paresse.idx paresse.ilg - @-rm -f paresse.ind paresse.aux paresse.log paresse.toc - @-rm -f english-paresse.glo english-paresse.gls - @-rm -f english-paresse.ind english-paresse.aux - @-rm -f english-paresse.idx english-paresse.ilg - @-rm -f english-paresse.log english-paresse.toc + @-rm -f *.{out,glo,gls,idx,ilg,ind,aux,log,toc} @-rm -f *~ - @-rm -f example.aux example.dvi - @-rm -f example.log example.ps - @-rm -f exemple.aux exemple.dvi - @-rm -f exemple.log exemple.ps - @-rm -f example-fourier.aux example-fourier.dvi - @-rm -f example-fourier.log example-fourier.ps - @-rm -f exemple-fourier.aux exemple-fourier.dvi - @-rm -f exemple-fourier.log exemple-fourier.ps distclean: clean - @-rm -f paresse.sty - @-rm -f english-paresse.pdf - @-rm -f french-paresse.pdf - @-rm -f paresse.pdf - @-rm -f example.pdf - @-rm -f exemple.pdf - @-rm -f exemple-fourier.pdf - @-rm -f example-fourier.pdf - @-rm -f exemple.pdf + @-rm -f $(DECHETS) + @-rm -f $(PKGNAME).sty # --------------------------------------------------------------- -tar: dist clean - echo paresse-$(VERSION).tar.gz - -rm -f paresse-$(VERSION).tar.gz - tar czCf .. paresse-$(VERSION).tar.gz \ - $(SRCDIR)/README \ - $(SRCDIR)/Makefile \ - $(SRCDIR)/paresse.dtx \ - $(SRCDIR)/english-paresse.dtx \ - $(SRCDIR)/paresse.ins \ - $(SRCDIR)/paresse.pdf \ - $(SRCDIR)/english-paresse.pdf \ - $(SRCDIR)/paresse.xml \ - $(SRCDIR)/example.tex \ - $(SRCDIR)/exemple.tex \ - $(SRCDIR)/example.pdf \ - $(SRCDIR)/exemple.pdf \ - $(SRCDIR)/example-fourier.pdf \ - $(SRCDIR)/exemple.pdf \ - -# --------------------------------------------------------------- - -texlive: sty clean - @-rm -rf texmf-dist - mkdir -p texmf-dist/tex/latex/paresse - mkdir -p texmf-dist/doc/latex/paresse - mkdir -p texmf-dist/source/latex/paresse - cp $(TEX) texmf-dist/tex/latex/paresse - cp $(DOC) texmf-dist/doc/latex/paresse - cp $(SOURCE) texmf-dist/source/latex/paresse +texlive: dist + @-rm -rf $(REPERTS) + @-mkdir -p tex/latex/$(PKGNAME) + @-mkdir -p doc/latex/$(PKGNAME) + @-mkdir -p source/latex/$(PKGNAME) + @-cp $(TEX) tex/latex/$(PKGNAME) + @-cp $(CTANDOC) doc/latex/$(PKGNAME) + @-cp $(TEXDOC) doc/latex/$(PKGNAME) + @-cp $(SOURCE) source/latex/$(PKGNAME) + @-mkdir -p $(PKGNAME) + @-cp $(CTANDOC) ./$(PKGNAME) + @-cp $(SOURCE) ./$(PKGNAME) + @-cp $(PKGNAME).sty ./$(PKGNAME) # --------------------------------------------------------------- zip: texlive - -@rm -f paresse-$(VERSION).zip - zip -r paresse-$(VERSION).zip texmf-dist - @-rm -r texmf-dist/ + @-rm -f $(PKGNAME).zip + @-zip -r $(PKGNAME) $(REPERTS) + @-rm -rf $(REPERTS) + @mv $(PKGNAME).zip $(PKGNAME).tds.zip + @zip -r $(PKGNAME) $(PKGNAME) + @zip -r $(PKGNAME) $(PKGNAME).tds.zip + @-rm -rf $(PKGNAME) + @-rm -f $(PKGNAME).tds.zip # --------------------------------------------------------------- -install: sty doc - if [ ! -d $(INSTALLDIR) ]; then mkdir -p $(INSTALLDIR); fi - if [ ! -d $(DOCDIR) ]; then mkdir -p $(DOCDIR); fi - if [ ! -d $(SOURCEDIR) ]; then mkdir -p $(SOURCEDIR); fi - install -m644 $(TEX) $(INSTALLDIR) - install -m644 $(DOC) $(DOCDIR) - install -m644 $(SOURCE) $(SOURCEDIR) - texhash -# --------------------------------------------------------------- - -install-english: eng-sty englishdoc - @-mv english-paresse.pdf paresse.pdf - if [ ! -d $(INSTALLDIR) ]; then mkdir -p $(INSTALLDIR); fi - if [ ! -d $(DOCDIR) ]; then mkdir -p $(DOCDIR); fi - if [ ! -d $(SOURCEDIR) ]; then mkdir -p $(SOURCEDIR); fi - install -m644 $(TEX) $(INSTALLDIR) - install -m644 $(ENGLISHDOC) $(DOCDIR) - install -m644 $(ENGLISHSOURCE) $(SOURCEDIR) - texhash +ctan: zip distclean # --------------------------------------------------------------- -paresse.sty: paresse.ins paresse.dtx -doc: sty paresse.pdf exemple.pdf \ - exemple-fourier.pdf -englishdoc: eng-sty english-paresse.pdf \ - example.pdf example-fourier.pdf - -frenchdoc: doc +$(PKGNAME).sty: $(PKGNAME).ins $(PKGNAME).dtx +doc: $(PKGNAME).ins $(PKGNAME).pdf +$(TEXDOC): $(PKGNAME).ins $(PKGNAME).dtx +$(PDFDOC): $(TEXDOC) # --------------------------------------------------------------- # echu e an abaden # Le \TeX nicien de surface 2005-03-01 diff --git a/Master/texmf-dist/source/latex/paresse/README b/Master/texmf-dist/source/latex/paresse/README new file mode 100755 index 00000000000..91ffc5e3b48 --- /dev/null +++ b/Master/texmf-dist/source/latex/paresse/README @@ -0,0 +1,40 @@ +% Time-stamp: <2008-08-13T17:10:59 (cest) [yvon sur hypatie]> + +====================================================================== + +PARESSE version 2 2008/08/13 50th anniversary edition + +====================================================================== + +This bundle should contain + +README % this file +LISEZMOI % French version + +Makefile % for *nix users +paresse.dtx +paresse.ins +paresse.sty + +paresse.pdf % English documentation +paresse-fr.pdf % French documentation +paresse-ex-en.pdf % English Example +paresse-ex-fr.pdf % French Example +paresse-fourier-en.pdf % English Example with fourier +paresse-fourier-fr.pdf % French Example with fourier + +paresse.tds.zip % the tds compliant archive + +====================================================================== + +This package provides a means of typing "easily" greek letters +with the least possible effort ;) It takes care only of the +letters which have a macro name as \alpha or \Omega. + +====================================================================== + +Happy TeXing and all that. + +-- +Le \TeX nicien de surface +le.texnicien.de.surface@wanadoo.fr diff --git a/Master/texmf-dist/source/latex/paresse/english-paresse.dtx b/Master/texmf-dist/source/latex/paresse/english-paresse.dtx deleted file mode 100644 index 9a9490d70e4..00000000000 --- a/Master/texmf-dist/source/latex/paresse/english-paresse.dtx +++ /dev/null @@ -1,402 +0,0 @@ -% \iffalse meta-comment -% -%%%% Copyright (C) 2004 by Yvon Henel -%%%% -------------------------------------------------------- -% -% -% This file may be distributed and/or modified under the -% conditions of the LaTeX Project Public License, either version 1.2 -% 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 -% -% and version 1.2 or later is part of all distributions of LaTeX -% version 1999/12/01 or later. -% \fi -% -% \iffalse -%\NeedsTeXFormat{LaTeX2e}[1999/12/01] -%\def\fileversion{v1a} -%\def\filedate{2005/03/01} -%\def\fileinfo{file paresse.dtx (English version) by The `\TeX nicien de surface'} -%\ProvidesPackage{paresse} -% [\filedate\space\fileversion\space\fileinfo] -% -%<*driver> -\documentclass[a4paper]{ltxdoc} -\usepackage[latin1]{inputenc} -\usepackage[T1]{fontenc} -\usepackage[tame]{paresse} -\usepackage{xspace,url,array,ifthen} -\IfFileExists{lmodern.sty}{\usepackage{lmodern}}{} -\usepackage[frenchb,english]{babel} -% comment out the following line to obtain the full code with explanations -\OnlyDescription -\EnableCrossrefs -\CodelineIndex -\RecordChanges -\begin{document} - \DocInput{english-paresse.dtx} -\end{document} -% -% \fi -% -% \CheckSum{319} -% -% \CharacterTable -% {Upper-case \A\B\C\D\E\F\G\H\I\J\K\L\M\N\O\P\Q\R\S\T\U\V\W\X\Y\Z -% Lower-case \a\b\c\d\e\f\g\h\i\j\k\l\m\n\o\p\q\r\s\t\u\v\w\x\y\z -% Digits \0\1\2\3\4\5\6\7\8\9 -% Exclamation \! Double quote \" Hash (number) \# -% Dollar \$ Percent \% Ampersand \& -% Acute accent \' Left paren \( Right paren \) -% Asterisk \* Plus \+ Comma \, -% Minus \- Point \. Solidus \/ -% Colon \: Semicolon \; Less than \< -% Equals \= Greater than \> Question mark \? -% Commercial at \@ Left bracket \[ Backslash \\ -% Right bracket \] Circumflex \^ Underscore \_ -% Grave accent \` Left brace \{ Vertical bar \| -% Right brace \} Tilde \~} -% -% -% \changes{v0.0}{2004/02/07}{New name, some redefinitions, first public -% release} -% \changes{v1}{2004/04/17}{New documentation} -% \changes{v1a}{2005/03/01}{Error in Infofile corrected} -% -% \GetFileInfo{paresse.sty} -% -% \DoNotIndex{\newcommand,\newenvironment,\i,\ae,\oe,\DeclareOption,% -% \ifthenelse,\if,\else,\fi,\tr@@c,\ExecuteOptions,\ProcessOptions,% -% \relax,\MessageBreak,\CurrentOption,\RequirePackage,\PackageError,% -% \def,\endinput,\let,\boolean,\newboolean,\setboolean,\renewcommand,% -% \afterassignment,\global,\aftergroup,\bgroup,\egroup,\csname,% -% \endcsname,\emph,\catcode,\space,\string,\next,\active,\rmfamily,\rule,% -% \textsl,\upshape, \alpha, \beta, \gamma, \delta, \epsilon, % -% \varepsilon, \zeta, \eta, \theta, \vartheta, \iota, \kappa, % -% \lambda, \mu, \nu, \xi, \pi, \varpi, \rho, \varrho, \sigma, % -% \varsigma, \tau, \upsilon, \phi, \varphi, \chi, \psi, \omega, % -% \Delta, \Gamma, \Theta, \Lambda, \Xi, \Pi, \Sigma, \Upsilon, % -% \Phi, \Psi, \Omega, \newif, \ifnum, \count@, \ensuremath} % -% -% \title{The package \textsf{paresse}\thanks{This document corresponds to the -% file \textsf{paresse}~\fileversion, dated \filedate.}\\ -% English translation by the author\footnote{Any comment about the -% translation is welcome.}} -% \author{Le \TeX nicien de surface\\ \url{Yvon.Henel@wanadoo.fr}} -% -% \maketitle -% \begin{otherlanguage}{french} -% \begin{abstract} -% Ce module, reprenant un exemple de T.~\textsc{Lachand-Robert} -% dans~\cite{tlachand}, fournit un moyen de taper des lettres -% grecques isolées à l'aide du caractère actif et -% redéfini. Au lieu de |\(\alpha\)| ou tape |§a| pour obtenir -% \(\alpha\). -% -% \textbf{Important} : Il doit être chargé \textbf{après} |inputenc| si -% ce dernier est utilisé. De plus, il faut que le signe § soit une lettre -% pour \TeX. -% \end{abstract} -% \end{otherlanguage} -% \begin{abstract} -% This package implements an example from T.~\textsc{Lachand-Robert} -% in~\cite{tlachand}. It provides a means of typing isolated -% greek letters with the character § activated and -% redefined. Instead of |\(\alpha\)| one types |§a| to obtain -% \(\alpha\). -% -% \textbf{Important}: You have to load it \textbf{after} the -% |inputenc| package if the latter is used. Moreover the sign -% § must be a letter for \TeX. -% \end{abstract} -% -% \section{Introduction} -% This is the English version of the |paresse| package. -% -% This package provides only a `quick and low-cost' access to greek letters -% which one can obtain with a macro such as |\alpha| or |\Omega|. It provides -% also an environment and a macro which make possible the use of § to type in -% those letters. Because of an |\ensuremath| we are not bound to explicitly -% enter ---~i.e. by typing |$ $| or |\( \)| or else |\[ \]| or anything -% whatsoever with the same effect~--- mathematics mode to obtain a greek -% letter. -% -% The idea of the method is from T.~\textsc{Lachand-Robert} and described -% in~\cite{tlachand}. I have just add the -% |\ensuremath| which is so agreeable to write macros. -% -% There is \emph{no} macros for the lowercase omicron nor for the uppercase -% alpha, beta... that one can obtain with the latin roman letters with the -% same look. I have not had the courage nor the strength to build a solution -% which would provide a means of obtaining an upright uppercase alpha in a -% math formula enbedded in an italic boldfaced text. -% -% Even if the meaning of the French `paresse' is just `lazyness' I would -% like to enphasize that the name of this package comes from the fact that the -% sign § can be used to point at a paragraph and looks like an S. So there is -% no connection between the name and the not unfrequent sin of the same -% (French) name... or maybe... -% -% \section{Usage} -% -% One loads the package with |\usepackage{paresse}| -% \textbf{after} the package |inputenc|. The sign § must be recognised as a -% letter by \TeX. On can use for instance |inputenc| with option |latin1| for -% such a purpose. -% -% By default the package is loaded with option |wild| and so the macros such -% as |§a| are immediately available. If one prefers one can choose the option -% |tame| by writing -% |\usepackage[tame]{paresse}|. One must then use the -% command |\ActiveLaParesse| or the environment |ParesseActive| -% to use the `§-macros'. -% -% When `paresse' is active, one has just to type |§a| in to obtain -% \(\alpha\). One has access, by the same means, to all the other -% greek letters to which a macro is devoted such as |\alpha|, -% see the table page~\pageref{tableau}. One obtains -% \(\alpha^{\beta}\) with |\(§a^{§b}\)| when § is active. One will -% note that, if the package |amsmath| is loaded, the curly braces are -% \emph{not} compulsory and that one obtains the same result with just -% |\(§a^§b\)|. -% -% \subsection{Options} -% -% \begin{itemize} -% \item |tame| is the contrary of |wild| which is the option by -% default. When |tame| reigns, one \textbf{must} use an environment -% |ParesseActive| or a command |\ActiveLaParesse| in order to -% use the §-macros. -% \item |ttau| is the contrary of |ttheta| which is selected by -% default. When |ttheta| is active |§t| gives \(\theta\) in the -% contrary |§t| gives \(\tau\). In all cases, \(\theta\) -% is given by |§v| and \(\tau\) by |§y|. -% -% \textbf{Remark:} \(\Theta\) is `regularly' obtained with |§V| and -% \emph{also} with |§T| whatever is the chosen option. -% -% \item |epsilon| is the contrary of |varepsilon| which is selected by -% default. With |epsilon|, |§e| gives \(\epsilon\) otherwide |§e| -% gives \(\varepsilon\). -% \item The following `couples' behave as |epsilon|, |varepsilon|: -% |theta| and |vartheta|; |pi| and |varpi|; |rho| -% and |varrho|; |sigma| and |varsigma|; |phi| and |varphi|. -% -% The default options are |theta|, |pi|, |rho|, |sigma| and |varphi|. -% \end{itemize} -% -% \subsection{Commands and environment} -% \DescribeMacro{\makeparesseletter} -% This command gives the letter-catcode to the `character' §. After that one -% can use § in the name of a macro, for instance. It corresponds to the -% well-known |\makeatletter|. -% -% \DescribeMacro{\makeparesseother} -% This macro gives the catcode \emph{other} to the character §. It is the -% `contrary' of the preceding one. It corresponds to |\makeatother|. -% -% \DescribeMacro{\ActiveLaParesse} -% This macro makes § active and thus enable one to access the macros the name -% of which begins with § such as |§a|. A list of these macros and theirs -% meanings is given in the table~\pageref{tableau}. -% -% \DescribeEnv{ParesseActive} -% In this environment § is active and one can use the §-macros. One could use -% this environment if one want to use the §-macros when the package -% \texttt{paresse.sty} is loaded whith the option \texttt{tame}. -% -% -% \subsection{Table of the §-macros} -% -% \begin{center}\Large -% \begin{ParesseActive} \label{tableau} -% \begin{tabular}{*4{||>{\ttfamily \§}c| c}||}\hline -% a & §a & b & §b & g & §g & d & §d\\ \hline -% e & §e & z & §z & h & §h & v & §v\\ \hline -% i & §i & k & §k & l & §l & m & §m\\ \hline -% n & §n & x & §x & p & §p & r & §r\\ \hline -% s & §s & y & §y & u & §u & f & §f\\ \hline -% c & §c & q & §q & w & §w &\multicolumn{1}{ c|}{} & \\ \hline\hline -% G & §G & D & §D & V & §V & L & §L\\ \hline -% X & §X & P & §P & S & §S & U & §U\\ \hline -% F & §F & Q & §Q & W & §W &\multicolumn{1}{ c|}{} & \\ \hline -% \end{tabular} -% \end{ParesseActive} -% \end{center} -% -% \paragraph{Remarks : } all the latin letters used in the name of the -% §-macros, but for {\ActiveLaParesse §v, §y and §q}, are loaded with -% reminiscences, I hope \texttt{:-)} and the greek uppercases are obtained -% with the (latin) corresponding uppercases. -% -% \StopEventually{ -% \selectlanguage{french} -% \begin{thebibliography}{99} -% \addcontentsline{toc}{section}{Bibliographie} -% \bibitem{tlachand} T.~\textsc{Lachand-Robert}. -% \emph{La maîtrise de \TeX{} et \LaTeX{}}. -% Masson, Paris, Milan, Barcelone, \oldstylenums{1995}.\\ -% \textsc{isbn} : \texttt{2-225-84832-7}. -% \end{thebibliography} -% \PrintChanges \PrintIndex} -% -% \section{Implementation} -% There is almost no comment in the code. I hope it is clear enough moreover -% it largely looks like the code of the package |engpron| from the same -% \emph{author}. -% -% Here I use a lot of |\def| to grab the redefinitions of the macros done by -% packages such as |fourier|\footnote{Many thanks to Michel \textsc{Bovani} -% for his precious advice on \url{fr.comp.text.tex}.}. -% -% The package says `hello'. Some booleans are defined and default values are -% set. Options are cared for and the package yells if one option is not valid. -% \begin{macrocode} -\newif\if@optiontame \newif\if@optiontau \newif\if@optionvareps -\newif\if@optionvartheta \newif\if@optionvarrho \newif\if@optionvarsigma -\newif\if@optionvarphi \newif\if@optionvarpi -% -\DeclareOption{tame}{\@optiontametrue} -\DeclareOption{wild}{\@optiontamefalse} -\DeclareOption{ttau}{\@optiontautrue} -\DeclareOption{ttheta}{\@optiontaufalse} -\DeclareOption{varepsilon}{\@optionvarepstrue} -\DeclareOption{epsilon}{\@optionvarepsfalse} -\DeclareOption{vartheta}{\@optionvarthetatrue} -\DeclareOption{theta}{\@optionvarthetafalse} -\DeclareOption{varrho}{\@optionvarrhotrue} -\DeclareOption{rho}{\@optionvarrhofalse} -\DeclareOption{varpi}{\@optionvarpitrue} -\DeclareOption{pi}{\@optionvarpifalse} -\DeclareOption{varsigma}{\@optionvarsigmatrue} -\DeclareOption{sigma}{\@optionvarsigmafalse} -\DeclareOption{varphi}{\@optionvarphitrue} -\DeclareOption{phi}{\@optionvarphifalse} -% -\DeclareOption{defaut}{\@optiontamefalse \@optionvarepstrue - \@optionvarthetafalse \@optionvarrhofalse \@optionvarsigmafalse - \@optionvarpifalse \@optionvarphitrue \@optiontaufalse} -% -\DeclareOption*{\PackageError{paresse}{% - The option \CurrentOption\space is not known!\MessageBreak - The default options are `wild' and `theta'.}% - {Choose between `wild' (for an active Paresse in all the - document) \MessageBreak and `tame' (so that § prints - the paragraph symbol). \MessageBreak Choose between ` - theta' (for §t to give theta) \MessageBreak and `tau' (for §t to give - tau).}} \ExecuteOptions{defaut} -\ProcessOptions\relax -% \end{macrocode} -% The current catcode and definition of § are saved. -% \begin{macrocode} -\count@=\catcode`\§ -\let\GA@LaVieilleParesse= § -% \end{macrocode} -% A macro is defined to obtain the character itself. It could happen to be -% usefull, maybe... -% \begin{macrocode} -\def\§{\S} -% \end{macrocode} -% Some more or less `hidden' macros are defined. The contorsions are -% required in order not to make \TeX\ yell something as vulgar as -% |\inaccessible|. -% \begin{macrocode} -\newcommand{\makeparesseletter}{\catcode `\§=11\relax} -\newcommand{\makeparesseother}{\catcode `\§=12\relax} -\newcommand{\GA@MakeParesseActive}{\catcode `\§=\active} -\def\GA@ActiveLaParessexii{\catcode `\§=\active} -\def\GA@ActiveLaParessexiii{\catcode `\§=\active - \def§##1{\ensuremath{\csname \string§##1\endcsname}}} -\ifnum\count@=12 -\let\GA@ActiveLaParesse \GA@ActiveLaParessexii -\else -\let\GA@ActiveLaParesse \GA@ActiveLaParessexiii -\fi -% \end{macrocode} -% The usefull macro then \emph{the} environment. They both use -% the \emph{hidden} macro which follows. -% \begin{macro}{\ActiveLaParesse} -% \begin{macrocode} -\newcommand{\ActiveLaParesse}{\GA@ActiveLaParesse} -% \end{macrocode} -% \end{macro} -% \begin{environment}{ParesseActive} -% \begin{macrocode} -\newenvironment{ParesseActive}{\GA@ActiveLaParesse}{} -% \end{macrocode} -% \end{environment} -% \begin{macro}{\GA@ActiveL@P@resse} -% \begin{macrocode} -\newcommand{\GA@ActiveL@P@resse}{\catcode `\§=\active% - \def§##1{\ensuremath{\csname \string§##1\endcsname}}} -% \end{macrocode} -% \end{macro} -% A sequence of macros for the letters with variants. -% \begin{macrocode} -\if@optionvareps \def\@epsilon {\varepsilon} - \else \def\@epsilon {\epsilon} \fi -\if@optionvartheta \def\@theta {\vartheta} - \else \def\@theta {\theta} \fi -\if@optionvarpi \def\@pi {\varpi} - \else \def\@pi {\pi} \fi -\if@optionvarrho \def\@rho {\varrho} - \else \def\@rho {\rho} \fi -\if@optionvarsigma \def\@sigma {\varsigma} - \else \def\@sigma {\sigma} \fi -\if@optionvarphi \def\@phi {\varphi} - \else \def\@phi {\phi} \fi -% \end{macrocode} -% § becomes a \TeX-letter and I define macros whith the help of -% |\def\§...|. Before going to uppercases, I take care of the -% letter t (options |ttau| and |ttheta|). -% \begin{macrocode} -\makeparesseletter -%%% lowercase -\def\§a {\alpha} \def\§b {\beta} -\def\§g {\gamma} \def\§d {\delta} -\def\§e {\@epsilon} \def\§z {\zeta} -\def\§h {\eta} \def\§v {\@theta} -\def\§i {\iota} \def\§k {\kappa} -\def\§l {\lambda} \def\§m {\mu} -\def\§n {\nu} \def\§x {\xi} -\def\§p {\@pi} -\def\§r {\@rho} \def\§s {\@sigma} -\def\§y {\tau} \def\§u {\upsilon} -\def\§f {\@phi} \def\§c {\chi} -\def\§q {\psi} \def\§w {\omega} -% -\if@optiontau \def\§t {\tau}\else \def\§t {\@theta}\fi -% -%%% uppercase -\def\§G {\Gamma} \def\§D {\Delta} -\def\§V {\Theta} \def\§T {\Theta} -\def\§L {\Lambda} \def\§X {\Xi} -\def\§P {\Pi} \def\§S {\Sigma} -\def\§U {\Upsilon} \def\§F {\Phi} -\def\§Q {\Psi} \def\§W {\Omega} -% \end{macrocode} -% § is made active and the §-macros are defined. -% \begin{macrocode} -\catcode `\§=\active -\def§#1{\ensuremath{\csname \string§#1\endcsname}} -% \end{macrocode} -% If |tame| has been set, § is given its previous state and the package -% finishes. -% \begin{macrocode} -\if@optiontame -\catcode`\§=\count@ -\ifnum\count@=13 \let §=\GA@LaVieilleParesse \fi -\fi -\endinput -% \end{macrocode} -% \Finale -\endinput - -%%% Local Variables: -%%% mode: latex -%%% coding: iso-8859-15 -%%% TeX-master: t -%%% End: diff --git a/Master/texmf-dist/source/latex/paresse/paresse.dtx b/Master/texmf-dist/source/latex/paresse/paresse.dtx index 5b3ebde2b5e..c8ba4e24dfd 100644 --- a/Master/texmf-dist/source/latex/paresse/paresse.dtx +++ b/Master/texmf-dist/source/latex/paresse/paresse.dtx @@ -1,7 +1,11 @@ % \iffalse meta-comment +%-*- coding: iso-8859-15 -*- +% -------------------------------------------------------------------- % -%%%% Copyright (C) 2004 by Yvon Henel -%%%% -------------------------------------------------------- +% Copyright (C) 2004, 2008 by Yvon Henel +% dit « le TeXnicien de surface » +% +% -------------------------------------------------------------------- % % % This file may be distributed and/or modified under the @@ -17,8 +21,8 @@ % % \iffalse %\NeedsTeXFormat{LaTeX2e}[1999/12/01] -%\def\fileversion{v1a} -%\def\filedate{2005/03/01} +%\def\fileversion{v2} +%\def\filedate{2008/08/13} %\def\fileinfo{fichier paresse.dtx par Le \TeX nicien de surface} %\ProvidesPackage{paresse} % [\filedate\space\fileversion\space\fileinfo] @@ -31,38 +35,56 @@ \usepackage{xspace,url,array, ifthen} \IfFileExists{lmodern.sty}{\usepackage{lmodern}}{} \usepackage[english,frenchb]{babel} +\usepackage[colorlinks=true, + linkcolor=blue, + urlcolor=blue, + citecolor=blue]{hyperref} + % commentez la ligne suivante pour avoir un document avec le code -\OnlyDescription +% \OnlyDescription % puis cherchez \StopEventually pour d'éventuels réglages \EnableCrossrefs \CodelineIndex \RecordChanges + +\makeatletter +%%% \makeatletter -%%% quelques redéfinition de commande de la classe ltxdoc.cls ou de -%%% l'extension doc.sty pour une documentation en français. -\GlossaryPrologue{\section*{{Changements}}\markboth{{Changements}}{{Changements}}} -\IndexPrologue{\section*{Index}\markboth{Index}{Index}% -Les nombres en italique renvoient à la page où l'entrée est décrite ; les - nombres soulignés renvoient à la ligne de code de la définition ; les - nombres en caractères romains renvoient à la ligne de code où l'entrée est - utilisée.} -\renewcommand{\SpecialMainEnvIndex}[1]{\@bsphack\special@index{% +\GlossaryPrologue{% + \section*{{Changements}} + \markboth{{Changements}}{{Changements}}} +\IndexPrologue{% + \section*{Index}\markboth{Index}{Index}% + Les nombres en italique renvoient à la page où l'entrée est décrite; + les nombres soulignés renvoient à la ligne de code de la définition; + les nombres en caractères romains renvoient à la ligne de code où + l'entrée est utilisée.} +\def\generalname{Général} +\newcommand\DescribeOption[1]{\@bsphack \marginpar{\raggedleft + \textsc{#1}}\index{#1 (option)}\@esphack} +\def\SpecialMainEnvIndex#1{\@bsphack\special@index{% #1\actualchar - {\string\ttfamily\space#1} + {\string\ttfamily\space#1} (environnement)% \encapchar main}% - \special@index{environnements:\levelchar{% - \string\ttfamily\space#1}\encapchar + \special@index{environnements:\levelchar#1\actualchar{% + \string\ttfamily\space#1}\encapchar main}\@esphack} \makeatother -%%% fin de la francisation +%%% +\newcommand{\TO}{\textemdash\ \ignorespaces} +\newcommand{\TF}{\unskip\ \textemdash\xspace} +\newcommand{\CAD}{c.-à-d.\xspace} +\newcommand\BOP{\discretionary{}{}{}} +\newcommand\Option[1]{\textsc{#1}} +\newcommand\MODULE[1]{\textsf{#1}} \begin{document} \DocInput{paresse.dtx} \end{document} % % \fi % -% \CheckSum{319} +% \CheckSum{300} % % \CharacterTable % {Upper-case \A\B\C\D\E\F\G\H\I\J\K\L\M\N\O\P\Q\R\S\T\U\V\W\X\Y\Z @@ -86,6 +108,9 @@ Les nombres en italique renvoient % \changes{v1}{2004/04/17}{Mise à jour de la documentation.} % \changes{v1a}{2005/03/01}{Correction d'une erreur dans Infofile qui % empéchait le chargement du module.} +% \changes{v2}{2008/08/13}{Suppression d'une macro inutile.} +% \changes{v2}{2008/08/13}{Réorganisation de la documentation.} +% \changes{v2}{2008/08/13}{Réemballage pour fournir un tds.zip.} % % \GetFileInfo{paresse.sty} % @@ -102,9 +127,11 @@ Les nombres en italique renvoient % \Delta, \Gamma, \Theta, \Lambda, \Xi, \Pi, \Sigma, \Upsilon, % % \Phi, \Psi, \Omega, \newif, \ifnum, \count@, \ensuremath} % % -% \title{Le module \textsf{paresse}\thanks{Ce document correspond au -% fichier \textsf{paresse}~\fileversion, du \filedate.}} -% \author{Le \TeX nicien de surface\\ \url{Yvon.Henel@wanadoo.fr}} +% \title{Le module \MODULE{paresse}\thanks{Ce document correspond au +% fichier \MODULE{paresse.sty}~\fileversion, du \filedate, édition du +% cinquantenaire.}} +% \author{Le \TeX nicien de surface\\ +% \url{le.texnicien.de.surface@wanadoo.fr}} % % \maketitle % \begin{abstract} @@ -114,52 +141,54 @@ Les nombres en italique renvoient % redéfini. Au lieu de |\(\alpha\)| ou tape |§a| pour obtenir % \(\alpha\). % -% \textbf{Important} : Il doit être chargé \textbf{après} |inputenc| si -% ce dernier est utilisé. De plus, il faut que le signe § soit une lettre -% pour \TeX. +% \textbf{Important} : Il doit être chargé \textbf{après} +% \MODULE{inputenc} si ce dernier est utilisé. De plus, il faut que +% le signe § soit une lettre pour \TeX. % \end{abstract} % \begin{otherlanguage}{english} % \begin{abstract} -% This package implements an example from T.~\textsc{Lachand-Robert} -% in~\cite{tlachand}. It provides a means of typing isolated -% greek letters with the character § activated and -% redefined. Instead of |\(\alpha\)| one types |§a| to obtain -% \(\alpha\). +% This package implements an example from +% T.~\textsc{Lachand-Robert} in~\cite{tlachand}. It provides a +% means of typing isolated greek letters with the character § +% activated and redefined. Instead of |\(\alpha\)| one types |§a| +% to obtain \(\alpha\). % % \textbf{Important}: You have to load it \textbf{after} the -% |inputenc| package if the latter is used. Moreover the sign -% § must be a letter for \TeX. +% \MODULE{inputenc} package if the latter is used. Moreover the +% sign § must be a letter for \TeX. % \end{abstract} % \end{otherlanguage} +% +% \tableofcontents{} % % \section{Introduction} -% Cette extension ne fournit qu'un accès \og rapide et économique -% \fg aux lettres grecques qui s'obtiennent à l'aide d'une macro -% comme |\alpha| ou |\Omega|. Elle fournit un environnement et -% une commande qui permettent d'utiliser § pour taper ces -% lettres. Un |\ensuremath| nous dispense de nous placer -% explicitement ---~c'est-à-dire en tapant |$ $| ou bien |\( \)| ou -% encore |\[ \]| ou tout autre chose ayant le même effet~--- en -% mode mathématique pour obtenir une lettre grecque. -% -% L'idée de la méthode est due à T.~\textsc{Lachand-Robert} et -% est exposée dans~\cite{tlachand}. Je n'ai fait qu'ajouter le +% Cette extension ne fournit qu'un accès \og rapide et économique \fg +% aux lettres grecques qui s'obtiennent à l'aide d'une macro comme +% |\alpha| ou |\Omega|. Elle fournit un environnement et une commande +% qui permettent d'utiliser § pour taper ces lettres. Un |\ensuremath| +% nous dispense de nous placer explicitement \TO c'est-à-dire en +% tapant |$ $| ou bien |\( \)| ou encore |\[ \]| ou tout autre chose +% ayant le même effet\TF en mode mathématique pour obtenir une lettre +% grecque. +% +% L'idée de la méthode est due à T.~\textsc{Lachand-Robert} et est +% exposée dans~\cite{tlachand}. Je n'ai fait qu'ajouter le % |\ensuremath| bien agréable pour l'écriture de macros. % -% Bien entendu, on \textbf{ne} dispose \textbf{pas} de macros -% pour la minuscule omicron ni pour les majuscules alpha, -% beta... qui s'obtiennent à l'aide des latines romaines de même -% apparence\footnote{Je ne ferai aucune remarque sur les -% problèmes de codage que cela pose.}. Je ne me suis pas senti le -% courage ni la force de fournir une solution qui permettent -% d'obtenir dans une formule baignant dans un texte en italique -% gras un alpha majuscule droit, romain, \&c. +% Bien entendu, on \textbf{ne} dispose \textbf{pas} de macros pour la +% minuscule omicron ni pour les majuscules alpha, beta\dots{} qui +% s'obtiennent à l'aide des latines romaines de même +% apparence\footnote{Je ne ferai aucune remarque sur les problèmes de +% codage que cela pose.}. Je ne me suis pas senti le courage ni la +% force de fournir une solution qui permettent d'obtenir dans une +% formule baignant dans un texte en italique gras un alpha majuscule +% droit, romain, \&c. % % Pour finir cette introduction, glosons le nom de cette % extension. |paresse| vient de ce que le signe § indique un \og % paragraphe \fg en ayant une forme lointainement apparentée au % S et n'a donc aucun lien avec le \emph{défaut} si fréquent, -% encore que, à bien y réfléchir... +% encore que, à bien y réfléchir\dots % % \section{Utilisation} % @@ -193,6 +222,7 @@ Les nombres en italique renvoient % défaut. Lorsque |tame| règne, il \textbf{faut} un environnement % |ParesseActive| ou une commande |\ActiveLaParesse| pour % utiliser les macros à §. +% % \item |ttau| s'oppose à |ttheta| qui est l'option par % défaut. Lorsque |ttheta| est active |§t| donne \(\theta\) dans % le cas contraire |§t| donne \(\tau\). En tous cas, \(\theta\) @@ -201,15 +231,18 @@ Les nombres en italique renvoient % \textbf{Remarque :} \(\Theta\) est obtenu par |§V| de manière % \og régulière \fg et \emph{également} par |§T| quelle que soit % l'option choisie. +% % \item |epsilon| s'oppose à |varepsilon| qui est l'option par % défaut. Avec |epsilon|, |§e| donne \(\epsilon\) sinon |§e| % donne \(\varepsilon\). +% % \item Se comportent comme le couple |epsilon|, |varepsilon| les % couples suivants |theta| et |vartheta| ; |pi| et |varpi| ; |rho| % et |varrho| ; |sigma| et |varsigma| ; |phi| et |varphi|. -% -% Par défaut on a |theta|, |pi|, |rho|, |sigma| et |varphi|. % \end{itemize} +% +% Par défaut on a |varepsilon|, |theta|, |pi|, |rho|, |sigma|, +% |varphi| et |wild|. % % \subsection{Commandes et environnement} % \DescribeMacro{\makeparesseletter} @@ -232,7 +265,7 @@ Les nombres en italique renvoient % Dans cet environnement le caractère § est actif ce qui permet % d'utiliser les macros en §. % On utilisera cet environnement si l'on veut utiliser les macros -% quand on a chargé l'extension \texttt{paresse.sty} avec +% quand on a chargé l'extension \MODULE{paresse} avec % l'option \texttt{tame}. % % @@ -269,7 +302,320 @@ Les nombres en italique renvoient % \textsc{isbn} : \texttt{2-225-84832-7}. % \end{thebibliography} % \PrintChanges \PrintIndex} -% +% \iffalse +%<*exemple> +\documentclass[a4paper,12pt]{article} +\usepackage[latin1]{inputenc} +\usepackage[T1]{fontenc} +\usepackage[tame]{paresse} +\usepackage{amsmath,xspace,array,fancyvrb} +%\usepackage[frenchb]{babel} +%\usepackage[english]{babel} +%\IfFileExists{lmodern.sty}{\usepackage{lmodern}}{} +%\IfFileExists{fourier.sty}{\usepackage[upright]{fourier}}{} +\setlength{\parindent}{0pt} +\newcommand\BOP{\discretionary{}{}{}} +\begin{document} +\pagestyle{empty} +\begin{center}\large +%Exemples d'utilisation de l'extension \texttt{paresse}.\\ +%Examples of \texttt{paresse} package usage.\\ + le \TeX nicien de surface\\ + 2008-08-12 +\end{center} + +%<*fr> +Ce fichier charge les extensions \texttt{amsmath} et, +%si elle est disponible localement, \texttt{lmodern}. +%<*fourier> +\texttt{fourier} avec l'option \texttt{upright} si cette extension est +présente sur votre installation. + +\IfFileExists{fourier.sty}{}{% + {\Large Désolé l'extension fourier.sty semble absente ! Vous + obtiendrez la fonte par défaut de votre site.}} +% + +\textbf{Attention}: l'extension \texttt{paresse} est chargée avec +l'option \texttt{tame} pour montrer l'utilisation de la commande +\verb!\ActiveLaParesse! et de l'environnement +\verb!Pares!\BOP\verb!se!\BOP\verb!Ac!\BOP\verb!tive!. +% +%<*en> +This file loads the \texttt{amsmath} package and, +%if it locally exists, the \texttt{lmodern} package. +%<*fourier> +if it locally exists, the \texttt{fourier} package with option +\texttt{upright}. + +\IfFileExists{fourier.sty}{}{% + {\Large Sorry the fourier.sty seems to be missing! You will obtain the + default font of your site.}} +% + +\textbf{Caution}: the \texttt{paresse} package is loaded with the +option \texttt{tame} to show the usage of macro +\verb!\ActiveLaParesse! and environment \verb!ParesseActive!. +% + +\vspace{\baselineskip} + +%Avec la commande \verb!\ActiveLaParesse! pour activer le caractère §. +%With the macro \verb!\ActiveLaParesse! to make the § character active. +%<*fr> +\begin{Verbatim}[frame=single] +{\ActiveLaParesse +\(§a^{§b}_{§g}\) et encore \(§D^§a_§d\) +} +\end{Verbatim} +% +%<*en> +\begin{Verbatim}[frame=single] +{\ActiveLaParesse +\(§a^{§b}_{§g}\) and also \(§D^§a_§d\) +} +\end{Verbatim} +% +%pour obtenir : +%to obtain: +%{\ActiveLaParesse \(§a^{§b}_{§g}\) et encore \(§D^§a_§d\)} +%{\ActiveLaParesse \(§a^{§b}_{§g}\) and also \(§D^§a_§d\)} + +\vspace{\baselineskip} + +%Avec l'environnement \verb!ParesseActive!. +%With the environment \verb!ParesseActive!. + +\begin{Verbatim}[frame=single] +\begin{ParesseActive}\large +\begin{tabular}{*4{||>{\ttfamily \§}c|c}||} \hline +a & §a & b & §b & g & §g & d & §d\\ \hline +e & §e & z & §z & h & §h & v & §v\\ \hline +... +X & §X & P & §P & S & §S & U & §U\\ \hline +F & §F & Q & §Q & W & §W &\multicolumn{1}{c|}{}& \\ \hline +\end{tabular} +\end{ParesseActive} +\end{Verbatim} + +\medskip + +\begin{center} +\begin{ParesseActive}\large +\begin{tabular}{*4{||>{\ttfamily \§}c|c}||} \hline +a & §a & b & §b & g & §g & d & §d\\ \hline +e & §e & z & §z & h & §h & v & §v\\ \hline +i & §i & k & §k & l & §l & m & §m\\ \hline +n & §n & x & §x & p & §p & r & §r\\ \hline +s & §s & y & §y & u & §u & f & §f\\ \hline +c & §c & q & §q & w & §w &\multicolumn{1}{c|}{}& \\ \hline\hline +G & §G & D & §D & V & §V & L & §L\\ \hline +X & §X & P & §P & S & §S & U & §U\\ \hline +F & §F & Q & §Q & W & §W &\multicolumn{1}{c|}{}& \\ \hline +\end{tabular} +\end{ParesseActive} +\end{center} +\end{document} +% +% \fi +% \iffalse +%<*en-doc> +\documentclass[a4paper]{ltxdoc} +\usepackage[latin1]{inputenc} +\usepackage[T1]{fontenc} +\usepackage[tame]{paresse} +\usepackage{xspace,url,array,ifthen} +\IfFileExists{lmodern.sty}{\usepackage{lmodern}}{} +\usepackage[frenchb,english]{babel} +\usepackage[colorlinks=true, + linkcolor=blue, + urlcolor=blue, + citecolor=blue]{hyperref} +\newcommand\MODULE[1]{\textsf{#1}} +\begin{document} +\GetFileInfo{paresse.sty} +\title{The package \MODULE{paresse}\thanks{This document corresponds + to the file \MODULE{paresse.sty}~\fileversion, dated \filedate, + 50th anniversary edition.} + \mbox{}\thanks{English translation by the author. Any comment + about the translation is welcome.}} +\author{Le \TeX nicien de surface\\ + \url{le.texnicien.de.surface@wanadoo.fr}} + +\maketitle +\begin{otherlanguage}{french} + \begin{abstract} + Ce module, reprenant un exemple de T.~\textsc{Lachand-Robert} + dans~\cite{tlachand}, fournit un moyen de taper des lettres + grecques isolées à l'aide du caractère actif et redéfini. Au lieu + de |\(\alpha\)| ou tape |§a| pour obtenir \(\alpha\). + + \textbf{Important} : Il doit être chargé \textbf{après} + \MODULE{inputenc} si ce dernier est utilisé. De plus, il faut que + le signe § soit une lettre pour \TeX. + + La \textbf{documentation française} de cette extension est + \texttt{paresse-fr.pdf}. Elle contient le code commenté. +\end{abstract} + +\end{otherlanguage} +\begin{abstract} + This package implements an example from T.~\textsc{Lachand-Robert} + in~\cite{tlachand}. It provides a means of typing isolated greek + letters with the character § activated and redefined. Instead of + |\(\alpha\)| one types |§a| to obtain \(\alpha\). + + \textbf{Important}: You have to load it \textbf{after} the + \MODULE{inputenc} package if the latter is used. Moreover the sign § + must be a letter for \TeX. + + The code is not commented in English any more, see the French + documentation for French commented code. Sorry. +\end{abstract} + +\tableofcontents{} + +\newpage + +\section{Introduction} + +This is the English version of the documentation of the +\MODULE{paresse} package. + +This package provides only a `quick and low-cost' access to greek +letters which one can obtain with a macro such as |\alpha| or +|\Omega|. It provides also an environment and a macro which make +possible the use of § to type in those letters. Because of an +|\ensuremath| we are not bound to explicitly enter ---i.e. by typing +|$ $| or |\( \)| or else |\[ \]| or anything whatsoever with the same +effect--- mathematics mode to obtain a greek letter. + +The idea of the method is from T.~\textsc{Lachand-Robert} and +described in~\cite{tlachand}. I have just add the |\ensuremath| which +is so agreeable to write macros. + +There is \emph{no} macros for the lowercase omicron nor for the +uppercase alpha, beta\dots{} that one can obtain with the latin roman +letters with the same look. I have not had the courage nor the +strength to build a solution which would provide a means of obtaining +an upright uppercase alpha in a math formula enbedded in an italic +boldfaced text. + +Even if the meaning of the French `paresse' is just `lazyness' I would +like to enphasize that the name of this package comes from the fact +that the sign § can be used to point at a paragraph and looks like an +S. So there is no connection between the name and the not unfrequent +sin of the same (French) name\dots{} or maybe\dots{} + +\section{Usage} + +One loads the package with |\usepackage{paresse}| \textbf{after} the +package |inputenc|. The sign § must be recognised as a letter by +\TeX. On can use for instance |inputenc| with option |latin1| for such +a purpose. + +By default the package is loaded with option |wild| and so the macros +such as |§a| are immediately available. If one prefers one can choose +the option |tame| by writing |\usepackage[tame]{paresse}|. One must +then use the command |\ActiveLaParesse| or the environment +|ParesseActive| to use the `§-macros'. + +When `paresse' is active, one has just to type |§a| in to obtain +\(\alpha\). One has access, by the same means, to all the other greek +letters to which a macro is devoted such as |\alpha|, see the table +page~\pageref{tableau}. One obtains \(\alpha^{\beta}\) with +|\(§a^{§b}\)| when § is active. One will note that, if the package +|amsmath| is loaded, the curly braces are \emph{not} compulsory and +that one obtains the same result with just |\(§a^§b\)|. + +\subsection{Options} + +\begin{itemize} +\item |tame| is the contrary of |wild| which is the option by + default. When |tame| reigns, one \textbf{must} use an environment + |ParesseActive| or a command |\ActiveLaParesse| in order to use the + §-macros. + +\item |ttau| is the contrary of |ttheta| which is selected by + default. When |ttheta| is active |§t| gives \(\theta\) in the + contrary |§t| gives \(\tau\). In all cases, \(\theta\) is given by + |§v| and \(\tau\) by |§y|. + + \textbf{Remark:} \(\Theta\) is `regularly' obtained with |§V| and + \emph{also} with |§T| whatever is the chosen option. + +\item |epsilon| is the contrary of |varepsilon| which is selected by + default. With |epsilon|, |§e| gives \(\epsilon\) otherwide |§e| + gives \(\varepsilon\). + +\item The following `couples' behave as |epsilon|, |varepsilon|: + |theta| and |vartheta|; |pi| and |varpi|; |rho| and |varrho|; + |sigma| and |varsigma|; |phi| and |varphi|. +\end{itemize} + +The default options are |varepsilon|, |theta|, |pi|, |rho|, |sigma|, +|varphi| and |wild|. + + +\subsection{Commands and environment} +\DescribeMacro{\makeparesseletter} +This command gives the letter-catcode to the `character' §. After that +one can use § in the name of a macro, for instance. It corresponds to +the well-known |\makeatletter|. + +\DescribeMacro{\makeparesseother} +This macro gives the catcode \emph{other} to the character §. It is +the `contrary' of the preceding one. It corresponds to |\makeatother|. + +\DescribeMacro{\ActiveLaParesse} +This macro makes § active and thus enable one to access the macros the +name of which begins with § such as |§a|. A list of these macros and +theirs meanings is given in the table~\pageref{tableau}. + +\DescribeEnv{ParesseActive} +In this environment § is active and one can use the §-macros. One +could use this environment if one want to use the §-macros when the +package \texttt{paresse.sty} is loaded whith the option \texttt{tame}. + + +\subsection{Table of the §-macros} + +\begin{center}\Large +\begin{ParesseActive} \label{tableau} +\begin{tabular}{*4{||>{\ttfamily \§}c| c}||}\hline +a & §a & b & §b & g & §g & d & §d\\ \hline +e & §e & z & §z & h & §h & v & §v\\ \hline +i & §i & k & §k & l & §l & m & §m\\ \hline +n & §n & x & §x & p & §p & r & §r\\ \hline +s & §s & y & §y & u & §u & f & §f\\ \hline +c & §c & q & §q & w & §w &\multicolumn{1}{ c|}{} & \\ \hline\hline +G & §G & D & §D & V & §V & L & §L\\ \hline +X & §X & P & §P & S & §S & U & §U\\ \hline +F & §F & Q & §Q & W & §W &\multicolumn{1}{ c|}{} & \\ \hline +\end{tabular} +\end{ParesseActive} +\end{center} + +\paragraph{Remarks : } all the latin letters used in the name of the +§-macros, but for {\ActiveLaParesse §v, §y and §q}, are loaded with +reminiscences, I hope \texttt{:-)} and the greek uppercases are +obtained with the (latin) corresponding uppercases. + + +\begin{thebibliography}{99} +\addcontentsline{toc}{section}{Bibliography} +\selectlanguage{french} +\bibitem{tlachand} T.~\textsc{Lachand-Robert}. +\emph{La maîtrise de \TeX{} et \LaTeX{}}. +Masson, Paris, Milan, Barcelone, \oldstylenums{1995}.\\ +\textsc{isbn} : \texttt{2-225-84832-7}. +\end{thebibliography} +\end{document} +% +% \fi +% \iffalse +%<*package> +% \fi % \section{Le code} % Le code est fourni presque sans commentaire. J'espère qu'il est % assez clair. Cela dit, il ressemble beaucoup à celui de @@ -284,14 +630,15 @@ Les nombres en italique renvoient % fixe leur valeur par défaut. On traite les options et on crie % si l'une d'elles n'est pas connue. % \begin{macrocode} -\newif\if@optiontame \newif\if@optiontau -\newif\if@optionvareps -\newif\if@optionvartheta -\newif\if@optionvarrho -\newif\if@optionvarsigma -\newif\if@optionvarphi -\newif\if@optionvarpi -% +\newif\if@optiontame \newif\if@optiontau +\newif\if@optionvareps \newif\if@optionvartheta +\newif\if@optionvarrho \newif\if@optionvarsigma +\newif\if@optionvarphi \newif\if@optionvarpi +% \end{macrocode} +% +% Déclarations des options. Suivant l'option on fixe la valeur des +% booléens avec les \cs{@option...true/false}. +% \begin{macrocode} \DeclareOption{tame}{\@optiontametrue} \DeclareOption{wild}{\@optiontamefalse} \DeclareOption{ttau}{\@optiontautrue} @@ -308,32 +655,37 @@ Les nombres en italique renvoient \DeclareOption{sigma}{\@optionvarsigmafalse} \DeclareOption{varphi}{\@optionvarphitrue} \DeclareOption{phi}{\@optionvarphifalse} -% -\DeclareOption{defaut}{\@optiontamefalse \@optionvarepstrue - \@optionvarthetafalse \@optionvarrhofalse \@optionvarsigmafalse - \@optionvarpifalse \@optionvarphitrue \@optiontaufalse} -% -\DeclareOption*{\PackageError{paresse}{% - L'option \CurrentOption\space n'est pas connue !\MessageBreak - Les options par défaut sont << wild >> et << theta >>.}% - {Choisissez entre << wild >> (pour une Paresse active dans tout - le document) \MessageBreak et << tame >> (pour que § imprime - la marque de paragraphe). \MessageBreak Choisissez entre << - theta >> (pour que §t imprime theta) \MessageBreak et << tau - >> (pour que §t imprime tau).}} \ExecuteOptions{defaut} +% \end{macrocode} +% +% On traite le cas des options inconnues avec un message d'erreur. +% \begin{macrocode} +\DeclareOption*{\PackageError{paresse} + {The option \CurrentOption\space is not known!\MessageBreak + The default options are:\MessageBreak + varepsilon, theta, pi, rho, sigma, and varphi.}% + {Choose between `wild' (for an active Paresse in all the document) + \MessageBreak and `tame' (so that § prints the paragraph symbol). + \MessageBreak See the documentation for other options.}} +% \end{macrocode} +% +% On active les options par défaut: |wild|, |varepsilon|, |theta|, +% |pi|, |rho|, |sigma| et |varphi|. +% \begin{macrocode} +\ExecuteOptions{wild,varepsilon,theta,pi,rho,sigma,varphi} \ProcessOptions\relax % \end{macrocode} -% On sauvegarde le catcode et la définition courante du caractère -% §. +% +% On sauvegarde le catcode et la définition courante du caractère §. % \begin{macrocode} \count@=\catcode`\§ \let\GA@LaVieilleParesse= § % \end{macrocode} % On définit une macro pour pouvoir obtenir le caractère -% lui-même. Ça peut servir, parfois... +% lui-même. Ça peut servir, parfois\dots % \begin{macrocode} \def\§{\S} % \end{macrocode} +% % On définit une série de macros plus ou moins \og cachées \fg. % On doit recourir à des acrobaties pour obtenir ce que l'on veut % et pour éviter que \TeX\ ne hurle des méchancetés du genre @@ -354,21 +706,22 @@ Les nombres en italique renvoient % La macro utile puis l'environnement itou. Ils font tous les % deux appels à la macro \emph{cachée} qui suit. % \begin{macro}{\ActiveLaParesse} +% Ce n'est qu'un alias pour \cs{GA@ActiveLaParesse}. % \begin{macrocode} \newcommand{\ActiveLaParesse}{\GA@ActiveLaParesse} % \end{macrocode} % \end{macro} +% % \begin{environment}{ParesseActive} +% Environnement minimaliste qui se contente d'appeler +% \cs{GA@ActiveLaParesse} en bornant son effet par le groupe créé par +% l'environnement. % \begin{macrocode} \newenvironment{ParesseActive}{\GA@ActiveLaParesse}{} % \end{macrocode} % \end{environment} -% \begin{macro}{\GA@ActiveL@P@resse} -% \begin{macrocode} -\newcommand{\GA@ActiveL@P@resse}{\catcode `\§=\active% - \def§##1{\ensuremath{\csname \string§##1\endcsname}}} -% \end{macrocode} -% \end{macro} +% +% % Une série de macros pour les lettres à variantes. % \begin{macrocode} \if@optionvareps \def\@epsilon {\varepsilon} @@ -389,7 +742,9 @@ Les nombres en italique renvoient % lettre t (option |ttau| et |ttheta|). % \begin{macrocode} \makeparesseletter -%%% minuscules +% \end{macrocode} +% +% \begin{macrocode} \def\§a {\alpha} \def\§b {\beta} \def\§g {\gamma} \def\§d {\delta} \def\§e {\@epsilon} \def\§z {\zeta} @@ -402,10 +757,13 @@ Les nombres en italique renvoient \def\§y {\tau} \def\§u {\upsilon} \def\§f {\@phi} \def\§c {\chi} \def\§q {\psi} \def\§w {\omega} +% \end{macrocode} % +% \begin{macrocode} \if@optiontau \def\§t {\tau}\else \def\§t {\@theta}\fi +% \end{macrocode} % -%%% Majuscules +% \begin{macrocode} \def\§G {\Gamma} \def\§D {\Delta} \def\§V {\Theta} \def\§T {\Theta} \def\§L {\Lambda} \def\§X {\Xi} @@ -419,7 +777,7 @@ Les nombres en italique renvoient \catcode `\§=\active \def§#1{\ensuremath{\csname \string§#1\endcsname}} % \end{macrocode} -% Si l'option |tame| est en vigueur, on remet § dans son état +% Si l'option |tame| est en vigueur, on remet § dans son état % initial et on sort. % \begin{macrocode} \if@optiontame @@ -428,11 +786,14 @@ Les nombres en italique renvoient \fi \endinput % \end{macrocode} +% \iffalse +% +% \fi % \Finale \endinput - %%% Local Variables: -%%% mode: latex +%%% mode: doctex +%%% fill-column: 70 %%% coding: iso-8859-15 %%% TeX-master: t %%% End: diff --git a/Master/texmf-dist/source/latex/paresse/paresse.ins b/Master/texmf-dist/source/latex/paresse/paresse.ins index 75d41bb5ee2..922c4e5ee73 100644 --- a/Master/texmf-dist/source/latex/paresse/paresse.ins +++ b/Master/texmf-dist/source/latex/paresse/paresse.ins @@ -1,6 +1,6 @@ %% -%% Copyright (C) 2003 by Yvon Henel Le TeXnicien de surface -%% +%% Copyright (C) 2004, 2008 by Yvon Henel alias Le TeXnicien de surface +%% %% %% This file may be distributed and/or modified under the conditions of %% the LaTeX Project Public License, either version 1.2 of this license @@ -12,16 +12,27 @@ %% and version 1.2 or later is part of all distributions of LaTeX version %% 1999/12/01 or later. %% - -\input docstrip.tex +\ifx\documentclass\YvonHenelAliasLeTexnicienDeSurfaceIsNotUndefined +\def\End{\csname fi\endcsname\end} +\bgroup +\obeyspaces +\immediate\write16 {*************************************************************} +\immediate\write16 {** *} +\immediate\write16 {** CAUTION: Use LATEX to compile this file! *} +\immediate\write16 {** *} +\immediate\write16 {** ATTENTION: Utiliser LATEX pour compiler ce fichier ! *} +\immediate\write16 {** *} +\immediate\write16 {*************************************************************} +\egroup +\End +\else +\input{docstrip} \keepsilent - \preamble - This is a generated file. -Copyright (C) 2003 Y. Henel, le TeXnicien de surface - +Copyright (C) 2003-2008 Y. Henel, le TeXnicien de surface + This file may be distributed and/or modified under the conditions of the LaTeX Project Public License, either version 1.2 of this license @@ -32,41 +43,33 @@ license is in: and version 1.2 or later is part of all distributions of LaTeX version 1999/12/01 or later. - \endpreamble -\generate{\file{paresse.sty}{\from{paresse.dtx}{package}}} - -\Msg{****************************************************************} -\Msg{*} -\Msg{* Pour finir l'installation vous devez placer} -\Msg{* le fichier suivant dans un répertoire parcouru par TeX.} -\Msg{*} -\Msg{* \space\space paresse.sty} -\Msg{*} -\Msg{* Pour produire la documentation faire : } -\Msg{* pdflatex paresse.dtx} -\Msg{* makeindex -s gind paresse } -\Msg{* makeindex -s gglo -o paresse.gls paresse.glo} -\Msg{* pdflatex paresse.dtx} -\Msg{*} -\Msg{* puis placez paresse.pdf dans un répertoire de documentation} -\Msg{* comme par exemple texmf-local/doc/latex/paresse} -\Msg{*} -\Msg{* ou utilisez, sous *nix, « make doc » pour obtenir la doc } -\Msg{* ou « make install-doc » pour la créer et l'installer.} -\Msg{*} -\Msg{********************* TeXez dans la joie ! *********************} -\Msg{****************************************************************} - +\askforoverwritefalse +\generate{ + \file{paresse.sty}{\from{paresse.dtx}{package}} + \file{paresse-en.tex}{\from{paresse.dtx}{en-doc}} + \file{paresse-ex-fr.tex}{\from{paresse.dtx}{exemple,lmodern,fr}} + \file{paresse-ex-en.tex}{\from{paresse.dtx}{exemple,lmodern,en}} + \file{paresse-fourier-fr.tex}{\from{paresse.dtx}{exemple,fourier,fr}} + \file{paresse-fourier-en.tex}{\from{paresse.dtx}{exemple,fourier,en}} + } +\obeyspaces +\Msg{*****************************************************************} +\Msg{* *} +\Msg{* To finish the installation you have to move the following *} +\Msg{* file into a directory searched by TeX: *} +\Msg{* paresse.sty *} +\Msg{*****************************************************************} +\Msg{* Pour finir l'installation vous devez placer *} +\Msg{* le fichier suivant dans un dossier parcouru par TeX: *} +\Msg{* paresse.sty *} +\Msg{* *} +\Msg{* To produce the documentation read the README file *} +\Msg{* Pour produire la documentation lire le fichier LISEZMOI *} +\Msg{* *} +\Msg{** Happy TeXing **} +\Msg{** TeXez dans la joie ! **} +\Msg{*****************************************************************} +\fi \endbatchfile - - - - - - - - - - -- cgit v1.2.3