{math-mode} is about typesetting mathematical content, e.g. tweaking the appearance of spacing and symbols in a formula, or producing specific mathematical constructs. For questions about "wrapper" environments like equation or align, consider the tag {equations}.

learn more… | top users | synonyms (2)

3
votes
3answers
94 views

How to centre underaccent under letter?

Here's the M(not)WE: \documentclass{article} \usepackage{mathtools} % for "\mathclap" macro \usepackage{amsfonts} \usepackage{amssymb} \usepackage{accents} ...
2
votes
1answer
102 views

Conflicting multi-line underbrace labels

Sometimes a \makebox gives nice underbrace, sometimes multiline version with \parbox works. But how to combine two multiline-underbrace-equation-labels side by side and make them look good? ...
8
votes
1answer
231 views

Spacing around \cdot

I'm trying to use \cdotas a dummy for a function argument in the following expression C(\cdot\mid\mathcal{F}_{t-1}) However, the above produces more space to the right of the dot than to the left. ...
6
votes
2answers
144 views

Brackets not tall enough with smallmatrix from amsmath

The following MWE shows that when I typeset a matrix using the smallmatrix environment from amsmath, and wrap it in a \left( \right), the parentheses generated are not big enough to reach the ...
2
votes
2answers
138 views

Move Equations in Book

I asked a question here on how to align tables differently on even and odd pages. Now I need to do the same for equations written in align environment. I tried the same trick proposed for tables. They ...
18
votes
2answers
698 views

Should running-text numbers be typeset with math mode?

Should I typeset numbers in a running text with math mode? I read $4795$ pages. I read 4705 pages. I tried it out with the default font, and there does seem to be tiny differences in kerning. That ...
1
vote
2answers
87 views

Vector with too short arrow

I'm trying to write two vectors like this: Currently I'm using $\vec{p_e,\SI{10}{\hertz},s2}$ bug ig looks like this: How can I write it correctly? That means: long vector arrow italic Hz
3
votes
1answer
71 views

Uniform number formatting

I am facing the problem that in a collaborative research paper there are several different number formats within the text, if the number is not pasted in math mode. For example: 10.000,00 or ...
1
vote
0answers
27 views

Is there any difference between math mode and text mode for numbers? [duplicate]

Take the sentence: "The answer is 42". Is there any difference between The answer is $42$. and The answer is 42. In the final PDF I cannot see any difference. Does it make a difference whether I ...
1
vote
2answers
219 views

Physics notation

I really don't know how to write that 'Y' in latex. I have tried many methods but I didn't succeed. Any help will be appreciated.
0
votes
1answer
182 views

Math notation in LaTeX?

How can I write e^(3j) in LaTeX? I have tried many syntax, like $e^(3j)$ or $e^*{3j}$ Any help will be very well received.
1
vote
1answer
39 views

Arrow above text (like widehat)

I'm doing a presentation for a lay audience and I was hoping to have an arrow above the word "dim" to differentiate the dimension vector from the dimension generally. However, $\xrightarrow{dim}$ puts ...
1
vote
1answer
50 views

fonts in mathmode

I would like to ask if there exists anywhere a font for math mode that is as similar as possible to the font called "Avenir" (or else Helvetica Neue, Helvetica or Verdana) ? Cheers Edit: as to the ...
2
votes
1answer
42 views

Latex typesetting, continue writing text not in new line [duplicate]

I have a very simple question that how to write SCR_life within text. Not write in the new line. I tried \[SCR_{life} \].
2
votes
1answer
305 views

How can LaTeX insert math formula in text paragraph?

If I want to insert a math formula, usually just a math symbol, in text paragraph, LaTeX put the formula to the next line and put it in the middle of the line? How can I just insert between text?
41
votes
2answers
47k views

How to color math symbols?

One can use the command such as \textcolor[rgb]{1.00,0.00,0.00}{boundary} to color the word "boundary" in a document. Here is my question: How to color the math symbols in $$? For example, can one ...
1
vote
0answers
16 views

Beamer \textcolor space in math mode problem [duplicate]

Why in the second case the spacing is correct and not in the first ? Maybe not fully correct in the second between + and u ? \documentclass[xcolor=dvipsnames]{beamer} \begin{document} ...
1
vote
1answer
39 views

Best practice for mean value of function: bar or overline or something else?

If you have a function f, it is common to denote its mean value by a line over it, like \bar u. Suppose I have a function like $f_T$, then how should I write the mean value? Like $\bar f_T$, ...
4
votes
1answer
26 views

Symbol with tilde AND sub/super-scripts

I need to typeset a mathematical symbol consisting of a letter with a tilde and both sub- and super-scripts. The subscript is fine, but the tilde runs into the superscript. How can I fix this? Here ...
4
votes
1answer
91 views

Math font changing and siunitx?

Consider this MWE: \documentclass{article} \usepackage[utf8]{inputenc} \usepackage[T2A, T1]{fontenc} \usepackage{amsmath} \usepackage{lmodern} \usepackage{siunitx} \usepackage{mathpazo} ...
10
votes
3answers
860 views

Inline math or \textit for author defined math constants?

Wondering if people here have a thought on what the best practice is here (if it matters). I used to use baskerville (well, the baskervald package) as my main font and charter as my math font (since ...
3
votes
0answers
37 views

Angle brackets with commath and Asana Math too large (or small)

I want to set bra-ket equations in my document, which uses Asana Math (with lualatex, fontspec and unicode-math). commath is also a requirement for certain stuff. However, in this specific ...
11
votes
3answers
259 views

How do I adjust \underbrace spacing?

I have an equation like this \documentclass{article} \usepackage{IEEEtrantools} \usepackage{amsmath} \begin{document} \begin{IEEEeqnarray*}{rClCl} \left( \begin{array}{c} ...
9
votes
1answer
4k views

beamer over miktex 2.9 is not working with math environment

I have this problem where I can't built slide documents with beamer every time I include a math environment as simple as $\mu = A$. The log file posts this message at the end: !pdfTeX error: ...
0
votes
1answer
38 views

Right-aligning numbered equation

How do I get the last equation (6.24) to align to the right...? See my current code below.
5
votes
2answers
358 views

Spacing for homogeneous coordinates

Homogeneous coordinates in projective geometry are usually denoted like this: $[x:y:z]$. However, I think that : plays the role of a comma, and should be surrounded by much smaller spaces than for ...
2
votes
2answers
68 views

How to add horizontal fill after an displayed equation in lyx?

So how to put the horizontal fill immediately after the displayed equation? I mean, I want the "(equation 1)" to be in the same line as the displayed equation. How should I do that? Guys please ...
1
vote
3answers
165 views

what should this piece of LaTeX do?

Today I just started learning LaTeX. This is my first code: \documentclass[a4paper,11pt]{article} \DeclareMathSymbol{\bot}{\mathord}{symbols}{"3F} \DeclareMathSymbol{\perp}{\mathrel}{symbols}{"3F} ...
1
vote
1answer
69 views

Using TEX in Mathtype

I use Mathtypeto insert mathematical equations in MS world. Today I understood that there's no built-in symbol for $\mathscr(F)$ in MathType so I searched for a way of using LaTex codes in MathType. ...
0
votes
0answers
25 views

How to change to math mode? [duplicate]

I am learning LaTeX for the first time and I am learning how to write an article. I have been told that its better to type mathematical stuff in math mode. Presently I am typing the text and I assume ...
8
votes
4answers
768 views

How to write cases with LaTeX?

The code i used to write is this one $$ X(m,n)= \begin{cases} x(n),\\ x(n-1)\\ x(n-1) \end{cases} $$ But I don't know how to write this one I appreciate any help. Edited: I'm sorry to add ...
5
votes
4answers
176 views

How to get curly brace, alignment and separator line in the same equation?

Hi, I already know how to get curly brace and alignment. \[ \left\{ \begin{aligned} 8x + 6y &= 4 \\ -15x - 6y &= -3 \end{aligned} \right. \] The problem is how to draw separator or sum ...
2
votes
1answer
31 views

Changing Fonts between \textstyle and \scriptstyle with MTPro2

I'm a fan of Spivak's MTPro2 fonts, except for the fact that the numerals don't quite match the regular Times (ptm) numerals. Is there a slick way to change the \displaystyle and \textstyle numerals ...
2
votes
1answer
30 views

blockarray Size of Brackets

Is there a way to increase the size of the brackets when using blockarray and block? Please see the example below: \begin{align*} \begin{blockarray}{l c c c c} & ...
3
votes
1answer
46 views

print the rows of a matrix in two different sections in order to prevent the elements from mixing together

As you see in the following picture I have a 4x4 matrix and the elements are so lengthy that they will not fit in a single line of an A4 paper. In fact this equation is printed in a book that I'm ...
2
votes
2answers
51 views

\displaystyle for a part of the document

Is there a way to use \displaystyle for a part of my document? I do not want to change everywhere the inline math sizes, on the other hand it is a bit tedious to write everywhere (in a list of ...
0
votes
0answers
48 views

Bisimulation symbol? [duplicate]

Very simple question: I'm looking for the symbol that indicates that two worlds from 2 different Kripke-models are bisimilar, that there is a bisimulation between those two. In most articles a ...
22
votes
3answers
5k views

Guidelines for typesetting fractions

I realize that this question is to some extent subjective. However, I suspect that there are some common standards regarding how fractions ought to be typeset in mathematics. The guide Mathematical ...
5
votes
1answer
223 views

How to define a symbol that can be used in both a glossary and an equation?

I created a list of symbols table as you can see : \newglossaryentry{slambda}{ name=$\lambda$, description={wavelength} } When I tried to put this symbol in the equation : \begin{equation} ...
1
vote
1answer
30 views

Breakline in math mode - no equation

I've found many questions about math mode and linebreak but each time about many equations. My problem is in a function definition. It's really long and using \text. So I have an overfull \hbox and ...
1
vote
1answer
19 views

Control Spacing and Alignment in align environment

I have an align-environment and basically want all the Z's and all the signs (+-) left-aligned + all centered + the smallest possible/sane gap in between + numbering + labels (if possible): ...
2
votes
1answer
26 views

Intertext causes overfull hbox in align* environment

\documentclass{article} \usepackage{mathtools} \begin{document} \begin{align*} a & =b & & \text{if } \begin{dcases*} ...
0
votes
0answers
28 views

How to typeset the stochastic exponent symbol? [duplicate]

Here is a screenshot where the symbol is present. I am not sure what command should I use to produce the symbol in the left of (3.11). However, after comparison, I think it is not \varepsilon.
43
votes
2answers
25k views

Vertical Spacing within align environment accounting for fractions

The default vertical spacing within an align environment seems very tight when there are fractions in the lines. I am aware of three manual tweaks that can be applied: Adjust the value \jot. ...
0
votes
1answer
50 views

Excess vertical space around display math

I'm sorry but I cannot produce a minimal compilable example. I use book as a documentclass. When compiling pdfLaTeX I get some very annoying random placed additional vertical space around display ...
0
votes
0answers
29 views

Inline listing in ams environment drops space before mathescape

In http://tex.stackexchange.com/a/127018/83257 there is a patch to make inline listings work in math mode. When using this together with listings' mathescape option, the space after a math escape is ...
0
votes
0answers
11 views

How to get Line breaking in Math Tuple in a definition [duplicate]

See the MWE below. The tuple falls outside the margin. If I make the sentence a bit shorter or longer then it works fine. So this is unreliable. Now I can off course force line break before the ...
0
votes
1answer
32 views

vertical alignment symbols from two different equations

I would like to align equations from two different lines. \documentclass[12pt]{article} \begin{document} $$ a = b +1 = c +2 = d +3$$ The quick brown fox jumps over the lazy dogs. $$ a = b$$ ...
3
votes
1answer
128 views

How to restrict TexStudio macro script to work only in text/normal mode?

I understand that you can write (?highlighted-as:numbers,math-delimiter,math-keyword) before your trigger and TexStudio will execute the macro only in Math mode. I already tested that in "scripts ...
3
votes
2answers
134 views

Change kerning for `f'` in math mode

I want to adjust the kerning between f' in math mode (and other pairs) across the entire document. I found http://tex.stackexchange.com/a/219881/54601, which is exactly what I want but for text mode, ...