sl

Latex for loop algorithm

The argument <Name>is the name of the algorithm, and <Parameters>is a list of parameters for the algorithm. For example, the commands \begin{pseudocode}{CelsiusToFahrenheit}{c} f \GETS {9c/5} + 32\\ \RETURN{f} \end{pseudocode} produce the following output when included in a LATEX document: Algorithm 2.1: CelsiusToFahrenheit(c) f ←9c/5+32 ....

class="algoSlug_icon" data-priority="2">Web.

Feb 01, 2015 · – Sebastian Nov 8, 2013 at 15:48 Add a comment 2 Answers Sorted by: 146 You may use pgffor package, a tool provided by pgf. The basic syntax is: \foreach in {0,...,22} {do something} Notably, this for loop is not restricted to integers, for example: \foreach in {apples,burgers,cake} {Let's eat .\par} Share Improve this answer Follow.

su

nr

nw

Jan 14, 2017 · Try to compile this and take a look at the results. The point is, you seem to be out of luck — tabular does not like the output of forloop, it cannot disregard the last \addtocounter command. Maybe you can find some other package for loops. You should be able to figure out the rest from the code below, if not, write a comment..

class="algoSlug_icon" data-priority="2">Web.

class="algoSlug_icon" data-priority="2">Web.

bi