summaryrefslogtreecommitdiff
path: root/Master/texmf-dist/tex/latex/paresse/paresse.sty
blob: e3242423c4b3d34ff5e0164abc18a691b19c9b09 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
%%
%% This is file `paresse.sty',
%% generated with the docstrip utility.
%%
%% The original source files were:
%%
%% paresse.dtx  (with options: `common,package')
%% This is a generated file.
%% 
%% Copyright (C) 2011
%% by Yvon Henel, alias le TeXnicien de surface
%% <le.texnicien.de.surface@wanadoo.fr>
%% 
%% 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.
\NeedsTeXFormat{LaTeX2e}[1999/12/01]
\def\fileversion{v4}
\def\filedate{2011/04/19}
\def\fileinfo{fichier paresse par le TeXnicien de surface}
\ProvidesPackage{paresse}
   [\filedate\space\fileversion\space\fileinfo]
\RequirePackage{skeyval}
\RequirePackage{ifluatex}
\RequirePackage{ifxetex}
\define@bitogkeys[GA]{paresse.sty}[GA@]{legacy}[true]{levi}{}{}
\define@bitogkeys[GA]{paresse.sty}[GA@]{wild}[true]{tame}{}{}
\define@bitogkeys[GA]{paresse.sty}[GA@]{ttau}[true]{ttheta}{}{}
\define@bitogkeys[GA]{paresse.sty}[GA@]{varepsilon}[true]{epsilon}{}{}
\define@bitogkeys[GA]{paresse.sty}[GA@]{varphi}[true]{phi}{}{}
\define@bitogkeys[GA]{paresse.sty}[GA@]{pi}[true]{varpi}{}{}
\define@bitogkeys[GA]{paresse.sty}[GA@]{sigma}[true]{varsigma}{}{}
\define@bitogkeys[GA]{paresse.sty}[GA@]{rho}[true]{varrho}{}{}
\define@bitogkeys[GA]{paresse.sty}[GA@]{theta}[true]{vartheta}{}{}
\DeclareOptionX*{\PackageError{paresse} {The option "\CurrentOption"
    is not known!\MessageBreak The default options are:\MessageBreak
    legacy, varepsilon, theta, pi, rho, sigma, and varphi.}%
  {Choose between `wild' (for an active Paresse in all the document)
    \MessageBreak and `tame', so that the character obtained by
    \string\S\MessageBreak prints the section symbol \string\S).
    \MessageBreak See the documentation for other options.}}
\ExecuteOptionsX[GA]{legacy,wild,varepsilon,theta,pi,rho,sigma,varphi}
\ProcessOptionsX[GA]\relax
\iftogon{GA@varepsilon}{%
  \def\GA@epsilon{\varepsilon}}{\def\GA@epsilon{\epsilon}}
\iftogon{GA@vartheta}{\def\GA@theta{\vartheta}}{\def\GA@theta{\theta}}
\iftogon{GA@varpi}{\def\GA@pi{\varpi}}{\def\GA@pi{\pi}}
\iftogon{GA@varrho}{\def\GA@rho{\varrho}}{\def\GA@rho{\rho}}
\iftogon{GA@varsigma}{\def\GA@sigma{\varsigma}}{\def\GA@sigma{\sigma}}
\iftogon{GA@varphi}{\def\GA@phi{\varphi}}{\def\GA@phi{\phi}}
\ifluatex
  \PackageInfo{paresse}{compiling with luatex}
  \InputIfFileExists{paresseold.sto}{%
    \PackageInfo{paresse}{paresseold loaded}}{%
    \PackageInfo{paresse}{paresseold not loaded}}
\else
  \ifxetex
    \PackageInfo{paresse}{compiling with xetex}
    \InputIfFileExists{paresseold.sto}{%
      \PackageInfo{paresse}{paresseold loaded}}{%
      \PackageInfo{paresse}{paresseold not loaded}}
  \else
\newcommand\encoding@error{%
  \@latex@error{%
    paresse needs inputenc loaded with option "utf8"
    or option such as "latin1" (8 bits encodign).}{}\stop}
\@ifpackageloaded{inputenc}\relax
{\PackageError{paresse}{%
    Please, load inputenc package before paresse}{%
  With LaTeX, "paresse" needs to know the encoding to work well and so
  the package "inputenc" must be loaded, with \string\usepackage, before
  loading "paresse" itself}}
\AtBeginDocument{%
  \@ifpackageloaded{inputenc}\find@encoding\encoding@error}
\newtog[GA@]{utf8}[false]
\newcommand\find@encoding{%
  \begingroup
  \def\utf@encoding{utf8}%
  \def\temp@a{\togoff{GA@utf8}%
    \PackageInfo{paresse}{8-bit encoding expected\@gobble}}
  \ifx\utf@encoding\inputencodingname
  \def\temp@a{\togon{GA@utf8}%
    \PackageInfo{paresse}{utf8 encoding detected\@gobble}}
  \fi
  \expandafter\endgroup\temp@a}
\AtBeginDocument{%
  \makeatletter
  \iftogoff{GA@utf8}{%
    \InputIfFileExists{paresseold.sto}{%
      \PackageInfo{paresse}{old loaded\@gobble}}{%
      \PackageError{paresse}{paresseold.sto not found}{%
        The package "paresse" needs to load the file "paresseold.sto"
        but can't find it. Something seems to be broken in your TeX
        system}}}{%
    \InputIfFileExists{paresseutf8.sto}{%
    \PackageInfo{paresse}{utf8 loaded\@gobble}}{%
    \PackageError{paresse}{paresseutf8 not found}{%
        The package "paresse" needs to load the file "paresseutf8.sto"
        but can't find it. Something seems to be broken in your TeX
        system}}}
  \makeatother}
\fi
\fi
\endinput
%%
%% End of file `paresse.sty'.