Code: Select all
\newcommand{\mycmd}{\operatorname{mycmd}}
Code: Select all
\mycmd{argument}
Code: Select all
\mycmd{\left( argument \right)}
Code: Select all
\newcommand{\mycmd}{\operatorname{mycmd}}
Code: Select all
\mycmd{argument}
Code: Select all
\mycmd{\left( argument \right)}
NEW: TikZ book now 40% off at Amazon.com for a short time.
Code: Select all
\documentclass[11pt]{article}
\usepackage[T1]{fontenc}
\usepackage{mathtools} % loads »amsmath«
\DeclareMathOperator*{\mycmd}{mycmd}
\DeclarePairedDelimiter{\parens}{(}{)}
\begin{document}
\[
\mycmd\parens*{\frac{a}{a}}
\]
\end{document}
NEW: TikZ book now 40% off at Amazon.com for a short time.