Skip to main content

You are not logged in. Your edit will be placed in a queue until it is peer reviewed.

We welcome edits that make the post easier to understand and more valuable for readers. Because community members review edits, please try to make the post substantially better than how you found it, for example, by fixing grammar or adding additional resources and hyperlinks.

Required fields*

3
  • 2
    +1 nice summary. A particular issue is if the macro is used incorrectly, with the optional arg being ommitted: "\reversed[optarg]". The error messages will have poor readability with your code: it's worth testing for \reversed@opt being equal to "[" and flagging this as a fatal error if it is. Commented May 26, 2010 at 8:31
  • 1
    Thanks. I'm not sure what I think about checking for [—you're right that it will behave unexpectedly, but it actually has a perfectly well-defined behavior (printing Required: [; optional: def, and then typesetting optarg]). The actual advice I would give is "don't use this technique"—while it's technically possible, it's probably a bad idea. Commented May 26, 2010 at 9:08
  • Thank you very much for your time spent on this issue. Commented Jun 3, 2010 at 11:09