summaryrefslogtreecommitdiff
path: root/Master/texmf-dist/tex/latex/akktex/akkmathfun.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/akkmathfun.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/akkmathfun.sty')
-rw-r--r--Master/texmf-dist/tex/latex/akktex/akkmathfun.sty34
1 files changed, 34 insertions, 0 deletions
diff --git a/Master/texmf-dist/tex/latex/akktex/akkmathfun.sty b/Master/texmf-dist/tex/latex/akktex/akkmathfun.sty
new file mode 100644
index 00000000000..16df25a4774
--- /dev/null
+++ b/Master/texmf-dist/tex/latex/akktex/akkmathfun.sty
@@ -0,0 +1,34 @@
+%=====================================================================================================================================
+% Package akkmathfun by Igor Akkerman (c) 2000, 2001, 2002, 2003, 2004, 2005
+% Package providing utilities for typesetting mathematical functions.
+%
+% 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{akkmathfun}[2005/04/28 1.0.1 by Igor Akkerman (c) 2000, 2001, 2002, 2003, 2004, 2005 Package providing utilities for typesetting mathematical functions]
+%=====================================================================================================================================
+
+\RequirePackage{amsmath}
+\RequirePackage{amssymb}
+\RequirePackage{amstext}
+\RequirePackage{latexsym}
+%-----------------------------------------------------------------------------------------------------------------------------------------------------------------------
+
+% do not wrap the definitions twice {{}} because the line wrapping of the functions stops working correctly!
+
+\newcommand \sfn[2] {#1 \colon #2 \to} % function definition with short arrows
+\newcommand \sfnm[4] {\fns{#1}{#2} #3, \quad #4 \mapsto} % function definition with short arrows and mapsto
+\newcommand \sfnd[4] {\fns{#1}{#2} #3, \quad #4 \defas} % function definition with short arrows and defas
+\newcommand \fn[2] {#1 \colon #2 \longto} % function definition with long arrows
+\newcommand \fnm[4] {\fn{#1}{#2} #3, \quad #4 \longmapsto} % function definition with long arrows and mapsto
+\newcommand \fnd[4] {\fn{#1}{#2} #3, \quad #4 \defas} % function definition with long arrows and defas
+
+\newcommand \longto \longrightarrow
+
+\newcommand \id {{\operatorname{id}}}