{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
2answers
19 views

Adjusting vertical skip between equations

\documentclass{article} \usepackage{amsmath} \begin{document} \begin{equation} 1 + 1 = 2 \end{equation} \begin{align} 7 + 5 &= 12\\ 12 &= 11 + 1 \end{align} \end{document} ...
4
votes
2answers
117 views

Trigonometric arc

How to be codes for trigonometric arc AB like that: ( not using kpfonts ). Thanks.
2
votes
2answers
303 views

OCR PDF/Image to LaTeX (math) [on hold]

I would love to have an OCR who could translate my PDF-file to a TeX-file. It doesn't have to be "good looking". I only need it to a) copy some text from time to time and b) especially to copy the ...
1
vote
2answers
24 views

Spurious blank equation line in a 'gather' environment

I have the following code: \begin{gather} u(x,t) = 0 \ \mathrm{ si\ } x = 0, x = 1\\ \label{ex1bc} \\ u(x,0) = \left\{ \begin{array}{ll} 2x, & \mathrm{si\ } 0 \le x \le 1/2 \\ ...
3
votes
1answer
111 views

absolute value in numerator of fraction

I am having trouble writing a term of an equation which is fractional where only the numerator is inside the absolute value symbol. The syntax I used is: \frac{\abs{\lambda_f}}{8\pi^2} But I keep ...
2
votes
0answers
45 views

I get an error when using \underline{x} in mathmode. Why?

I am trying to use $\underline{x}$ but I'm getting the following error in LyX: \inputencoding{latin1} $\underline{x} $\selectlanguage{hebrew}% I've inserted a begin-math/end-math symbol since ...
7
votes
4answers
295 views

How to implement a text “within” an arrow in math mode?

I am aware of \xrightarrow and other options using amsmath, but instead having the text over the arrow, I am looking for something like this: expression --text--> another expression Can this be ...
2
votes
0answers
45 views

All symbols in this file are wrong [duplicate]

I'm using XeLaTeX to build my homework but the commas and the parentheses are all messed up. Could someone explain this? Source code: 4). $(1,5,6,2,3,10,4,7,1)$ is a cycle of length 8. 5). Since ...
1
vote
0answers
25 views

Double subscript and missing $ error [duplicate]

As you understand the title of my question I got 2 error messages when I tried to write down following formula. Could you please help me to solve this. I expected to see second variable i under the il ...
3
votes
1answer
117 views

Defining #1^#2 as \overset{#2}{#1} for some characters

When I write math in xelatex, I like notation such as: $x \overset{ℝ}{+} y$ $x \overset{f}{↦} y $ $x \overset{(1)}{=} y$ However, as I type things like this so often, I would like to type it ...
1
vote
1answer
108 views

Mathematical formula alignment

I am trying to align my formulas and at the end of each formula I want to see number. Since I would like to explain all formulas in my report. However after making following changes, I got so many ...
20
votes
5answers
956 views

Using LaTeX to generate .png images of an equation

I am familiar with using LaTeX on online websites (like MathOverflow or Physicsforums). My input is rendered using MathJax. However, I do not understand the LaTeX environment in its native OS form. ...
3
votes
1answer
44 views

Beamer: how to change the font size in math mode?

The first image is what I have at the moment, the second image is what I would like to get. As you can see, in the second image the formula font size is a little bit bigger than in the first image. I ...
18
votes
5answers
810 views

\sum caused \sqrt to not be slanted

As shown in the MWE below, \sum (esp. when the index and lower/upper bounds are defined) is causing the slanty part of the sqrt sign to be not slanty. Is there a way to preserve it? ...
0
votes
1answer
35 views

Some Symbols Won't Appear in pdf

I am a new user and I need some help! I think I've figured out the basics of creating a document, but certain symbols are not transferring into the pdf: the box, the diamond and the "force" turnstile. ...
8
votes
3answers
108 views

Control horizontal alignment of sub/superscripts

Is it possible to modify the horizontal alignment of the sub and superscript of a symbol? That is to say, is it possible to get this pair of right-aligned sub/superscripts instead of this ...
0
votes
1answer
76 views

Ampersand like symbol latex

What is the name of this symbol, and how to make it in latex ?
0
votes
0answers
22 views

Bold but not italic! [duplicate]

I'm using \textbf{3} in math mode (\[ ... \]) to get a bold 3. The problem is that I'm sometimes in an italic environment. Then my 3 gets italic, too. But I don't want it to get italic. What can I do ...
8
votes
1answer
253 views

Wrong math symbols with XeLaTeX and LuaTeX after TexLive update

I just updated my TeX live installation (tlmgr update --all) and now I get some wrong symbols in math mode if I use XeLaTeX or LuaTeX. This MWE for example \documentclass{standalone} \begin{document} ...
1
vote
1answer
39 views

LuaLaTeX comma issue in math mode [duplicate]

I am having an issue compiling math equations. I got a weird comma symbol with lualatex. Here is a MWE and the result : \documentclass[french]{report} \usepackage{fontspec,luatextra,xunicode} ...
4
votes
1answer
32 views

Extra Space Before align* and Not Display Equation

There is an extra space between the section and the align* parts of the page. This does not occur if the equation is simply enclosed in \[...\]. \documentclass{article} \usepackage[fleqn]{amsmath} ...
7
votes
1answer
131 views

What does `corrections to accumulate` mean in the text below?

I'm reading the "Mathematical typesetting table" from MS which has been incorporated into the Standard for Open Type Fonts recently. In the section MATH – Table organization and structure there is a ...
99
votes
5answers
214k 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)} ...
2
votes
1answer
72 views

Make entire equation sans-serif

So, I'm trying to use something like this: \begin{align*}\mathsf{ a & b & c }\end{align*} Unfortunately, I'm getting weird errors like this: ! Missing } inserted. <inserted text> ...
5
votes
1answer
121 views

My inline math equation is kinda messy and I get a “ Display math should end with $$.” error

I have been muddling along with Latex for a couple of weeks now so I keep hitting a bunch of errors; this one I haven't been able to find a solution for. Basically, I have an inline math function (I ...
1
vote
1answer
32 views

aligning equations in latex problem [duplicate]

I am using the amsmath package in latex to align three equations. \begin{align*} &x_{1} - 3x_{2} + 4x_{3} = -4 \\ 3&x_{1} - 7x_{2} + 7x_{3} = -8 \\ -4&x_{1} + 6x_{2} - x_{3} = 7 \\ ...
4
votes
2answers
50 views

Annotation on mathematical symbol

Is it possible to annotate the equal-symbol like in the picture below? \begin{equation} E[|A\cup B|]=E[|A|+|B|-|A\cap B|]=E[|A|]+E[|B|]-E[|A\cap B|] \end{equation}
8
votes
6answers
3k views

Sans serif font with distinguished capital I for math.

I work a lot with matrix algebra. I also give a lot of presentations. It'd be nice to have a good sans serif font to use for both. Currently, my choice is the bitstream vera sans with math package: ...
4
votes
2answers
4k views

Multiple Tab stops in Math Split?

I am using mathmode with split. How can you use multiple tab stops. I want to span an equation across multiple lines, but then the last few I want to indent even more. \[ \begin{split} some& ...
4
votes
2answers
64 views

Get Quotes to Top of Fraction Latex

I am trying to put a fraction in quotes in LaTeX. I have the following so far: \documentclass{article} \newcommand*{\mquote}[1]{\text{``\(#1\)''}} \begin{document} \[ \frac{f(x)}{g(x)} \implies ...
2
votes
1answer
38 views

Scale a TikZ picture according to current font in math mode

I want to define a simple shape and use it as a binary math operator. This implies that it should scale when used as a subscript (e.g., the same behavior as \bigcirc). My attempts so far led me ...
168
votes
9answers
278k views

How can I get bold math symbols?

To make Latin-letter variables bold I can use e.g. \mathbf{a}, but while putting Greek letters or symbols such as \nabla inside \mathbf doesn't cause any errors or warnings, it also doesn't do ...
3
votes
3answers
99 views

Lower a constraint in the formula

How can I add the term v<-{0,1}^n to the formula as in the screenshot? $ Pr_{v \leftarrow {0,1}^n} [ Fre(A,B,C) = Ja ] \leq \frac{1}{2} $ Edit Code: \documentclass{article} \usepackage{ ...
2
votes
1answer
167 views

General matrices

I want to use LaTeX to add matrix that looks like this: -----L_1----- -----L_2----- . . . . . . . ----L_n----- and matrices where I want to show how a general cell in the matrix looks like (for ...
2
votes
2answers
68 views

Insert unicode character in auctex math mode

I use emacs with auctex to run lualatex. Is there a way to modify the math input of auctex, e.g. modify LaTeX-math-zeta, bound to the keystroke <`z>, so the unicode character ζ instead of \zeta is ...
4
votes
1answer
42 views

Controlling horizontal spacing in math mode in text

I am using the most recent release of TexLive on my MacBook Air. I am using the packages amsmath, amssymb, scalefnt, graphicx,and subcaption in addition to a journal's package. Like a previous ...
8
votes
1answer
360 views

How to use a special character as a math operator?

I'd like to use \v{C} as a math operator. However, if I write $\v{C}_r(S)$ or define \DeclareMathOperator{\Cech}{\v{C}}, the \v{C} symbol does not get shown at all. What is the proper way to handle ...
5
votes
1answer
210 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 ...
6
votes
2answers
288 views

How do I use multiple superscripts (super, super-super, super-super-super, etc) with them all smaller than each other?

I wonder how to make every superscript level smaller than each other. Like, 2^{2^{2^{2^{2^{2^{2}}}}}} makes the first superscript smaller, but the rest of the superscripts the same size as the first ...
5
votes
2answers
257 views

Best Practice: Package for Mathematical Documents - amsmath and Beyond

I am aware that best practice questions are not always appreciated since there there's not "one size that fits all". I am going to give a LaTeX introduction for phd students at my company. All ...
16
votes
1answer
176 views

Generate wordcloud of LaTeX document symbols

Is there an automated way to generate either a wordcloud or at the very least a list of all symbols used in all math environments in a LaTeX document? I'd like to generate a symbol-only wordcloud, ...
3
votes
1answer
77 views

LaTeX Equation left aligned with smaller fonts size

I have the sample below, When I compile and run, each step of the equation is left aligned with smaller fonts. What I'm trying to achieve is, each step of the equation should appear on a line by ...
0
votes
1answer
43 views

ugly \overline on some characters [duplicate]

The code at the end gives As you can see, \widehat and \widetilde give good result, but \overline looks bad on some characters, especially for A, I and J. What commands or workarounds can solve ...
2
votes
2answers
159 views

Long math equation needs to be displayed in a nice manner

I'd appreciate if you can assist me with re-arranging the following for getting better form in order to display this long equation. \documentclass[preprint,12pt,authoryear]{elsarticle} \rho \epsilon ...
4
votes
1answer
32 views

How to get display style in both numerator/denominator in a fraction?

Test code: \documentclass{article} \usepackage[english]{babel} \usepackage{amsmath} \begin{document} \begin{equation} z = \frac{\sum_{i=1}^N{x_i}}{\sum_{i=1}^N{y_i}} \end{equation} \begin{equation} ...
5
votes
1answer
221 views
3
votes
1answer
36 views

Using \textstyle with \pmod

If I'm in a displayed equation but I want the \sum symbol to appear as it does in inline formulas, I can just put \textstyle in my equation. I thought that writing \textstyle would also force \pmod to ...
1
vote
2answers
24 views

How can I align lines to the right except the first in a multiple line equation?

I have always tried to achieve this but after a few tries decided to skip and concentrate on writing instead of solving it. I am using align environment and trying to align the multiple lined ...
34
votes
7answers
35k views

Typesetting of negative versus minus?

I've occasionally seen a negative (when a number is simply negative, not a subtraction), typeset as negative sign that's slightly skinnier and above the centre line of text. Is this proper notation ...
1
vote
1answer
83 views

How do I get a nicer Lambda?

In computer science, the use of as the letter lambda is quite recognisable as a symbol. How can I get this in LaTeX without changing the entire font of the document/math mode? I only want to ...