summaryrefslogtreecommitdiff
path: root/macros/latex/contrib/drac/drac.sty
blob: 5530c0f7c089617e9ffe1e25afff7dbc427539d6 (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
%%
%% This is file `drac.sty',
%% generated with the docstrip utility.
%%
%% The original source files were:
%%
%% drac-fr.dtx  (with options: `package')
%% This is a generated file.
%% 
%% Copyright (C) 2004, 2008 by Josselin Noirel et Yvon Henel
%% 
%% Y. Henel dit « 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{v1}
\def\filedate{2008/08/14}
\def\fileinfo{fichier drac.sty par J. Noirel et Y. Henel}
\ProvidesPackage{drac}
   [\filedate\space\fileversion\space\fileinfo]
\newcommand*{\DeclareRobustActChar}{
  \@ifstar{%
    \def\@tempc{\newcommand*}\@declarerobustactchar}{%
    \def\@tempc{\newcommand}\@declarerobustactchar}%
}
\newcommand*{\ReDeclareRobActChar}{\@ifstar{%
    \def\@tempc{\renewcommand*}\@declarerobustactchar}{%
    \def\@tempc{\renewcommand}\@declarerobustactchar}%
}
\newcommand*{\@declarerobustactchar}[1]{%
  \let\@tempa=\protect
  \let\@tempb=\@typeset@protect
  \let\protect=\relax
  \let\@typeset@protect\relax % Devrait être le cas
  \edef#1{%
    \noexpand\ifx\protect\@typeset@protect
      \noexpand\expandafter
      \expandafter\noexpand
      \csname DRAC@real@\string#1\endcsname
    \noexpand\else   % \noexpand\expandafter [JN : pas bon]
      \protect       % \noexpand\expandafter [JN : idem]
      \noexpand#1%
    \noexpand\fi
  }%
  \let\protect=\@tempa
  \let\@typeset@protect=\@tempb
  \expandafter\@tempc\csname DRAC@real@\string#1\endcsname
}
\endinput
%%
%% End of file `drac.sty'.