summaryrefslogtreecommitdiff
path: root/macros/latex/contrib/akktex/source/akktex/math/akkmathfun.sty
blob: 766f6de4831671e7ce23cff28c5893ab879f0288 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
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}}}