Debian Codegraph @

texmf-dist/source/latex/nchairx/chairxmathDecoration.dtx

raw
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 % chairxmathGeneralDoc.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{Decoration}
38 %
39 % \begin{macro}{\decorate}
40 % We use the tensor package of Philip G. Ratcliffe 2004/12/20 v2.1
41 % tensor indices package (PGR) but overwrite the |\tensor| command
42 % as this collides with our own version. Instead we provide the
43 % |\decorate| macro which is identical to |\tensor| of the tensor
44 % package.
45 %
46 % \begin{macrocode}
47 \let\originaltensor\tensor
48 \DeclareRobustCommand\decorate{\originaltensor}
49 % \end{macrocode}
50 % \end{macro}
51 %
52 % \begin{macro}{\deco}
53 % This is a simplified version of |\decorate| allowing only five positions to be filled.
54 % \begin{macrocode}
55 \newcommand{\deco}[5]{\decorate*[^{#1}_{#2}]{#3}{^{#4}_{#5}}}
56 % \end{macrocode}
57 % \end{macro}
58 %
59 % \begin{macro}{\script}
60 % Macro to access the |scriptfont|.
61 % \begin{macrocode}
62 \newcommand{\script}[1]{\ch@irxscriptfont{#1}}
63 % \end{macrocode}
64 % \end{macro}
65 %
66 % \begin{macrocode}
67 \fi
68 % \end{macrocode}