blob: ae9c445692df68a57c3719ef8d906ce908c4f69d (
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
|
% $Revision: 45 $
\def \@tempa $#1 #2-#3-#4 #5${#2/#3/#4}
\edef \filedate {\@tempa $Date: 2007-04-23 20:24:43 +0200 (Mon, 23 Apr 2007) $}
\def \fileversion {v1.1}
\NeedsTeXFormat{LaTeX2e}
\ProvidesPackage{cmdstring}%
[\filedate \space \fileversion \space Reliable string (JN)]
\@ifdefinable \@gobblespace
{\expandafter \def \expandafter \@gobblespace \space {}}
% v1.1: Modified after a suggestion of DAK
% Test \escapechar > 255 removed to make the package
% behave nicely with certain extensions of TeX
\newcommand*{\cmdstring}{%
\ifnum \escapechar = 32
\expandafter \expandafter
\expandafter \@gobblespace
\expandafter \string
\else
\if \string \ \space
\expandafter\expandafter\expandafter \string
\else
\expandafter\expandafter\expandafter \expandafter
\expandafter\expandafter\expandafter \@gobble
\expandafter\expandafter\expandafter \string
\fi
\fi
}
\endinput
|