Take the 2-minute tour ×
TeX - LaTeX Stack Exchange is a question and answer site for users of TeX, LaTeX, ConTeXt, and related typesetting systems. It's 100% free, no registration required.

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:


\DeclareDocumentEnvironment{entry}{m m}{#1}{#2}

Test phrase

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!

share|improve this question

closed as too localized by Werner, Joseph Wright Dec 9 '12 at 8:37

This question is unlikely to help any future visitors; it is only relevant to a small geographic area, a specific moment in time, or an extraordinarily narrow situation that is not generally applicable to the worldwide audience of the internet. For help making this question more broadly applicable, visit the help center.If this question can be reworded to fit the rules in the help center, please edit the question.

This works as intended on my system producing: foo Test phrase bar –  Scott H. Dec 9 '12 at 2:48
Does that exact code fail on your system? –  Scott H. Dec 9 '12 at 4:19
Welcome to TeX.SE. I also get the correct results of foo Test phrase bar using TeXLive 2010, 2011 and the an updated 2012. Are you perhaps on an older release? You can add \listfiles before \begin{document} to see the versions of the pacakges included. My xparse version is 2012/09/29 v4249. –  Peter Grill Dec 9 '12 at 7:31
@user23103: It seems that you are the same user who posted the original question. Please confirm so that the accounts can be merged. –  Peter Grill Dec 9 '12 at 8:11
There was a bug in some releases in this regard, but it is fixed as noted in the edit. I've therefore closed as too localized (in time). –  Joseph Wright Dec 9 '12 at 8:38

Browse other questions tagged or ask your own question.