summaryrefslogtreecommitdiff
path: root/Master/texmf-dist/tex/latex/akktex/akkmathpaper.sty
diff options
context:
space:
mode:
authorKarl Berry <karl@freefriends.org>2012-04-19 18:01:32 +0000
committerKarl Berry <karl@freefriends.org>2012-04-19 18:01:32 +0000
commitbf4db43a7562e7e1c14012c133867620f2da3da6 (patch)
treeff92d433d0f52c57771e0a40451f7b217cfccad0 /Master/texmf-dist/tex/latex/akktex/akkmathpaper.sty
parente206c9762da30438bee956fb796e43f39a6e987c (diff)
akktex from AkkTeX
git-svn-id: svn://tug.org/texlive/trunk@26055 c570f23f-e606-0410-a88d-b1316a301751
Diffstat (limited to 'Master/texmf-dist/tex/latex/akktex/akkmathpaper.sty')
-rw-r--r--Master/texmf-dist/tex/latex/akktex/akkmathpaper.sty83
1 files changed, 83 insertions, 0 deletions
diff --git a/Master/texmf-dist/tex/latex/akktex/akkmathpaper.sty b/Master/texmf-dist/tex/latex/akktex/akkmathpaper.sty
new file mode 100644
index 00000000000..1a20cda871e
--- /dev/null
+++ b/Master/texmf-dist/tex/latex/akktex/akkmathpaper.sty
@@ -0,0 +1,83 @@
+%=====================================================================================================================================
+% Package akkmathpaper by Igor Akkerman (c) 2000, 2001, 2002, 2003, 2004, 2005
+% Package providing utilities for typesetting mathematical papers as lecture scripts.
+%
+% This work may be distributed and/or modified under the
+% conditions of the LaTeX Project Public License (latest version).
+%
+% The latest version of this license can be found at
+% http://www.latex-project.org/lppl.txt
+%
+% This file may only be distributed together with the full 'AkkTeX' bundle.
+%=====================================================================================================================================
+\NeedsTeXFormat{LaTeX2e}[1995/12/01]
+\ProvidesPackage{akkmathpaper}[2005/04/30 1.1.0 by Igor Akkerman (c) 2000, 2001, 2002, 2003, 2004, 2005 Package providing utilities for typesetting mathematical papers as lecture scripts]
+%=====================================================================================================================================
+
+\makeatletter
+
+%-------------------------------------------------------------------------------------------------------------------------------------------------------------------------------
+% axiom list environment
+%
+% \begin{axiomlist}[<startindex>]{<axiomletter(s)>}
+% \item <axiom1>
+% \item <axiom2>
+% ...
+% \end{axiomlist}
+%
+% use axiomlist* for more than 9 axioms
+\newcounter{axiom}
+
+\newenvironment{axiomlist}[2][1]{%
+ \begin{list}{%
+ \textbf{(#2\arabic{axiom})}%
+ }{%
+ \renewcommand \axiomlabel {#2}%
+ \usecounter{axiom}\setcounter{axiom}{#1}\addtocounter{axiom}{-1}%
+ \setlength \itemindent {0pt}%
+ \settowidth \labelsep {\quad}%
+ \settowidth \labelwidth {\textbf{(#2#1)}}%
+ \setlength \leftmargin {\labelwidth}%
+ \addtolength \leftmargin {\labelsep}%
+ \setlength \listparindent {0pt}%
+ }%
+}{%
+ \end{list}%
+}
+
+\newenvironment {axiomlist*}[2][1] {%
+ \begin{list}{%
+ \textbf{(#2\arabic{axiom})}%
+ }{%
+ \renewcommand \axiomlabel {#2}%
+ \usecounter{axiom}\setcounter{axiom}{#1}\addtocounter{axiom}{-1}%
+ \setlength \itemindent {0pt}%
+ \settowidth \labelsep {\quad}%
+ \settowidth \labelwidth {\textbf{(#288)}}%
+ \setlength \leftmargin {\labelwidth}%
+ \addtolength \leftmargin {\labelsep}%
+ \setlength \listparindent {0pt}%
+ }%
+}{%
+ \end{list}%
+}
+
+\newcommand \axiom {%
+ \item%
+ \edef \@currentlabel {(\axiomlabel\theaxiom)}%
+}
+
+\newcommand \axiomlabel {}
+%-------------------------------------------------------------------------------------------------------------------------------------------------------------------------------
+
+\newcommand \xlabel[2] {%
+ \edef \@currentlabel {#2}%
+ \label{#1}%
+}
+
+\newcommand \texttag[2] {%
+ \xlabel{#1}{#2}%
+ \hfill #2%
+}
+
+\makeatother