I wrote this code to expose the issue I'm facing:
I would expect that if option 'test' is supplied to the class, a row with one 't' in every cell will be written, and nothing more; but it isn't the case, the 'else' condition is also evaluated. (?)
The errors were:
! Incomplete \iftrue; all text was ignored after line 12.
! Extra alignment tab has been changed to \cr
! Extra \fi.
! Missing \cr inserted.
The problem here is the presence of '&' inside \if conditional, but with ifthen or etoolbox the issue disappears:
What is happening here? How this can be fixed using \if@test-construct? I did try inserting braces for both 'then' and 'else', and the whole \if inside braces but nothing changes!
LaTeX forum ⇒ General ⇒ Problem using conditionals inside tabular & changing columns
LaTeX specific issues not fitting into one of the other forums of this category.
1 post • Page 1 of 1
Who is online
Users browsing this forum: No registered users and 16 guests