[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

concatenate strings generated by LaTeX macros without embedded space



How do I concatenate strings generated by LaTeX macros without embedded space?

\newcommand{\FourDig}[1]{
\ifthenelse{\value{#1}>999}{\arabic{#1}}
{\ifthenelse{\value{#1}>99}{0\arabic{#1}}
{\ifthenelse{\value{#1}>9}{00\arabic{#1}}
{000\arabic{#1}}}}}
\newcommand{\FiveDig}[1]{
\ifthenelse{\value{#1}>9999}{\arabic{#1}}
{\ifthenelse{\value{#1}>999}{0\arabic{#1}}
{\ifthenelse{\value{#1}>99}{00\arabic{#1}}
{\ifthenelse{\value{#1}>9}{000\arabic{#1}}
{0000\arabic{#1}}}}}}

999999999\FourDig{1}\FiveDig{1}

without any embedded spaces


________________________________________________

david.boerschlein@pb.com
David P. Boerschlein
234 Wallace Way - Bldg 9
Rochester, NY 14624
585-784-6689 (voice)
585-784-6684 (fax)


Reply to: