\def\bb{\compilation} % \combilation has {one,two,three}



% It does not work 

            BB TOken- \TokenOneA \\

% its work fine

            ELE- \TokenOne \\



The change in two code is passing parameter as #1 and variable name. What's wrong with the code.

  • A tip: If you indent lines by 4 spaces, they'll be marked as a code sample. You can also highlight the code and click the "code" button (with "{}" on it). Apr 12, 2013 at 14:49
  • Please edit your code so that it starts with \documentclass and shows all packages used. As posted it uses several non standard commands with no indication of where or how they are defined, so there is not much help we can offer. Apr 12, 2013 at 14:51
  • 1
    In the first \whiledo \SourceA is expanded to \bb first. Then \bb is expanded to \compilation, but the latter is undefined. Apr 12, 2013 at 16:14
  • 2
    As posted your code produces ! Too many }'s. l.45 } If the spurious } is deleted then the example runs without error. However it doesn't use any of the macros it defines and you haven't said what you intend those macros to do so it is still impossible to guess what help you are looking for. Apr 12, 2013 at 21:29
  • I wanted to compare two comma separated list. If the two list has at least one same element then it should load the chapter " \chapter{#3\label{#4}} \input{#2}"
    – BusyBee
    Apr 12, 2013 at 22:04


Browse other questions tagged .