\documentclass[a4paper,12pt]{article} \usepackage{xcolor} \ExplSyntaxOn \NewDocumentCommand \ceil {m} { \lceil #1 \rceil } \NewDocumentCommand \ceilbig {m} { \Bigl \lceil #1 \Bigr \rceil } \ExplSyntaxOff \begin{document} \ceil{x} \end{document}
LaTeX forum ⇒ Math & Science ⇒ Passing options to commands
Passing options to commands
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`).
Who is online
Users browsing this forum: No registered users and 7 guests