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.

6
  • 3
    The reason just to hide something from the user seems a bit odd, but you can simply do \NewDocumentCommand\mynewblock{m m m}{\NewDocumentEnvironment{#1}{}{#2}{#3}}. Commented Mar 5 at 7:23
  • 1
    Seems these days everybody wants to hide things from people. What is your reason? Commented Mar 5 at 9:27
  • 1
    @Skillmon How about \NewDocumentCommand\mynewblock{m}{\NewDocumentEnvironment{#1}{}}? Commented Mar 5 at 9:28
  • Non sense, because people able to understand what mean \NewDocumentEnvironment also can figure out what is \NewDocumentCommand or similar command. But user is usually lazy to investigate what is in a \input, a package or a document class (in increasing order). Make the environment externally to the document. Commented Mar 5 at 9:36
  • @UlrichDiez for \NewDocumentCommand and friends currying is discouraged (also I expect OP to actually put more code inside that definition). Commented Mar 5 at 9:44