summaryrefslogtreecommitdiff
path: root/macros/latex/contrib/nchairx/source/chairxmathDecoration.dtx
blob: c5602717c476208defa1dda0ea8f8aed3a861ccb (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
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
% \iffalse meta-comment
%
% Copyright (C) 2018 - 2021 by ChairX
%
% This file may be distributed and/or modified under the
% conditions of the LaTeX Project Public License, either
% version 1.3 of this license or (at your option) any later
% version.  The latest version of this license is in:
%
%    http://www.latex-project.org/lppl.txt
%
% and version 1.3 or later is part of all distributions of
% LaTeX version 2005/12/01 or later.
%
% This file contains the implementation of all category theory related macros .
%
% Macros have to be described by (delete the first %)
% %\begin{macro}{\macro}
% % Description of the implementation.
% %    \begin{macrocode}
%\newcommand{\macro}[]         {}
% %    \end{macrocode}
% %\end{macro}
%
% The implementation and description will appear in the implementation
% part of the documentation. Use \subsubsection{} etc. for structuring.
%
% The documentation of the macros defined here has to be written in
% chairxmathGeneralDoc.dtx
% \fi
%
% First we check of macros should be included:
%    \begin{macrocode}
\if@loadmath
%    \end{macrocode}
%
% \subsubsection{Decoration}
%
% \begin{macro}{\decorate}
%     We use the tensor package of Philip G. Ratcliffe 2004/12/20 v2.1
%     tensor indices package (PGR) but overwrite the |\tensor| command
%     as this collides with our own version. Instead we provide the
%     |\decorate| macro which is identical to |\tensor| of the tensor
%     package.
%
%    \begin{macrocode}
\let\originaltensor\tensor
\DeclareRobustCommand\decorate{\originaltensor}
%    \end{macrocode}
% \end{macro}
%
% \begin{macro}{\deco}
%     This is a simplified version of |\decorate| allowing only five positions to be filled.
%    \begin{macrocode}
\newcommand{\deco}[5]{\decorate*[^{#1}_{#2}]{#3}{^{#4}_{#5}}}
%    \end{macrocode}
% \end{macro}
%
% \begin{macro}{\script}
%    Macro to access the |scriptfont|.
%    \begin{macrocode}
\newcommand{\script}[1]{\ch@irxscriptfont{#1}}
%    \end{macrocode}
% \end{macro}
%
%    \begin{macrocode}
\fi
%    \end{macrocode}