Tagged Questions
4
votes
1answer
46 views
Math-mode kerning/spacing of letters
Take the following two equations:
\begin{equation}
o^{AR}_{i,t} = w^{AR}_i x_t + o^{AR}_{i+1,t-1}
\end{equation}
\begin{equation}
o^{MA}_{i,t} = w^{MA}_i x_t + o^{MA}_{i+1,t-1}
...
2
votes
3answers
67 views
how to arrange the place before a pair of parentheses indicating a note in math mode?
I need write some formula. I don't know how to choose the |space| as below:
$a_1=S_1$, $a_n=S_{n} - S_{n-1}$ |space| ($n > 1$)
(Maybe
$a_1=S_1$, $a_n=S_{n} - S_{n-1} |space| (n > 1)$
is ...
10
votes
4answers
163 views
Using commas in mathematical formulas
I need write some formula, but I don't know how to arrange the comma's place.
$p,\ q\in N$, blabla $0<a,\ b<1$ blabla $i,\ j=1,\ 2,\ \dots,\ n$
or
$p,\;q\in N$, blabla $0<a,\;b<1$ ...
6
votes
1answer
89 views
Wrong spacing in math-mode
Consider the following example. (The code is not my own.)
Code
\documentclass{article}
\usepackage{mathtools}
\usepackage{siunitx}
% Subscript text directly in math mode.
\makeatletter
...
4
votes
1answer
58 views
Increase the space between operator in subscript/superscript
I need to increase the space globally between operators in subscripts/superscripts.
Example: \sum_{x=4}
I need a little more space before and after the = symbol in the subscript. It is required ...
2
votes
2answers
66 views
How can I lower an \xrightarrow
I'm referring to a previous post where I asked how to handle lines that are too tall due to stacked mathematical symbols. In particular, the problem occurs in my texts when using \xrightarrow like in ...
13
votes
3answers
97 views
Difference between \mskip and \mkern
What are the differences between \mskip and \mkern? The TeXbook writes the following (ch. 18):
You can insert math glue into any formula just by giving the command
‘\mskip⟨muglue⟩’. [...] ...
0
votes
1answer
39 views
LaTeX \bar in table [duplicate]
I'm very new to Latex. So i want to put a \bar W in a table but the bar is covered by the horizontal line of table.So it becomes invisible. I tried adding \noalign{\smallskip} after \hline but it cuts ...
1
vote
1answer
46 views
LyX: Vertical spacing only some lines in a paragraph/ only the inline formulas
I have the following problem in LyX:
I get many paragraphs with awfully long in-line formulas, which by multi-lining come to be vertically adjacent. The aesthetic effect is quite awful, so I would ...
9
votes
2answers
99 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 ...
5
votes
1answer
55 views
`\hfill`-like spacing in math mode without using `align`
In question 83509, a way of getting \hfill-like behaviour in the align environment is described, but for my purposes, I need one that works in the equation environment. (I want to display some ...
4
votes
1answer
47 views
Hyphen within variable names (Proteins and Amino acids)
I have to Amino acids as variable-names within LaTeX. So far I am using (and found out):
\documentclass{a4paper}{article}
\newcommand\dTRP{\mathit{d-TRP}}
\begin{document}
$[\dTRP] = 3$ (Ignore ...
1
vote
2answers
50 views
Spacing between a special character and text
Why do I get output like this ?
Why is the alignment varying if I embed the special characters like lambda and eta ?
code sample 1:
\begin{gather}
\label{eq:Highest spatial frequency}
\frac{2 ...
7
votes
3answers
125 views
Can \left( … \right) be instructed to ignore nonexistent upper or lower limits of summation? [duplicate]
In a formula such as
\[ \left( \sum_{n\in\mathbf{N}} \right) \]
the left and right delimiters extend not only downwards to cover the lower limit of the sum, but upwards an equal amount as if to ...
7
votes
1answer
125 views
How to automatically add \! in subscripts?
This code
\documentclass{article}
\usepackage{fouriernc}
\begin{document}
$a_1$
$a_{\!1}$
\end{document}
produces this output:
I like the spacing on the lower one much more.
Is there a way to ...
3
votes
1answer
64 views
Overset placement is uneven
I'm using this code to show that one element of the equation is greater than zero and the second element is less than zero.
\begin{align}
\overset{+}{\pi_{i}} + \overset{-}{w_{g}(S)} > 0
...
6
votes
2answers
87 views
Inline math spacing and varying interword spacing
Say I want to reduce the space between two letters in math mode by 2/18 quad. Going all Die Hard 3, I put together 2 -3/18 quad \! and add 4/18 quad with \:. The problem is, though, that apparently ...
3
votes
1answer
70 views
Text inside Math
I tried doing this:
\usepackage{amsmath}
$x^2 \text{something} y^2$
but that just came out like:
x^2somethingy^2
Anyone know how to fix this issue? I need to have text inside my math ...
2
votes
1answer
67 views
Inline math: Line breaking and stretching only in specified places
Is it possible to have document-wide solution for all inline formulas was breakable and stretchable only in pointed positions?
Like
$longformula1 \/ longformula2 \/ longformula3$
was able to break ...
4
votes
2answers
76 views
Why is the spacing changed through {}?
In the last time I used TikZ and i was a bit surprised in the spacing in some nodes,
\documentclass{standalone}
\begin{document}
$-\alpha \qquad
{}-\alpha \qquad
\underbrace{\alpha}\cdot \omega ...
7
votes
2answers
100 views
How can I use color in a mathematical expression without losing horizontal spacing?
How can I use color in a mathematical expression without losing horizontal spacing?
\documentclass{article}
\usepackage{xcolor}
\definecolor{red}{HTML}{dd0000}
\begin{document}
\[3+(-5)-2+3\]
...
1
vote
0answers
38 views
Space between a|b in math mode? [duplicate]
For a context free grammar I need to write:
A -> a | b
My code for this is
$ A \rightarrow a | b $
however this gives me something like
A -> a|b // wanted: a | b, note the space before ...
12
votes
3answers
155 views
Bizarre spacing of \cdot when trying to typeset a permutation type
I was just trying to write some cycle types in a permutation group, like so:
The conjugacy classes of the symmetric group are simply given by the
cycle types, so there are five in $S_4$: $Id$, ...
6
votes
1answer
200 views
TikZ: Controlling text within nodes and placing nodes in text
Need some help working with TikZ. Let me begin by saying that I think TikZ is amazing. I hardly know what I'm doing at this point and yet I've been able to draw some very nice diagrams with it.
...
6
votes
1answer
140 views
Applying condition around \intertext and \shortintertext leaves excess vertical space
When I try to make either \intertext or \shortintertext conditional I get excess vertical spacing prior to the conditional text as per the MWE below. Note the excess vertical spacing prior to "Albert ...
3
votes
1answer
181 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, ...
9
votes
2answers
125 views
Math Spacing in the presence of a trailing/non-trailing comma
I thought I knew how to use a \hphantom{} but don't know of an easy way to handle this case due to the comma. I want to get the text aligned for the X row. I added the appropriate \hphantom{{}+1} ...
5
votes
1answer
277 views
Seeking advice for my clumsy math homework template [closed]
I typed my math homework with LaTeX. This was my first try on making some document with LaTeX. I can Google for math symbols, so it's okay, but the overall structure is really clumsy; especially ...
15
votes
2answers
228 views
How to remove an unwanted white space at the last end of a horizontal curly brace?
You can see there is an unwanted white space at the last term below.
\documentclass[border=12pt]{standalone}
\usepackage{amsmath}
\begin{document}
$
...
14
votes
1answer
205 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
6answers
203 views
math shorthand macro: avoid extra space from empty superscript
I find myself writing $\{0,1\}^x$ a whole lot, so I want to define a shorthand macro:
\def\zo#1{\{0,1\}^{#1}}
However, sometimes I need $\{0,1\}$ with no superscript. If I write \zo{} I get a tiny ...
6
votes
2answers
79 views
Space added after \right
I have a problem regarding the space added by \right..
I have read this answer regarding the topic, where @egreg proposes a macro that deletes this space. However, when using this in my own ...
6
votes
1answer
255 views
Easily change behavior of \DeclarePairedDelimiter
After seeing the answer to this question I realized that I preferred the way of working of Juan A. Navarro's answer:
I.e., \DeclarePairedDelimiter{\parens}{\lparen}{\rparen} from mathtools is a ...
1
vote
1answer
208 views
Space between letter and lowercase in latex math mode
is there a way to remove the space between the variable and the lowercase letter as standard in math environment?
by now i'm using this:
\begin{equation}
a\;b_{\! c}\;d
\end{equation}
Without \! ...
6
votes
3answers
133 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 ...
3
votes
1answer
71 views
Make a postfix operator with suppressable spacing?
I would like to create a postfix unary operator that normally leaves \medmuskip between the operand and postfix operator. It's easy enough to do this using, for example,
...
6
votes
2answers
149 views
Problem of different spaces between subscripts and letters in math mode
In math mode, the spaces between subscripts and letters are not always the same, but depending on the preceding letters!
See e.g. (different colours indicate different spaces)
Is it the feature of ...
13
votes
1answer
243 views
Math mode: Spacing after Superscripts
Math mode adds extra horizontal space after superscripts. I have listed various options for removing it in the MWE. I would like to know if there is any recommended way of doing this in amsmath.
I ...
8
votes
1answer
141 views
Punctuation spacing after long exponents
When typesetting equations with long exponents or high-numbered footnotes right before punctuation marks, the result is a rather awkward large space between the last letter and the punctuation mark:
...
1
vote
1answer
89 views
How to modfiy spacing for inline math?
I want to reduce spacing between operators in inline math. If I add the follwing lines to the peamble it affects both inline and display math modes.
\thinmuskip=0mu
\medmuskip=0mu
\thickmuskip=0mu
...
6
votes
1answer
133 views
How to remove space from mathematical formulas?
This almost looks like what I would like to have
but the space between, for example, $f_1($ and $v_1$ is too large.
How can I fix this?
I got this with
\begin{equation}
...
6
votes
0answers
93 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 ...
2
votes
3answers
299 views
Why does the space have no effect in this line of my code?
Here is my code:
\documentclass{article}
\usepackage[utf8]{inputenc}
\usepackage[T1]{fontenc}
\usepackage{geometry}
\geometry{a4paper}
\usepackage{amsmath}
\usepackage[frenchb]{babel}
...
10
votes
2answers
94 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}
...
8
votes
1answer
258 views
Digit grouping — Apostrophe or space as decimal point
Today, I had to deal with large number blocks with >10 digits. With my current setup, the whole number is shown without any grouping or decimal point, making it hard to read them, especially when they ...
4
votes
1answer
120 views
How to change the spacing in latexit for Times New Roman font?
I've successfully changed the font used in Latexit (equation creator) to Times New Roman by changing the engine to xelatex and by adding this to my preamble:
\usepackage{mathspec}
...
10
votes
1answer
445 views
Making \sim a unary operator
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 ...
3
votes
1answer
120 views
creating implication and equivalence symbols of intermediate length
It is said that using the commands \implies and \iff is preferred over \Rightarrow and \Leftrightarrow, because they give wider spacing around and thus more prominence to the characters. (This other ...
6
votes
2answers
172 views
Formatting of \bigwedge in display math mode
I posted an answer on math.se here and in there I used double dollar mode. Now in that mode, I had
\bigwedge^ \hspace{1mm} k V
but upon rendering it looks weird like
How can I bring the k ...
13
votes
1answer
288 views
adaptive \ldots with no (“…”) spacing
Due to the typographic traditions I'm used to, I prefer my \ldots to have no spacing in between, ideally exactly the same amount as in text. In math mode I would like to write things like \(1, 2, ...






