Skip to main content

Questions tagged [eqnarray]

the math display environment from LaTeX with alignment points. Do not use this tag for the `eqnarray` package.

Filter by
Sorted by
Tagged with
2 votes
2 answers
157 views

Unable to use split. tryed doing with align got more error in that also due to this im unable to fit the equation the page

\begin{eqnarray} \begin{split} J_{cp} &=& \frac{1}{36} \bigg[\sqrt{3} \sin (2 \text{$\phi' $}) (\sin (\sigma ) \cos (\text{$\sigma' $}) \sin (2 \phi )-2 \sin (\text{$\sigma' $}) \cos (2 \phi ...
Athula D V's user avatar
3 votes
1 answer
61 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
0 votes
2 answers
40 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 vote
2 answers
72 views

How to assign only one number to an equation with multiple lines?

As is shown in my code, I used eqnarray but got two numbers. So I tried the method here by using equation and array instead. But I got error messages: "Package array Error: Illegal pream-token (\...
Ypbor's user avatar
  • 399
0 votes
0 answers
46 views

The & causes trouble in an array using package versions

I have this MWE \documentclass{book} \usepackage{amsfonts} \usepackage{amssymb} \usepackage{amsmath} \usepackage{versions} %\excludeversion{teacher} \includeversion{teacher} \begin{document} \begin{...
lukascbossert's user avatar
1 vote
0 answers
64 views

having each line numbered in an align environment with brackets

I'm trying to get what looks like the following, but with number at every lines. \begin{align} \text{Minimize} \quad & f(x) \\ \text{subject to}\quad & \text{for $i = 1,\cdots,N$:} \\ ...
Parin Chaipunya's user avatar
3 votes
1 answer
55 views

How to align 4 equations and enumerate them

I have 4 equations that I want to take up the entire width of the text, and I want each of the equations to be enumerated as a composite number like equation (34.1) equation (34.2) equation (34.3) ...
conrado10000's user avatar
1 vote
1 answer
130 views

\tag is not allowed in eqnarray

I used \tag{} in eqnarray. But is not permitted and have an error "! Package amsmath Error: \tag not allowed here". Is there a solution to this? Please do as necessary after checking.
Rajasekar's user avatar
1 vote
1 answer
2k views

Quarto PDF not rendering

My Quarto PDF isn't rendering! Here is the error output in the terminal once I press "Render" in RStudio: pandoc to: pdf output-file: LearningLaTeX.pdf standalone: true pdf-engine: ...
Anish G.'s user avatar
3 votes
1 answer
71 views

3 vertical points between three equations that are lined up

I'm trying to put vertical lines between the equations, but I can't do it. Here's my MWE. \begin{align} \frac{dx_1}{dt} &= f_1&(x_1,\dots,x_i, x_n)\\ \vdots & &\vdots \\ \frac{dx_i}{dt}...
JuanMuñoz's user avatar
  • 1,474
3 votes
1 answer
61 views

How to cross-reference the second equation in a two-row 'eqnarray' environment with a single \label instruction?

I have written a two-row equation in this way: \begin{eqnarray}\label{cov} a \\ & =& b. \end{eqnarray} with as a result If I write (\ref{cov}) I get "(10)". Do you know how to ...
MementoMori's user avatar
0 votes
1 answer
105 views

How to use a line break in eqnarray without adding a new equation number?

I am working on a two-columned page and want to write a long formula. I want to use eqnarray so that I can label my equations and refer to them. Not working with eqnarray, I have the following code: \...
Emil's user avatar
  • 390
1 vote
1 answer
34 views

Unique numbering for two lines of equations

How can you place the numbering of the equation as in the image? (I have observed that in Cauchy problems, it appears this way) Thanks.
eraldcoil's user avatar
  • 263
2 votes
1 answer
113 views

TeX4ht: \displaystyle in eqnarray, align and array environments

I am using tex4ht to convert a LaTeX document to HTML. I would like to know how to obtain a full display of equations either in the eqnarray, align and array environments. The following snippet ...
Frédéric Galliano's user avatar
0 votes
0 answers
421 views

{Align} keeps showing error messages and error "File ended while scanning use of \@@BOOKMARK" as well

I am trying to write a list of formulas below but this error message keeps appearing ! Missing $ inserted. <inserted text> $ l.614 \end{align} This is what I have: \begin{align}...
Kateřina's user avatar
3 votes
2 answers
335 views

How to align equations in two columns

Here is my code: ‎ \begin{eqnarray}\label{eq:diff_inv}‎ ‎&\mathcal{D}_1 I_{10}=I_{20}-\frac{3}{2}I_{01},\qquad &\mathcal{D}_2 I_{10}=I_{11}-\frac{3}{2}I_{10}I_{01},\\‎ ‎&\mathcal{D}_1 I_{...
Mustafa Bazghandi's user avatar
0 votes
1 answer
128 views

What is the recent change to eqnarray for?

Looking at the PDF of the current LaTeX source, I noticed that very recently (2021-10-14, I believe), the standard definition of the eqnarray environment was changed to "explicitly set \@...
MSC's user avatar
  • 2,762
3 votes
3 answers
301 views

Equation is floating in two columns and in equation array package

I'm sorry for such a basic question, however, I'm asking because I'm quite close to the deadline. So, my equations are floating on 2nd column based on the below MWE, I was trying to compress it ...
Shane's user avatar
  • 408
2 votes
2 answers
65 views

Aligning two equations (one split and another non-split)

I have the below two equations, \begin{eqnarray} \begin{split} C_{N+1} &= h\left( X_{N+1}; \hat{\phi}_{N+1} \right) + \left[ h\left( X_{N+1}; \phi_{N+1} \right) - h\left( X_{N+1}; \hat{\phi}_{N+1}...
Prateek Daniels's user avatar
2 votes
1 answer
149 views

page break in eqnarray enviroment

I am going to write my thesis by including the List of symbols which are more than a page. I have written it as \begin{center} \begin{eqnarray*} \mbox{A} & - & \mbox{ Area of fin's surface ($m^...
ZDN's user avatar
  • 23
2 votes
3 answers
211 views

Errors on multi-line equation with brackets

I am running this code for an equation that runs over into the margins: \begin{eqnarray} N(t,x) &=& \inf_{u_{I+1} \in [-u_{I+1}, w_{I+1}], T_{I+1} \in \Real_+} \left\{ \inf_{u_I \in [-...
Jacob's user avatar
  • 23
3 votes
2 answers
143 views

Shrink vertical space eqnarray

How to globally shrink the vertical space between lines in eqnarray? I understand eqnarray is not preferable but it is a legacy file for reprint. \begin{eqnarray} 1 + 1 &=& 2 \\ 1 + 1 &=&...
cccfran's user avatar
  • 35
2 votes
2 answers
67 views

Eqnarray mutiple equals in each line

I'd like to produce the following array of aligned equations: \begin{eqnarray*} \operatorname{Cov}\left(u^{\prime} X, v^{\prime} Y\right) &=& u^{\prime} \Sigma_{xy} v &=& \alpha^{\...
just another mathmo's user avatar
2 votes
3 answers
162 views

Line-breaking two equations within equation array

I have the code \begin{eqnarray} &&\nonumber \left.\begin{array}{l} & \textbf{E}_{\textrm{tr}} (x,y,z)= \left(\ts \textbf{s} + \tp \textbf{p}_+\right) \, \exp\lec{i {\ko}...
ngc1300's user avatar
  • 157
0 votes
2 answers
56 views

eqnarray gives same equation number to 2 different equations when \nonumber is used [closed]

When I write this: \begin{eqnarray} K(t) &=& \arccos\left(\frac{k\cos\alpha}{b}t + \frac{A}{b}\right) \\ \textit{ side A: }\\ K(t) &=& \arccos\left(\frac{k\cos\alpha}{b}t + \frac{...
Mustafa Kesir's user avatar
3 votes
4 answers
707 views

How can I write an equation with two curly brackets?

I am trying to write this equation. I used these commands: \begin{eqnarray}\label{eqn1} |1, \:\: \:1\rangle &=& \uparrow \uparrow \nonumber \\ |1, \:\:\: 0\rangle &=& \frac{1}{\sqrt{...
amanda's user avatar
  • 65
0 votes
0 answers
221 views

latexdiff messes up equations and eqnarray

I am using latexdiff(1.3.0) to track some changes in a latex file. My problem is that, for some eqnarray part of the file which does not change between the two versions, such as \begin{eqnarray} \...
Marco Zaro's user avatar
0 votes
0 answers
40 views

Unable to properly align equations

I've got a system of equations that I can't seem to be able to properly aligned. I've attached an image of how I want to align the equations - all the red points aligned together, and all the blue ...
John's user avatar
  • 101
4 votes
3 answers
201 views

Problem with joint use of multicols and eqnarray

I am using multicols and eqnarray, as shown below. However, I don´t know how to get rid of the vertical space before equation (1) and also how to align the lines across columns. Any ideas? Thanks in ...
Marcus's user avatar
  • 259
1 vote
0 answers
434 views

Framing an equation and equation array (boxed)

I want to nicely put equations and equations arrays inside a box or a frame. I also like to align objects in align environment like in the eqnarray environment [r|c|l], see example below. Working ...
Triceratops's user avatar
1 vote
1 answer
61 views

Align eqnarray elements in multicols [duplicate]

I want to align the elements of an eqnarrray between 2 columns. \usepackage{multicol} \usepackage{color,amsmath} \begin{document} \begin{multicols}{2} \begin{eqnarray*} f'(x)&=...
KEIICHIRO OSUNA's user avatar
3 votes
1 answer
718 views

How to put an equation number at the first line?

\begin{eqnarray} \label{eq1} \begin{split} A & = \frac{\pi r^2}{2} \\ & = \frac{1}{2} \pi r^2 \end{split} \end{eqnarray} What this gives me: an equation number between the first and the ...
thunder's user avatar
  • 133
6 votes
1 answer
164 views

Way to tile numbered equations

New to the LATEX and am not tempted at this at all. Honestly tried to find the solution for my task anywhere but, to the best of my understanding, there is no topic here which covers the solution of ...
alphamu's user avatar
  • 163
0 votes
3 answers
73 views

Long equation running into margin (no linebreak)

\documentclass[12pt, a4paper, oneside]{CUIThesisV} \usepackage{placeins} \usepackage{multirow} \usepackage{mathrsfs} \usepackage{amssymb,amsthm} \begin{document} \begin{equation}\label{C2eq61} \tiny %...
Ghulam Hafeez's user avatar
0 votes
1 answer
775 views

How can I split a long equation in eqnarray?

All equations fit in a single line, but the 3rd line (equation) is too long, so I need to divided it into 2 lines. I have tried \\ but it doesn't work. This is what I have (I added more space in ...
Anna's user avatar
  • 3
3 votes
1 answer
160 views

What causes this misalignment bug in eqnarray?

Edit: The following example code is slightly misleading because it contains non-breakable space (which actually causes the bug, see solution). Beware that Option + space produces this character and it ...
Péter Trócsányi's user avatar
0 votes
1 answer
416 views

multiple equations on same row in array

I would like to have a system of equation, say 2x2, and have each one labeled and numbered independently. Please check the example below. \documentclass{article} \usepackage{amsmath} \begin{document} ...
Marco Di Gennaro's user avatar
2 votes
2 answers
958 views

Why the integral symbol is small?

I want to write equation with this code. \documentclass{article} \usepackage{amsmath} \begin{document} \begin{eqnarray} &\dfrac{d\mu(x)}{dx} &= \mu(x)\left(\dfrac{x}{1+x^2}\right)\\...
Ongky Denny Wijaya's user avatar
3 votes
1 answer
556 views

Subequation numbering in iopart

Given a system of equations (1a), (1b), etc. I want to be able to reference both (1a) and the entire system (1). This is trivial with subequations, but in an iopart document this environment does not ...
bjorne's user avatar
  • 647
0 votes
0 answers
42 views

Problem writting an equation

It's me again. I'm trying to write this equation: I wrote this way in Latex: \begin{document} \usepackage{amsmath} \begin{eqnarray*} (M - I) \cdot v = 0 &\Leftrightarrow&...
Sabrina Marques's user avatar
1 vote
0 answers
45 views

Mock vertical scroll in eqnarray/align environment

I find that the size of beamer frames is often too small to display verbose calculations. Running a calculation over multiple frames is awkward and one could wish for a vertical scroll on slides. ...
GNO's user avatar
  • 11
2 votes
1 answer
70 views

aligning addition symbols in array

I have been trying to figure out how to put addition symbols in between each of the following characters for this code: \begin{equation} \begin{array}{c|ccccc} &a_0 &...
user avatar
2 votes
1 answer
428 views

Align within an (fl)align environment

I have a centered list of equations, and I'd like each of the equations to begin at the same margin from the left, then to have the equality signs start at the same margin, etc., whilst keeping the ...
Elle's user avatar
  • 23
0 votes
0 answers
24 views

howto autoref individual equations in an eqnarray

Hi I have the following latex written: They are given as follows by \autoref{maxwelleq1, maxwelleq2, maxwelleq3, maxwelleq4} \cite{maxwellfour}. \begin{eqnarray} \label{maxwelleq1} \text{Gauss' Law:}...
UNAnon's user avatar
  • 13
0 votes
0 answers
273 views

revtex4-1 onecolumn: Remove the extra long blanks before/after eqnarray

In revtex4-1 onecolumn, I find the extra-long blanks (sentence breaks) before/after eqnarray, like this question: How to remove the extra long blanks before/after eqnarray? \documentclass[11pt, ...
wonderich's user avatar
  • 2,437
1 vote
1 answer
226 views

How to align chemical reactions in multiple environments?

How do I align (by arrow) chemical reactions in different environments (between text)? Example: Two arrays. \begin{eqnarray} A & \longrightarrow & A' \\ B & \longrightarrow & ...
matt's user avatar
  • 23
1 vote
1 answer
133 views

label in eqnarray after brackets

May I know how to add labels for the constraints in the LP set such as (3b), (3c), etc.? It seems like once I added \right}, the label function does not work anymore. And this is what I have now: \...
William Wong's user avatar
4 votes
3 answers
347 views

How insert a text on middle right of eqnarray

I want to write the text (1st case) on the middle right of this two equation, any idea for this? Thank you. \begin{eqnarray*} % \nonumber % Remove numbering (before each equation) ...
Mohamed Hasnaoui's user avatar
-1 votes
2 answers
132 views

How to fix this?

I want to edit the problem of equal signs to be under each other. this code to me is perfect, so what would it be the problem.
TCHassna Taha's user avatar
0 votes
1 answer
91 views

Label eqnarray split and align

I've this tex code \begin{eqnarray} &\partial_{t}f =D \nabla^{2}f -f (1-f)[(1-s)-(2-s)f]\epsilon \label{eqn:1}\\ \nonumber &\\ \text{from which we get} &\partial_{t}f =- \frac{\...
io_gucci's user avatar