# Tag Info

## New answers tagged math-operators

1 vote

### How can I create a new simple symbol, similar to the binomial coefficients?

You want something like \boxed, but this has the problem that it chooses \displaystyle unconditionally. I suggest a \styleboxed macro that boxes its contents, but also allows to set a different value ...
• 1.0m
Accepted

### Summation symbol operator with a parameter

• 26.4k
1 vote

### How can I create a new simple symbol, similar to the binomial coefficients?

\documentclass[a4paper]{article} \usepackage{amsmath,stackengine} \makeatletter \DeclareRobustCommand{\bbinom}[2]{\bgroup \fboxsep=1pt \fbox{\ensurestackMath{% \stackanchor{#1\mathstrut}{#2\...

### How can I create a new simple symbol, similar to the binomial coefficients?

That is fairly simple. \binom is defined in amsmath as \DeclareRobustCommand{\binom}{\genfrac()\z@{}} thus is made using the \genfrac macro. So we only have to replace () by []. \genfrac is described ...
• 49.6k
1 vote
Accepted

### Detect paired nested macros

Perhaps wrapping the tokens \dif delivered by your macro-mechanism into \@firstofone{...} and thus hiding them from macros that process \dif-delimited arguments does the trick? \documentclass{article} ...
• 24k

### Detect paired nested macros

The usual way is to use a \mathop here to let TeX add space or not depending on the previous item \documentclass{article} \usepackage{amsmath} \newcommand\dif{\mathop{}\!d} \begin{document} \...
• 674k

### Math: overwrite \int command

Use the relevant option in amsmath: \documentclass{article} \usepackage[intlimits]{amsmath} \begin{document} $\int_{a}^{b} f(x)\,dx$ \end{document}
• 1.0m
Accepted

### Math: overwrite \int command

\int is defined as \DeclareRobustCommand\int{\intop\nolimits} so you could simply use \intop otherwise \let\int\intop if you want to use \int
• 674k