this is for holding javascript data
Deyan Ginev edited section_LaTeX_Programming_Only_if__.tex
almost 9 years ago
Commit id: 99d18ee10f8b7654b199f320f19bc52d5defb1b9
deletions | additions
diff --git a/section_LaTeX_Programming_Only_if__.tex b/section_LaTeX_Programming_Only_if__.tex
index 5ba1103..f01232f 100644
--- a/section_LaTeX_Programming_Only_if__.tex
+++ b/section_LaTeX_Programming_Only_if__.tex
...
\subsection{Generating a multiplication table}
To illustrate why you should \textbf{avoid} doing any low-level {\TeX} programming yourself\footnote{Unless you really know what you are doing, and you really must} here is an example of the hoops you need to jump through to typeset the multiplication table from one to five:
\noindent\begin{minipage}{0.7\textwidth} \noindent\begin{minipage}{0.8\textwidth}
\begin{lstlisting}
% We realize our loop variables via TeX counters
\newcounter{a}
...
\end{tabular}
\end{lstlisting}
\end{minipage}
\begin{minipage}{0.2\textwidth} \begin{minipage}{0.1\textwidth}
% Actual multiplication table implementation:
\newcounter{a}
\newcounter{b}