5
votes
1answer
50 views

Insert Spaces in Command Using Math Mode

I borrowed a predefined command (below), which uses math mode. Within the [[ ]], obviously, it doesn't observe spacing. Is there a way to make the command observe spacing within the [[ ]] ...
4
votes
3answers
106 views

Spacing after \times

When using \times after some wide symbol, the space following \times becomes smaller than wanted. For example \documentclass{article} \usepackage{mathtools} \begin{document} \begin{align*} > ...
3
votes
1answer
40 views

Vdots are taller than the rest of text [duplicate]

When I use \vdots within the align environment, its size is bigger than of the rest of characters. I want to get rid of the gap (purple colour on the picture below) or somehow move \vdots upward ...
5
votes
1answer
93 views

Problem with spacing after \[…\] environment when using the \textcolor{} command

I'm getting odd spacing/indentation behavior when the \textcolor command is combined with the \[ ... \] environment. I did find a fix by putting % in a couple places, as outlined below, but I'd like ...
3
votes
4answers
156 views

Remove the spaces between \times in mathmode

My problem seems rather simple but I can't manage it. I want to describe bytes in this way 0000 xxxx 0010 1xxx I tried by writing 0000 \times\times\times\times 0010 1\times\times\times but this ...
2
votes
1answer
63 views

How to preserve space when using an Overlay command in Beamer?

Into Beamer, I want to preserve the space when I replace an expression by another in a mathematics formula with the help of an Overlay command. For example, if we have in slide number 1 this formula: ...
8
votes
2answers
191 views

Typesetting sequence notation

I attempted to create a sequence both of the following ways: \documentclass[12pt]{article} \usepackage[english]{babel} \usepackage{amsmath,amsthm} \usepackage{amsfonts} \begin{document} ...
9
votes
1answer
106 views

Why does amsmath define \mspace? \mskip seems fine and simple enough

amsmath.sty defines \mspace as follows: \newcommand{\mspace}[1]{\mskip#1\relax} What is the purpose of this definition? amsmath.pdf says that \mspace is the "equivalent of \hspace for math mode ...
4
votes
2answers
67 views

Underfull \hbox severe issues

I relaize this has been posted before but I just can't understand the nature of the problem, I hope some of you can help me with this. This is my code from line 99-174. Compiler errors are below the ...
3
votes
2answers
147 views

Getting less space in “$V$,”

If I think there's too much space between the $V$ and the , in $V$,, what's the best way to reduce it? It seems safe to use \kern and not safe to use \hspace, since if you use \hspace the line might ...
4
votes
1answer
74 views

Adding Non-breaking space after single character in text mode

Is it possible in LaTeX (2e) to create macro or other processing command that will add non-breaking space after single character in text mode? Example: A new example here will add a "tilde", after ...
8
votes
2answers
108 views

Defining the minimal amount of space around an operator

How do I define the minimal (and possibly maximal) amount of horizontal space around an operator? Something similar to wrapping the operator with \,s. Here's a picture: And a minimal example ...
4
votes
1answer
62 views

Double slashes close together with resizing

I basically want this symbol, but I want it to resize properly: While X/\mkern-6mu/H looks good, when I try to resize using \biggl, then the horizontal space between the two slashes becomes very ...
9
votes
1answer
118 views

How and whether to fine-tune the vertical placement of a fraction line

This is a question about the aesthetics of mathematical typesetting, as well as a technical question about LaTeX. I'm writing a lot of expressions like this: (\log\frac{p_{i\to j}}{p_{j\to i}} in ...
1
vote
3answers
86 views

Space after comma in units package

I have a problem with using the units package. In my thesis I used it sometimes in math environment, sometimes not. Now I realized that there is an addition space after the comma in math mode. I think ...
12
votes
3answers
269 views

Displaymath environment that can align equations and squeezes math

I have a long equation to align. Without squeezing the math, it is just barely longer than \textwidth. However, the align environment doesn't squeeze the math at all, which results in a badbox. ...
1
vote
0answers
58 views

The spacing of `\to`

Let's say I use \def\searrow{\mathbin{\text{\rotatebox[origin=c]{-33}{$\to$}}}} instead of the \searrow. But \mathbin doesn't seem to provide the spacing that \to has; what should it be? Other ...
2
votes
0answers
41 views

compute position of each symbol [closed]

I've created a program that generates clickable areas on images with HTML5, taking as input a series of coordinates. Now what I'd like to do is send to that program a .png of a LaTeX expression ...
1
vote
3answers
91 views

Putting spaces between two \arrowvert to indicate cardinality of a group

How to put spaces between two vertical lines in Latex for e.g typing the usual notation of cardinality of a group ?
9
votes
2answers
124 views

What do empty math character class symbols (“\mathpunct{}”) do, and when are they used?

Every once in a while, one will encounter empty math characters with a specific math character class. For example, amsmath uses \mathpunct{} in its definition of \colon: ...
6
votes
1answer
78 views

Spacing around inline equations

What is the parameter determining spacing and stretchability around inline equations? I want to tweak spacing exactly but cannot find where the parameters are.
7
votes
2answers
100 views

Uneven vertical alignment with $\in$

Here's a simple example: \documentclass{article} \usepackage{amsmath} \usepackage{amsthm} \usepackage{amssymb} \usepackage{commath} \newcommand{\st}{\text{ s.t. }} \begin{document} \[ (x_n) ...
7
votes
3answers
219 views

How to get more space in piecewise function on LaTeX?

I'm writing a paper and I have inserted a piecewise function into my tex-code. My problem is that the piecewise function is very tightly packed. How could I stretch the bracket and get more space ...
4
votes
1answer
156 views

Power indices on the left side

I'm using {^2K} to write the indices on the left side, but when I do so I get an unwanted space between 2 en K. Is there another way to write the "power" indices on the left side? \section*{text} ...
4
votes
2answers
139 views

Making aliases for variables

I'm trying to figure out how best to define an alias. I have some moderately complicated variable names, such as $p^{i,j}_{t}$, and having to type them over and over again is a pain. More importantly, ...
6
votes
1answer
114 views

Spacing between letters of multi-letter identifier changes randomly

I use multi-letter identifiers in my thesis, for which I wrote macros, for example: \newcommand{\spec}{\mathit{Spec}} In a text, I always refer to these identifiers as: some words $\spec$ even ...
4
votes
2answers
79 views

Spacing and alignment in equations

I didn't find a solution about how to add units to equations. I have my code \begin{equation} \eta = \frac{\Phi}{P} [lm \cdot W^{-1}] \label{eq:mv} \end{equation} which is centered by ...
4
votes
1answer
88 views

tilde mark over letters in exponents or subscripts in math mode under revtex4-1

A space between the tilde mark and a letter is relatively higher in exponent or subscript in math mode. For instance, the tilde mark appears differently spaced over the letter z in the two following ...
6
votes
1answer
111 views

Math mode horizontal space difference between \ (backslash) and \; (backslash semicolon) and what to use for multiplication

In this code: \documentclass{article} \begin{document} \begin{equation} c = a b \end{equation} \end{document} I would like to insert a space between 'a' and 'b' (as opposed to \cdot or \times). ...
9
votes
1answer
104 views

If fractions are Inner atoms, why don't they have thin spaces on either side?

The TeXbook says that fractions are Inner atoms. But if so, they don't seem to have thin spaces on either side when Inner atoms have them. For instance, in \documentclass{article} ...
6
votes
3answers
196 views

Appearance issues with \bar{} and \underline{}

The following code \documentclass{article} \usepackage[T1]{fontenc} \usepackage[latin9]{inputenc} \begin{document} \[ \left[\underline{x},\bar{x}\right] \] \[ \left[\underline{t},\bar{t}\right] \] ...
3
votes
0answers
27 views

Restore standard horizontal spacing for colored symbols in mathmode [duplicate]

I have to highlight some symbols in red, something like this: \documentclass{article} \begin{document} $2+2+2=6 \textcolor{red}{\to} 4+2=6$ \end{document} However the colored formula horizontal ...
4
votes
1answer
119 views

Making integrals look prettier with negative spacing for publication

How should I write definite integrals for publication? Examples: or or I am not sure about how to write the limits correctly. How should I write definite integrals for publication?
9
votes
1answer
180 views

Two letter variables with upright Delta

I'm using newtxmath with the slanted and libertine option in order to get standard slanted greek letters in mathmode as well as the option for upright greek letters. My question concerns a common two ...
4
votes
1answer
98 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 ...
7
votes
2answers
106 views

How can I configure more space around horizontal line in frac?

Consider the following example: \documentclass{report} \begin{document} $\frac{\mbox{Time}}{\mbox{h}}$ \end{document} Is it just me or is the h almost colliding with the horizontal line? I am ...
2
votes
0answers
40 views

Mirror-image \colon? [duplicate]

I would like to typeset something like f \colon X \leftrightarrows \mcolon g where \mcolon is a mirror-image of \colon as regards spacing. How would I do this?
4
votes
2answers
1k views

Writing mod in congruence problems without leading space

I have been writing $a \equiv r (\mod n)$ but this puts a space between the ( and mod. For example, r ( mod n ) instead of r (mod n). So, how do you write r (\mod n) without that space? What ...
7
votes
1answer
116 views

How to expand equation to textwidth?

I have an equation like so: \begin{equation} \label{eq:helper_params} \tilde{B} = \begin{bmatrix} CB\\B \end{bmatrix}, \tilde{I} = \begin{bmatrix} I_p\\0 \end{bmatrix}, \tilde{Q} = ...
4
votes
2answers
92 views

Prevent spacing in sub or super scripts with eulervm

When typing formulas to explain physics, sometimes non spaced text in super or subscripts is helpful. $q_{heat}$ To prevent spacing in subscripts, I often used \textit in math mode: ...
3
votes
1answer
66 views

How to get rid the indent after the equation

Since my equation in LaTeX is quite large I have decided to increase its size in the following way: % \begin{small} \begin{eqnarray} bla bla bla bla ...
7
votes
2answers
353 views

Modify locally the “array” environment for Equation Systems

When I started to use LyX 2.0.6 I noticed that when an Equation System is needed, there are two options available to typeset it: using the appropriate command on the Math Line cases, or ...
1
vote
1answer
60 views

Question about the underbrace in combination with the array

I'm trying to use the \underbrace option, and I kind of managed to make it work with the following code: \begin{equation} \begin{array}{rcl} \left(\Lambda_1 \Lambda_2\right)^T G \left(\Lambda_1 ...
1
vote
1answer
93 views

How to prevent a math symbol to change its type [relation, operator etc.] and modify the space around?

Typically, we take \leq: \documentclass{article} \begin{document} \[ \leq \simeq \leq_A \sim \leq_B \] \[ \leq \simeq {\leq_A} \sim {\leq_B} \] \end{document} and ...
1
vote
1answer
52 views

Spacing in commands for math mode

I would like to define commands with semantics similar to e.g. + in math mode. For instance, $(x+y)$ produces an equation with some spacing around +, whereas $(+)$ produces an equation with less ...
7
votes
1answer
96 views

lock spacing in math mode [duplicate]

Is it possible to "lock", or protect, the spacing of a math formula displayed in-text, so that latex will not stretch and squeeze the formula? I would not like to do this globally for all formulas, ...
12
votes
3answers
201 views

Multiple letters without spacing in Math [duplicate]

Is there something I can add to the preamble of my document such that multiple letters without spacing in a Math environment (such as $NP$) do not have extra spacing between them and are not ...
4
votes
2answers
217 views

Adjusting the position of \dot

I'm writing a paper that uses the symbol \dot{\mathcal{U}} which for me (in PDFLaTeX with Palatino math fonts) looks like this: As you can imagine, from further away, the dot is invisible. Is ...
5
votes
2answers
118 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 ...
8
votes
2answers
177 views

Underarrow with smaller depth, shorter minimum length, and smaller arrow head?

I am using underarrows from amsmath to decorate messages with their direction, as in $\underleftarrow{\mathsf{msg}}$ () and $\underrightarrow{\mathsf{msg}}$ (). I am looking for a better underarrow, ...