summaryrefslogtreecommitdiff
path: root/macros/latex/contrib/show2e/show2e.sty
diff options
context:
space:
mode:
Diffstat (limited to 'macros/latex/contrib/show2e/show2e.sty')
-rw-r--r--macros/latex/contrib/show2e/show2e.sty55
1 files changed, 55 insertions, 0 deletions
diff --git a/macros/latex/contrib/show2e/show2e.sty b/macros/latex/contrib/show2e/show2e.sty
new file mode 100644
index 0000000000..20709b2b66
--- /dev/null
+++ b/macros/latex/contrib/show2e/show2e.sty
@@ -0,0 +1,55 @@
+%%
+%% This is file `show2e.sty',
+%% generated with the docstrip utility.
+%%
+%% The original source files were:
+%%
+%% show2e.dtx (with options: `package')
+%%
+%% show2e package by Manuel P\'egouri\'e-Gonnard <mpg@elzevir.fr>
+%% This is a generated file. See show2e.dtx for license information.
+%%
+\NeedsTeXFormat{LaTeX2e}
+\ProvidesPackage{show2e}
+ [2008/03/13 v1.0 \space \show variants for latex2e \space (mpg)]
+\newcommand* \showcmd [1] {%
+ \begingroup \escapechar92
+ \show#1%
+ \showe@if@meaning@prefix@NnT #1 {\x@protect}
+ {\showe@show@space@macro@N #1}%
+ \showe@if@meaning@prefix@NnT #1 {\protect}
+ {\showe@show@space@macro@N #1}%
+ \showe@if@meaning@prefix@NoT #1 {\string\@protected@testopt}
+ {\showe@show@backslash@macro@N #1}%
+ \endgroup}
+\newcommand* \showcs [1] {%
+ \expandafter \showcmd \csname#1\endcsname}
+\newcommand* \showenv [1] {%
+ \showcs{#1}%
+ \expandafter \show\csname end#1\endcsname}
+\newcommand* \showe@show@backslash@macro@N [1] {%
+ \expandafter \show \csname\string#1\endcsname}
+\newcommand* \showe@show@space@macro@N [1] {%
+ \begingroup \escapechar\m@ne \expandafter\endgroup
+ \expandafter \showcmd \csname\string#1 \endcsname}
+\newcommand* \showe@if@meaning@prefix@NnT [2] {%
+ \def \@tempa {#2}%
+ \showe@if@prefix@ooT {\meaning #1} {\meaning \@tempa}}
+\newcommand* \showe@if@meaning@prefix@NoT [2] {%
+ \expandafter \showe@if@meaning@prefix@NnT
+ \expandafter #1%
+ \expandafter {#2}}
+\newcommand* \showe@if@prefix@nnT [2] {%
+ \def \@tempa ##1#2##2\@nil {%
+ \ifx\empty##2\empty
+ \expandafter\@gobble
+ \else
+ \expandafter\@firstofone
+ \fi}%
+ \@tempa#1#2\@nil}
+\newcommand* \showe@if@prefix@ooT [2] {%
+ \edef \@tempa {{#1}{#2}}%
+ \expandafter \showe@if@prefix@nnT\@tempa}
+\endinput
+%%
+%% End of file `show2e.sty'.