This is a LaTeX package that allows the user to define commands that accept comma-separated lists as arguments.

The motivation was that I wanted to automate something like

\newtheorem{defn}[thm]{Definition}but I could not find anything suitable on the Internet. Since I happened to have some time, I wrote something for myself. Using commalist, the above can be achieved by

\newtheorem{lem}[thm]{Lemma}

\newtheorem{prop}[thm]{Proposition}

\newtheorem{cor}[thm]{Corollary}

\newtheorem{conj}[thm]{Conjecture}

\newcomma{\defthm}{3}{2-3}{\newtheorem{#2}[#1]{#3}}

\defthm{thm}{defn/Definition,lem/Lemma,prop/Proposition,cor/Corollary,conj/Conjecture}.

The current version of commalist is 1.1, which is dated 14 January, 2012.

- The documented source: commalist.dtx.
- The installation file: commalist.ins.
- The documentation: commalist.pdf.
- The text-only package description: README.