Tagged Questions
4
votes
1answer
79 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
...
3
votes
1answer
1k 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
196 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
...