LaTeX forum ⇒ Math & SciencePassing options to commands

Information and discussion about LaTeX's math and science related features (e.g. formulas, graphs).
Posts: 2
Joined: Thu Oct 12, 2023 12:19 am

Passing options to commands

Postby Vaite » Mon Oct 16, 2023 11:43 pm

Have two commands that take an argument. Would like to enhance the capability to take an option to apply any of the various ceiling sizes (`\bigl`, `Bigl`, `\biggl`, `\Biggl`).

    \NewDocumentCommand \ceil {m}
      { \lceil #1 \rceil }
    \NewDocumentCommand \ceilbig {m}
      { \Bigl \lceil #1 \Bigr \rceil }

Recommended reading 2021: • •
LaTeX Beginner's Guide LaTeX Cookbook LaTeX TikZ graphics

Return to “Math & Science”

Who is online

Users browsing this forum: No registered users and 7 guests