4
votes
1answer
72 views

loop macro fails if wrapped in conditional

The following code is a subset of the answer in this question. The code provided in the answer works fine, but fails if I add a conditional \IfPackageLoaded. I post this error as a new question, ...
5
votes
1answer
254 views

Package PGF Math Error: Sorry, an internal routine of the floating point unit

This type of error (! Package PGF Math Error: Sorry, an internal routine of the floating point unit got an ill-formatted floating point number ...) arises when trying to use a predefined list for the ...
5
votes
1answer
107 views

Context - Error creating boxes in loop

The following code creates an array of boxes to represent an array. \startMPinclusions input boxes ; \stopMPinclusions \starttext \startluacode function createGraphic(k,c,indH) local i=1 ...
4
votes
1answer
3k views

LaTeX algorithmic package: Undefined Control Sequence in for-Loop

I'm trying to specify an algorithm in pseudocode in a LaTeX document, but I'm having trouble with the for-Loop. My statement: \for{$bin=0 to binCount$} \item blablabla \endfor keeps on generating ...
4
votes
1answer
228 views

Why does the following code run in an infinite loop?

\def\hcAuxText{} \newread\hcInputStream \immediate\openin\hcInputStream=myfile.tmp \loop\unless\ifeof\hcInputStream \read\hcInputStream to \hcAuxLine \let\hcAuxAcumm\hcAuxText ...