summaryrefslogtreecommitdiff
path: root/Master/texmf-dist/tex/latex/complexity
diff options
context:
space:
mode:
authorNorbert Preining <preining@logic.at>2007-11-16 10:52:53 +0000
committerNorbert Preining <preining@logic.at>2007-11-16 10:52:53 +0000
commit9acb11771e83a042aa9f732555d94343c4759010 (patch)
tree683d00f889d68dabc6b95a9cec156d0c38e8b43c /Master/texmf-dist/tex/latex/complexity
parenta0556f51c14da4034ebba3a3967f525d4be2d127 (diff)
update complexity 0.80 from ctan
git-svn-id: svn://tug.org/texlive/trunk@5447 c570f23f-e606-0410-a88d-b1316a301751
Diffstat (limited to 'Master/texmf-dist/tex/latex/complexity')
-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}}