this is for holding javascript data
Deyan Ginev edited section_LaTeX_Programming_Only_if__.tex
almost 9 years ago
Commit id: bc912ebbbff9ac0076b706f5de2fa33505dcf4ab
deletions | additions
diff --git a/section_LaTeX_Programming_Only_if__.tex b/section_LaTeX_Programming_Only_if__.tex
index 8befca8..fdde652 100644
--- a/section_LaTeX_Programming_Only_if__.tex
+++ b/section_LaTeX_Programming_Only_if__.tex
...
% We can now initialize and generate our table rows
\resetrows
\setcounter{a}{0}
% For A from 1 to
5
\loop\ifnum\thea<5 9
\loop\ifnum\thea<9
\stepcounter{a}
\setcounter{b}{0}
% and B from 1 to 9
...
\repeat
% Finally, show our work, by writing a table with minimal markup:
\begin{tabular}{|rrr|} \begin{longtable}{|rrr|}
\hline $A$ & $B$ & $A\times B$ \\ \hline
\printrows
\end{tabular} \end{longtable}
\end{lstlisting}
% Actual multiplication table implementation:
...
\resetrows
\setcounter{a}{0}
\loop\ifnum\thea<5 \loop\ifnum\thea<9
\stepcounter{a}
\setcounter{b}{0}
{\loop \ifnum\theb<9
...
\repeat
\begin{table}
\begin{tabular}{|rrr|} \begin{longtable}{|rrr|}
\hline $A$ & $B$ & $A\times B$ \\ \hline
\printrows
\end{tabular} \end{longtable}
\label{tab:multiplication}
\end{table}