Skip to main content

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
4 votes
3 answers
209 views

Non-standard alignment of multiline equation

In the old days when people used typewriters instead of LaTeX it was fairly easy to achieve the following non-standard multiline split Now that we have environments like align and alignat it is not ...
Ted Black's user avatar
  • 495
4 votes
2 answers
159 views

How can I change the size of \vert accordingly like \left and \right command [duplicate]

I am considering the notation \newcommand{\f}[3]{f\left(#1; #2 \lvert #3\right)} As you can see, the top formula has \vert size as default. I want the latter formula, How do I change my command? I ...
Dqrksun's user avatar
  • 141
0 votes
0 answers
38 views

How can we create the triangles in equations of latex? [duplicate]

How can we create the above equations in latex? I don't know how to create the triangles. My current code is as follows, and the triangles don't exist. \documentclass{article} \usepackage{amsmath} \...
James's user avatar
  • 415
0 votes
0 answers
25 views

How I can align equations with amsmath [duplicate]

I use amsmath for my paper but I find that my equations are not aligned. It looks like equality is not under the equality. Directive align* also doesn't work. I have the issue with multiple labels ...
Ciemna_noc's user avatar
2 votes
1 answer
60 views

How can I avoid that vskip after {equation} and after {enumerate} add up?

After an enumerate item, latex leaves a vertical space. After an equation, latex leaves a vertical space. If the equation is the last line in an enumerate environment, latex adds both vertical spaces. ...
KlausK's user avatar
  • 163
0 votes
1 answer
36 views

How can show ratios with tikz arrows?

How can show the rations with arrows in the equation with tikz? As shown in the picture. Thank you in advance. \documentclass{article} \usepackage{amsmath} \begin{document} %%%%%%%%%%%%5 Equation 1 ...
Samia Rani's user avatar
0 votes
1 answer
41 views

A weird result when use aligned with sqrt for multiple lines

I'm trying to write an equation in which sqrt function is too long and I use aligned to break into multiple lines inside sqrt \begin{equation} \begin{split} \begin{aligned} \sqrt{(\tilde{\textbf{w}_i} ...
jupyter's user avatar
  • 103
2 votes
0 answers
39 views

How to get equal vertical spacing between all lines of a multiline equation? And should it be done? (EDITED) [closed]

Consider the following MWE: \documentclass[]{article} % PACKAGES LOADING \usepackage[]{mathtools} \begin{document} \begin{align} f(x)&=(1/n)(x)\\ &=(1/n)\sum_{i\in N}x_i\\ &...
EoDmnFOr3q's user avatar
  • 2,343
2 votes
2 answers
75 views

correct way to add explanatory text to (multiline) display equations in Lyx?

In math textbooks you sometimes find short text alongside each line of a multi-line set of equations. Something like: a = b (given hypothesis 1) a = c^2 (using b=c^2 hypothesis 2) I can see ...
Penelope's user avatar
  • 217
0 votes
0 answers
65 views

Too much space before and after \[\] [duplicate]

Whenever I use \[ ... \] in my LaTeX document, there is too much space before and after the equation. How can I fix this?
fluffy's user avatar
  • 1
3 votes
4 answers
153 views

How to make sub "array" to aligned with the outer "array" in equation in LaTeX?

How can I align the equal sign in the subarray environment with the equal sign in the outer array environment? \documentclass[letterpaper]{article} \begin{document} \begin{equation} \left. \...
Y. zeng's user avatar
  • 2,105
2 votes
0 answers
62 views

How to align vertically by "\shortstack" in equation in LaTeX?

In equation, sometimes needs to add some mutiline text by \shortstack, which wouldn't be aligned vertically. For example \documentclass[letterpaper]{article} \begin{document} \begin{equation} \...
Y. zeng's user avatar
  • 2,105
3 votes
1 answer
58 views

Resizing the second line in \eqnarray

In the code: \begin{eqnarray} \text{minimize: } J &=& w_1j_1 + w_2j_2 + w_3j_3 + w_4j_4 + w_5j_5\\ &=& w_1 (\bar{T}_{HLF} - 343K) + w_2(\bar{T}_{HLR} - 300K) + w_3 C_{total} + ...
Anthony Sirico's user avatar
4 votes
1 answer
63 views

Equation numbering inside Definition, Example etc

I am writing a report within which I want to have definitions and examples. In the main text of the report I have equations numbered according to their order and according to the chapter they belong ...
gatsu's user avatar
  • 163
1 vote
1 answer
48 views

How do you automatically layout a large number of equations?

When defining a relation (for example, the provability relation in the example at the end), it is often the case that a large number of rules are given. To layout them, I usually use the gather* ...
user avatar
0 votes
1 answer
58 views

Drawing an ellipse from its equation

I want to draw the ellipse whose formula is x^2+19xy+4y^2-45y-1=0 using TikZ-pgf. I suppose that I could write a program to compute lots of points on the ellipse, but I am hoping that there is a way ...
Moti's user avatar
  • 101
3 votes
2 answers
158 views

Why the numbers of the label of two consecutive `subequations` is even?

Why the numbers of the label of two consecutive subequations is even? This event happen the first times for me. \documentclass[12pt]{book} \usepackage{newtxtext,newtxmath} \usepackage{amsmath} \...
Sebastiano's user avatar
  • 56.5k
0 votes
1 answer
28 views

How to tag related equations with the same number, but with a suffix letter

I am reading a book were the numbering of equations follows the format (<section>.<eq number>) with an additional perk, namely that whenever it makes sense to gather a set of equations ...
Albert's user avatar
  • 145
1 vote
1 answer
58 views

Why this wrong horizontal spacing in mathmode?

I'm having a spacing glitch that I don't understand, while it should be obvious: \documentclass[12pt,letterpaper,twoside]{book} \usepackage{lmodern} \usepackage{amsmath} \begin{document} Blabla: ...
Cham's user avatar
  • 2,328
2 votes
2 answers
85 views

Extraneous indentation on the line following double-dollar display math with \eqno or \leqno

MWE: \documentclass{article} \begin{document} $$x\eqno (1)$$ N\\N $$y\leqno (2)$$ N\\N \end{document} The lines following display equations $$...$$ with \eqno or \leqno are slightly indented. ...
Alexey's user avatar
  • 2,161
8 votes
2 answers
383 views

Square root symbols that don't match

I'm getting a weird result using the code that follows. The square root symbols don't match. In particular, the second square root symbol has a far greater depth than the first does. (The second ...
Qwerty's user avatar
  • 81
2 votes
1 answer
61 views

change the appearance of the \equation

I use this code to change the appearance of the equation, but it is full of errors even if at the end it gives a result, please help me to correct it. Thank you . \documentclass{article} \usepackage{...
M.La's user avatar
  • 29
0 votes
0 answers
51 views

How to convert these equations from LaTeX to Word with pandoc?

I have a document that I wrote years ago in LaTeX, and now I need it in Word format. The text part works fine using pandoc, but this document contains a large number of math equations. I used some ...
Cyril L's user avatar
2 votes
1 answer
68 views

How to put equations inside brackets and define their labels?

I am trying to group equations and reference them inside brackets, I tried using \label but it doesn't work, I tried split: \[ \begin{cases} \begin{split} \prob_1 \Big[\mathrm{Inf}_{A,1}^{...
Guesttilunderstandingnature's user avatar
0 votes
0 answers
20 views

Right bracket is not showing when equation breaker is used [duplicate]

I'm using a big equation. Hence, I used an equation breaker to break it. But I notice the right bracket are not showing anymore. \begin{multline}%\begin{equation} \label{eqn:eq0067} d_{h}\left(G,P\...
user836026's user avatar
0 votes
1 answer
71 views

The Theatre Ticket [closed]

\begin{tikzpicture}[scale=0.8] \draw[->] (0,0) -- (10,0) node[right] {Quantity}; \draw[->] (0,0) -- (0,10) node[above] {Price}; \draw (2,8) -- (8,2) node[midway,below] {Demand Curve}; \draw (1,9)...
October's user avatar
-1 votes
1 answer
88 views

Existence and uniqueness [closed]

Sorry, I am new to LaTeX. How can I make this figure or something similar from Nagle's Differential Equations book in a TikZ code?
Carlos Eduardo Velez Cantos's user avatar
1 vote
1 answer
28 views

ending bracket in Latex error for multi line equation [duplicate]

I found the link eqnarray or align where it is suggested to not use eqnarray. so I want to know how this equation will work in multiline with the last closing square bracket. \begin{align*} \frac{\...
David's user avatar
  • 13
3 votes
2 answers
271 views

Alternative for an exponent's position

Is there an elegant way to adjust the position of an exponent for a particular parameter ? For instance, in this image, we can see that the exponent is too close from the main letter R and the indexes ...
Waxler's user avatar
  • 808
3 votes
2 answers
161 views

How do I create a multiline equation with one braces which is part of a bigger equation?

How do I create a multiline equation with tall curly braces in Tex? split causes the braces to be split in two lines which is not something I want. See the pictures below to understand the problem. ...
rupsagar's user avatar
2 votes
2 answers
52 views

Equation Padding/Spacing in Table

Having trouble fixing the bottom spacing with these display style equations in the table. What's the best way to fix this without manually entering spaces myself? \documentclass{standalone} \begin{...
tangulo's user avatar
  • 87
0 votes
0 answers
44 views

Pandoc, equations and OpenOffice writer

I found an elegant way to convert .tex files to .docx format. The text rendering is really good, but some things are missing: The equations are not displayed: I think it is a problem with OO Writer, ...
user3204810's user avatar
  • 1,509
0 votes
1 answer
27 views

How can I remove large horizontal space in an aligned-environment?

Simple question, actually: How can I remove the large horizontal space between "f" and "\in" here: \documentclass{article} \usepackage{amsmath} \begin{document} \begin{equation} ...
0xbadf00d's user avatar
  • 523
4 votes
2 answers
64 views

Additional line created when using equations in algorithm2e

Consider the following example, placing equation*s inside of an algorithm environment: \documentclass{standalone} \usepackage{amsmath} \usepackage{algorithm2e} \LinesNumbered \begin{document} \...
hfhc2's user avatar
  • 894
0 votes
1 answer
51 views

LaTeX equations formatting problem

I am trying to build the following equation in LaTeX without the text between the two sections. However, I can't do it. I would be super grateful for help. \begin{align*} \max_{e, s} \hat{U}(b, \...
July's user avatar
  • 3
4 votes
2 answers
154 views

“alignedat" will adjust the line space automatically but "array" won't in LaTeX?

From the post, the array is better than alignedat for aligning the equation. However, it seems that alignedat would adjust the line space but array won't. For example \documentclass{article} \...
Y. zeng's user avatar
  • 2,105
3 votes
2 answers
95 views

Does "array" use smaller font in equation compared with "alignedat" or "aligned" in LaTeX?

Sometimes, it is more convenient to use array to align something in equations in LaTeX. However, the array displays more smaller font compared to the alignedat or aligned. \documentclass{article} \...
Y. zeng's user avatar
  • 2,105
2 votes
2 answers
121 views

How to center numbers in "alignedat" in LaTeX

When using alignedat to center numbers in equation. \usepackage{amsmath} \begin{document} \begin{equation} \left. \begin{alignedat}{5} a=&\frac{\frac{123 \sqrt{\frac{45}{6}}}{...
Y. zeng's user avatar
  • 2,105
1 vote
1 answer
56 views

How do I italicize the variable "s" in the following equation?

The referee of my manuscript has asked for the letter 's' in the following euqation to be italicized. From search, I found that in order to italicize math in an equation, I must use \mathit. The ...
wander95's user avatar
  • 178
0 votes
0 answers
26 views

How can you control the vertical space before and after an equation (on its own line) in a figure caption?

I want to insert an equation (on its own line) in a figure caption. The default spacing before and after the equation in the caption looks too big to me. How can I adjust the spacing before and after ...
Naysh's user avatar
  • 187
2 votes
1 answer
30 views

Aligning equations left and on one character

To establish a formula in chemistry, I would like everything to be aligned to the left. For the last three, I would like them to be aligned with the "=" sign : most of my equations are ...
Nicolas's user avatar
  • 1,257
1 vote
1 answer
49 views

How to define width of flalign environment?

I am trying to get the equation in the flalign environment to be left aligned with the text in the tabular environment above it, and to have the same width -- 0.8\textwidth. The equation is a ...
vardo 's user avatar
  • 11
0 votes
0 answers
9 views

how do I get a numbered equation inline? [duplicate]

This is a tricky one that I didn't manage to get right. I have some text followed by an equation environment. I want to include it so that the equation is numbered and can be referred to, however, I ...
kloop's user avatar
  • 9,764
6 votes
2 answers
181 views

I have an array inside of equation and aligned, not recognizing math mode

I am trying to create a bracket enclosed matrix where the rows and columns are labeled. My attempt is: \begin{equation} \begin{aligned} &\begin{array}{*{7}{p{.8cm}}} \...
akb427's user avatar
  • 73
0 votes
1 answer
26 views

How to align text to the left side of a page an equation to the middle, while both reside on the same line?

In case the title isn't clear: I need a bit of text and an equation (for other cases, in the provided picture I had other text) to reside on the same exact line, while having the text be aligned to ...
Raiden's user avatar
  • 83
4 votes
4 answers
799 views

Long equation doesn't fit within text block

Question: I have been typing a very long equation but it doesn't fit on the page. What I have provided for the following MWE is for the document class article for the landscape page. My original page ...
SandyM's user avatar
  • 2,825
2 votes
2 answers
108 views

Automatic line break in align environment

I have the following problem. I am currently trying to convert my paper into an Overleaf Journal template. This has two columns per page. But now my equations are getting a bit out of shape. See here: ...
marvelfab12's user avatar
4 votes
1 answer
110 views

different colors for equations with cref

I was working on some equations and wish to have them in a different hyperlink color compared to the rest of the link colors I set in my \hypersetup. Now, it appears this post does what I'm looking ...
Matteo's user avatar
  • 307
0 votes
2 answers
42 views

Left justify the given equation [duplicate]

Question: How can I justify (on the left side) the given equation? MWE \documentclass[12pt,a4paper]{article} \usepackage[utf8]{inputenc} \usepackage[T1]{fontenc} \usepackage[width=1.00cm, height=1....
SandyM's user avatar
  • 2,825
0 votes
2 answers
39 views

Is there a better way of typing big equations than this? IEEEtrans

I am writing a journal in IEEEtrans template. I have multiline equation which is not able to fit in one column. So, did the following: \documentclass[final]{IEEEtran} \IEEEoverridecommandlockouts % \...
Shashank Ranjan's user avatar

1
2 3 4 5
123