Linked Questions

92
votes
2answers
28k views

What is the difference between \mathbin vs. \mathrel?

These seem to be very similar as they both separate two operands. When would one be used over the other? Is there any difference in the math spacing surrounding them? How would the spacing in these ...
52
votes
1answer
3k views

Bizarre spacing with 4 $\star$s

The spacing between the 3rd and 4th stars is non-existent. Anyone know what's up? \documentclass[11pt]{article} \usepackage{amsmath} \begin{document} \begin{gather*} \star\star\star\star \\ \star\...
14
votes
3answers
996 views

Spacing of negative sign next to things like \sin

Usually latex spaces negative signs differently from minus signs: A negative sign is "stuck" to the symbol that comes after it, whereas a minus sign has wider space on both sides. However, this does ...
20
votes
1answer
2k views

How to fix the math-spacing when a lot of \phantom, \mathrlap, etc. are used?

This question led to a new package: underoverlap Introduction Based on this question and then this question, I'm trying to perfect the \overunderbrace macro. Right now, I'm trying to get the ...
9
votes
2answers
237 views

To which atoms correspond \left and \right in \showlists?

This is the input: $\left|-\infty\right|\showlists$ \end This is the output: \mathinner .\left"26A30C .\mathbin ..\fam2 ^^@ .\mathord ..\fam2 1 .\right"26A30C It is not clear to what atoms ...
4
votes
3answers
595 views

Centering an equation that's wider than \textwidth?

What to do if one want's to center an equation that's to wide for the margins and the equation isn't possible to split between rows like my example where there is a big fraction containing ...
9
votes
1answer
408 views

Misalignment of equation numbers in beamer

As is suggested by @daleif, this is a related question of the my previous post, now I have the following code in beamer, \documentclass{beamer} \begin{document} \begin{frame} \texttt{align} ...
5
votes
1answer
223 views

Conditional whitespace in math mode

Clarification \documentclass[fleqn]{article} \def\foo{What do I put here???} \begin{document} \[a \foo b\] \[\foo b\] \[a, \foo b\] \[a, b\] \end{document} I would like the document just ...
2
votes
1answer
723 views

Horizontal spacing with $\circ$ and $\cos$

I need to write $\sin\circ \theta \cos\circ \theta$ with correct horizontal spacing (here \theta denotes a real-valued function). How can I do that? Can you please explain me briefly why my code ...
3
votes
1answer
359 views

Debugging - spacing in math mode

I was trying to do some debugging in math mode related to spacing. More specific, I wanted to create some vertical rulers to check for discrepancies in horizontal alignment in math mode. With this ...
4
votes
2answers
101 views

Improper alignment at equation break

I have the following MWE, showing how the two plus-signs of the second equation are not completely aligned with each other: \documentclass{article} \usepackage{amsmath} \begin{document} \begin{...
4
votes
1answer
109 views

Macro that treats a math symbol as a relation or as ordinary according to context

I like to define macros for my binary relations, say: \newcommand{\pref}{\mathrel{R}}. I use it as: a \pref b. But I also sometimes want to consider my binary relation as a function, thus, for example,...
1
vote
1answer
129 views

Gaps in math-mode

I would like to know, why there is a gap between Rep and Q but not between Rep and S. How can I get a gap between Rep and S as long as for Rep Q? \documentclass[a4paper,10pt]{article} \usepackage[...
0
votes
1answer
40 views

How to make spacing before \left the same as before \bigl?

Compare result of the following two examples: $1\mathopen{\hbox{$\left(\vbox to8.5pt{}\right.\nulldelimiterspace=0pt \mathsurround=0pt$}}$ \end $1\left(\vbox to8.5pt{}\right.$ \end Why \left( in ...
2
votes
0answers
44 views

Enclosing symbols in braces to reduce space around them [duplicate]

Why does enclosing a symbol in in curly braces e.g. {\in} suppress space around the symbol? I cannot seem to locate any documentation which explains this behavior, or describes which symbols it ...