Code: Select all
\documentclass{article}
\begin{document}
\edef\test{\textsc{a}}
% \edef\test{\test b}
% \edef\test{\test c}
\test
\end{document}
Code: Select all
\documentclass{article}
\begin{document}
\edef\test{\textsc{a}}
% \edef\test{\test b}
% \edef\test{\test c}
\test
\end{document}
NEW: TikZ book now 40% off at Amazon.com for a short time.
Code: Select all
\documentclass{article}
\makeatletter
\newcommand\addtotest[1]{\g@addto@macro\test{#1}}
\newcommand\test{}
\makeatother
\begin{document}
\addtotest{\textsc{a}}
\addtotest{b}
\addtotest{c}
\test
\end{document}
NEW: TikZ book now 40% off at Amazon.com for a short time.