Episode #125 of the Stack Overflow podcast is here. We talk Tilde Club and mechanical keyboards. Listen now

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.

Filter by
Sorted by
Tagged with
6
votes
2answers
59 views

How to align multiple elements across align and its nested aligned?

How can I fix the first equation to make all the three equations align at the positions marked by & across align and its nested aligned while preserving the spacing \quad before \text in every ...
0
votes
1answer
34 views

I'm trying to align 3 equations by “=”, but I'm getting this error “! Paragraph ended before \flalign was complete.”

I use the \usepackage{amsmath} and the code for the three equations is: \begin{flalign} rez_1[\;] &= \lim_{s \to 0} \left[\frac{2(s + 2)(s + 4)}{(s + 1)^{2}(s^{2} + 2s + 2)}\frac{1}{z - e^{sh}...
0
votes
1answer
29 views

File doesn’t execute, shows error

What is the problem, I an new in LaTeX.
6
votes
1answer
283 views

How to make a long equation small to fit in LaTeX?

I am trying to use one equation in my thesis but that equation is long enough to fit in LaTeX format, I found one image but don't know how to convert that into LaTeX format, it uses some different ...
4
votes
3answers
152 views

Multiline Tag command

I want to have a multiline equation, and to annotate the lines, for the purposes of a key, to explain the various steps being taken. I currently use the tag command, which works fine for short ...
0
votes
1answer
46 views

Brackets too large, inconsistent horizontal spacing

I am sure similar questions have been asked here. However, I am not seeking help in adjusting the size of some specific symbols. Rather, I wonder if there is something wrong with my choice of fonts/...
7
votes
3answers
83 views

\sqrt too long for one line [duplicate]

I have a very long SQRT() equation, that doesn't fit in a line. I couldn't simplify it, since it involves terms in addition. Is there an alternative way to represent a root as 'SQRT{some function}' ? ...
0
votes
1answer
23 views

Labeling a line in a flalign* enviroment

I would like to label the last line of this computation (and several longer ones), so I may use them as equations, like so: \begin{flalign*} \Gamma^{l}_{js}P^{j}Q^{s} &= \frac{1}{2}(\Gamma^{l}_{...
1
vote
1answer
42 views

How do I put two system of equations side by side?

Title says it all. I've tried this \begin{alignat*} & \begin{aligned} & \begin{cases} m \Ddot{x} = m g \cdot sen(\theta) - F_r \\ m \Ddot{y} = m g \cdot cos(\theta) - N = 0 \\ I \Ddot{...
0
votes
1answer
15 views

! Missing } inserted error in equation/split

I have the following equation. \begin{equation} \begin{split} E_\textrm{el}&=\sum_{i}^{\textrm{occ.}}n_i\bra{\psi_i}H\ket{\psi_i}+\frac{1}{2}\sum_{\textrm{A,B}}^{}\sum_{l\textrm{(A)}}^{}\sum_{l'\...
0
votes
0answers
21 views

Label equations with numbers with optidef

This might be a dumb question but I am writing my model with optidef. Using such a environment \documentclass[a4paper]{article} \usepackage{remreset} \usepackage [short]{optidef} \usepackage{...
0
votes
1answer
32 views

Multiple equations of a system on one line

I tried to write a system with multiple equations on every line. I have this: And I have the following error: Extra alignment tab has been changed to \cr. Could you please help? Thanks a lot!
2
votes
2answers
57 views

Label equations with braces and line breaks

I have never used this before, so please bear with me. I am trying to label parts of the flow conservation equation for momentum with braces, which I have done before. However, I can't figure out how ...
0
votes
1answer
63 views

`\int` and `\Sigma` not showing in `kaobook`

Project can be found in Overleaf here: https://www.overleaf.com/read/txwdgwzrfmyk For some reason, \int, \iint and \Sigma do not show up anymore and I cannot seem to solve the problem. Any ideas?
0
votes
0answers
16 views

Left and right brackets with line breaks [duplicate]

The code below generates the following formula: \begin{aligned} \nabla (D_{i,j}\nabla u_{i,j}) = &-\frac{1}{2(\Delta x)^2}[(D_{i,j}+D_{i,j-1}) (u_{i,j}-u_{i,j-1}) + (D_{i,j}+D_{i,j+1})(u_{i,j+1}-...
1
vote
2answers
46 views

How to have midbar be at proper height

Take these examples: $$5|\frac{a}{b}$$ $$\frac{f_r}{a+c}|x$$ $$\left[\frac{1}{2}|\lim_{x\to{}x_0}f\left(x^2\right):\frac{\sqrt{x}}{3}|\iiint_V \mu(u,v,w) \,du\,dv\,dw\right]$$ I want those mid ...
0
votes
0answers
11 views

Assign number to mathematical equations according to section and subsection [duplicate]

I new to Latex, I want to assign number to equations according to its section or subsection, for example a section having number to equations and when another section or subsection start its will ...
0
votes
2answers
30 views

array-environment with dotfill

I have to create this array: I've tried this code: ~$$+\left\{\begin{array}{lll} m_1 (x_1-x_0)&\leq I_a(x_1)-I_a(x_0)&\leq M_1(x_1-x_0)\\ m_2(x_2-x_1)&\leq I_a(x_2)-I_a(x_1)&\leq M_2(...
0
votes
3answers
52 views

How to aligned long equations and shift equal sign to fit

I would like to fit the long equation derivations by shifting the left aligned equal signs to left. \begin{align*} \MoveEqLeft p(y = 1\mid x; \phi, \mu_0, \mu_1, \Sigma) \\ &=...
1
vote
1answer
42 views

Is \, | \, equivalent to \mid?

Is \mid equivalent to \, | \, ? I am asking this because, \mid does not cooperate with \big. However \,\big| \, works fine. I typically use these expressions when defining sets, for instance:
6
votes
2answers
98 views

Equation with indices at end and to right side

I had asked a similar question of the above type (see here), but the output was different (maybe due to the amsart package). I did the following: \documentclass[11pt]{amsart} \usepackage{amsmath,...
9
votes
7answers
577 views

Big Bracket for equations

How can I add the big bracket at the side of my equations, just like in the photo? Below is my code for the equations. \begin{align} \frac{dS_d}{dt}&= A + \lambda_dR_d + \sigma_d(1-\gamma_d)E_d -...
-1
votes
1answer
58 views

How can I write the following reactions and label them?

I would like to write those following reactions and label them like equation mode. How can I do that?
0
votes
1answer
13 views

Change font color of whole matrix including the brackets of matrix

I want to change the font color of complete matrix including the matrix braces to red color. The MWE is given below: \documentclass{article} \usepackage{amsmath} \begin{document} \begin{equation}\...
0
votes
1answer
42 views

Is there a simple way to shrink displayed equations and aligned equations to a percentage of the textwidth?

I'm writing my linear algebra lecture notes in beamer. Often, I want to display an equation involving large matrices, but the equation will not fit the width of the available space in the slide. Is ...
0
votes
1answer
50 views

Math Formula only shows operators

When typing a formula in LaTeX it only shows the operators, no letters. So for example \begin{equation} T = b/\lambda_{max} \end{equation} It shows up as The problem still occurs when I don't ...
0
votes
0answers
19 views

placing equation numbering before right curly bracket

Is there a way to shift the bracket such that it is after the equation numbering. For the moment, the numbers appear after the curly bracket \begin{subequations} \begin{minipage}{.3\textwidth} \...
1
vote
0answers
33 views

Equal spacing for Listings, Tables, Figures and Equations

I'm searching for a MWE to get equal distances between text and all environments in my document. Equal distances mean in this case: Distance between text and the upper border of the environment ...
0
votes
0answers
29 views

How to make an hybrid environment paragraph/equation?

I would like to reproduce the text below which in you can see that some text paragraphs are treated like equations, with a label. I want to create hyperlinks to, has in : \begin{equation} \tag{$C_1$}...
0
votes
2answers
48 views

Equations in a table go beyond the page

I checked several topics regarding tables which go beyond the page. My problem adding to the previous topics is that I am using equations instead of a text. When I try to shorten the subscripts, but ...
0
votes
1answer
35 views

How can I write an equation in the label section?

Code: \begin{figure}[ht] \centering \includegraphics[width=0.8\textwidth]{Images/Co2EOR.JPG} \caption{.....} } \label{Cross-section $$\textrm{CO}_{2}$$ EOR} \end{figure} Error Message: "Missing ...
0
votes
1answer
19 views

Control the spacing between characters in a long equation

While writing long equations in different math environments, I noticed that, as far as horizontal spacing is concerned, environments can be divided into two groups. First group, the spacing between ...
-3
votes
1answer
80 views

How Can I write this equation in latex [duplicate]

I am still new in latex...I have tried many times to write this equation in latex, but no way...always error...any help, please. My Regards.
5
votes
1answer
144 views

Repeating a part of an equation

In tikz, it is possible to define some formatting and apply it in several parts of the tikz drawing; such as using: \tikzset{boxs/.style={draw, very thick, black, rounded corners=5pt}} I use a part ...
0
votes
0answers
23 views

Horizontal line inside a matrix

I tried to make a horizontal line inside a matrix by the attached code. However, it didnot work the compiling process gives a time out message. It work normally without the \hline command. Any help! \...
0
votes
0answers
38 views

beamer, bidi, hebrew, xelatex, equation bracket problem

the following minimal example works well with xelatex \documentclass[12pt]{article} \usepackage{fontspec} \usepackage{bidi} \setmainfont{Arial} \begin{document} \setRL שלום \begin{equation} \label{...
0
votes
1answer
42 views

How can I customize the spaces between consecutive equations in LaTeX?

I am working on my thesis (a report type file) in which I have several consecutive equations associated to some mathematical model. The thing is that those are too separate to each other and looks not ...
2
votes
1answer
55 views

leqno on even pages and reqno on odd pages

I would like to have the equation number on odd pages to the right and on even pages to the left. I found this How to put equation numbers on the left or the right, depending on whether the page is ...
0
votes
0answers
21 views

The horizontal space between margin and *align* environment [duplicate]

How can I remove the space between margin and align environment \documentclass[a4paper,14pt]{article} \author{} \usepackage[fleqn]{amsmath} \usepackage[a4paper,margin=1in,left=2cm,right=1cm,top=1.5cm,...
2
votes
3answers
60 views

How to fit the number of equation in same line with the equation

I have a problem, I want to fit the number of equation in the same line with equation, and I confuse why there are two number of equation in one equation. This is my code: \documentclass[a4paper,12pt,...
2
votes
3answers
244 views

Equations with summation (“\sum”) symbols

Can some one please help me how can I make the following equation in latex? I have used \begin{equation} \label{eq24} \begin{split} V^{\pi}(s) = {\sum_{a}\pi(s,a)} \sum_{s^'} \mathcal{P}{{^a}_{{ss}^...
1
vote
0answers
24 views

Difference between equation formatting in article and beamer

I would like to replicate the math style of the following beamer document in article. However, when I switch the document class, the formatting of the equation (the font used) changes. I would like to ...
10
votes
2answers
617 views

Align all symbols in a system of equations

I'm a middle school maths teacher trying to teach equations to my students. One advice I give them is to try and think of each number as if they were in a "column" of their own, so it's clearer to ...
4
votes
2answers
92 views

Most practical way to create numbered ladder drop layout

I am searching for the most canonical way to create a skew or drop ladder equation chain layout (as described e.g. in sections 14.2.2 and 14.2.3 of the breqn package, except I don't want to use the ...
4
votes
1answer
84 views

Equation with table below

I want a table to show the process involved in integration by parts. Here is what I have (from Equation with vertical arrow): \documentclass{article} \usepackage{mathtools} \newcommand\vertarrowbox[...
3
votes
1answer
81 views

The problem about \sqrt

When the symbol in the \sqrt is too large, the \sqrt rendered in the article is too vertical and is not very beautiful. I want it to have a tilt angle, just like when there are few symbols inside. ...
2
votes
1answer
34 views

Aligning one of the elements of an equation in an array environment

Consider the following equation - \documentclass{article} \usepackage{array} \begin{document} \begin{equation} A = \\ \nonumber \left\{ \begin{array}{lllr} A_{1} & & \mbox{} m=1, n=1 \\[...
0
votes
2answers
35 views

Customize equation numbering for Equation environment for Supplementary Material?

I need a different numbering style for equations in the Supplementary Material, for example use (S.1) instead of (1.1) It works manually with \tag{S.1} but is there a way to change the ...
-3
votes
1answer
152 views

How do I create a line break in display-mode equation material?

How do I make a new line in $\LaTeX$? $$2^2+2=6 3^2+3=12$$ returns $$2^2+2=6 3^2+3=12$$ which is wrong.
0
votes
0answers
18 views

why is there a space/tab in my line after I finished the theorem

when I finish the end them the next line is not line up right. them is \newtheorem*{them}{\textcolor{OliveGreen}{Theorem}} \begin{them} \textcolor{OliveGreen}{Pythagoras}\\ There no rational ...