2
votes
3answers
94 views

Sane spacing after min max

The default definitions of \min and \max insert basically no space after them, which looks really awful when stating optimisation problems, etc., in display equations. I could not figure out any way ...
12
votes
2answers
299 views

Better automatic spacing of differential d?

This question was basically about whether the differential d should be upright or italicized, not about how to achieve that in tex. However, this useful answer did suggest something like the following ...
6
votes
3answers
173 views

\mathop in sums and limits

What is the \mathop command meant to be, officially? I see it used in indexes of sums and limits to improve the spacing, e.g. \sum_{n\mathop = 1}^\infty a_n Why doesn't it just format it like ...
6
votes
3answers
212 views

How do I write $\sim$ approximately with the correct spacing using siunitx?

This question is similar to this one, only that I'm using the siunitx package: \documentclass{minimal} \usepackage{siunitx} \begin{document} The temperature is \SI{\sim 200}{\kelvin}. \\ The ...
4
votes
1answer
129 views

Conditionally remove the space before a one-letter operator

I'm pursuing the Math Expectation operator (\mathbb{E}). As \DeclareMathOperator is not very good for one-letter operators (since it adds some spacing after itself), I use a plain \newcommand. But ...
3
votes
1answer
102 views

Quantifier spacing with unicode-math

When using consecutive quantification in a math formula, there is not enough spacing around the quantifiers. For example: \documentclass{article} \usepackage[colon=literal]{unicode-math} ...
2
votes
1answer
79 views

How can I influence the spacing of mathematical functions by an own macro?

I would like to get a macro \of to define a function with an optional macro \at to define its restriction. The reason is, that I don't like the spacing for functions (as there is no spacing) and I ...
5
votes
2answers
129 views

Typesetting with long limits

The problem of typesetting with long limits has already been discussed in Improving typesetting of sums with long limits. However, the answer given there uses \mathop, which does not produce ...
7
votes
3answers
149 views

Correctly typesetting a relation

I'm trying to typeset a relation. The following should read "< equals {...}", just in the same sense as one would use "x = {...}". \documentclass{article} \begin{document} $< = \{(x, y), (y, ...
2
votes
2answers
1k views

Split environment alters spacing around binary operators

I've been using split environment from amsmath. A problem that I've run into is that if an & for alignment is placed next to a binary operator, the spacing on that side of the operator is reduced ...
8
votes
2answers
256 views

Spacing after derivative operator in the commath package

I am using the commath package to typeset the derivative operator "D" with the command \Dif. This work well unless I want to add subscripts or superscripts. In this case, the spacing after operator is ...
8
votes
1answer
106 views

Change spacing around binary operators

I'd like to change spacing around binary operators and this issue is discussed there: How to change default for spacing around binary relations? Is there way how to change spacing in math and ...
5
votes
1answer
121 views

Using operator spacing to indicate precedence

I regularly have to typeset equations that are, because of their inherent complexity, difficult to read. To address this I have gotten into the habit of emphasizing operator precedence by horizontal ...
7
votes
3answers
231 views

Force inline-type superscript for display equations (but display-type subscript)

I am trying to create a macro \jjoin for a mathematical operator which roughly produces the following behaviour: Inline: \bigvee^{(J)}, subscript (typically i \in I) goes in the usual position (as in ...
9
votes
2answers
489 views

Mixing math character classes (e.g. \mathord to the left and \mathrel to the right)

It is possible to have a symbol or group behave to the left as if it had one particular math character class and to the right as if it had another? One typical case where this comes up is when one ...
3
votes
1answer
911 views

Combining Textstyle and Displaystyle

In my mathematics writing, I often use both superscripts and subscripts on the probability operator. The subscripts are generally lengthy, and I would like for them to appear underneath the operator, ...
7
votes
3answers
406 views

How to extend the text under summation symbol without making extra space

I want to get the following: I tried the following \[ a(i,k) \leftarrow \min\Big\{0, r(k,k) + \sum_{i^{'} | i^{'}\notin \{i,k\}}\max\{0, r(i{'},k)\}\Big\} \] and got How can I make the ...
11
votes
1answer
2k views

Correct way to typset esssup (essential supremum)

What is the correct way to typeset essential supremum, with the limits underneath the operator? My first try was \operatorname{ess}\sup\limits_{x\in[0, 1]}, but this puts the x\in[0, 1] under the sup ...
6
votes
0answers
119 views

Spacing around \left and \right: When is it needed? [closed]

There have been a few questions (such as this and more recently this) regarding the "extra" spacing around \left and \right. And there are various options for fixing it, including the mleftright ...
10
votes
2answers
130 views

Strange spacing when putting a math macro before a binary operation

I found there to be very odd spacing when using a math macro just before a binary operation. Here is a minimal example: \documentclass[11pt]{article} \usepackage{amsmath} ...
15
votes
1answer
785 views

Making a unary operator out of a binary operator or relation symbol

Often in physics, the symbol \sim is used as a unary operator to mean "approximately." For example, one might say "the energy of these processes is $\sim 4$ eV." However, this looks awkward because ...
10
votes
2answers
921 views

Exchange meaning of : and \colon

I usually use the colon symbol : to denote maps. For set syntax there is the braket package. So as the spacing of : is not appropriate, I want it to behave like \colon. I tried ...
4
votes
2answers
2k views

Customized log notation

In my country, the base of logarithm is written in superscript before the log sign, i.e. $^a\log b$ means log base a of b. This doesn't look nice on LaTeX, because there is a gap between ^a and \log. ...
8
votes
1answer
3k views

How do I write $\sim$ approximately with the correct spacing?

I would like to use the symbol $\sim$ as "approximately". e.g: \documentclass{minimal} \begin{document} There are $\sim 10^{80}$ atoms in the universe. \end{document} I think that I need to declare ...
14
votes
4answers
2k views

Spacing between triple vertical lines

I would like to create a norm-like operator with 3 verticals bars instead of two. It has to look like $|||\cdot|||$. I would like to know how to decrease the spacing between the vertical bars such ...
8
votes
1answer
257 views

How to put a hat on a binary operator and maintain spacing

This is maybe easy question. How is the right/good way to put a hat on a binary operator like \otimes? For example a\otimes b vs a\hat\otimes b In the second case it is not typeset as a binary ...
1
vote
1answer
353 views

Defining a prefix operator with space before its argument

I want a particular spacing behavior for a custom operator. I can produce the desired spacing by setting math classes (\mathord and so forth), but I have to do it on a case-by-case basis since no ...
10
votes
3answers
291 views

Should there ever be a thin space between an operator and an opening delimiter?

For instance, is it correct to use $\sin\lvert x\rvert$, not $\sin|x|$, for the sine of the absolute value of $x$? I think that since the argument of $\sin$ is $|x|$, it makes more sense to have a ...
17
votes
2answers
497 views

How do you create .+?

I would like to display a = b .+ 1 But it is displayed as a = b. + 1 (moves . next to b).
5
votes
1answer
553 views

How to make a \newcommand that acts like \dim?

The \dim command is good at deciding how to space things following it: for example, both $\dim M$ and $\dim_A M$ look right (the subscript immediately follows the dim, whereas the non-subscripted ...
9
votes
3answers
692 views

Space on the right hand side of a unary math operator

I know that \mathop{...} is used to give some space on the both sides of the binary operator. Could anyone tell what to use to give some space only on the right hand side of an unary math operator? ...
65
votes
4answers
4k views

Spacing around \left and \right

Why does the addition of a \left and \right introduces an extra space around the formula? Specifically, why do $\cos(\theta)$ and $\cos\left(\theta\right)$ render differently? Is there a way to use ...
3
votes
2answers
1k views

How do I change the spacing for math operators?

I have defined my own math operator (for displaying the order of certain function sequences--this is not the "normal" Big-O notation, though) by: ...