| 1 |
% \iffalse meta-comment |
| 2 |
% |
| 3 |
% Copyright (C) 2018 - 2021 by ChairX |
| 4 |
% |
| 5 |
% This file may be distributed and/or modified under the |
| 6 |
% conditions of the LaTeX Project Public License, either |
| 7 |
% version 1.3 of this license or (at your option) any later |
| 8 |
% version. The latest version of this license is in: |
| 9 |
% |
| 10 |
% http://www.latex-project.org/lppl.txt |
| 11 |
% |
| 12 |
% and version 1.3 or later is part of all distributions of |
| 13 |
% LaTeX version 2005/12/01 or later. |
| 14 |
% |
| 15 |
% This file contains the implementation of all category theory related macros . |
| 16 |
% |
| 17 |
% Macros have to be described by (delete the first %) |
| 18 |
% %\begin{macro}{\macro} |
| 19 |
% % Description of the implementation. |
| 20 |
% % \begin{macrocode} |
| 21 |
%\newcommand{\macro}[] {} |
| 22 |
% % \end{macrocode} |
| 23 |
% %\end{macro} |
| 24 |
% |
| 25 |
% The implementation and description will appear in the implementation |
| 26 |
% part of the documentation. Use \subsubsection{} etc. for structuring. |
| 27 |
% |
| 28 |
% The documentation of the macros defined here has to be written in |
| 29 |
% chairxmathCategoryDoc.dtx |
| 30 |
%\fi |
| 31 |
% |
| 32 |
% First we check of macros should be included: |
| 33 |
% \begin{macrocode} |
| 34 |
\if@loadmath |
| 35 |
% \end{macrocode} |
| 36 |
% |
| 37 |
% \subsubsection{General Category Theory} |
| 38 |
% General stuff for categories. |
| 39 |
% |
| 40 |
% \begin{macro}{\category} |
| 41 |
% \begin{macrocode} |
| 42 |
\newcommand{\category}[1]{\ch@irxcategoryfont{#1}} |
| 43 |
% \end{macrocode} |
| 44 |
%\end{macro} |
| 45 |
% |
| 46 |
% \begin{macro}{\categoryname} |
| 47 |
% \begin{macrocode} |
| 48 |
\newcommand{\categoryname}[1]{\ch@irxcategorynamefont{#1}} |
| 49 |
% \end{macrocode} |
| 50 |
%\end{macro} |
| 51 |
% |
| 52 |
% \begin{macro}{\functor} |
| 53 |
% \begin{macrocode} |
| 54 |
\newcommand{\functor}[1]{\ch@irxfunctorfont{#1}} |
| 55 |
% \end{macrocode} |
| 56 |
%\end{macro} |
| 57 |
% |
| 58 |
%\begin{macro}{\groupoid} |
| 59 |
% \begin{macrocode} |
| 60 |
\newcommand{\groupoid}[1]{\ch@irxgroupoidfont{#1}} |
| 61 |
% \end{macrocode} |
| 62 |
%\end{macro} |
| 63 |
% |
| 64 |
%\begin{macro}{\source} |
| 65 |
% \begin{macrocode} |
| 66 |
\newcommand{\source}{\ch@irxoperatorfont{source}} |
| 67 |
% \end{macrocode} |
| 68 |
%\end{macro} |
| 69 |
% |
| 70 |
%\begin{macro}{\target} |
| 71 |
% \begin{macrocode} |
| 72 |
\newcommand{\target}{\ch@irxoperatorfont{target}} |
| 73 |
% \end{macrocode} |
| 74 |
%\end{macro} |
| 75 |
% |
| 76 |
%\begin{macro}{\unit} |
| 77 |
% \begin{macrocode} |
| 78 |
\newcommand{\unit}{\ch@irxoperatorfont{unit}} |
| 79 |
% \end{macrocode} |
| 80 |
%\end{macro} |
| 81 |
% |
| 82 |
%\begin{macro}{\opp} |
| 83 |
% \begin{macrocode} |
| 84 |
\newcommand{\opp}{\ch@irxscriptfont{opp}} |
| 85 |
% \end{macrocode} |
| 86 |
%\end{macro} |
| 87 |
% |
| 88 |
%\begin{macro}{\asso} |
| 89 |
% \begin{macrocode} |
| 90 |
\newcommand{\asso}{\ch@irxoperatorfont{asso}} |
| 91 |
% \end{macrocode} |
| 92 |
%\end{macro} |
| 93 |
% |
| 94 |
%\begin{macro}{\Hom} |
| 95 |
% \begin{macrocode} |
| 96 |
\newcommand{\Hom}{\operatorname{\ch@irxoperatorfont{Hom}}} |
| 97 |
% \end{macrocode} |
| 98 |
%\end{macro} |
| 99 |
% |
| 100 |
%\begin{macro}{\End} |
| 101 |
% \begin{macrocode} |
| 102 |
\newcommand{\End}{\operatorname{\ch@irxoperatorfont{End}}} |
| 103 |
% \end{macrocode} |
| 104 |
%\end{macro} |
| 105 |
% |
| 106 |
%\begin{macro}{\Aut} |
| 107 |
% \begin{macrocode} |
| 108 |
\newcommand{\Aut}{\operatorname{\ch@irxoperatorfont{Aut}}} |
| 109 |
\WithSuffix\newcommand\Aut*{\decorate[^*]{\textrm{-}\Aut}{}} |
| 110 |
% \end{macrocode} |
| 111 |
%\end{macro} |
| 112 |
% |
| 113 |
%\begin{macro}{\Iso} |
| 114 |
% \begin{macrocode} |
| 115 |
\newcommand{\Iso}{\operatorname{\ch@irxoperatorfont{Iso}}} |
| 116 |
\WithSuffix\newcommand\Iso*{\decorate[^*]{\textrm{-}\Iso}{}} |
| 117 |
% \end{macrocode} |
| 118 |
%\end{macro} |
| 119 |
% |
| 120 |
%\begin{macro}{\Obj} |
| 121 |
% \begin{macrocode} |
| 122 |
\newcommand{\Obj}{\operatorname{\ch@irxoperatorfont{Obj}}} |
| 123 |
% \end{macrocode} |
| 124 |
%\end{macro} |
| 125 |
% |
| 126 |
%\begin{macro}{\Morph} |
| 127 |
% \begin{macrocode} |
| 128 |
\newcommand{\Morph}{\operatorname{\ch@irxoperatorfont{Morph}}} |
| 129 |
% \end{macrocode} |
| 130 |
%\end{macro} |
| 131 |
% |
| 132 |
% \subsubsection{Colimits} |
| 133 |
% |
| 134 |
%\begin{macro}{\colim} |
| 135 |
% \begin{macrocode} |
| 136 |
\newcommand{\colim}{\operatorname*{{colim}}} |
| 137 |
% \end{macrocode} |
| 138 |
%\end{macro} |
| 139 |
% \begin{macrocode} |
| 140 |
\fi |
| 141 |
% \end{macrocode} |