I've been trying to create a custom environment for writing up my journal in LaTeX, but can't seem to get xparse to work right. When I use the code:
\documentclass{article}
\usepackage{xparse}
\DeclareDocumentEnvironment{entry}{m m}{#1}{#2}
\begin{document}
\begin{entry}{foo}{bar}
Test phrase
\end{entry}
\end{document}
all I get is:
foo Test phrase
without the bar! Is there something I'm missing here, or is this a bug?
EDIT: Just tried it on my other machine and it compiles fine with xparse 2012/11/12 v4332. I guess it's an out date xparse on my other machine. Thanks!
foo Test phrase barusing TeXLive 2010, 2011 and the an updated 2012. Are you perhaps on an older release? You can add\listfilesbefore\begin{document}to see the versions of the pacakges included. Myxparseversion is2012/09/29 v4249. – Peter Grill Dec 9 '12 at 7:31