Stack Exchange Network

Stack Exchange network consists of 175 Q&A communities including Stack Overflow, the largest, most trusted online community for developers to learn, share their knowledge, and build their careers.

Visit Stack Exchange

Questions tagged [equations]

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

3
votes
2answers
95 views

How to get a single big right brace?

I am trying to make the right brace cover the whole matrix like the `\overbrace'. Is there a way to do this? \documentclass[reqno,12pt]{amsart} \usepackage{amsmath,mathtools,amssymb} \usepackage[top=...
0
votes
0answers
17 views

How do I make a multiline equation but giving this only one equation number [duplicate]

I want all these three equations to be known as (1). Not (1), (2), (3). \documentclass[11pt]{article} \usepackage{fancyhdr, lastpage} \renewcommand{\headrulewidth}{0pt} \pagestyle{fancy} \fancyhf{} \...
1
vote
4answers
38 views

How to align the derivation of equation?

The derivation of equation is given below. Can anyone suggest on how to align the equations in such a way that all the equations get covered under same equation number? \begin{multline}\label{eqn-5.9}...
0
votes
2answers
43 views

How can I simplify an equation in LaTeX?

I am new to LaTeX, and I am using OverLeaf. I am trying to typeset simplifying the equation u+v-w=p*r+q*s-(q-p)*(s-r)=p*s+q*r. I tried: \begin{align} \left\ u+w-v &= p\times r + q\times s - ...
0
votes
0answers
17 views

function multiple lines into box

I'm trying to write the Leapfrog integrator for Monte Carlo Hamiltonian, but I can not properly align each of the rows, any suggestions please. Expected Output: My code: \documentclass[12pt,a4paper]...
1
vote
2answers
27 views

How can I write underneath the equation “b+b+…+b” n-times? [duplicate]

I am new to LaTex, I am using a Overleaf. I'm trying to write the equation n\times b= b+b+...+b with 'n-times' in the bottom.
0
votes
1answer
35 views

How can I write a long equation in two lines and name it?

\begin{eqnarray} \tag{A8} 2x+3y+4z+2u+7o+8k+90l+43+56+45p+33h \nonumber \\ &+& 89n+90m+34j+23a+45b+56f \end{eqnarray} But I am not getting the required equation with name A8. If anyone ...
3
votes
2answers
47 views

left-align latex multiline equation

I have a multiline equation in a 2-column document. I want the last item after the "+" sign, i.e. L_{p}^{ITM}\delta_{i,B}, to be left-aligned.As can be seen from the picture, the following latex ...
0
votes
2answers
24 views

How to have “local” numbering for amsmath align environments?

I am trying to re-start the numbering in amsmath align environment. My MWE is as follows: \documentclass{article} \usepackage[utf8]{inputenc} \usepackage{amsmath} \begin{document} The following ...
2
votes
3answers
27 views

Formula doesn't fit, equation number strolls behind (using flalign)

I have spent some time already trying to fix the way this formula looks, but to no avail. Does anyone have an idea on how to make this look better? Mainly the equation number should fit to the right ...
3
votes
2answers
242 views

I could not break this equation. Please help me

f_2=\frac{\sqrt{\frac{s-4 \text{mpsi}^2}{s-4 \text{me}^2}} \left(16 \text{ca} \text{cw} \text{EE}^2 g \text{gpsi} s^2 \sqrt{s \left(-4 \text{me}^2+4 \text{mpsi}^2+s\right)} \cos (\theta ) \text{mZ}^...
0
votes
0answers
14 views

Numbering and Referencing [duplicate]

Is it possible to renew a command to stop equation referencing using the chapter number? I would like the numbering to restart every subsection. Thank you.
2
votes
2answers
42 views

Align multiple equations at multiple points with \alignat

I'm trying to generate an aligned pair of equations with the alignat environment. However, I have two major problems: There is extra horizontal space before my aligned points. The euqation numbers ...
2
votes
1answer
37 views

\linegoal: its use in the second column of the two column document doesn't work correctly

This is the following-up question to interesting @Bernard answer. For some reason I test his interesting solution, how it works if i repeat the same equation four times: \documentclass[twocolumn]{...
0
votes
1answer
18 views

Subnumbering equations while also aligning them

Using AMSMATH's gather environment I can subnumber equations, hoewever I am also losing the alignment at the "=". Is there a way to have both, alignment and subnumbering? \documentclass{article} \...
-1
votes
1answer
22 views

change equation label with amsmath

I would like to change equation number from style (N) to (N.). I can do this by redefining \def\@eqnnum{{\normalfont \normalcolor (\theequation.)}} ...
1
vote
2answers
29 views

How to use references within equations and refstyle?

The refstyle package seems to break references within equations \documentclass{article} \usepackage{amsmath} \usepackage{refstyle} \begin{document} \begin{enumerate} \item \label{enu:test} \end{...
0
votes
1answer
29 views

I want to write the following equation in multiple lines in two column paper?

the case of multiple resources the total time of activity \emph{"i"} with respect to the effect of personality of resources will be calculated as follows; \begin{equation} TotalTime of a\...
0
votes
0answers
12 views

How to add equation number? [duplicate]

\[L_{AABB}=-logI_o\cup(\hat{R},R^\star)=-log\frac{\mid\hat{R}\cap{R^\star}\mid}{\mid\hat{R}\cup{R^\star}\mid}\]\label{one}\] how to add equation number?
2
votes
1answer
30 views

Alignment in nested align [duplicate]

How can I align equations in nested align ? \documentclass{article} \usepackage{amsmath,amssymb,amsfonts} \usepackage{flexisym} \begin{document} \begin{equation*} CT_i = \left\{\begin {aligned} ...
2
votes
0answers
30 views

Split Equation not working in trivial case in Overleaf

I,m quite new at LaTeX and I've been having problems with the split equation environment with error messages on every line in my environment. I'm trying to isolate the problem and I've reduced to ...
5
votes
2answers
205 views

Why do I get an error when I try to begin an equation?

This is what I have typed so far in latex: \documentclass[10pt,letter]{article} \usepackage{amsmath} \usepackage{amsthm} \usepackage{mathtools} \usepackage{graphicx} \usepackage{setspace} \...
4
votes
1answer
32 views

Change equation numbering without changing labels

The crux of the issue is I want to refer to some equations as "Equation 1" in the body of the text. However, the actual numbering of the equations I want to appear as a right justified "eq. 1". Below ...
5
votes
2answers
105 views

Matrices with same height in keynote

I am trying to write some matrices with latex in Keynote and I cant make them the same height. There are some answers to this problem but can't make them work in Keynote. The equation looks like this:...
3
votes
2answers
43 views

Typeset equation with multiple aligned conditions on the right

Here is my LaTeX code: \documentclass[11pt,a4paper]{article} \usepackage[utf8]{inputenc} \usepackage[english]{babel} \usepackage{amsmath,amsfonts,amssymb} \begin{document} \begin{align} DS &= \...
1
vote
1answer
29 views

How to align the equations to start from left

\begin{align*} (pq+p-3)^2-(3pq+p+q-6)(pq+p-3)+2(p^2q^2+p^2q+pq^2-7pq+p+q+2)\\ =(p^2q^2+p^2+9+2p^2q-6q-6pq)-(3p^2q^2+p^2q+pq^2-6pq+3p^6q+p^2+pq-6p-9pq-3p-3q+18)+2(p^2q^2+p^2q+pq^2-7pq+p+q+2)\\ =pq^2-...
2
votes
2answers
41 views

subequations: How to continue numbering while considering scrbook numbering scheme?

The user daleif has posted a nice approach on how to increase equation numbers when using subequations. Minimum Working Example (MWE): \documentclass{scrbook} \usepackage{amsmath} \newcommand\...
4
votes
2answers
42 views

subequations: Equation numbering does not start with no. 1

The user egreg has posted a nice approach on how to increase equation numbers within subequations. Minimum Working Example (MWE): \documentclass{article} \usepackage{amsmath} \usepackage{mathtools} ...
9
votes
1answer
275 views

subequations: How to continue numbering within subequation?

Let's assume we want to create one subequation including four aligned single equations. The first two single equations should be numbered as 1a and 1b while the third and fourth one should continue ...
1
vote
4answers
97 views

Write several systems of linear equations in one line

How to write several systems of linear equations in one line with automatic transfer? \begin{multline*} \begin{split} \begin{cases} - x + 8y = -15\\ 4x -4y = 32\\ \end{cases} \end{split} \end{...
5
votes
2answers
422 views

Programmatically populating tables with probability data

I have the following template for a journal article featuring a basic table: The code looks something like this: \documentclass[jou,apacite]{apa6} \usepackage[utf8]{inputenc} \usepackage{amsmath} ...
2
votes
1answer
34 views

How to make a system of equations with a number after every line and a tall curly brace on the left [duplicate]

So, i have this code: \begin{align} S(t+\Delta) &= S(t)-\beta S(t)I(t)\Delta + \phi R(t) \Delta \label{S}\\ I(t+\Delta) &= I(t) + \beta S(t)I(t) \Delta - \gamma I(t) \Delta \label{I}\\ R(t+\...
1
vote
1answer
30 views

What is wrong in the following latex math code?

$$ \left. \begin{array}{c} \frac{NR}{K}=50\\ 0<R\leqslant 35\\ NR\geqslant 65\\ N>0\\ K=24\\ NR\geqslant \text{600 }\left( an\,\,initial\,\,guess \right)\\ \end{array} \...
0
votes
1answer
24 views

inconsistent Vertical Spacing between equation and text

I have some problems in spacing. I just want to put equations in the text. What I found is that the vertical spacing between the equation and text is not consistent. Some is large and some is small. ...
4
votes
2answers
81 views

Multiple labels for a single equation

I have an equation that looks like y=4x \text{ for } x\in \{1,2\} and would like to label it equation (1-2) so that the next equation in the paper is automatically labeled equation (3). How can I ...
2
votes
3answers
94 views

Showing Factorising via Tikz

Im trying to show how to factorise equations on latex Im using the following code. However, I want to the nodes coming from the 8x to be above the 4x's not the centre of the function and I dont want a ...
1
vote
1answer
33 views

Latex repeat equation numbering (unwanted)

I'm using the equation environment in my latex document. All went ok until half a chapter when I find the two equation have the same equation number (3.44). Why could this happens? Moreover, from that ...
2
votes
1answer
29 views

Custom eqref with letter

On a specific equation, how can I customize the equation environment/referencing, such that The equation is numbered by as custom acronym, say "(NEW)" (instead of a squentially generated number, such ...
4
votes
3answers
244 views

Latex for-and in equation

I need to write equation as shown in the attached image in LaTex. So far, I have written it like shown below but I can't figure out how to separate (or write properly) the "for" and "and" part of the ...
2
votes
1answer
71 views

Express mathematically that a vector has an element greater zero [closed]

This might not only be related to latex, but I'm struggling to find a way of expressing a condition which is if a vector contains at least one element that is greater than zero. Currently I have this,...
6
votes
3answers
264 views

How do I nest cases?

I am new to LaTeX. I know how to write basic equations in LaTeX. However, the following equation seems to be too difficult for me. Please help me with this. Thank you.
0
votes
0answers
16 views

flalign inside list has extra space even after \setlength{\abovedisplayskip}{0pt}

I have defined this environment: \newenvironment{proofln}{\par \textbf{Proof}\list{}{\leftmargin=10pt\rightmargin=0pt\topsep=0pt}\item\relax}{\endlist\textbf{Q.E.D}} Now I use it like this: \...
3
votes
1answer
32 views

Environment to hide number from numbered equations

I'd like to create an environment that hides equation numbers from numbered equations. I'd should work like this: \documentclass{article} \begin{document} % --------------------------- % \begin{...
1
vote
1answer
30 views

Beginner- align equations to the left

I am total beginner, and I read all questions and response on this site, but still can not figure it out. I tried align* and flalign, but always is some error. Hope you can help. \documentclass[10pt]{...
0
votes
1answer
30 views

How to label an equation with number? [duplicate]

I am using LaTeX version 3.77. I am trying to label my equations but every method appeared online won't seem to work for me for some reason. \begin{document} Below is the equation I am typing, and I ...
1
vote
1answer
40 views

Beamer equation error

I am having some problems with my recent Beamer presentation, namely with equations. I would like to typeset the phrase $$\sum_{i=1}^{n}i=\frac{n(n+1)}{2}$$ in a typewriter font inside an equation, ...
2
votes
2answers
39 views

Shift to left a long expression into an environment

What are the possible alternatives to move within an environment, the second equation all on the left? Here there is my MWE: \documentclass[a4paper,12pt]{article} \usepackage{mathtools} \begin{...
2
votes
1answer
49 views

Trying to write the equation in one single line in block

I am trying to put an equation in a block in one single line. But I could not able to do that. HOw to do this. This is what I tried. \documentclass{article} \usepackage{tikz} \usetikzlibrary{shapes,...
0
votes
1answer
19 views

Grouping lines in cases and aligning them

I am reading an article, where I faced the following: I want to write such a thing in LaTeX. Basically, this whole thing is in a bracket, every two lines are grouped and labeled together, and there ...
3
votes
3answers
277 views

How to left align the cases in Latex?

I am using WinEdt. And trying to run the following code. However, the second item is coming in the middle. Can we align it to appear on the extreme left like the point (i)? Kindly help. Thanks a lot ...