More specifically:
I want to define a command \revision that builds a revision history of a document.
The original author just adds this to the preamble of his document
Code: Select all
\revision{2008--01--01}{Original AuthorName}{Created document!}
Code: Select all
\revision{2008--01--01}{Original AuthorName}{Created document!}
\revision{2008--02--02}{Second AuthorName}{Added some stuff. Much better now.}
Surprise, surprise, I can't hack this. I tried some stuff like this for building my lists:
Code: Select all
\newcommand*{\auth}{}
\newcommand*{\comment}{}
\newcommand*{\revdate}{}
\newcommand*{\revision}[3]{%
\edef\auth{\revdate{},#1}
\edef\auth{\auth{},#2}
\edef\comment{\comment{},#3}
}
arguments in '{}' doesn't help. I have looked into Philipp Lehman's etoolbox, which
looked very promising, but the lack of examples in the documentation made it fly far above my head.
My actual question has two parts:
1) How do I build lists in (La)TeX, and can I use other delimiters than comma?
2) What sort of looping mechanism should I use to output my lists into a table?
I would also very much appreciate it if someone could point me towards some sort of
tutorial/documentation on macro programming. I am finding it extremely difficult to
get into this subject, and it seems like there is a body of 'secret' macros/commands floating around, but very little documentation of them. (For example, it seems that the Latex Companion contains virtually _nothing_ on macro programming.) Specifically, I'd like to know more about 'list macros' and 'list processing' which I see mentioned here and there, but always in a very cryptic fashion.