I want to define a new operator say \Delta . Which works as the same as \sum or \prod in both in line and display math mode. Say, the subscribes is to the right of the operator in the in line mode, and under the operator in the display mode. How can we do this?
Asked
Active
Viewed 1,052 times
5
ganganray
- 165
2 Answers
7
If you want it to be literally the size of \sum, then this twist will scale the \Delta to match the vertical footprint of \sum.
\documentclass{article}
\usepackage{amsmath,scalerel}
\DeclareMathOperator*{\Del}{\scalerel*{\Delta}{\sum}}
\begin{document}
$\Del_{i=0}^n x_i=0$
\[\Del_{i=0}^n x_i=0\]
\end{document}
Steven B. Segletes
- 237,551


\Deltasymbol be larger in displaystyle mode than in textstyle, scriptstyle, and scriptscriptstyle math mode? Please advise. – Mico Nov 05 '15 at 08:37