this is for holding javascript data
Deyan Ginev edited section_LaTeX_Programming_Only_if__.tex
almost 9 years ago
Commit id: feeca96abc9cd9b3a9f17fdb8cf40833850c3f69
deletions | additions
diff --git a/section_LaTeX_Programming_Only_if__.tex b/section_LaTeX_Programming_Only_if__.tex
index b6ccadc..567bff8 100644
--- a/section_LaTeX_Programming_Only_if__.tex
+++ b/section_LaTeX_Programming_Only_if__.tex
...
\newcount\ab
% Store the output rows in a special token variable (typesetting inside tabular = tricky)
\newtoks\allrows
% The darkest black magic
happens here.
% It is needed to make \addrow update the \allrows variable
% while also 1) keeping it global and 2) fetching the actual values from the TeX counters.
% Doing this "the right way" is neither intuitive nor easy.
\newcommand\addrow[3]{%
\begingroup\edef\container{\endgroup