summaryrefslogtreecommitdiff
path: root/Master/texmf-dist/doc/latex/epslatex-fr/makerobust.sty
blob: 3ba645ecb72cdcc8cae99184b1517d9f53ff7deb (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
%% 
%% This is file `makerobust.sty', generated 
%% on <1992/10/8> with the docstrip utility (2.0r).
%% 
%% The original source files were:
%% 
%% makerobust.doc 
%% 
%% Do not distribute the stripped version of this file. 
%% The checksum in the header refers to the documented version. 
%% 
%%% ====================================================================
%%%  @LaTeX-style-file{
%%%     filename        = "makerobust.sty",
%%%     version         = "1.00",
%%%     date            = "19 May 1991",
%%%     time            = "14:27:35 BST",
%%%     author          = "David Carlisle",
%%%     address         = "Computer Science Department
%%%                        Manchester University
%%%                        Oxford Road
%%%                        Manchester
%%%                        England
%%%                        M13 9PL",
%%%     telephone       = "+44 61 275 6139",
%%%     FAX             = "+44 61 275 6236",
%%%     checksum        = "56601 107 444 3944",
%%%     email           = "carlisle@cs.man.ac.uk (Internet)",
%%%     codetable       = "ISO/ASCII",
%%%     keywords        = "LaTeX, fragile, robust",
%%%     supported       = "yes",
%%%     docstring       = "
%%%
%%%     makerobust.sty
%%%
%%%     A LaTeX style option defining the \makerobust command.
%%%     \makerobust{\cs} makes the control sequence \cs robust.
%%%
%%%     If you put \makerobust{\cite} in the preamble, you can write:
%%%        \caption{Taken from \cite{foo}} rather than
%%%        \caption{Taken from \protect\cite{foo}}
%%%
%%%     The checksum field above was produced by
%%%     Robert Solovay's checksum utility.",
%%%  }
%%% ====================================================================
\def\makerobust#1{%
  \@ifundefined{fragile\string#1}%
  {\expandafter\let\csname fragile\string#1\endcsname#1%
   \edef#1{\noexpand\protect
     \expandafter\noexpand\csname fragile\string#1\endcsname}}%
  {\@warning{\string#1 is already robust (command ignored)}}}%
\endinput
%% 
%% End of file `makerobust.sty'.