LATEX-L Archives

Mailing list for the LaTeX3 project

LATEX-L@LISTSERV.UNI-HEIDELBERG.DE

Options: Use Forum View

Use Monospaced Font
Show Text Part by Default
Condense Mail Headers

Message: [<< First] [< Prev] [Next >] [Last >>]
Topic: [<< First] [< Prev] [Next >] [Last >>]
Author: [<< First] [< Prev] [Next >] [Last >>]

Print Reply
Content-Type:
text/plain; charset="UTF-8"
Date:
Fri, 7 Dec 2018 12:17:07 -0700
Reply-To:
Mailing list for the LaTeX3 project <[log in to unmask]>
Subject:
MIME-Version:
1.0
Message-ID:
Content-Transfer-Encoding:
quoted-printable
Sender:
Mailing list for the LaTeX3 project <[log in to unmask]>
From:
Kelly Smith <[log in to unmask]>
Parts/Attachments:
text/plain (23 lines)
Hello,

I’ve seen mentioned here and there that the conditional functions in xparse
are now considered inappropriate. I wanted to get some clarification about
that. For example, if I have the command

\NewDocumentCommand \foo { s m }
  {
    \IfBooleanTF { #1 }
      { \mymodule_foo_star:n { #2 } }
      { \mymodule_foo_nostar:n { #2 } }
  }

is it now preferrable to define it as

\NewDocumentCommand \foo { s m }
  { \mymodule_foo:nn { #1 } { #2 } }

and have \mymodule_foo:nn do the conditional handling internally?

Warmly,
Kelly

ATOM RSS1 RSS2