summaryrefslogtreecommitdiff
path: root/Master/texmf-dist/tex/latex/coolthms
diff options
context:
space:
mode:
authorKarl Berry <karl@freefriends.org>2012-03-29 23:21:50 +0000
committerKarl Berry <karl@freefriends.org>2012-03-29 23:21:50 +0000
commit5c6d650e167218f3dcde8e6d2312a9e61143f906 (patch)
treebc00ef979d928906a4e8a957db611334c61b6977 /Master/texmf-dist/tex/latex/coolthms
parent81f21c18fe5c725775e3943edab6555ccfae3b79 (diff)
new latex package coolthms (29mar12)
git-svn-id: svn://tug.org/texlive/trunk@25781 c570f23f-e606-0410-a88d-b1316a301751
Diffstat (limited to 'Master/texmf-dist/tex/latex/coolthms')
-rw-r--r--Master/texmf-dist/tex/latex/coolthms/coolthms.sty129
1 files changed, 129 insertions, 0 deletions
diff --git a/Master/texmf-dist/tex/latex/coolthms/coolthms.sty b/Master/texmf-dist/tex/latex/coolthms/coolthms.sty
new file mode 100644
index 00000000000..4ed2c6fd0a4
--- /dev/null
+++ b/Master/texmf-dist/tex/latex/coolthms/coolthms.sty
@@ -0,0 +1,129 @@
+%%
+%% This is file `coolthms.sty',
+%% generated with the docstrip utility.
+%%
+%% The original source files were:
+%%
+%% coolthms.dtx
+%%
+%% IMPORTANT NOTICE:
+%%
+%% For the copyright see the source file.
+%%
+%% Any modified versions of this file must be renamed
+%% with new filenames distinct from coolthms.sty.
+%%
+%% For distribution of the original source see the terms
+%% for copying and modification in the file coolthms.dtx.
+%%
+%% This generated file may be distributed as long as the
+%% original source files, as listed above, are part of the
+%% same distribution. (The sources need not necessarily be
+%% in the same archive or directory.)
+\NeedsTeXFormat{LaTeX2e}
+\ProvidesPackage{coolthms}[2012/03/29 v1.0 Theorem markup and advanced referencing]
+\let\Finv\@undefined
+\let\Game\@undefined
+\let\beth\@undefined
+\let\gimel\@undefined
+\let\daleth\@undefined
+\RequirePackage{amssymb}
+\RequirePackage{hyperref}
+\RequirePackage{etoolbox}
+\RequirePackage{ifthen}
+\RequirePackage{xargs}
+\RequirePackage{kvoptions}
+\@ifpackageloaded{amsmath}
+ {\RequirePackage[thmmarks,amsmath,hyperref]{ntheorem}}
+ {\RequirePackage[thmmarks,hyperref]{ntheorem}}
+\RequirePackage{cleveref}
+%% \begin{macro}{\ctp@hashchar}
+\begingroup
+\catcode`\#=12
+\gdef\ctp@hashchar{#}%
+\endgroup
+\@ifundefined{proofname}{\newcommand{\proofname}{Proof}}{}
+\DeclareStringOption[\proofname]{proofname}
+\DeclareStringOption[$\Box$]{proofsymbol}
+\DeclareStringOption[\it]{proofcaptionstyle}
+\DeclareStringOption[0em]{proofindent}
+\DeclareStringOption[:]{separator}
+\DeclareStringOption[0em]{indent}
+\DeclareStringOption[0pt]{minskip}
+\DeclareStringOption[6pt]{maxskip}
+\DeclareLocalOptions{separator,indent,minskip,maxskip%
+ proofname,proofsymbol,proofcaptionstyle,proofindent}
+\ProcessKeyvalOptions*
+\newtheoremstyle{keinenummern}%
+ {\item[\hskip\labelsep\theorem@headerfont ##1\theorem@separator]}%
+ {\item[\hskip\labelsep\theorem@headerfont ##1\ %
+ {\normalfont(##3)}\theorem@separator]}
+\newtheoremstyle{mitnummern}%
+ {\item[\hskip\labelsep\theorem@headerfont ##1\ ##2\theorem@separator]}%
+ {\item[\hskip\labelsep\theorem@headerfont ##1\ ##2\ %
+ {\normalfont(##3)}\theorem@separator]}
+\newtheoremstyle{unserbeweis}%
+ {\item[{\hskip\labelsep\theorem@headerfont ##1\theorem@separator}]}%
+ {\item[\hskip\labelsep{\theorem@headerfont ##3\theorem@separator}]}
+\@ifundefined{c@chapter}{%
+ \newcounter{chapter}%
+ \setcounter{chapter}{1}%
+}{}%
+\newcommandx*{\definetheorem}[5][1=thmcnt,3=,5=section]{
+ \@ifundefined{c@#1}{
+ \@ifundefined{c@#5}{
+ \newtheorem{#1}{#1}
+ }{
+ \newtheorem{#1}{#1}[#5]
+ }
+ }{}
+ \theoremstyle{mitnummern}
+ \newtheorem{#2}[#1]{#4}
+ \theoremstyle{keinenummern}
+ \newtheorem{n#2}[#1]{#4}
+ \ifblank{#3}{
+ \crefname{#2}{#4}{#4}
+ }{
+ \crefname{#2}{#4}{#3}
+ }
+ \crefformat{#2}{##2#4~##1##3}
+ \BeforeBeginEnvironment{n#2}{\addtocounter{#1}{-1}}
+ \BeforeBeginEnvironment{#2}{%
+ \addtocounter{#1}{1}%
+ \edef\ctp@labelcode%
+ {ctp@#2@\roman{chapter}@\roman{section}@\arabic{#1}}\relax%
+ \immediate\write\@auxout{\string\crefname{\ctp@labelcode}%
+ {#4\noexpand~\csname the#1\endcsname}%
+ {#4 plural\noexpand~\csname the#1\endcsname}}\relax%
+ \immediate\write\@auxout{\string\crefformat{\ctp@labelcode}%
+ {\string##2#4\noexpand~\csname the#1\endcsname\noexpand~%
+ \ctp@hashchar1\ctp@hashchar3}}\relax%
+ \edef\Label##1{\noexpand\label[\ctp@labelcode]{##1}}%
+ \addtocounter{#1}{-1} %
+ }%
+}%
+\newcommandx*{\theoremmarkup}[6][1=\bf,2=\normalfont,3=\relax,%
+ 4=\coolthms@indent,5=\coolthms@separator,6=arabic]{
+ \theoremheaderfont{\hspace*{-#4}#1}
+ \theorembodyfont{#2}
+ \theoremsymbol{#3}
+ \theoremindent#4\relax
+ \theoremseparator{#5}
+ \theoremnumbering{#6}
+}
+\crefformat{equation}{#2(#1)#3}
+\crefformat{chapter}{#2\chaptername~#1#3}
+\@ifundefined{sectionname}{\newcommand{\sectionname}{}}{}
+ \gappto\captionsgerman{\renewcommand{\sectionname}{Abschnitt}}%
+ \gappto\captionsenglish{\renewcommand{\sectionname}{section}}
+\crefformat{section}{#2\sectionname~#1#3}
+\theorempreskipamount\coolthms@minskip plus \coolthms@maxskip\relax
+\theorempostskipamount\coolthms@minskip plus \coolthms@maxskip\relax
+\theoremstyle{unserbeweis}
+\theoremmarkup[\coolthms@proofcaptionstyle][\normalfont]%
+ [\coolthms@proofsymbol][\coolthms@proofindent]
+\newtheorem{proof}{\coolthms@proofname}
+\theoremmarkup
+\endinput
+%%
+%% End of file `coolthms.sty'.