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

2
votes
2answers
103 views

Difficulty with \flalign

Consider the following example. \begin{flalign} &Max Z=a+b\\ &Min P=c-d\\ &\mbox{subject to}\\ &a \leq 10\\ &c \geq 5 \end{flalign} When I run it I get the desired output, but ...
0
votes
0answers
18 views

Renew math operator [duplicate]

There is an already defined math operator inside TeX that I want to change it by another letter. I am just wondering what is the best practice. Below I give an example for the \Pr -> "Pr" command ...
1
vote
1answer
53 views

What is the correct way to properly align a split equation with continued parts prefixed with a binary operator?

Consider the following result with 2 methods. Don't hesitate to propose better ones if any. The question is: What is the correct way to properly align a split equation in which binary operator ...
6
votes
2answers
110 views

Creating a custom character that automatically adjusts size in math mode? [duplicate]

After a lot of searching, I finally found the .pdf's for the elusive Griffiths script r character used in his ubiquitous undergraduate electrodynamics book. I made a simple package that allows me to ...
4
votes
2answers
40 views

Left-align a split equation

I am trying to left-justify a split equation. I would like to have the first line left-justified, and have a hanging indent on the second line. I used flalign successfully for other equations that ...
6
votes
1answer
146 views

What's up with the spacing between letters inside $…$?

When I write $VSS$ in my LaTeX studio, it behaves it as if there is a space between V and S (i.e. V SS). Is there a way to fix this? I tried \scalebox{.85}[1.0]{$VSS$}, but it did not work well. ...
2
votes
3answers
95 views

Aligning a set of equations with one equation number

The following set of equations cannot be aligned from left to right. Since, I need to index them just with one number, I had to use split equations: \begin{equation} \begin{split} X={}^ 2 \bar{x} + ...
36
votes
4answers
3k views

What is the Necessity of $…$ Around Numbers?

I typed up an assignment with a lot of numbers in LaTeX and turned it in to my adviser. When he returned it to me with some corrections, one of which was a lot of $ around my numbers. I understand ...
3
votes
1answer
251 views

How to squeeze a formula inside a text in latex?

I type some formula in latex inside my text, but When I make it pdf I see it is not squeezed. How I can make it squeeze? See the attached, which shows the problem!
4
votes
2answers
83 views

Setting over- and underbraces outside an matrix formula

I want to typeset a matrix which consists of several submatrices. As they consist of some longer formulae I'd like to assign each a name. I tried to use \underbace and \overbrace. However now the ...
9
votes
1answer
233 views

Angle notation for complex numbers in polar form

I am looking for suggestions on how to typeset complex numbers in the modulo-argument form, sometimes called phasor notation. Have already checked Conventions for typesetting complex vectors and ...
6
votes
2answers
176 views

How to get a $^*$ aligned to the right

I use the term ^*\mathbb{R} in my thesis, and this works fine. However if i have something like x\in^*\mathbb{R}, the asterisk moves to the left, like it belongs to the \in sign. How do I prevent this ...
2
votes
2answers
126 views

Align a linear program

I want to write my linear program so that it looks like in this picture: meaning I want to have the following: text aligned to the left all the x_{j} variables to be one another the i= and j= ...
4
votes
1answer
47 views

Missing } Inserted?

I wrote \begin{align} $\lim_{x \to 2} f(x)$ &= $\lim_{x \to 2}\dfrac{2x^2-5x+2}{5x^2-7x-6}$\\ &= $\lim_{x \to 2}\dfrac{(x-2)(2x-1)}{(x-2)(5x+3)}$\\ ...
9
votes
2answers
112 views

Numbering equation using eqnarray*

I am using eqnarray to write long equations. However when I use it instead of equation environment the equations are not numbered. Can anyone help me to solve this. This is the syntax that I am ...
4
votes
2answers
95 views

Different style of permille sign

Hi all, I have found a publication using this permille sign with Times New Roman font. I have tried the textcomp \textperthousand and wasysym \permil commands but it does not yield this symbol. This ...
2
votes
0answers
49 views

Display math and tabular

I'm pretty new to latex and having some trouble. I have multiple math formulas which I'd like to organize on the page. i used: \begin{tabular}{p{6cm}p{6cm}} \[...\] & \[...\]\\ \end{tabular} ...
0
votes
1answer
36 views

Bad math environment delimiter in standalone class [duplicate]

Given a file master.tex: \documentclass{article} \usepackage{standalone} \begin{document} \input{sub} \end{document} and a file sub.tex: \documentclass{standalone} \begin{document} \[ 0 ...
9
votes
2answers
151 views

Is there a faster way to type sequences?

When I'm using sequences in an article, I always type things like (x_n)_n and (x_n^k)_n. However, that doesn't display the subscript after the brackets very nicely. I know that I can fix this by using ...
0
votes
2answers
37 views

Letters and numbers have a different dimension in subscripts

I am writing in math mode symbols with long lists of subscripts, that can either be letters or numbers. For example, I write something like \begin{equation} p_{51y_4y_3} \end{equation} to obtain ...
8
votes
3answers
83 views

Spacing for subscripts in mathmode with \textcolor

It is possible to use \textcolor in math-mode; however, it changes the spacing of subscripts. \documentclass{article} \usepackage[usenames]{xcolor} \begin{document} $Y_i$ vs $\textcolor{red}{Y}_i$ vs ...
4
votes
1answer
81 views

multiple equations with same number

I can't seem to make this work. I want the matrix and the second equation with the same equation number. \begin{equation} \begin{aligned} [{\bf Z}] &=\begin{bmatrix} R_1+j\omega L_1 & ...
2
votes
1answer
46 views

Sum within a fraction

I'm trying to get a sum to display "properly" within a fraction. My input is: \begin{equation} E = 1 - \dfrac{\sum_{i=1}^{n}(O_{i}-P_{i})^{2}}{\sum_{i=1}^{n}(O_{i}-\bar{O})^{2}} \end{equation} ...
3
votes
2answers
97 views

New \left \right delimiters

Can I introduce new delimiter symbols to use with \left and \right? For example I would like to do \begin{equation} \left\harpoonleft something \right\harpoonright \end{equation} I would then like ...
3
votes
0answers
30 views

Compilation fails with eqnarray after reinstalling Miktex [duplicate]

I have a script that extracts math formulae from a tex file, produces a small standalone file for each formula and compiles it with pdflatex. The standalone pdf files are then used to produce png ...
2
votes
1answer
91 views

Keeping equations as part of a paragraph on the same page

I want to have equations with item lists as part of a paragraph such that there is no page break between the equation and the item list, but there can be a page break in the middle of the paragraph. ...
1
vote
1answer
59 views

LaTeX tokenizing

With LaTeX macro \newcommand{\CH}[2]{#1\choose#2} and input \CH63=20 my hope was to get the equivalent of {6\choose3}=20 but I get {6\choose3=20} instead. I know how to fix the text to ...
4
votes
2answers
194 views

LaTeX symbol for “divides precisely”

I sometimes need to write that a certain prime p^k precisely divides a number n, meaning that p^k | m but it is not the case that p^{k+1} | m. It is often written as: p^k || m, where the symbol in the ...
2
votes
1answer
81 views

Three variables look like a word

Sometimes when I type in LaTeX something like this: $e^{int}$ where i is the imaginary number, n an natural number and say t is time, it looks like I'm writting the word 'int'. Is there any way to ...
0
votes
0answers
23 views

inequality sign vertically rotated [duplicate]

I am trying to do a similar thing as in vertical equal sign but with an inequality sign instead. I tried replacing = with \ineq in the line \newcommand{\verteq}{\rotatebox{90}{$\,=$}} but could ...
2
votes
1answer
48 views

changing the general theme of math fonts

I'm using latex templates which is producing a particular kind of math font, shown below. How can I change it to produce something like following? I'm particularly interested in changing the math ...
7
votes
4answers
206 views

auto-detect conditional probabilities in macro

Is it possible to write a macro that detects whether there is a | character in its arguments, and expands that to something else? In concrete terms, I want to be able to use the following definitions ...
3
votes
2answers
57 views

Is there a better (more condensed) way of formatting a subscript \perp (or \bot)?

I'm writing a lot of these types of formulas: \documentclass{article} \usepackage{amsmath} \begin{document} \begin{equation} \mathrm{e}^{-\mathrm{i} \boldsymbol k_\bot \cdot \boldsymbol r_\bot} ...
1
vote
1answer
78 views

How to write $\~{B}$

How to write $\~{B}$ in latex. During writing it shows that ! Please use \mathaccent for accents in math mode. Please suggest me.
2
votes
2answers
56 views

How to break line of subscript under min?

$$ \min_{c^{(1)}, c^{(2)}, \cdots, c^{(m)}; \\ \mu_1, \mu_2, \cdots, \mu_K} \frac{1}{m} \sum_{i=1}^m \left\lVert \vec{x}^{(i)} - \mu_{c^{(i)}} \right\rVert $$ The \\ does not seem to do the trick? ...
0
votes
4answers
145 views

Why does \leq show up as \le?

My only two packages are amsmath and amsfonts. When I type \leq, it shows up as if I had typed \le. How do I do the actual less-than-equals (>=) sign? Edit: I typed \leq and the output symbol was ...
5
votes
2answers
85 views

How to color equations in TeXify

I am using texify.com to generate images of equations, so that I can put them in emails. I am trying to insert a colored equation, using the following code: {\color{green} dy} = {\color{red} ...
4
votes
4answers
97 views

! Missing $ inserted (normal text in Bmatrix)

\begin{Bmatrix}\text{Of what nacion.}\\text{Of what countrée.}\\text{Of what auncetours.}\\text{Of what parentes.}\end{Bmatrix} Apparently, I'm supposed to insert $ but I don't know where.
12
votes
5answers
349 views

Integration Symbol with Limits

How can I write the integration symbol in latex as shown in the picture?
2
votes
1answer
58 views

Notation for multivariate normal

I would like to find a good notation and LaTeX way to depict a multivariate normal with a specific covariance matrix (ie. not a generic sigma). Here is my attempt, which compiles but does not look ...
2
votes
2answers
129 views

Equation setting

I have a problem with this equation compilation at the end{split} please fix it. \begin{equation} \begin{split} \frac{\partial }{\partial X_{j}}(\rho \bar u_i \bar u_j) = -\frac{\partial \bar ...
4
votes
1answer
72 views

Change font size of math sans serif font only?

I'm using the Arev font for math sans serif. However, the font produces slightly larger letters compared to my roman math font: \documentclass[a4paper, 10pt]{scrartcl} \usepackage[T1]{fontenc} ...
2
votes
3answers
135 views

\middle too big

I'm trying to typeset an equation that contains a "|": \begin{align*} \lambda_{l} = \lim_{q \to 0^{+}}P\left(X_{2} \leq F_{2}^{(-1)}(q) \middle| X_{1} \leq F_{1}^{(-1)}(q) \right) \end{align*} ...
7
votes
1answer
115 views

Systeme package

I am using the systeme package to create an equation system. I am also using the mtpro2 package for mathematical notation. When I want to create a 2x2 system with a curly bracket it works just fine ...
3
votes
2answers
65 views

Lining numbers in mathnormal

Is there a simple way to have lining numbers (instead of old style ones) using \mathnormal{} ? I want $\mathnormal{abc123}$ to look like $abc123$. My problem is that I have an operator ...
2
votes
1answer
36 views

Flashcards with textfraction

\documentclass[12pt]{article} \special{papersize=3in,5in} \usepackage{amssymb,amsmath} \usepackage{fontspec} \usepackage{lmodern} \usepackage[ngerman]{babel} \pagestyle{empty} ...
5
votes
4answers
78 views

Increase the spacing of rows in equations

I have a formula and I want to increase the space between the rows to make the reading easier. \begin{equation} \begin{flalign*} \epsilon \bm{\Xi}_n & = M_\epsilon(\bm{x}_{\epsilon,n-1} ) - ...
7
votes
2answers
106 views

Bad rendering of parentheses of binomial coefficient in Beamer

I am working with documentclass Beamer version 3.10 and I have a problem with the rendering of the parentheses of the binomial coefficient. Here the code: \documentclass[aspectratio=169, 8pt]{beamer} ...
3
votes
1answer
64 views

Nested matrices with aligned columns and rows

I'm trying to represent "matrices" with more than two dimensions, like the Riemann curvature tensor or Christoffel symbols, using nested matrices. I still don't know if this can help working with ...
4
votes
2answers
104 views

color block of text without repeatedly using /textcolor

I want to color the answers into blue however my current solution is not really viable as each line needs to be colored blue individually due to my use of \par\bigskip messes up \textcolor if its in ...