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

0
votes
0answers
11 views

Differnt font size or style in the paragraphs with and without math

I am using the class report with 12pt font size. I would like the text to have the same size and font in the different paragraphs. I also difined two langauges for the Listings. As you see in the ...
0
votes
0answers
22 views

How to escape a keyword like ges? [on hold]

This is my "Formula" ØTagesbedarf\quad *\quad Beschaffungszeit\quad +\quad Sicherheitsbestand Turns out, that ges is a tex keyword. And gesis in the word Tagesbedarf Sorry for this really basic ...
1
vote
1answer
17 views

How to annotate lines in split equation with left-justified comments?

I have an equation that is split into 4 lines using amsmath's split environment. How can I annotate individual lines with a text comment such that the comments are themselves left-justified and ...
8
votes
3answers
212 views

Spacing in math mode

In Math mode, if I write ":", it will automatically insert spaces before and after the colon. For example, $s:type$ will be shown as "s : type". How can I remove these spaces?
4
votes
3answers
73 views

How to align terms in polynomials in display math?

I'd like to align the terms of some polynomials in display math. For example, in the following: \begin{align} e &= x^5 + x \\ f &= x^5 + x^4 + x^3 + x^2 + x + 1 \...
12
votes
2answers
207 views
+500

Xparse k argument to parse options at end of environment

I am trying to combine the solutions from How to properly use \collect@body within align environment Xparse t argument type (underscore with optional parameter) to parse optional parameters ...
2
votes
0answers
27 views

use \partial sign from other packages, for example mathpazo [duplicate]

I would like to include another \partial sign, for example the one from mathpazo. i found a way to do it but i'm not sure wether it will change other things as well, so is this the right approach? \...
1
vote
1answer
36 views

Mathtype Latex Output - Removing $$ or \[

Is there a way to remove the $$ or \[ \] from the latex copy and paste settings on mathtype. The reason that I need this is I use a series of uncover lines in my beamer presentation within an align ...
56
votes
2answers
60k views

How to add extra spaces between rows in tabular environment?

I couldn't find any option that lets me expand the vertical space between rows in tabular environment. For example, \begin{tabular}{c c} $f^{(n)}(x)$ & $f^{(n)}(0)$ \\ $-2xe^{-x^{x^{x^2}}}...
120
votes
5answers
304k views

Absolute Value Symbols

What is the "best LaTeX practices" for writing absolute value symbols? Are there any packages which provide good methods? Some options include |x| and \mid x \mid, but I'm not sure which is best...
2
votes
2answers
34 views

How do I properly resize an array?

At the moment my latex code looks like this but I get two errors saying Missing $ inserted. } . I have tried a lot to fix it but nothing helps. I am not sure if I am using a symbol that is messing ...
2
votes
2answers
47 views

column vector without using \bmatrix?

How can I write a colomn vector like following without using \bmatrix? (no \usepackage{amsmath}) Thanks a lot!
3
votes
2answers
34 views

Bracket around some (not all) lines in an equation

I want to put a bracket around some lines of an equation and add some text to it. It should look like this: so the : of the texts should be aligned as well as the =. I tried this code: \begin{...
3
votes
1answer
43 views

Spacing around a comma to separates conditions (in math mode)

Let say I have a set \{ x \in A : first condition , second condition , third condition \}, or as a more explicit example \{ x \in A : x > 0 , x^2 \in B , x^3 \notin C \}. I find that the ...
2
votes
1answer
110 views

Subscript with Exponent (which is correct)

Lets say I want to type $i_0$ raised to the power $p$. Which is the correct way: $i_0^p$ (the simplest) ${i_0}^p$ ${i^p}_0$ I think they appear slightly differently. Thanks for help.
2
votes
1answer
45 views

text format in math mode and none-math mode

I have one problem when I want to align my text font in and out math mode, here is the code: \documentclass[xcolor=x11names,compress]{beamer} \usepackage{xcolor} \usepackage{tikz} \usepackage{...
1
vote
1answer
33 views

Use text font for alphanumeric characters in math

My document currently uses TeX Gyre Termes as the main text font and Computer Modern for math. I would like to continue using Computer Modern for math mode symbols, operators, and greek, but replace ...
29
votes
3answers
23k views

How to put a brace on the right, not left, to group cases?

How can I get a brace on the right, not the left, to group cases, using cases? (I know actual cases look better with the brace on the left, but the items I need to group are not literally cases. They ...
61
votes
3answers
19k views

What is the advantage of using $f^\prime$ instead of $f'$?

Although the two outputs look quite similar, what is the advantage of using $f^\prime$ instead of $f'$? By the way, here is my code: \documentclass‎{article‎}‎ \begin{document}‎‎‎ \[‎ ‎f^‎\prime ‎(x)=...
1
vote
2answers
121 views

What causes the problem when compiling a displayed equation with \overbrace and \underbrace?

$$ \left( \begin{array}{c} m+n\\ m \end{array} \right) = \frac{(m+n)!}{m!n!} = \frac{\overbrace{(m+n)(m+n-1)\cdots(n+1)}^\mbox{$m$ factors}}{\underbrace{m(m-1)\cdots 1}_\mbox{$m$ factors}} $$ I am ...
1
vote
3answers
546 views

Aligning Equations in LaTeX

I was trying to align the following equations but alas. Could someone guide? \begin{flalign} x \in A \cap (B \cup C) & \Rightarrow (x \in A) \lambda \Big( (x \in B)\vee(x \in C) \Big) & \\ &...
1
vote
1answer
33 views

Aligning equations within multline

I have this really long equation and I have used multline to break it up. I also want to align the broken bits of the equation to the left. When I use align, for some reasons it aligns to the right ...
1
vote
2answers
45 views

The most simple way to split equations, left align them and have a space between them?

I have four equations which I want to split, align and make sure there is a space between the equations. \begin{align*} \sum^\infty_{i=1} (3t_{2i-1}+t_{2i})9^{-i} \\ =\sum^\infty_{i=1} (3t_{...
2
votes
2answers
33 views

How to manage indentation in math mode?

I have a problem, maybe with indentation but I don´t sure. This the code: \documentclass[12pt]{article} \usepackage[letterpaper]{geometry} \geometry{top=1.5cm, bottom=2.5cm, hmargin=3cm} \...
48
votes
5answers
29k views

How to make \left, \right pairs of delimiter work over multiple lines?

I have a very long equation that must be separated into two lines, and it has several pairs of nesting \left \right delimiters. Unfortunately, it seems that they need to be on the same line in order ...
2
votes
2answers
31 views

Problems with using \begin{multline} \end{multline]

I have the long equation $$frac{1}{2^j}K_{b_0}K_{b_1}..K_{b_{j-1}}K_{b_j}= \frac{(\sqrt{2})^j}{2^{j-1}}exp{[(-1)^{b_1}-(-1)^{b_2}+ (-1)^{b_3}- ... +(-1)^{j-2}(-1)^{b_{j-1}}+ (-1)^{j-1}]\frac{i \pi}...
1
vote
1answer
63 views

Which library contains \left(? [duplicate]

I have included libraries amsthm, amsmath, amssymb, mathtools and hyperref and I get an error when I use \left( or \right). However, it doesn't happen in overleaf, which also includes graphicx, ...
2
votes
2answers
97 views

Scaling absolute values

How I make in Latex the modulus, or absolute value, match the size of the expression within? I want to know what are the sizes available. Example: $$\mid\frac{\partial I}{\partial M}\mid = \frac{T^...
11
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? ...
8
votes
2answers
2k views

What is the meaning of $$$ in LaTex?

I want to know the meaning of the triple $ in my document. \documentclass[12pt]{article} \usepackage[letterpaper]{geometry} \geometry{top=1.5cm, bottom=2.5cm, left=3cm, right=3cm} \usepackage{...
1
vote
0answers
19 views

TexMaker: How to “save” user defined tags.

So I want to type commands like \geq_{\alpha} or \leq_{\alpha} into the user section (the bit with the symbol of the person, above PStricks, and below Left/Right). Fine, but how do I save these ...
2
votes
0answers
47 views

The correct way to typeset comma between math symbols?

I am curious which is the textbook correct way of typing $a,b\in X$ to say that a, b are elements in the set X. Clearly, the most convenient way is $a,b\in X$. Qn 1) $a, b\in X$ (note the space ...
8
votes
2answers
47k views

Inline equation in latex with text

Hi I want to write an inline equation with some texts like Amplitude = 0.3 * Max_Amp_Of_Signal How can I do it with LaTeX?
27
votes
5answers
20k views

How can I prevent inline math formulas from overflowing into the margin?

When I compile my document in LaTeX, some formulas in the document in math mode, between $ $, go into the right margin area beyond all the text. Is there a way to fix this aesthetic problem?
3
votes
1answer
18 views

How can I use a large solidus in a display fraction in LyX?

I would like to use the equivalent of the latex \middle/ in a display equation in LyX. I have a fraction with a large left hand side, and I want the solidus (/) to be automatically sized to match the ...
1
vote
1answer
67 views

How to write non-english characters in the math mode?

I'd like to have the Danish letter ø in my text. It's very simple when I mean plain text: {\o}. How can I achieve the same result in the math mode? If I add {\o} to my formulas, this character isn't ...
4
votes
2answers
407 views

Redefine _ like _{\!_{ }}

I would like redefine _ like _{\!_{ }} to do subscripts smaller. I've tried with: \renewcommand{\_}[1] {_{\!_{#1}}} But it doesn't work, apparently, maybe I'm wrong. Take this equation, for ...
5
votes
3answers
7k views

Error: Please use \mathaccent for accents in math mode for the following code

$$ = \sum_{e \in A} w(e) = \sum_{e \in A} w(e)+ \sum_{e \in \{(r,v)| v \in V(G)\}} w(e) = w( \~{A} ) $$ I'm not sure what's wrong with it. I'm in the math mode by using $$ $$, isn't it?
8
votes
1answer
69 views

How to properly use \collect@body within align environment

The following code (an example of using \collect@body as a test case for this specific question) modified bmatrix to not add the surrounding [ and ]. This seems to work fine, but requires that I ...
5
votes
0answers
117 views

How do I improve the quality of png images when converting to html using htlatex?

I have tried to convert my LaTeX document into xhtml running the following commands (found here): htlatex source.tex tidy -asxhtml -output seconddraft.xhtml firstdraft.html Everything displays ...
4
votes
1answer
1k views

Typesetting mathematical formulas in line breaking

When you typeset a mathematical formula is there a rule regarding the breaking of the formula in a new line, meaning if for instanse the formula breaks in a plus sign (+) or in a equal sign (=) then ...
6
votes
2answers
86 views

Alternative subequations numbering and references

I know how to have a set of equations numbered as subequations: \documentclass{article} \usepackage[T1]{fontenc} \usepackage[utf8]{inputenc} \usepackage{amsmath} \begin{document} Some text here \...
47
votes
2answers
50k views

What is the difference between \dfrac and \frac?

The title says it all, both \dfrac{a}{b} and \frac{a}{b} make fractions, so what is the difference between the two?
0
votes
1answer
37 views

how to have tilda and vector above a symbol [duplicate]

Is there a way to have symbol with a tilde and arrow stacked on top of each other? I tried $\vec \tilde{p}$ but it doesn't look good.
8
votes
1answer
243 views

Five iterated integrals

Apparently, there are the commands \iint, \iiint, and \iiiint to type iterated integral symbols. To compute an integral in R^4 x [0,T] (i.e. over a 4-dimensional space and time), I would type \...
4
votes
1answer
74 views

Numbers in multi-language document

When I use two different languages like English and Arabic (one is written form left to right and the other is written from right to left), the equation numbers are written in Arabic, e.g. 14, but ...
4
votes
2answers
97 views

Is there a way to get “dumb” single quote in math mode?

In mathmode, ' gets converted to "prime" symbol. What I'd like is neither the closing nor opening single quote as in (How to get the closing single quote in math mode). Rather, how do I get an ...
3
votes
1answer
29 views

align items in enumeration

I am trying to align multiple items in enumeration with & but its not working. \begin{enumerate} \item[(1)] $ f: &x \longmapsto 0\ $(const 0) \item[(2)] $ f_{\mbox{const 1}}: &x \tab ...
2
votes
1answer
28 views

Typeseeting a multiset with double curly braces

I like to typeset a multi set with double curly braces, i.e., $\{\{A,B,C\}\}$. Unfortunalty, I think the space between two braces are too large and I could not find a special symbol in symbols. Any ...
112
votes
4answers
169k 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 ...