984 views

### What's the difference between \DeclareMathOperator and \mathop? [duplicate]

Is there any difference between \DeclareMathOperator{\erf}{erf} and \def{\erfc}{\mathop{\mathrm{erfc}}} apart of the fact that \DeclareMathOperator is defined in amsmath package?
2k views

### mathop shifts the baseline, DeclareMathOperator doesn't

Here is a little example that illustrates this strange behaviour: \documentclass{article} \usepackage{amsmath} \DeclareMathOperator\foo{\mathbf{l}} \begin{document} baseline$\mathbf{l}$baseline\$\...
7k views

### How do I do a one-shot MathOperator?

The amsmath packages helpfully define a macro \DeclareMathOperator which does what it says on the tin: it declares a mathematical operator such as \sin or \Null or whatever and typesets it all nice ...
8k views

### How to use \limits correctly?

I have used \limits in $\bigcup\limits_{\i \in I}$ in order to make subscripts displayed in bottom of \bigcup. However, it looked the same as $\bigcup_{\i \in I}$. I.e. it didn't work. Why? ...
1k views

### How to define d in integral expression for \int \dif x f(x) notation

There seems to be some consensus about defining \dif like this: \newcommand{\dif}{\mathop{}\!\mathrm{d}} Should I \mathrm the d in my integrals?, What is the difference of \mathop, \operatorname ...
488 views

### Space that disappears at the edges (beginning/end) of a math formula

Is there a way to produce a space that disappears at the beginning or end of a math formula? Idea: For the formula-final case, something that looks ahead or takes an obligatory argument might be a ...
352 views

### Automatic spacing of symbols

I'm curious how to automatically get a bit of spacing around symbols that are written together. Let us assume we have symbols A and B that represent some abstract objects. We define commands \A and \...
714 views

Do we have something like \rad for the radical of a polynomial in LaTeX? I am writing in the equation mode within the theorem environment and everything is in italics. If I use \text{rad}, then I get ...
227 views

### Sans-Serif Font using Metropolis Theme and Physics Package

using the beamer class theme metropolis, I stumbled over the physics package's \dv{} command. This MWE illustrates the issue: \documentclass{beamer} \usetheme{metropolis} \usepackage{physics} \begin{...
278 views

### Math \vdash with top and down index

I'd like to know ow can i type this symbol like on image in math mode. Thank you a lot.