summaryrefslogtreecommitdiff
path: root/Master/texmf-dist/tex/latex/bosisio/accenti.sty
blob: a83ddec0ba90b78031793f3b485759d8c5febffb (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
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
%%
%% This is file `accenti.sty',
%% generated with the docstrip utility.
%%
%% The original source files were:
%%
%% accenti.dtx  (with options: `package')
%% 
%% IMPORTANT NOTICE:
%% 
%% For the copyright see the source file.
%% 
%% Any modified versions of this file must be renamed
%% with new filenames distinct from accenti.sty.
%% 
%% For distribution of the original source see the terms
%% for copying and modification in the file accenti.dtx.
%% 
%% This generated file may be distributed as long as the
%% original source files, as listed above, are part of the
%% same distribution. (The sources need not necessarily be
%% in the same archive or directory.)
%%
%% + - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - +
%% | Copyright(C) 1997-1999 by Francesco Bosisio                 |
%% |                                                             |
%% | This program can be redistributed and/or modified under the |
%% | terms of the LaTeX Project Public License Distributed from  |
%% | CTAN archives in directory macros/latex/base/lppl.txt;      |
%% | either version 1 of the License, or any later version.      |
%% |                                                             |
%% | E-mail:   fbosisio@bigfoot.com                              |
%% | Web page: http://www.bigfoot.com/~fbosisio/LaTeX            |
%% | CTAN location: macros/latex/contrib/supported/bosisio/      |
%% + - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - +
%%
%%
%% If you make any improvment, find any bug or have
%% any suggestion, please let me know about it.
%%
\def\FileName{accenti}
\def\fileversion{2.0}
\def\filedate{1997/12/20}
\def\docdate{1997/12/20}
\def\filedescr{Commands to make accents (BF)}
%%
\NeedsTeXFormat{LaTeX2e}[1995/12/01]
\ProvidesPackage{\FileName}[\filedate\space v\fileversion\space\filedescr]
\RequirePackage{xspace}[1996/12/06 v1.05]
%%
\newif\if@ExtendedAccChar\@ExtendedAccCharfalse
\DeclareOption{ExtdChar}{\@ExtendedAccChartrue}
%%
\newif\if@NotOnlyExtended@\@NotOnlyExtended@true
\DeclareOption{ExtdCharOnly}{\@NotOnlyExtended@false}
%%
\ProcessOptions
%%
%%
\let\aAccent=\a
\let\DotlessI=\i
\let\oFinnick=\o
\let\uAccent=\u
%%
\if@NotOnlyExtended@ %-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\
  \AtBeginDocument{%
    \renewcommand*\a{\`a\xspace}%
    \newcommand*\e{\`e\xspace}%
    \renewcommand*\i{\`\DotlessI\xspace}%
    \renewcommand*\o{\`o\xspace}%
    \renewcommand*\u{\`u\xspace}%
    \newcommand*\E{\`E\xspace}%
    \newcommand*\ee{\'e\xspace}%
    \newcommand*\che{ch\'e\xspace}%
  }
\fi %-/-/-/-/-/-/-/-/-/-/-/-/-/-/-/-/-/-/-/-/-/-/-/-/-/-/-/-/-/-/-/-/-/
%%
\if@ExtendedAccChar %-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\
%%
%% %%%%%%%%%%
%% % ^^e0 = \a %
%% %%%%%%%%%%
\begingroup
  \catcode`\~\active  \lccode`\~`\^^e0%
  \lowercase{%
  \global\expandafter\let
     \csname ac\string\^^e0\endcsname~%
  \gdef~{\`a}}%
\endgroup
\global\catcode`\^^e0\active
%%
%% %%%%%%%%%%
%% % ^^e8 = \e %
%% %%%%%%%%%%
\begingroup
  \catcode`\~\active  \lccode`\~`\^^e8%
  \lowercase{%
  \global\expandafter\let
     \csname ac\string\^^e8\endcsname~%
  \gdef~{\`e}}%
\endgroup
\global\catcode`\^^e8\active
%%
%% %%%%%%%%%%%
%% % ^^e9 = \ee %
%% %%%%%%%%%%%
\begingroup
  \catcode`\~\active  \lccode`\~`\^^e9%
  \lowercase{%
  \global\expandafter\let
     \csname ac\string\^^e8\endcsname~%
  \gdef~{\'e}}%
\endgroup
\global\catcode`\^^e9\active
%%
%% %%%%%%%%%%
%% % ^^ec = \i %
%% %%%%%%%%%%
\begingroup
  \catcode`\~\active  \lccode`\~`\^^ec%
  \lowercase{%
  \global\expandafter\let
     \csname ac\string\^^ec\endcsname~%
  \gdef~{\`\DotlessI}}%
\endgroup
\global\catcode`\^^ec\active
%%
%% %%%%%%%%%%
%% % ^^f2 = \o %
%% %%%%%%%%%%
\begingroup
  \catcode`\~\active  \lccode`\~`\^^f2%
  \lowercase{%
  \global\expandafter\let
     \csname ac\string\^^f2\endcsname~%
  \gdef~{\`o}}%
\endgroup
\global\catcode`\^^f2\active
%%
%% %%%%%%%%%%
%% % ^^f9 = \u %
%% %%%%%%%%%%
\begingroup
  \catcode`\~\active  \lccode`\~`\^^f9%
  \lowercase{%
  \global\expandafter\let
     \csname ac\string\^^f9\endcsname~%
  \gdef~{\`u}}%
\endgroup
\global\catcode`\^^f9\active
%%
\fi %-/-/-/-/-/-/-/-/-/-/-/-/-/-/-/-/-/-/-/-/-/-/-/-/-/-/-/-/-/-/-/-/-/
\endinput
%%
%% End of file `accenti.sty'.