0
votes
2answers
42 views

Alignment in aligned and aligned[t] environments (2)

The following code almost gives me the alignment that I want. You will see that in the last five lines of the displayed equations, most of the expressions are ridiculously shifted rightward. I want ...
3
votes
1answer
85 views

Weird Behavior of Math mode in beamer

I wanted to use align* environment but it's somehow not working. It's working with regular $$ but the problem is then i have to customize formatting with \hspace and \vspace which defeats the purpose ...
8
votes
1answer
137 views

math equation with underline has different heights

I struggle with some equations in my research paper. I want to underline some variable, because they are complex, but if I use \underline the line is not at the same level in my example: ...
2
votes
3answers
213 views

Equations with operations next to each line

I basically want to type a derivation of a specific mathematical formula with the operations that have been done in each line, for e.g.: U = R * I |:R U/R = I Handwritten it looks like this: ...
1
vote
2answers
49 views

Aligning equation including multiline expressions

I have a derivation and have problems getting it to look nice. The derivation goes over several lines, so I want the = signs aligned. That is easy either using align or eqnarray. However, one of the ...
3
votes
2answers
98 views

breaking equation and different alignments

I would like to break the following two equations. I would like for them to have the colons aligned together, but besides that they should have their own, unique alignment points. Please see the ...
4
votes
2answers
40 views

Left-align a split equation

I am trying to left-justify a split equation. I would like to have the first line left-justified, and have a hanging indent on the second line. I used flalign successfully for other equations that ...
2
votes
2answers
125 views

Align a linear program

I want to write my linear program so that it looks like in this picture: meaning I want to have the following: text aligned to the left all the x_{j} variables to be one another the i= and j= ...
4
votes
1answer
47 views

Missing } Inserted?

I wrote \begin{align} $\lim_{x \to 2} f(x)$ &= $\lim_{x \to 2}\dfrac{2x^2-5x+2}{5x^2-7x-6}$\\ &= $\lim_{x \to 2}\dfrac{(x-2)(2x-1)}{(x-2)(5x+3)}$\\ ...
4
votes
1answer
81 views

multiple equations with same number

I can't seem to make this work. I want the matrix and the second equation with the same equation number. \begin{equation} \begin{aligned} [{\bf Z}] &=\begin{bmatrix} R_1+j\omega L_1 & ...
3
votes
1answer
55 views

\bigl( \bigr) in inline mode and in align environment

The following, I believe, is a strange behavior of \bigl(<math content>\bigr) in inline math mode and in the align environment. Consider the following MWE: ...
2
votes
1answer
71 views

Upright maths in display mode, but italics in align environment in beamer class

I use mathastext like this \renewcommand{\familydefault}{\sfdefault} \usepackage[defaultmathsizes]{mathastext} \renewcommand{\familydefault}{\rmdefault} This gives me upright math throughout my ...
2
votes
3answers
73 views

Splitting equations with parentheses in aligned [duplicate]

How can I break the first line \begin{equation} \begin{aligned}[2] & some stuff \left\{ stuff' + stuff'' \right\} \\ & = some other stuff \end{aligned} \end{equation} in a way such that the ...
16
votes
2answers
424 views

Stacked symbol doesn't align properly. Why?

A modified equals sign used represent use of L'Hopital's Rule isn't aligning well with other equals signs. How would I fix that? I'd prefer to do so without manually fiddling with spaces, if possible. ...
2
votes
2answers
65 views

How to create two series of align equations in the same document?

This question is similar to a previous question about how to create two series of numbered equations in the same document. However, the proposed solution doesn't work for my question, because it ...
4
votes
2answers
75 views

Decrease Vertical Space in Aligned environment

How can one have control over the vertical space brought on by a \\ for the new aligned entry in the aligned environment? For example, how to I condense the following? $\begin{aligned} a & b \\ ...
5
votes
1answer
54 views

align* and wrapping command

For school we have to deliver all math with double lines under the result. I have made a command that makes this easy. It looks like this: \newcommand*{\uul}[1]{ \underline{\underline{#1}} } It ...
4
votes
4answers
262 views

Breaking and aligning equations

I have the following MWE \documentclass[10pt, a4paper]{article} \usepackage{amsfonts, amsmath, amssymb, amsfonts} \begin{document} \begin{align} \sum_i{ c_i} &= \cos \sin\cos \sin\cos ...
9
votes
5answers
278 views

Left align in math environment with every element over each other

I would like the elements in my math environment to be left aligned, so that each element stands over each other, like in the given example below. I have managed it using \hspace and \qquad, but ...
6
votes
2answers
92 views

replacing eqnarray when several alignment tabs are present

I have three mathematical equations which I would like to have typeset in one block such that they are aligned at the equality sign = and the following comment. Up until now, I've been using eqnarray ...
7
votes
2answers
92 views

Check if in an align* environment

I want to use different styles of matrices if TeX is in an align* environment or in a normal math environment. I already found a solution for checking if it is in math mode (\ifmmode) but not ...
5
votes
2answers
196 views

Can I tab inside of align environment?

I currently have this ugly equation: The green alignment is just like I want it. The Red one is what I would like to get, but I don't know how. Here is my MWE: \documentclass[a4paper]{scrartcl} ...
6
votes
4answers
343 views

How can I note transformation step?

I currently have this: with this code: \begin{align} 0 &\stackrel{!}{=} (d_{P,f}^2)'\\ &= -2 x_p + 2x -2y_p f'(x) + \left (f(x)^2 \right )'\\ ...
4
votes
3answers
148 views

How to replace \\ with \\& in math mode?

I am having the following isssue: I have to write a mathematical paper/book with many different optimization problems formulated. To be consistent all over I'd like to create an environment to ...
2
votes
0answers
113 views

How can I implement an '&' inside a \left( \right) environment? [duplicate]

I've been running into a strange issue. I'm doing some derivations in LaTeX document, and am using the align environment to do so. Some derivations require multi-line brackets, for which I try to use ...
9
votes
1answer
152 views

Measuring align

From what I read it seems that align environments are processed twice: the first time for measuring, the second time for actual typesetting. My question is whether one can get access to these ...
8
votes
3answers
136 views

Aligning elements in set

How can I create a set with aligned elements? Example: I tried using align but it does not align as nicely as in the example. \begin{align*} &P = \set{ &A &\rightarrow &a | ...
4
votes
2answers
138 views

How to make this equations aligned

I have an equation as below, I want text1 and text2, text3 are aligned as well. \begin{equation} \begin{aligned} A &= B \quad \text{text1}\\ C &= \begin{cases} 1 & ...
6
votes
1answer
240 views

How to center align part of an equation within alignat?

I'm using the environment alignat to align my set of of equations at two different points. Now, I dot not only want to align it these two points, but also want to have everything in between these ...
4
votes
2answers
2k views

How to put the QED symbol of a proof at the right place inside align?

When a proof ends with a formula in equation or equation* environment, putting \qedhere after the equation would cause the QED symbol to appear in the right place. I.e. at the end of the line in which ...
4
votes
2answers
234 views

How can I typeset determinants of Cramer's rule? [closed]

I want to typeset the determinants of the system $\begin{cases} a_1x+ b_1y = c_1,\\ a_2x+ b_2y = c_2. \end{cases}$ I tried $D=\left| \begin{matrix} {{a}_{1}} & {{b}_{1}} \\ {{a}_{2}} ...
2
votes
2answers
609 views

Break Large Equation Between Parenthesis Using Multline

I have a very large equation that I need to write in multiple lines, but multiline is not working between parenthesis. This is my LaTeX code: \begin{multline} e^{-y \lambda_n} \left( ...
9
votes
1answer
135 views

How can I align the terms of this equation nicely?

I have the following alignat segment: \begin{alignat*}{3} \text{max}_{\underline{\lambda}} \text{min}_{\underline{x}} \quad & \underline{c}^T \underline{x} + \underline{\lambda}^T(\underline{d} ...
1
vote
1answer
124 views

Only one equation number with math-vfill-tombstone symbol

Maybe what I want is sinful, but let me explain: I use aligned* environments, because I usually don't need equation numbers. When I need one, I use \addtocounter{equation}{1}\tag{\theequation} from ...
2
votes
3answers
157 views

How to align equations

I am trying to write a set of equations similar to some found in a book I am reading. Below is how the book has formatted the equations: and here is what I have so far: How can I align my ...
2
votes
1answer
216 views

Argument of \text@ has an extra } \end{align*}

Good day, I am using the following code: \documentclass[]{report} \usepackage{amsmath} \usepackage{graphicx} \usepackage{breqn} \usepackage{hyperref} \usepackage{amstext} \hypersetup{linktocpage} ...
4
votes
1answer
239 views

Align summation symbols inside an align environment

I have the following piece of code: \documentclass[]{article} \usepackage{amssymb} \usepackage{mathtools} \usepackage{amsfonts} \begin{document} \begin{align*} A &= ...
3
votes
2answers
139 views

Numbering of displayed math without using the equation environment

I know about align and equation environments, and tend to use them most of the time, but sometimes I like to have more flexibility within an array of equations, like better control on justification ...
7
votes
1answer
131 views

Ignoring specific ampersand formatting on a specific line of an align block

I want to typeset a number of equations with some alignment constraints, but I want to partially ignore them on certain lines. An example formatted text might look like the following when it's ...
4
votes
1answer
84 views

Setting a column of an align environment at a fixed distance from the margin

I'd like to set proofs in the style shown in this answer but with the right column at a constant distance from the left margin, so that the explanations show up consistently located in the many proofs ...
1
vote
1answer
183 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 ...
6
votes
3answers
2k views

\underbrace and align environment

I want to typeset a proof and want to emphasize what I do in each step e.g. by underbracing an equal-sign when I substitute a variable. In addition I also want to align equal-signs in every line. ...
10
votes
1answer
145 views

Comment an equation without creating extra space

I try to make a comment on the right (or left) of one line of proof. But the align* environment automatically move the whole equations to the left to leave space for the comment. But I still want the ...
3
votes
1answer
178 views

Overset placement is uneven

I'm using this code to show that one element of the equation is greater than zero and the second element is less than zero. \begin{align} \overset{+}{\pi_{i}} + \overset{-}{w_{g}(S)} > 0 ...
3
votes
1answer
330 views

align environment has too much white space

How can I let the following code look good ? \begin{align*} &\text{Als} &&a,b \in H\\ &\Rightarrow &&a,b\in H_1 \land a,b \in H_2 &&\text{Definitie van doorsnede}\\ ...
0
votes
1answer
55 views

Centering a group of equations and text both which is used in \begin{align*}…\end{align*}

Say I am trying to center a group of equations, written in separate lines, with equality sign aligned one below another, which are defined by: $f(r)+1=g(r^2)+1=O(r)$ as $r\to 1$ by first using the ...
2
votes
2answers
184 views

Ignoring alignment for certain lines in an alignat environment

I am having trouble typesetting an optimization problem, and would like to know how to ignore the alignment for a certain line in an alignat environment. I've currently typeset the optimization ...
8
votes
1answer
116 views

Underbrace multiple math lines

I have to underbrace multiple lines in an align-environment with one brace. Meaning something like \begin{align*} A ={}& B + \underbracemultiline{C + D + E \\ & + F + G \\ & ...
6
votes
4answers
1k views

Centering equations within alignat command

I want to centre the formula inside the equals. So far I have \begin{alignat*}{2} v_2(16)&=\frac{2}{5}[v_3(32)+v_3(8)] &&= 0, \\ v_2(4)&=\frac{2}{5}[v_3(8)+v_3(2)] &&= ...
2
votes
2answers
440 views

Multicolumn proofs, align within tabular?

I want to condense my assignment by laying out each solution as a table with a picture on one side and the proof on the other. To make matters worse, I need to be able to include some equation ...