I have to print tickets for a theater. The seating plan of the theater is as follows:
Blocks (A right, A left, B right, B left, etc., through H)
Rows (Block A could have rows from 1 to 15, Block B from 1 to 20, and so on: they are not all the same in number)
Seat (Block A right row 1 could have seats from 1 to 4, Block A right row 2 from 1 to 22, and so on: again, not all the same in number)
I'm aware of the existence of for-loops in Latex, and I have successfully used them before, but I have the problem of how to tell the loop that it has to stop at row 15 if the Block is A, but it has to go to 20 if the Block is B, etc. Same for the seats (whereas if I solve the problem for the rows, I can solve it for the seats).
I though about putting the information about the number of rows per Block and the number of seats per row in a table, but then I don't know how to get the for loop to read the table. Or maybe the for is not right in this case? Maybe a while ... do would be more appropriate? But then I don't know how to implement that in Latex.