summaryrefslogtreecommitdiff
path: root/Master/texmf-dist/tex
diff options
context:
space:
mode:
Diffstat (limited to 'Master/texmf-dist/tex')
-rw-r--r--Master/texmf-dist/tex/latex/complexity/complexity.sty24
-rw-r--r--Master/texmf-dist/tex/latex/complexity/mycomplexity.sty4
2 files changed, 26 insertions, 2 deletions
diff --git a/Master/texmf-dist/tex/latex/complexity/complexity.sty b/Master/texmf-dist/tex/latex/complexity/complexity.sty
index 9580b8d7ef6..6a57384e02b 100644
--- a/Master/texmf-dist/tex/latex/complexity/complexity.sty
+++ b/Master/texmf-dist/tex/latex/complexity/complexity.sty
@@ -15,6 +15,11 @@
%
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
%
+% Changes made (.76 -> .80)
+% -Added a cool message using \typeout!
+% -Added \newclass, \newlang, \newfunc commands
+% -Added \renewclass, \renewlang, \renewfunc
+% -Added \class that acts like \lang and \func
% Changes made (.75 -> .76)
% -Fixed a spacing bug that may cause extra spaces when not in math
% mode. Thanks to Nicolas Markey
@@ -36,7 +41,13 @@
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
\NeedsTeXFormat{LaTeX2e} %
-\ProvidesPackage{complexity}[3/22/05 \space v0.75]
+\ProvidesPackage{complexity}[11/24/06 \space v0.77]
+
+\typeout{\space\space +----------------------------------------------+^^J%
+ \space\space\space\space complexity LaTeX package ^^J%
+ \space\space\space\space version: ^^J%
+ \space\space\space\space author: Chris Bourke (cbourke@cse.unl.edu) ^^J%
+ \space\space +----------------------------------------------+}
% Require Packages
%\RequirePackage{keyval}[1997/11/10]
@@ -51,6 +62,17 @@
\newcommand{\lang}[1]{{\ensuremath{\mathsf{#1}}}}
\newcommand{\func}[1]{{\ensuremath{\mathsf{#1}}}}
+\newcommand{\class}[1]{\ComplexityFont{#1}}
+
+% Experimental:
+\newcommand{\newclass}[2]{\newcommand{#1}{\ComplexityFont{#2}}}
+\newcommand{\newlang}[2]{\newcommand{#1}{\lang{#2}}}
+\newcommand{\newfunc}[2]{\newcommand{#1}{\func{#2}}}
+
+\newcommand{\renewclass}[2]{\renewcommand{#1}{\ComplexityFont{#2}}}
+\newcommand{\renewlang}[2]{\renewcommand{#1}{\lang{#2}}}
+\newcommand{\renewfunc}[2]{\renewcommand{#1}{\func{#2}}}
+
\newboolean{complexity@fullmode} %
\setboolean{complexity@fullmode}{true}
diff --git a/Master/texmf-dist/tex/latex/complexity/mycomplexity.sty b/Master/texmf-dist/tex/latex/complexity/mycomplexity.sty
index 4d4f1e67b0f..ab4297d10c2 100644
--- a/Master/texmf-dist/tex/latex/complexity/mycomplexity.sty
+++ b/Master/texmf-dist/tex/latex/complexity/mycomplexity.sty
@@ -6,8 +6,10 @@
%
% Then, in my actual document, I would use something like
% $\MCC \subseteq \NP \cap \coNP$ to typeset it.
-%
+%
% In this file, you should also include any other standard inputs that you use.
% For instance, I have a .tex file that defines a bunch of Math Mode shortcuts,
% I would include it here as follows:
+
+\newcommand{\TIME}{\ComplexityFont{TIME}}