Linked Questions

28
votes
2answers
8k 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 ...
18
votes
4answers
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$\...
7
votes
2answers
489 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 ...
5
votes
1answer
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 ...
3
votes
1answer
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? ...
2
votes
1answer
75 views

If a math operator doesn't exist, type it as text in a certain font

Is it possible to have some kind of condition where, if you type an operator in math mode and it doesn't exist, it types it as text in a certain font? In particular, when I write complexity papers I ...
2
votes
1answer
233 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{...
2
votes
3answers
366 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 \...
2
votes
0answers
715 views

radical of polynomial A rad A [closed]

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 ...
1
vote
2answers
280 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.
1
vote
1answer
140 views

how do i center the limits for multiple sum [duplicate]

how do i center the limits for multiple sum like what we usually do for integral ,,, in other way, is there command like \idotsint for sum? for example: \sum\cdots\sum\limits_{n_1^2+n_2^2+...+n_N^2&...
1
vote
0answers
1k 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?