[OS X TeX] counters and commands

Rechtsanwalt Friedrich Vosberg vosberg at meinrechtsanwalt.com
Fri Mar 3 21:23:37 CET 2006


Morning.

The example that follows prints the names and the professions of some  
people. I want to get the profession of each of them each in an other  
macro \profA, \profB, \profC, .... I tried it the way in the  
commented lines, but it doesn't work.

What must I do?

===== 8>< ====
\documentclass{minimal}
\newcounter{member}
\newcommand{\member}[2]{%
     \def\name{#1}%
     \def\prof{#2}%
     \stepcounter{member}%
     \printmember%
}
\def\printmember{%
     \framebox{No.\,\arabic{member}: \name\ (\prof)}%
%   \def\profno\Alpha{member}{\prof}
}
\begin{document}
\member{Bush}{President}
\member{Blair}{Prime Minister}
\member{Merkel}{Chancellor}
\par
The professions are:
\begin{itemize}
%\item \profnoA
\item prof2
\item prof3
\end{itemize}
\end{document}
===== ><8 =====

TIA and kind regards. Friedrich

--
Rechtsanwalt Friedrich Vosberg
Alt-Oetzsch 4, 04416 Markkleeberg
Ruf: 0341 3502074   Mobil: 0174 1602887
Fax: 0341 3502075   http://www.meinrechtsanwalt.com




------------------------- Info --------------------------
Mac-TeX Website: http://www.esm.psu.edu/mac-tex/
          & FAQ: http://latex.yauh.de/faq/
TeX FAQ: http://www.tex.ac.uk/faq
List Archive: http://tug.org/pipermail/macostex-archives/




More information about the macostex-archives mailing list