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

2
votes
1answer
2k views

Writing equations with fractions and greek letters [closed]

I'm trying to write this equation below and using the \usepackage{amsmath}, but I'm getting the error ! Argument of \frac has an extra } so I still don't know what I did wrong. And how can I make ...
3
votes
1answer
256 views

Automatic arrangement of equations with comments

This question led to a new package: conteq I am writing a paper with multiple chains of equations or inequalities, with optional explanations. Depending on the size of the equations, I use one of ...
5
votes
2answers
13k views

multiple column align equation environments

Can I get this three column arrangement in the equation environment without using three align environments? The problem I am having is the amsmath error "erroneous nesting of equations" occurs and I ...
3
votes
1answer
545 views

Multiline equation with cases

I am trying to get a system of equations, that will have cases only on some of the equations. I made this: \documentclass[a4paper]{article} \usepackage{amsmath} \usepackage{mathtools} \begin{document}...
1
vote
0answers
195 views

Name of length for equation number indent if [leqno] is set [closed]

I got a weird phenomenon as shown in the picture below. The equation numbering is indented. I tried the same thing in a fresh document and it produces the result I am looking for. For the other ...
6
votes
2answers
117 views

Modify Tag Command

Fairly sure this is something really obvious. Trying to redefine the \tag{...} command via: \let\tagOld\tag \renewcommand{\tag}[1]{\tagOld{#1$^*$}} In other words, it appends an asterisk to the ...
2
votes
1answer
155 views

How to left align an equation, with a brace as left delimiter? [duplicate]

This is my code: \begin{document} $$ \sigma(s,i) = \left\{ \begin{array}{ll} \tau_{si} & \mbox{si } \{s,i\} \in E \\ \infty & \mbox{sinon.} \end{array} \right. $$ \end{document} I ...
7
votes
2answers
348 views

Wrong vertical space in theorem environment closed by an equation

It happens that LaTeX, to fill a page vertically, adds extra spaces around equation environments (and other vertical spaces). Now suppose I have a theorem environment (using amsthm) which ends with an ...
0
votes
1answer
71 views

Equation problems

So I am trying to insert an equation. The output seems to be correct, but I get some error messages. \begin{equation} \centering \label{eg:homogeneity2} \begin{align} H(C) = - \sum\limits_{c=1}^{|...
12
votes
3answers
7k views

Chemistry Equations

I have the following Chemistry equation: 2LiOH(s) + CO2(g) -> Li2CO3(s) + H2O And I have the following LaTeX code: \ce{2LiOH_{(s)} + CO_{2(g)} -> Li_{2}CO_{3(s)}+ H_{2}O_{(g)}} But I ...
1
vote
1answer
229 views

Using split to break a long equation

I am trying to break a long equation over multiple lines. It is here as follows: \begin{equation} \begin{split} L(\textbf{q})=&\prod_{t=0}^{36}{q_{1}^{iB(t)sB(t+1)+iC(t)sC(t+1)}\\ &\quad\cdot ...
5
votes
3answers
127 views

Putting a header above the cases in an equation

This question is best illustrated by an example. Consider the following code Further we can show that \begin{equation*} P_{v}(T) = ...
2
votes
2answers
399 views

How to adjust the blank space between the top of the left curly brace and the contents?

I want to type a system of equations delimited by the left curly brace. And I tried using the \left{ with aligned, and cases, and array, and numcases. But there are some difference between the results ...
12
votes
2answers
5k views

what's a replacement for \lefteqn in the align environment?

I would like to avoid the use of eqnarray. I would like to use the align environment instead. However, I have an equation that I specify currently the following way: \begin{eqnarray} \lefteqn{f(a,b,...
10
votes
1answer
996 views

Automated generation of equation key

I am looking for a way to automatically create the legend for an equation (let's say embedded in the align environment). What I'm currently using is a semi automated to fully manual way. Let me ...
2
votes
4answers
1k views

Putting row of dots in an equation

Is it possible create a system of equations that will look like this: aX(x_0)+bX(x_0)+cX(x_0)=A dX(x_1)+eX(x_1)+fX(x_1)=B ......................... gX(x_n)+hX(x_n)+iX(x_n)=B I tried with this: ...
6
votes
1answer
342 views

Size Math font – Define different sizes for Display and Text Equations globally

I have a rather long document with plenty of maths and equations. As the equations are quite long I have chosen to use 8pt for equations in the display mode instead of the 10pt normal size. \...
3
votes
0answers
87 views

Is it possible to reprint an equation without actually rewriting it? [duplicate]

I have an equation like: \begin{equation} \label{whatever} x+y=1 \end{equation} I want to write it again, keeping the same number. I know I could do the following: \begin{equation} x+y=1 \tag{\...
3
votes
1answer
88 views

Equation and image in a row

I have example (defined as \newtheorem{example}{Example}[section]) and inside I have four-level equation of same size as an image ABC.png that I want to put on the right from the equation. But it is ...
4
votes
2answers
24k views

How to simply center equations using eqnarray*?

So I have this code here: \begin{eqnarray*} x + (y - 2)^4 = w^2 \\ (x - 9)^2 + y_2^2 = w^2 \\ x + (y - 2)^4 = w^2 = (x - 9)^2 + y_2^2 \\ \end{eqnarray*} As you can see, I get the ...
5
votes
1answer
493 views

Annotated equations

I need many of my equations to have annotations stating their domain of validity, or certain conditions for which the equation is true. Preferably, these would be flush right against the equation ...
6
votes
2answers
551 views

Missing final brackets (in one equation { and in other - ]) in the equations

This is my first question on tex.stackexchange, so the formatting will be terrible. I've got a problem with three lengthy equations - the closing brackets, in all three formulas, are not displayed. ...
4
votes
2answers
4k views

How to label text with equation number?

I'm trying to put equation numbers next to text as if said text was an equation. If I use \text{} in an align* environment, it typesets the text right-aligned and the whole environment centered, but ...
1
vote
1answer
610 views

Two columns of equations, aligned and just one number per column

I'm writing a two-column document, and I want to display two sets of large equations floating at the top. Each equation set should be aligned within the same column, and only the two top equations ...
1
vote
2answers
124 views

Why LaTex only prints the first page of a document?

I'm writing my first document with Tex and encountered problem(s) with it. At the moment I can only get the first page printed out :/ I'd appreciate enormously if anyone could help or give hints for ...
3
votes
1answer
200 views

Discretionary equation breaking at a particular symbol

I have long equations that I want LaTeX to break automatically. After some extensive searching I have been unable to work out how to achieve this effect. I have breqn in my package list, however it ...
1
vote
1answer
2k views

Compiler error: “Missing $ inserted” [closed]

I have got the following equation in Latex. During compilation, the compiler complains about "Missing $ inserted". Unfortunately I am not able to find any error. Any ideas? \begin{dmath} \frac{d^2\...
0
votes
0answers
53 views

Numbering all equations [duplicate]

How can I number the equations of a document all at once? I've tried to find an option in LyX but I didn't find any.
3
votes
3answers
227 views

How to write ':' and '_' in equation? [closed]

\begin{equation} \label{eq:policy} \(\text{[DIP:10.1.0.17] $\rightarrow$ F $\rightarrow$ L}\) \end{equation} Gives me many errors like ! Missing $ inserted and Bad math environment delimiter. How do ...
16
votes
2answers
18k views

Multiple subequation labels in one \ref

I'm trying to write a macro that puts subequations' labels in parentheses in a compact form. For example, if I have \begin{subequations} \begin{align} y - ax &= b \label{subeq1}\\ x^2 + y^...
12
votes
2answers
345 views

Input manually a number into \eqref

Often while writing papers I find the need to cite particular equations from other papers. For example, the landmark paper by Einstein, Newton, and White (2015) lays out the theory of everything in ...
9
votes
2answers
5k views

Change equation font to Times New Roman?

How would I change equation font in the \begin{equation} environment to Times? For instance, I use this code in LaTeX: \begin{equation} \begin{split} {L_{CML}}\left( \theta \right) &=...
2
votes
0answers
282 views

LaTeX is not compiling consistently [closed]

I am really new to LaTeX, so it's possible I'm making some egregious error that I'm not aware of, but my documents are compiling inconsistently. By that I mean it compiles correctly maybe one in ...
11
votes
3answers
3k views

How can I number a few equations together

i would like to write few equations, but all the equations will get only once numbered and in the middle (right side) of the equations. e.q. if i write 3 equations, the number will be to the right of ...
5
votes
1answer
2k views

How to cross reference with \renewcommand{\theequation}?

I change the default numbering of the equation. Instead of default "1" on the right side I put "Eq. (1)". The number inside the parentesis automatically changes. But in the cross reference i need "...
6
votes
3answers
245 views

How to align 'parts' of these equations?

I have a set of equations given by the following code: \begin{equation} \label{eqn:eraserStart} \max \, d \end{equation} \begin{equation} a_t \in \{0,1\} \, \forall t \in T \end{equation} \...
4
votes
2answers
197 views

how to align texts in equation cases

I need to make an equation case with text following it. That text should be displayed in the middle of the two cases. This is my code: \begin{eqnarray}\label{eq13} a_k = \begin{cases} 1 & \...
5
votes
1answer
470 views

Edit space for overbraces in equation

I would like to use \overbraces and \underbraces in my equation. However, when I make the text for \overbraces too long, the \overbrace doesn't contain the correct part. \documentclass[12pt]{...
0
votes
3answers
2k views

Bullet and equations or itemize and equation

I am using the following command. \documentclass{12 pt}{article} \begin{document} $\bullet$ $A = B$ \end{document} Here, I need to show the both bullet and equation by the number like ...
8
votes
2answers
27k views

How to wrap a long equation in Latex

I have a very big equation and using split or multiline is not helping. How do i wrap it and how do i make sure thatRHS of the eqn is always on the right side of equal to ('=') even when line is ...
1
vote
2answers
1k views

Spacing between a special character and text

Why do I get output like this ? Why is the alignment varying if I embed the special characters like lambda and eta ? code sample 1: \begin{gather} \label{eq:Highest spatial frequency} \frac{2 \text{...
10
votes
2answers
3k views

How to format Maxwell equations?

Is there a variant of split environment from amsmath package which would allow for two aligned equations in a row? I want to format two pairs of Maxwell equations in two rows and put single equation ...
6
votes
1answer
331 views

Typesetting of volume integral

This question has been bugging me for a long time: How do I properly typeset volume integrals? I would like to use the convention often used in Physics: d^3x=dV and \int dx f(x) instead of \int f(x) ...
4
votes
2answers
217 views

Custom cross-reference formats (e.g. “Equation 1” instead of just “1”) [duplicate]

I have an equation system set up as below. When I reference it however, ie. with \ref{eqn:surfacetension}, it only prints the number '1', and not 'Equation 1'. How can I modify the code to do that? I ...
17
votes
4answers
7k views

Intertext vertical spacing

How do I reduce the vertical spacing of \intertext?
14
votes
5answers
6k views

Typesetting math: an optimisation problem (cost & constraints)

I really struggle to align a system of equation for an optimisation problem. It was all ok at the beginning until I started adding the constraint. I've got this code so far: \documentclass{article} \...
0
votes
0answers
53 views

Is there an opposite to \nonumber? [duplicate]

Usually I set equations using the align environment together with \nonumber for those few lines that shall not have a number, or the align* environment if no equation shall be numbered. But what if ...
5
votes
1answer
3k views

`\hfill`-like spacing in math mode without using `align`

In question 83509, a way of getting \hfill-like behaviour in the align environment is described, but for my purposes, I need one that works in the equation environment. (I want to display some ...
11
votes
5answers
8k views

How to align the equal signs in this equation such that the first line and last 2 lines align

so I have an equation below. My latex code for it is: \begin{align*} CoJPoD_{ \{I_1, \cdots, I_{k-1}, I_{k+1}, \cdots, I_{n}\} | I_{k} } = CoJPoD_{ \{system \backslash I_{k}\} | I_k} \\ = P\...
2
votes
1answer
282 views

Pack equations a little denser (setstrech for an equation?)

I have an equation which is a little longer than the page margin. I don't want to split it, but I was wondering if it is possible to get it a little more dense (something like setstretch for an ...