TeX - LaTeX Stack Exchange is a question and answer site for users of TeX, LaTeX, ConTeXt, and related typesetting systems. Join them; it only takes a minute:

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

I'd like to call multicols with a parameter being the number of column and allow this parameter to take the value 1, like in this minimal working example :




but the problem is that it forces me to write my text (here \lipsum) two times, which is of course not desirable.

I tried another solution, but unfortunately without success :


but this fails : !Extra }, or forgotten \endgroup.

share|improve this question

closed as too localized by lockstep, clemens, Stefan Kottwitz Oct 18 '12 at 21:00

This question is unlikely to help any future visitors; it is only relevant to a small geographic area, a specific moment in time, or an extraordinarily narrow situation that is not generally applicable to the worldwide audience of the internet. For help making this question more broadly applicable, visit the help center.If this question can be reworded to fit the rules in the help center, please edit the question.

up vote 4 down vote accepted

Your \else code is


with spurious brace group around the begin. You just want


and similarly for the end case,

share|improve this answer
thank you ! i fell so dumb .. – Cristo Oct 18 '12 at 17:17

Not the answer you're looking for? Browse other questions tagged or ask your own question.