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

1
vote
0answers
27 views

How to force a math font regardless of any other factors? [duplicate]

I am using Charter for math (mathdesign package) and Bitstream Vera for body text (through XeLaTeX's fontspec package. However, when using things like \text{} in math mode, the text still appears in ...
0
votes
0answers
25 views

Diagram of a variation of the middle third Cantor set [duplicate]

I would like to construct a diagram which is a variation of the middle third Cantor set as described by: Suppose we start off with the unit interval $[0,1]$; let us call it $A_0$. Next, remove the ...
3
votes
2answers
186 views

Multiple results for equation

How do I define a equation e.g. x +y that shall be true for e.g. <5 and >0 in one equation? I was thinking of using a large brace, but I can't find any example of how to achieve this.
3
votes
2answers
86 views

How to place the subscript under two summation signs in a fraction?

I would like to place a subscript under two summation signs in a fraction, in an equation. The code showed works when it is not in a fraction, but as soon as I use it in a fraction the subscript is ...
5
votes
2answers
83 views

Format a variable in math mode dependent on its case

I have a special kind of variable in my equations which I want to be formatted dependent on its case (lower or upper). I already tried using the package stringstrings, but there seem to be problems ...
0
votes
0answers
40 views

How do I use \begin{equation}

I'm trying to enumerate my equations using this command: \begin{equation} w(H)\le (g^2-5g+10)/2 \end{equation} I have this in the log: ! Missing $ inserted. <inserted text> $ l.1026 ...
1
vote
0answers
54 views

What does “\!\!” mean? [duplicate]

For example, in the mathematical notation of a quotient space given an equivalence relation \sim, the rendering of X/\sim is different from X/\!\!\sim. In the former, there is a gap between the slash ...
8
votes
4answers
170 views

How do I have centered equations on right case?

Here is an example of what I want to achieve. I have tried below but the equations won't center automatically. \documentclass{article} \usepackage{amsmath} \begin{document} \begin{gather*} ...
6
votes
3answers
188 views

I want a really small underbrace

This question is related to, but distinct from Oversized \underbrace's label causes unwanted spacing. My issue isn't with the spacing of the label, but with the size of the underbrace itself. ...
4
votes
2answers
51 views

New line inside color area

I'm trying to enter new line inside colour area like this $\color[rgb]{0,0,1}{P(A) = a +\newline b +\newline c +\newline d}$ But it does not work, why? And how do I solve it? Thanks!
2
votes
1answer
39 views

Failure to produce nested matrix with shortcut macro

I use a \arr macro as a shortcut for bmatrix environments. In addition, I use a hacked version of bmatrix (see: What's the best way make an “augmented” coefficient matrix?) so that it's easier to ...
0
votes
1answer
100 views

Why does LaTeX throw an error for this equation?

I am having a tough time reproducing the following equation in LaTeX: C = 2/(ω^2 N^(2 )µπa) This is the code I have: C = \frac{2}{\omega^2N^2\mu\pia} However, this throws an error. What am I ...
3
votes
1answer
54 views

Vertical strikethrough

I'm currently trying to TeX up a Sieve of Eratosthenes example on the integers 2-100. I'm already using the ulem and cancel packages to give me horizontal and diagonal strikethroughs but I need a ...
4
votes
1answer
54 views

Write math in two columns in a page

Is there any simple way to split my page in two without using a multi column document to achieve this result: What I currently have is this: \begin{align*} T\left(n\right)&= 2T(n/2)+(c_2 + ...
12
votes
3answers
228 views

Underbrace changing spacing of operators

I have found that using an \underbrace on a term in an equation causes the spacing of the following terms to be changed, in particular, the + is moved closer to the \dot{m}. This seems to be distinct ...
3
votes
1answer
56 views

Lyx doesn't compile a kth root

A LyX document I wrote won't compile after I added in a mathematical formula the command root (in fact, \root[k]{\alpha}). I would have written you the code, but the document is long (over than 20 ...
3
votes
1answer
34 views

fancyvrb error with math escapes and prime (')

I've recently noticed a few cases where fancyvrb math escapes fail. This works fine: \documentclass{article} \usepackage{fancyvrb} \begin{document} ...
1
vote
1answer
81 views

Shorthand for \begin{eqnarray*} … \end{eqnarray*}

To align a long string of symbols I usually use \begin{eqnarray*} ... \end{eqnarray*}. I would like to know if there is any convenient alternative to this environment. For example, I know that ...
3
votes
1answer
78 views

how to add a dot above $\imath$

I want to indicate an element from a set of elements, so I want to use $i$ for the indication. I saw some books use a special shape for the indication in my case $i$. After quick search, I found out ...
2
votes
3answers
140 views

How can I make a diagonal division symbol?

So I want to make the four elementary arithmetic symbols in math-mode, but I don't like the way the divison-symbol looks. I want it to look like you rotated the subtraction-symbol 45 degrees, and I ...
3
votes
1answer
86 views

How do I make fractions automatically displayed in lines properly?

I would like to know how to make code of fractions in article class more easy to handle. Usually, if I type ${a \over b}$ then LaTeX does not display $a/b$, which is what I want. So I have to say ...
3
votes
1answer
126 views

Math equation eating whitespaces and operators

I have this: $0.2 \mu sec = (1 − FR) * 0.1 \mu sec + (0.3 * FR) * 8 millisec + (0.7 * FR) * 20 millisec$ \\ and the result is that all whitespaces are gone, as well as the first minus symbol for ...
7
votes
3answers
158 views

Box with subtext in an equation

I would like to do something like the boxes in the equation below But I have no idea how to implement this in Tex. Thanks in advance!
2
votes
2answers
52 views

Need help with two symbols for Complex Analysis

I cannot find how to write "cis" which is the polar form of complex number, or "Arg" which is short for argument. Does anybody know these symbols? Thanks.
2
votes
2answers
81 views

Set Math Font like in Beamer

How can I set the Beamer math font in a non-Beamer class (e.g., article)? The motivation is that I prepare a poster and a presentation for a workshop which I would like to look as similar as ...
6
votes
2answers
307 views

Matrix Inverse symbol

Is there a symbol for the inverse? I have been using X^{-1} for my matrix inversions, but this results in the -1 being rather large and taking up almost as much room as another symbol. Is there a ...
6
votes
5answers
114 views

Different fonts in same math environment

I would like to display text like 0^3 1^5 ... with the exponents (3 and 5 in the example, can be any number) written in usual math, but the bases (0 and 1) in typewriter font. I tried various ...
4
votes
2answers
77 views

Spacing between several superscripts mboxes

I'm getting a small extra space between two superscripts in separate math objects. MVE: \documentclass{article} \begin{document} zz$\mbox{zz}^{\mbox{a,a,}}$$^{\mbox{a,a}}$ \end{document} ...
10
votes
1answer
92 views

Antykwa Torunska font: How to get correct \hbar in LuaLaTeX

I'm using TeX Live 2014 with lualatex. Using the font Antykwa Torunska (anttor) for math, \hbar is not displayed correctly. The default LaTeX settings do not give good results at all scales: ...
3
votes
2answers
39 views

Revisions of a theorem where numbering goes 2.0, 2.1,2.2

I would like to give different equivalent versions of the same theorem, eventually proving the last version. The first time I state the theorem, I would like it to have the number 2.0. Each successive ...
4
votes
1answer
62 views

Is there anything like “displaystyle” for “arrays”? [duplicate]

I have this equation and I would like to "get more space" into it, how to do it? \documentclass[a4paper,12pt]{article} \usepackage{amsmath} \usepackage{amssymb} \begin{document} ...
4
votes
2answers
74 views

Proper left alignment in math environment

I've seen this http://stackoverflow.com/questions/2632628/left-align-block-of-equations answer as well as a handful of others, but none of them gives a satisfactory solution. The problem Two ...
9
votes
1answer
133 views

Subscript equivalent of ' for \prime?

I am working through the TeXbook and I came across the section (pg. 130) where ' and \prime are discussed. Knuth mentions that TeX treats \prime as a large symbol that appears only in superscripts ...
1
vote
1answer
91 views

Getting even space around the centered dots in $1,\cdots,n$

In \documentclass{article} \usepackage{amsmath} \begin{document} $1,\cdots,n$ \end{document} There's more space to the right of the centered dots than to the left of them. What's the best way ...
4
votes
1answer
37 views

Why highlighting math with soul doesn't combine with l2tabu option for the nag package?

I have found that highlighting mathematical formulas with soul package does not work if the nag package is used with l2tabu option. A minimal (not) working example is: \documentclass{book} ...
1
vote
1answer
87 views

Format painter feature in LaTeX

I wish to know if there is any short cut in LaTeX to suffix and prefix $ symbol for math text. Say I have to write many times some variables such as x, y, and z. I wish to type them normally, and at ...
1
vote
0answers
55 views

Want large \mathbb{N} in Wordpress [closed]

I am using LaTeX in a Wordpress environment. Can I produce a large version of $\mathbb{N}$. I have tried using \large, \bf, \mathbf and \mathsymbol but nothing works
3
votes
2answers
181 views

How to get a vertical bar which is the exact size of the object?

I wish to use two vertical bars to sandwich a whole object: What I found is that (Failure 1) if I use usual \mid or \rvert or |, it is too small. (Failure 2) if I use usual \left| or ...
3
votes
1answer
55 views

How to define a fraction of tt font variables?

I am trying to define something like $\frac\mathtt{A\_B}\mathtt{C\_D}$ to get a fraction of two typewriter-font variables (inline math preferred), but I keep getting errors such as "missing } ...
8
votes
3answers
243 views

Typesetting a long exact sequence

I am trying to typeset the Mayer-Vietoris sequence (concisely - without the map names above the arrows). Currently I am simply using the AMS align environment with a bunch of \rightarrow, \cdots and a ...
1
vote
0answers
49 views

Problems with vector fonts and embedding

I have written a thesis, printing on the home-printer works fine, but for publishing, there are some problems concerning the embedding and fonttypes: I am using Miktex via TeXnic Center on Windows 7. ...
3
votes
1answer
42 views

Long underbrace with exponent following

The following code results in the following output. \documentclass{standalone} \usepackage{amsmath} \begin{document} ${\underbrace{\left(a^k\right)}_{\text{very long text}}}^{s}$ \end{document} ...
3
votes
0answers
44 views

Use of Script-size and Script-script-size glyphs

In the answers to this question, I learned that OpenType Math fonts like Cambria and Latin Modern Math contain script-size and script-script-size characters, with different optical scaling. In my ...
10
votes
1answer
589 views

Traditional German e sans-serif letter

I am currently translating an old physics paper from German into English (Elektron und Gravitation I by Hermann Weyl in 1929) and in one of the formulas two different characters for the letter E are ...
7
votes
1answer
122 views

Why does using color break superscript/subscript horizontal spacing?

The below snippet, within an equation array environment, gives the subsequent rendering: F\left[C^{(n-k)}_{P_{ji}}\right] But when I add color to the snippet (using the color package) as below ...
5
votes
2answers
117 views

How to achieve two levels of indentation inside align environment?

I'm trying to indent an equation further away - basically to achieve two levels of indentation. Let me explain a little bit more... I have the following: \documentclass{article} ...
1
vote
2answers
51 views

Accentset not working with fraktur

The following code works fine % arara: pdflatex \documentclass[12pt]{book} \usepackage{accents} \usepackage[ cal = cm, bb = ams, frak = euler, scr = euler ]{mathalfa} ...
4
votes
4answers
309 views

How to break a product of three polynomials

I have $$(1+x+x^2+x^3+x^4+x^5+x^6)(1+x^2+x^4+x^6+x^8+x^{10})(1+x^5+x^{10}+x^{15}+x^{20})$$ but is too long to fit the page. How to break this?
0
votes
1answer
62 views

How does one write a big $\oplus$ sign? [duplicate]

How can I write a big $\oplus$ sign? I've been experimenting with lots of different things like $Oplus$, but nothing is working.
0
votes
0answers
32 views

How to globally replace () with \left(\right) in math mode? [duplicate]

I find myself barely using (). Instead, I always use \left(\right). Keeping typing that long string really kills me. I have tried this, but no luck. \DeclareMathOperator{(}{\left(} ...