{equations} is about the various environments to typeset displaystyle mathematics, e.g. equation and {align}. For general questions about mathematical typesetting use {math-mode}. Both tags are possible on the same question.

learn more… | top users | synonyms (1)

7
votes
1answer
375 views

Breaking lines in equations

I have an equation that is too long. It gets cut off, so I have tried to modify it with the split environment inside an equation environment: \begin{equation} \begin{split} & I_{ribbon} = \frac{1}...
14
votes
1answer
102k views

Align equation left

Here is my split equation: \documentclass{article} \usepackage{asmath} \begin{document} \begin{equation} \begin{split} a_{ijk} =& \frac {Pr(M_{I} =2 \& M_J=1 \& M_K =1 | I=i , J=j , K=k)...
1
vote
1answer
122 views

How to remove unwanted spaces above and below equations in classicthesis in LyX

I am using latest LyX version of classicthesis template. When I import the latex code converted by word-to-latex into LyX, there are unwanted space above and below each equation (usually two extra ...
4
votes
1answer
131 views

Equations in tcolorbox. Vertical alignment

I am simply trying to put a frame around equations in my beamer slides. For this purpose, I use the package tcolorbox. The MWE below produces boxes where equations are almost aligned at the base of ...
2
votes
2answers
67 views

How to split a very long equation (using AMSMATH package)?

I'm trying to split up the following equation so that it fits the margins of my document, so far I have: \documentclass{article} \usepackage{amsmath} \begin{document} \begin{equation} 0 = n_1^3 ...
1
vote
2answers
65 views

How to have a single vertically centred equation number for multiline equation in LyX

What I want is a single equation number located between the second and third lines (vertically centered behind the lines) like in Section 18.6 of the LyX detailed Math manual: In Lyx, I choose "...
1
vote
2answers
72 views

Making notes onto a pdf document

I have some books and pdf files that I would like to make some notes (particularly adding equations with latex). I have seen the following post given by Overlay LaTeX/TeX coding easily on PDF with ...
2
votes
1answer
54 views

Spacing: Align vs. Equation

Can anybody explain where the extra spacing comes from when using an align instead of a equation? And does anybody know how to remove it? \documentclass{article} \usepackage{amsmath} \usepackage{...
0
votes
2answers
46 views

Line Break in Equation with Text

I would like to include an equation, which mostly consists of text elements, however I am having trouble with aligning the last argument which spreads over two lines in order for the equation to still ...
1
vote
1answer
20 views

Tagging several groups of equations in the same environment

I have long equations, so I have to break them with this structure: something = long expression1 continuation of long expression1 = long expression2 continuation of long expression2 = etc What I ...
2
votes
1answer
32 views

Highlight changed part of the equation

As a physicist, I often have unhandy expressions and do manipulations on them. One such example is the following: The only thing that has really changed are that the \gamma^0 from the outside ...
1
vote
1answer
24 views

Getting a citation on the same line as an equation, in theorem environment

Just wondered if anyone could help me with this issue. I'm trying to reference a theorem using \cite{ref}, but the theorem finishes with an equation, so the citation move onto the next line. This is ...
1
vote
1answer
80 views

Referring to an equation in a different section

I am using the procedure in writing a document of setting a main page and including sections in side tex documents using \include{...}. In one section I have an equation that I labeled as \label{6}. ...
3
votes
3answers
450 views

How do I break a long equation?

I have a long equation that it was hard for me to break so that it appears professional. How can I do it? \begin{equation} \begin{split} &\mathbb{P}\left( \left. Z_{1}\in dx_{1},Z_{2}\...
1
vote
1answer
31 views

How to left align the \dcase to make a straight margin with text

I am using dcase to express my equation. However, the equation looks align in center of page. I want to move the equation in the left side of the page. Note that, my text has one space at the ...
1
vote
1answer
34 views

Right align equations relative to maximum length of equation-number

Please have a look at this minimal example ... \documentclass{article} \usepackage{amsmath} \numberwithin{equation}{section} \usepackage{showframe} % only for demo \begin{document} \section{section ...
2
votes
1answer
51 views

flush multiline equation to the right

How do I flush the two equations to the right? And keep the eqution number centered between the two lines? \documentclass{article} \usepackage{amsmath} \begin{document} \begin{equation} ...
3
votes
4answers
109 views

prepare correct position for equation

Hi all, I want to write my equation which is like the attached picture. I tried to write this code below but I couldn't make "Hp" starting from the same positions. How should I write code to have ...
12
votes
3answers
928 views

Replace the `$$ … $$` macro with the `\[ … \]` macros? - Prefer the way LaTeX lays it out, but `$` are faster to write

Is there a way to replace the $$ ... $$ macro with the \[ ... \] macros? (and replace inline mathmode as well) I realised the only way I can write the \sum_{i=1}^{10} t_i is between the \[ ... \] ...
8
votes
4answers
361 views

How to align superscripts?

I have an expression like $$\eta^{[\alpha\beta}_{\phantom{\alpha\beta}\rho}h^{\sigma]}A^\rho$$ and I would like that all the indices alpha, beta, sigma and rho appear on a same line. If someone ...
1
vote
1answer
30 views

Alignment of equation number with the end of the line

I' trying to reproduce this equation array from an IEEE paper you can see that the equation numbers are aligned at the end of the line same as the above statement. my code: \begin{IEEEeqnarray}{...
0
votes
0answers
17 views

Prime symbol as upper limit of summation [duplicate]

I'm trying to reproduce this equation: using this code: \begin{equation} \sum_{x\in A}^{'} f(x) &\stackrel{\text{def}} = &\sum_{\substack{x \in A \\ x \neq 0}}^{} f(x). \end{equation} I ...
0
votes
1answer
50 views

Writing matrix inside an equation

I wanna type this equation. Normal equation/matrix code not working.
3
votes
1answer
34 views

Single multi-line equation with comments on rows

I can't find a way to write a multi-line equation, which I would later refer to as on single equation, and write comments on some of rows. The thing I want is pretty much like here: Multi-row text ...
4
votes
3answers
268 views

Right curly brace at the end of an equation

I'm trying to write this equation: I'm facing problem with the curly brace. I tried using \right \begin{equation} 2 \uparrow \uparrow k \stackrel{\text{def}} = \left.2^{2^{2^{.^{.^{.^{{2}}}}}}}\...
1
vote
1answer
23 views

You can't use `\eqno' in math mode,Missing } inserted

I understand from previous post that this error come when you have extra {,( involved. But in my case i am not able to find any such case. \begin{equation}\overset{\wedge}{\pi}\left(\beta/ A_n\right) ...
7
votes
3answers
505 views

Long \sqrt in two lines

I want to rewrite the following equation in two line due to columnwidth of the article. \begin{eqnarray} y&=\pm &\sqrt{\frac{Q}{2\pi \sigma_y\sigma_z u C(x,y,z) } \exp{\left(\!-\frac{y^2}{2\...
0
votes
0answers
27 views

Height of enumerate items in multicols environment for proper alignment

For some problem sheets I have been using the shortenumerate package with hardcoded widths for the columns so far and I wanted to use multicols instead which is a lot easier to use. However the ...
4
votes
2answers
29 views

Alignment of Quantifier

\begin{document} \begin{equation} \begin{split} \sum_{s \in S_i} x_s &= 1 \quad \forall S_i \in P \\ x_s &\leq \sum_{(s,t) \in R: t \in S_j} x_t \quad \forall S_i \in P, \ \forall ...
0
votes
0answers
26 views

how to add label to matrices multiplication [duplicate]

in the below latex code, i am displaying two matrices multiplied by each other and the result of the multiplication to add a label to the code posted below , i tried to include the below code inside \...
13
votes
2answers
272 views

Automatically replace environment align by equation+aligned combination

I would like to automatically replace the align environment by an equation + aligned combination. Specifically, whenever \begin{align} occurs, it should automatically read it as \begin{equation}\begin{...
50
votes
3answers
63k views

Label equation with a symbol

I would like to label an equation with an arbitrary symbol, rather than a number, or letter. Is this possible?
1
vote
0answers
41 views

How to write the following matrix requiring both case and block array environment?

I am trying to write the attached equation using block array environment. I am suppose to use both the case and block array environment for achieving the desire output. However, I have completed ...
1
vote
0answers
22 views

Package showlabels and option final with equations [closed]

I've the following problem with the showlabels-package: Using it with the amsmath-package, it ignores the option final for equations. The labels are still shown in the document. Here is an example: \...
4
votes
3answers
539 views

Really big MATLAB equation to be put into LaTeX [closed]

I have a very big equation in MATLAB f1=((y_o2_ca_in*M_o2/(y_o2_ca_in*M_o2+(1-y_o2_ca_in)*M_n2))*(((k_sm_out*(x5-((x1*R_o2+x3*R_n2+x8*R_v)*t_st/v_ca)))+((M_v/M_a)*phi_des*(((10^(-1.69*10^-10*t_cl^4+3....
1
vote
1answer
34 views

Equation and italics

How do I write the equation {x|A'x=b'} in LaTeX and make it italic? I have tried following code: \textit{{$$x|$$A'x=b$'}} but it did not work. The dollar signs are in wrong places.
0
votes
0answers
53 views

Fixing equation spacing between content changes

I have a large equation in beamer with a double sum, and I want to change the summation range (among other elements in the equation) using \only. But of course when the contents of the \substack ...
2
votes
0answers
33 views

adjust length of \leadsto arrow to the text above [duplicate]

I am having really hard time to figure out how to adjust the length of \leadsto arrow in order to match the text above it. The command I am using is \newcommand{\transitb}[1]{\stackrel{#1}{\...
3
votes
4answers
66 views

How do I fix the vertical alignment of the bracketed part of this equation?

The following MWE: \documentclass[]{article} \usepackage{amsmath} \usepackage{amsfonts} \usepackage{amssymb} \begin{document} \begin{equation} \dfrac{dN}{da}=\dfrac{1}{C}\left[\dfrac{\cos\left(\...
12
votes
1answer
206 views

When is `\[` preferred over equation* environment? [duplicate]

When is it preferable to use \[ instead of equation*? I find I often use the equation* environment in the following way: \begin{equation*} some expression \end{equation*} Should I instead be using ...
2
votes
1answer
29 views

Centering tildes on new lines in equation arrays

I have been using LaTex since a few weeks, and I have a lot of equations in my text. Up until now everything was perfectly doable, but now I am looking for a way to decrease the spacing between the ...
1
vote
1answer
38 views

Long equation labelled by a symbol

To label a single symbol to long equation, we use \begin{split}...\end{split}: \begin{align}\label{eq1} \begin{split} H=\langle x_1,x_2,\cdots, x_n \colon & [x_i,x_j,x_k]=1,\\ ...
1
vote
0answers
51 views

Begin{equation} works better with \ than $$ [duplicate]

I am relatively new to LateX, and am a bit confused with the \begin{equation} command. I use $$...$$ to enter the math mode in a new environment. However, I find that when I combine $$..$$ with \begin{...
4
votes
2answers
76 views

Explaining equation steps (multiple line \text)

I'm trying to explain my steps in an equation. The problem is that the text is longer than the line in the \flalign* environment, is there any way to make the text span over multiple lines while ...
1
vote
0answers
36 views

\textstyle as default method of displaying mathematics

This has probably been ask before (although I could not locate any information). What is (are) method(s) of setting \textstyle as default way of presenting displayed mathematical formulas?
4
votes
1answer
4k views

How to use \displaybreak?

I have a very long equation \begin{equation*} \begin{aligned} multiple line equation... \end{aligned} \end{equation} But just using the above code causes the whole equation to start from a ...
1
vote
2answers
161 views

Align Equations with the equals sign

I am trying to align two equations, however they are not aligning at the equals sign but at the comma at the end of the equation. How can I change this? \begin{align} A_{ij}^y= \begin{cases} ...
2
votes
1answer
53 views

Write case condition on two lines [duplicate]

I have this equation: which must be inserted in a Office document. But it is too large, so I want to add a line return in the middle of the 2nd and 3rd condition such that the new line starts ...
0
votes
0answers
79 views

Undefined control sequence error using a command

Dear All, I am using below code in my Latex file but getting the error of undefined control sequence The code is \begin{equation} \lVert \mathbf{p} \rVert = \dis(\mathbf{p},\mathbf{...