List of values in latex <p>I am updating documentation written in latex, and I have to implement kind of box which will contain list of possible values and default value for specified item.</p> <p>Tex files already contain some predefined constructions. </p> <p>There is an entry, defined by <strong>\newcommand</strong>, which takes input parameters and creates a box.<br> It is used in next way:</p> <pre><code>%Input values {Min &amp; Max &amp; Default}: {0 &amp; 1 &amp; 0} </code></pre> <p>In final pdf file this construction transforms to next representation:<br> <img src="https://i.stack.imgur.com/DeadJ.png" alt="enter image description here"></p> <p>As I understood it is implemented in next piece of code: </p> <pre><code>\makebox[\linewidth][r]{ \begin{tabular}{llll} Input values: &amp; \mitalic{Min} &amp; \mitalic{Max} &amp; \mitalic{Default} \\ &amp; #8 \\ &amp; &amp; &amp; \\ \end{tabular} } </code></pre> <p>My goal is to implement something similar with next result: </p> <p><img src="https://i.stack.imgur.com/fJdWW.png" alt="enter image description here"></p> <p>Here number of possible values can be different.</p> <p>I have not had any experience with latex before, so sorry if for some of you it is stupid question.</p> <p><strong>UPDATE (19.08.2015):</strong></p> <p>I have used next construction to achieve my goals (see answers <a href="http://tex.stackexchange.com/questions/254303/how-to-define-a-command-that-takes-more-than-18-arguments">here</a> for more information):</p> <pre><code>\newcommand{\ParseOptMenuItemList}[1] { \def\tmplist{#1}% \@tempcnta=\z@ \@for\tmp:=\tmplist\do{\advance\@tempcnta\@ne \expandafter\let\csname temp\@roman\@tempcnta\endcsname\tmp }% \makebox[\linewidth][r]{% \begin{tabular}{lc} Possible values: \ifthenelse{\equal{\tempi}{}}{}{&amp; \tempi\\} \ifthenelse{\equal{\tempii}{}}{}{&amp; \tempii\\} \ifthenelse{\equal{\tempiii}{}}{}{&amp; \tempiii\\} \ifthenelse{\equal{\tempiv}{}}{}{&amp; \tempiv\\} \ifthenelse{\equal{\tempv}{}}{}{&amp; \tempv\\} \ifthenelse{\equal{\tempvi}{}}{}{&amp; \tempvi\\} \ifthenelse{\equal{\tempvii}{}}{}{&amp; \tempvii\\} \ifthenelse{\equal{\tempviii}{}}{}{&amp; \tempviii\\} \ifthenelse{\equal{\tempix}{}}{}{&amp; \tempix\\} \ifthenelse{\equal{\tempx}{}}{}{&amp; \tempx\\} \ifthenelse{\equal{\tempxi}{}}{}{&amp; \tempxi\\} \ifthenelse{\equal{\tempxii}{}}{}{&amp; \tempxii\\} \ifthenelse{\equal{\tempxiii}{}}{}{&amp; \tempxiii\\} \ifthenelse{\equal{\tempxiv}{}}{}{&amp; \tempxiv\\} \ifthenelse{\equal{\tempxv}{}}{}{&amp; \tempxv\\} \ifthenelse{\equal{\tempxvi}{}}{}{&amp; \tempxvi\\} \ifthenelse{\equal{\tempxvii}{}}{}{&amp; \tempxvii\\} \ifthenelse{\equal{\tempxviii}{}}{}{&amp; \tempxviii\\} Default value: &amp; \tempxix\\ \end{tabular} } } </code></pre>