| 1 |
%% |
| 2 |
%% This is file `tikzmarklibraryams.code.tex', |
| 3 |
%% generated with the docstrip utility. |
| 4 |
%% |
| 5 |
%% The original source files were: |
| 6 |
%% |
| 7 |
%% tikzmark.dtx (with options: `ams') |
| 8 |
%% ---------------------------------------------------------------- |
| 9 |
%% tikzmark --- remembering absolute positioning with TikZ. |
| 10 |
%% E-mail: [email protected] |
| 11 |
%% Released under the LaTeX Project Public License v1.3c or later |
| 12 |
%% See http://www.latex-project.org/lppl.txt |
| 13 |
%% ---------------------------------------------------------------- |
| 14 |
%% |
| 15 |
|
| 16 |
\@ifpackageloaded{amsmath}{% |
| 17 |
\let\tikzmark@ams@boxz@=\boxz@ |
| 18 |
\newcounter{tikzmarkequation} |
| 19 |
\def\tikzmark@ams@name{equation} |
| 20 |
\def\tikzmark@boxz@{% |
| 21 |
\ifmeasuring@ |
| 22 |
\tikzmark@ams@boxz@ |
| 23 |
\else |
| 24 |
\stepcounter{tikzmarkequation}% |
| 25 |
\tikzmark@box{\tikzmark@ams@name-\thetikzmarkequation}{\z@}% |
| 26 |
\fi |
| 27 |
} |
| 28 |
\newenvironment{tikzmarkmath}[1][equation]{% |
| 29 |
\def\tikzmark@ams@name{#1}% |
| 30 |
\setcounter{tikzmarkequation}{0}% |
| 31 |
\let\boxz@=\tikzmark@boxz@ |
| 32 |
}{% |
| 33 |
\let\boxz@=\tikzmark@ams@boxz@ |
| 34 |
\message{% |
| 35 |
Tikzmark math environment |
| 36 |
\tikzmark@ams@name\space had |
| 37 |
\the\value{tikzmarkequation} nodes in it |
| 38 |
}% |
| 39 |
} |
| 40 |
}{% |
| 41 |
\PackageError{tikzmark AMS}% |
| 42 |
{The amsmath package has not been loaded.}% |
| 43 |
{} |
| 44 |
} |
| 45 |
%% |
| 46 |
%% Copyright (C) 2011-2021 by Andrew Stacey <[email protected]> |
| 47 |
%% |
| 48 |
%% This work may be distributed and/or modified under the |
| 49 |
%% conditions of the LaTeX Project Public License (LPPL), either |
| 50 |
%% version 1.3c of this license or (at your option) any later |
| 51 |
%% version. The latest version of this license is in the file: |
| 52 |
%% |
| 53 |
%% http://www.latex-project.org/lppl.txt |
| 54 |
%% |
| 55 |
%% This work is "maintained" (as per LPPL maintenance status) by |
| 56 |
%% Andrew Stacey. |
| 57 |
%% |
| 58 |
%% This work consists of the file tikzmark.dtx |
| 59 |
%% and the derived files tikzmark.ins, |
| 60 |
%% tikzmark.pdf, |
| 61 |
%% tikzlibrarytikzmark.code.tex, and |
| 62 |
%% tikzmarklibrarylistings.code.tex |
| 63 |
%% tikzmarklibraryhighlighting.code.tex |
| 64 |
%% tikzmarklibraryams.code.tex |
| 65 |
%% |
| 66 |
%% |
| 67 |
%% End of file `tikzmarklibraryams.code.tex'. |