{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)

26
votes
3answers
3k views

Getting a tikz picture to have an equation number

I make a lot of commutative diagrams and am trying to switch to Tikz from amcd,diagrams, etc. I often have to refer to these diagrams in the text and would rather have them as equations (i.e. with and ...
2
votes
1answer
747 views

How to embed multi-line block of text in maths

What is the best way to embed a multi-line block of text, surrounded by curly braces, in maths mode? The best I can do is the following hack. \[ {\text{bounded WD-representations} \brace \text{of ...
17
votes
6answers
7k views

Align two inequalities

I am trying to align two inequlities vertically. The \le signs should have the same horizontal positions and the term in the should be centered. My first attempt: \begin{align*} \sum a &\le \sum ...
10
votes
3answers
4k views

What parsers for (La)TeX mathematics exist outside of the TeX engines?

Inspired by the author's motivation for asking Is there a BNF grammar of tex language. Are there any well done libraries that can parse some subset of TeX mathematics independently of the TeX engine? ...
125
votes
9answers
46k views

How to typeset $:=$ correctly?

I like to use $:=$ for "is defined to be equal to", but this is never typeset with the symmetry one would like, as the colon is always too low relatively to the equals sign. Is there any way of ...
26
votes
6answers
3k views

Bad positioning of math accents for the beamer standard font

With a recent TeX distribution, the easy answer to this question is "load the sansmathaccent package" (which is Ariel's implementation of my answer). Actually, the corrected font should be loaded ...
4
votes
7answers
2k views

Can I make all my math upright?

I'm not a fan of italics in math mode, is there a way to make all my math upright? When using the MinionPro package, I'm quite happy with the frenchmath option, which I believe turns all greek ...
2
votes
1answer
218 views

Why is the spacing for this completely whacky?

I have the following line: $P(can't\,communicate) = \frac{\#\,of\,combinations\,of\,4\,different\,keys} {total\,possible\,arrangements} = \frac{\frac{10*9*8*7}{4}}{2025} = ...
5
votes
2answers
937 views

Math italics with unicode-math.

I'm using Tex Live 2010. Here's the example I want to discuss. \documentclass{article} \RequirePackage{amsmath} \RequirePackage{unicode-math} \setmainfont{Linux Libertine O} ...
2
votes
2answers
3k views

How to use \mathcal with subscript? Undefined control sequence..

I am trying to have a cursively written l (L) with a subscript A. I tried this: If A has a straight line $\matchcal{l\subscript{A}}$ But I'm getting undefined control sequence. Why is this?
6
votes
2answers
1k views

Changing math font to OTF in XeTeX using plaintex-format

How does one change the math font?
7
votes
2answers
1k views

Please critique this “intermediate size” fraction macro.

I often write a lot of mathematics where I multiply various quantities/operators/etc. by fractions. The fractions are important for bookkeeping, but usually not the most important thing in the ...
38
votes
1answer
27k views

How to get a little frac

I am wondering how to make a fraction in LaTeX small enough to fit on a line, or at least just a little larger. I could have sworn I had seen this before but I just cannot find it. In particular, I ...
5
votes
2answers
912 views

Problem with \mathpalette and \mathchoice

When working on an additional answer to this question of mine, I stumbled across the following problem with \mathpalette. For simplicity I give an example where in practice it is ridiculous to use ...
6
votes
2answers
4k views

Bold square brackets

How do I typeset a bold square bracket? I need to typeset it about 3 times thicker than it is (to denote a specific mathematical operator). {\bf[} does not do this. Things like [\![ do not seem to ...
3
votes
1answer
1k views

Changing size of greek in mathmode with Times fonts

I'm using mathptmx to write a paper for a conference that wants Times. Everything seems to be working ok, except for the size of the greek letters in mathmode. The greek letters have a larger ...
109
votes
5answers
241k views

How can I split an equation over two lines

I am having the following equation: \begin{equation} Q(\lambda,\hat{\lambda}) = -\frac{1}{2} P(O \mid \lambda ) \sum_s \sum_m \sum_t \gamma_m^{(s)} (t) \left( n \log(2 \pi ) + \log \left| C_m^{(s)} ...
5
votes
1answer
234 views

Greek letter in math mode appears lower than the rest of the statement

This is my first time using the math mode. My problem is visible in the following screen capture. I find that the lower-case chi letter is rendered lower than the latin characters. Is that normal? ...
13
votes
3answers
25k views

Make equations large

I'm including some equations in my document, but want them to appear very large. I have them in display mode, as opposed to inline mode, but can't seem to find any way to make them larger. I've tried ...
3
votes
1answer
2k views

LyX AMS align environment justification/ horizontal alignment

I'd like to know how to justify individual columns in the AMS align environment. In the matrix environment, the Table toolbar buttons are active, but not inside the AMS align environment.
13
votes
2answers
2k views

How do I lower the \widetilde accent, i.e., move it closer to the variable?

I sometimes find that the \widetilde accents sits too high above the math letter it is applied to. An example: To me it looks as if the first tilde is sitting just in between the two lines; it is ...
7
votes
1answer
3k views

Why is \Pr not defined using \nolimits?

Plain TeX defines \Pr as \def\Pr{\mathop{\rm Pr}} LaTeX and ConTeXt define it similarly (with some syntax sugar around the choice of the font). To me, a more reasonable definition is ...
33
votes
4answers
30k views

Bold math: Automatic choice between \mathbf and \boldsymbol for Latin and Greek symbols?

This is a follow-up to this question. Suppose you want to denote vectors by upright bold letters; then \mathbf{u} works fine, except that if it's a Greek letter you have to use \boldsymbol{\omega} ...
32
votes
2answers
9k views

How to use more than 10 tab stops in \bmatrix?

I'm using bmatrix environment from the amsmath package, and I'm trying to do something like this: \documentclass{article} \usepackage{amsmath} \begin{document} \begin{equation} ...
6
votes
2answers
3k views

Symbol for contraction / interior product?

How to make the symbols for interior product (a.k.a. contraction)? The best I've been able to come up with is \mathrel{\llcorner} (or \lrcorner). Any other suggestions?
6
votes
1answer
11k views

How do I make a blackboard 1? [duplicate]

Possible Duplicate: Blackboard bold characters I want to make a blackboard "1" character to show an indicator variable, but $\mathbb{1}$ doesn't work. How do I do it?
101
votes
3answers
152k views

What is the “correct” way of embedding text into math mode?

Lets say I have something like: \[ Let x = number of cats \] (This is a contrived example, but pretend we are actually inside a long align environment block...) "Let" and "number of cats" need to ...
0
votes
1answer
3k views

Enhanced \oint to emphasize circulation

I'm looking for a symbol that merges \iint and \oint together (a dedicated package, if it could exist, would provide something like \oiint and \oiiint). The purpose of \oint is to show that the ...
3
votes
3answers
502 views

Preceding a command by an argument

\usepackage{amsmath,amssymb,amsopn}% read amsldoc.pdf for more details %\genfrac{left-delim}{right-delim}{thickness}{mathstyle}{numerator}{denominator} %\newcommand{\frac}[2]{\genfrac{}{}{}{}{#1}{#2}} ...
3
votes
1answer
3k views

How can I create a multiline split inside of a radical inside of an array environment?

I have an align like this: \begin{align*} \sigma &= \sqrt{\sum_x \left[ (x-\mu_x)^2\mathbf{f}(x) \right] } = \sqrt{\frac{1}{10}\sum_x (x-\mu_x)^2 } \ &= \sqrt{\frac{1}{10}( (0-.45)^2 ...
24
votes
2answers
20k views

How do I use a circle as a math accent (larger than \mathring)?

To denote the interior of a set, I'd like to have a command \interior. Now, as one can learn from this post, one possibility is to use \mathring. This is a neat command, but it produces a circle that ...
43
votes
2answers
42k views

\bm package versus \boldsymbol

I'm typing a bold vector small x with a tilde sign above it. Now when I want to write its derivative, I'm putting a dot on top of everything. This is giving me problems and I found one solution: ...
24
votes
5answers
6k views

Subscripts for primed variables

When I add a subscript to a primed variable, the subscript is rendered lower than when it is a subscript to an unprimed variable. For example, when I compile $l_x l'_x l_x l'_x l_x l'_x$ I get ...
10
votes
1answer
1k views

How to organize labels when there are too many equations?

I'm writing a moderately long text using LaTeX, and it's great to be able to organize chapters, sections, appendices, and everything else almost automatically. One thing has been bothering me though. ...
16
votes
2answers
11k views

How to get a vertical bar which is longer than \mid ?

sometimes when writing mathematical expression with partial derivatives, one needs to write a vertical bar afterwards and write the value at the which the partial derivatives are being computed as ...
6
votes
1answer
2k views

Displaying an equation in a list

How could one get a displayed equation inside a list environment, say itemize, so that the equation is both centered horizontally and on the same line as the bullet, but with the bullet still on the ...
3
votes
1answer
869 views

Emacs keyboard shortcut to insert \label{} \\ and a new line in math mode.

So, I'm using emacs with auctex to edit my latex documents. It's been a while since last time I used it, but I still remember my shortcuts. Except one. While editing equations inside and align ...
6
votes
1answer
6k views

How do I do an iterated intersection?

I want the index to appear under the intersection symbol.
37
votes
5answers
84k views

typesetting column vector

I would like to define a command which typesets a column vector. For one vector I can have something like: \left( \begin{array}{c} a\\ b\\ \end{array} \right) I would like the command to produce ...
11
votes
5answers
4k views

How do I stack more than two arrows in math mode?

The command \rightrightarrows (from amssymb) draws two arrows, one on top of another. How do I get three arrows arranged in a similar fashion? An example of this (and other fancy arrow stackings) ...
28
votes
3answers
11k views

Why isn't \prime automatically set to be a superscript?

In math mode, writing \prime gives too big a "prime" symbol, and it isn't a superscript, like it always is in textbooks. Why is this? This isn't a question about how to get \prime to be a ...
13
votes
4answers
528 views

How does one change the math style to one of the “primed” styles?

Background TeX typesets each portion of a mathematical expression in one of 8 styles: display, display', text, text', script, script', scriptscript, or scriptscript'. Knuth calls them, D, D', T, ...
93
votes
4answers
7k 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 ...
13
votes
2answers
14k views

A lateral brace to group a set of equations with labels

I have a set of equations that I'd like to display together (as an example, the Maxwell's equations). Requirement #1: I'd like to have them labelled like in an align environment \begin{align} ...
7
votes
4answers
738 views

New Large Math Symbol

I want to use symbols from the phaistos package as "numbers" This means that I want to type something like: \documentclass{amsart} \usepackage{phaistos} \newcommand{\lo}{\text{\PHbee}} ...
1
vote
0answers
271 views

Bad vertical centering in an equation [duplicate]

Possible Duplicate: Vertically asymmetric size variation for parentheses I'm trying to typeset something like the following: \begin{equation} x = f\Biggl[\sum_{i\in\Omega} ...
9
votes
4answers
5k views

Using LaTeX to render hypergeometric function notation

I decided to look if the solution Caramdir gave in this question would work as well for my attempts to use a new notation for hypergeometric functions. However, trying {}_3 ...
5
votes
1answer
537 views

How to compile dvisvgm with texlive 2009?

I am rolling out my own mathview.el (similar to preview.el but aim to be more efficient) package for editing LaTeX in emacs. Currently it uses dvipng but I would like to use dvisvgm as an alternative. ...
14
votes
1answer
7k views

How can I have a bigger integral (\int) delimiter?

I'm writing some integrals and I don't like the way the \int symbol is displayed when it is followed by a big delimiter. Here's the code: \[ \int_S\biggl(\nabla\times\bar B - \mu_0\bar J - ...
8
votes
2answers
598 views

Why is there a space in this equation

I have the following equation: $\|\text{DFT}\left( f_t (n) \right)\|^2 $ () This equation is rendered with a space before the second $\|$. Why is this and how can I fix it?