I would like to include a multicolumn-row in a tabular environment if \lehrertrue. Otherwise nothing should happen. I tried newcommand, newenvironment and NewEnviron and always end up with a "misplaced \omit". Apparently I am unable to convince \multicolumn that it is starting a new row. My last try:

1 & 2 & 3 & 4 & 5 \\
just a test\\
1 & 2 & 3 & 4 & 5

Any helpful suggestions please?

P.S. I was unable to include something like "misplaced \omit" tag.

P.P.S. So far I have also been unable to find out whether nicematrix could solve the problem. "! LaTeX Error: Command \iint already defined. Or name \end... illegal, see p.192 of the manual."



You must log in to answer this question.

Browse other questions tagged .