I'm trying to make a command that formats the alternatives of a test. Can I put an ampersand after each alternative? (I call my tabular command out of this command, and I want to put each alternative in a different cell).

\def\tabiiiii#1\\ %
            \stepcounter{alternatives}\thealternatives)~~\@ifnextchar {_}{}#1%
            &% HOW TO WORK IT OUT?

closed as unclear what you're asking by egreg, cmhughes, Gonzalo Medina, cfr, yo' May 3 '14 at 23:17

Please clarify your specific problem or add additional details to highlight exactly what you need. As it's currently written, it’s hard to tell exactly what you're asking. See the How to Ask page for help clarifying this question. If this question can be reworded to fit the rules in the help center, please edit the question.

  • Do you want to print it? If yes, use \&. – Sigur Aug 17 '13 at 23:55
  • I want to put a & for tabular environment jump to another cell, not just print a & in my text. – Fabricio Pio Aug 18 '13 at 0:04
  • 4
    You can't start a conditional in one cell ending it in another. The usual work around is to build the row in a control sequence and then deliver it. – egreg Aug 18 '13 at 8:47
  • See tex.stackexchange.com/questions/7590/… for details on how this might be done. – Steven B. Segletes Sep 4 '13 at 14:45

Browse other questions tagged or ask your own question.