Tagged Questions

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

4
votes
3answers
51 views

Tricky alignment within an equation with a case environment

I couldn't figure out how to do the following alignment: \begin{equation} \begin{aligned} \textrm{Row I:} \qquad & A = 1, \quad j = 1, 2, \ldots, N \\ \textrm{Row II:} \qquad & A = ...
0
votes
0answers
11 views

error C2668: 'pow' : ambiguous call to overloaded function [on hold]

I got the error mentioned in the title when I write the following equation in c++ : for(r=0;r<nr;r++) { IloExpr ex20(env); ex20 = H[r]; for(q=0;q<dm;q++) { ...
2
votes
1answer
59 views

Paragraph overfull hbox

First off all: I must write with twocolumns. The major problem is the overfull hbox at some equations: from 6pt to 12pt too much. I don't know what to do. So what do you do when you write your ...
4
votes
1answer
34 views

\overset and \implies not working right when combined

I'm trying to make an implies arrow with an 'n' above it. I have no trouble with $A \implies B$ $A \overset{n}{ \rightarrow } B$ but when I try to use $A \overset{n}{ \implies } B$ I get the ...
0
votes
1answer
18 views

Package amsmath Error: Multiple \label's: label '{33}' will be lost

I have this code and Package amsmath Error: Multiple \label's: label '{33}' will be lost. error: can anyone help me? \begin{align} \label{33} \begin{split} ...
2
votes
1answer
35 views

Add right flushed verse number to last line of verse

I'm using the custom Verse environment provided in this answer for producing horizontally centered verses. I would like to add a verse number to the last line of a verse and I would like just the ...
2
votes
4answers
76 views

split and align long equation

The following code is used to split a long in-equation. \begin{align} (\sum^n_{i,j=1}\frac{(S_{t})_{ij}\norm{W^T_{t+1}x_i-W^T_{t+1}x_j}_2^2}{2\norm{W^T_{t}x_i-W^T_{t}x_j}_2} - \nonumber \\ ...
1
vote
2answers
39 views

How can I decrease distance between equations?

I have this code and I want to decrease the vertical distance between equations? Can anyone help me? \begin{equation}\label{20} P_{\ell}^k\geq -P_\ell^{\max}\cdot Z_\ell^k~~\forall ...
2
votes
0answers
16 views

problem using subscripts with sansmath

I have had to (hastily) adapt some Latex to sans serif and I have had some small problems. I cobbled a preamble together (lifting some stuff from the web) which seems to work, except for some small ...
3
votes
2answers
34 views

Putting a tag in aligned enviroment

I want to set a counter in the following two lines (to the right) \[ \left\{ \begin{aligned} & u_t = H(x,t,Du)&\text{ in }& \mathbb{R}^n\times (0,T) \\\\ & u(x,0)=u_0(x) & \text{ ...
3
votes
2answers
75 views

how to give some text an equation number

I want to be able to write the following in LaTeX: We make the further assumption that \begin{equation} \label{eqn:assumption} There is a bounded linear operator $B:X\to X^*$ such that ...
3
votes
2answers
67 views

Normal font in math mode?

I got a problem with formatting text in math mode. I made a commmand that moves the unit in the end of the equations all the way to the right. It looks like that ...
0
votes
1answer
33 views

Justified alignment for equations

I am writing a IEEE journal paper full of equations and with center alignment the paper looks so messy. I needed to justified align at least those that are coming successively one after another. I ...
0
votes
0answers
28 views

Reducing space & Auto coloring equations in gather environment

Following the solution in Problem with vertical spacing of equations in itemize after the first \item, I have another (side-effect) problem in colouring equations. Please help. The problem is ...
2
votes
1answer
38 views

Problem with vertical spacing of equations in itemize after the first \item

I found one similar thread here (Removing strange vertical space after first (customized) \item), but I still could not resolve my problem. Please help. Description of the problem: I used beamer ...
1
vote
1answer
30 views

Specific Equations in Latex [duplicate]

How could I get that equation?
3
votes
4answers
108 views

How avoid that the Underbrace Outside the delimiters $| |$ appear inside the delimiters

I have this code. \documentclass[12pt,a4paper]{article} \usepackage[utf8]{inputenc} \usepackage[spanish]{babel} \usepackage{amsmath} \usepackage{amsfonts} \usepackage{amssymb} \usepackage{pgf,tikz} ...
0
votes
1answer
46 views

Several lines in equation

I would like to get in LaTeX what the following code produces on Math.SE: $$\pi(X,Y)\to HoM(X,Y)\\\ [f]\mapsto[RQf]$$ And if I wanted to have an equation number to the right of the two lines, ...
2
votes
1answer
31 views

How do I number the equations locally?

To write equations, I use the \begin{align*} ... \end{align*} commands. I type my equations inside it. I add lines of text or paragraphs in between using the command \intertext. Now my question is how ...
1
vote
0answers
43 views

Reset equation numbering after each section

I would like to reset equation numbering after each section or subsection. Right now I use \setcounter{equation}{0} I saw in another page you could also reset it by adding the following line to the ...
3
votes
1answer
27 views

Referencing equations with multiple labels

I want to typeset an equation that's equivalent (but not identical) to a previous equation, numbering both of them individually but acknowledging the equivalence. I'm doing this as follows: ...
4
votes
3answers
78 views

How can I change the position of equation number locally if I am not using the amsmath package?

I am writing a book and I want to show the formats of equation numbering; I mean, I want to tell the students that they can put the numbering at the beginning or at the end of the formula's line in ...
1
vote
2answers
42 views

Multi line parentheses in latex

I would like to have more than on line in a big paranthesis, how can I do that. I have test this code but doesnt work for me: \begin{equation} p \big[ i, j \big]=min\Bigg( p \big[i-1, j-1 \big] + 2 ...
2
votes
1answer
36 views

Wrapping lines of an equation with \left and \right parentheses

I am having trouble formatting the following mathematical expression: \begin{align*} A &= \left(\left(\frac{1}{2},\frac{1}{2}\right) + \sqrt{2}Rot_{-\pi/4}\left\langle 0, \frac{1}{2} ...
3
votes
2answers
86 views

How can i adjust vertical distance between formulation?

I want to formulation not to stick together, somehow have reasonable distance. How can i do that? \begin{equation} P_{ng}\geq P_g^{min}~~\forall g\in\Omega^{G-n},\forall ...
1
vote
1answer
61 views

An image processing algorithm that can convert hand written formulae to LaTeX [duplicate]

I have witnessed first hand the beautiful math typesetting LaTeX can produce and also the enormous effort that goes into writing formulae in LateX. So I was wondering that an image processing software ...
3
votes
4answers
98 views

Have boundary (using numcases) facing outward towards right

I have the following code: \begin{numcases}{text}{\hat{\alpha}_{j}\,=\,} 2 \pi R\bigl[q_x-p_x,q_y-p_y\bigr] \\ 0 \end{numcases} How can I change it so that I have something like this(not ...
4
votes
1answer
123 views

The equation is too long to fit in the beamer frame, but split environment does not work

The main code is as follow: \begin{frame} \frametitle{Householder Transformation} \begin{equation} %\onslide<1-> \mathop{ \begin{pmatrix} \times & \times &\times \\ ...
4
votes
1answer
43 views

Error trying to typeset array

I am trying to typeset the following array: \begin{gather*} \begin{array} $(u_{n+k})- (u_{n})$ & =\sum\limits_{p=1}^{p=k} \dfrac{1}{(n+p)!}$ \\ & $\preceq \dfrac{1}{n!} ...
2
votes
1answer
67 views

How can I justify equations?

I want these equations be justified. How can I do that? I mean all equation started at the same margin. Can anyone help me? S.t. \begin{equation} \alpha_{ng}^{min}-\alpha_{ng}^{max}+\gamma_n\leq ...
4
votes
2answers
82 views

Distance between plus/minus sign and summation symbol

I am trying to write this code. It is compiled without an error, but I want to reduce the distance between plus/minus sign and \sum sign. How can I do that? Can anyone help me? \begin{gather} ...
1
vote
2answers
53 views

Group of equations with bracket and equation numbering

I have 10 equations which are arranged as shown below. These equations should be arranged in groups of three brackets and aligned. They should be given equation numbering.
3
votes
1answer
19 views

missing { inserted. <inserted text> \end{gather}

I try to write this code but I have a Missing { inserted error. Can anyone help me? \begin{gather} \begin{split} \mathop{\min}\limits_{P_{ng},P_l,R_n,Z_l,\theta _n \in \,\,\Omega ^{OTS}} & ...
0
votes
0answers
26 views

How do I include figure or equation references inside algorithm environment in Lyx?

I would like to cross reference figures (and also maybe equations) inside the algorithm environment in Lyx but could not figure out how to do this. Help please?
1
vote
1answer
32 views

Align equation multiple columns

Is it possible to align an equation like this: I tried this, but: \begin{align*} & u_a(t) &= u_e(t) - u_{R1}(t) \\ & &= u_e(t) - R_1 \cdot i_1(t) = u_e(t) - ...
4
votes
3answers
162 views

Math equation with cases and division signs

\begin{equation*} \theta({P,\bar{Cl}}) = \begin{cases} S(P,\widehat{Cl}) + (S(P,\widehat{Cl}) \times ((\bar{R}-\widehat{R})/\bar{R})) & \widehat{Cl} \textless \bar{Cl} \\ ...
0
votes
1answer
26 views

Multiline equation in cases with special symbols

\begin{equation*} $\theta$ = \begin{cases} $\eta$ & \text{$\widehat{P} \textless \bar{P}$}\\ $\eta$ & \text{$\widehat{P} \textgreater \bar{P}$} \end{cases} \label{eq: ...
1
vote
1answer
92 views

Write Mathematical Equation

Im writing fraction in an equation. But then when I inserted $\frac{1}{2}$ inside the align*, error says missing }. I don't get it. Removing the code fraction will make my code work. \begin{align*} ...
5
votes
2answers
34 views

How to use the inline equation format in the equation environment

I have a very long equation and have to use a equation environment to get a equation number. But I still want the equation to use the inline equation format, which automatically do line breaks and is ...
0
votes
1answer
52 views

How to put a multi line equation inside a box

I have a multi-line equation; \begin{align} \label{eq:er25} F(\gamma) &= aaaaa \nonumber\\ &+ bbbbbb \nonumber\\ &- cccccc \end{align} How I can put this equation inside a ...
0
votes
0answers
30 views

LaTeX converter issue with formula

I had problem with MS Word 2010 when converting it to LaTeX using Michael's converter. The system works well with simple text-based files. But a simple formula makes it keep working (busy with ...
1
vote
1answer
84 views

Double backslash \\ does not work in equation environment

My problem is that inside equation environment double backslash \\ does not seem to work as expected to force a line break: \begin{equation*} \fontsize{12}{15} \text{1. (a) State the ...
1
vote
1answer
36 views

How to obtain even space between variables in math mode?

When I combine numbers and several variables in an equation, the spacing between the numbers and variables are not even. What is the correct way to display the equation? The red box highlight the ...
6
votes
1answer
42 views

Number quote environment like an equation

I want to put an equation number to the right of a quote (the environment) as if it was an equation. I have looked at Equations with only text in them, How can I make LaTeX number my quotes and How ...
1
vote
1answer
54 views

How do I align the equations about the equal to sign, with lines of text in between? [duplicate]

I want to align unnumbered equations about the '=' sign having one or two lines of statements in between. And also, I want them to be centered. Here is what I did in my code: \begin{align*} T & ...
4
votes
3answers
72 views

beamer with equation or align : replace part of equation and keep alignment

I'm creating a presentation with the beamer class. Assume I want to write this : \begin{equation} f(x) \only<1>{= \cos(x)} \only<2>{= 2\cos(x)} \end{equation} I have a ...
3
votes
2answers
76 views

Graphical connection between a matrix and a label

I need to show the connection of an element of a matrix with a label, like this: This is some code that I write: \[ \mathrm{A^{(0)}}= \quad \left( \begin{array}{cccc:c@{}} 2 & 2 & 1 ...
3
votes
2answers
85 views

nested array with alignment

I am trying to generate latex output as given below. However, the types is not coming properly aligned. It looks like it subscribes to the previous array environment. Could you please point out the ...
2
votes
2answers
146 views

How to format a chain of equations using vertical arrows?

Basically, what I want to do is something like where each equation is separated by a space containing a single or double vertical arrow slightly to the left. However, if there is a another ...
1
vote
3answers
65 views

Aligning multiple places in equations using align

My question is simple. I've played around with the & symbol to align my equations neatly under each other, but I just can't get it to look nice. This is the closest I've got: ...