Tagged Questions

{align} is an environment provided by math packages that permits multiple related equations to be aligned at a common reference point, usually a sign of relation. For general questions about aligning document elements, use {horizontal-alignment} or {vertical-alignment} instead.

learn more… | top users | synonyms

4
votes
2answers
89 views

Help with aligning equations and numbering

I'm new to LaTeX so you're going to have to bear with me. I am trying to write a project report using it and I have got this so far for a certain section: Then, ...
0
votes
2answers
61 views

Alignment within align environment

My minimum working example: \documentclass{report} \usepackage{amsmath} \begin{document} \begin{align} x_1 = \alpha,\, x_2 = q,\, u = \delta \\ f_1(x_1) &= C_1 \left [ \phi_{z1}(x_1) + ...
2
votes
3answers
82 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 ...
3
votes
2answers
51 views

Left-align column and row matrices and right-align the dimensions

I have some vectors, one of which is written as column and others as rows. I would like to have them so, that the vectors are left-aligned and the corresponding dimensions right-aligned, as I tried to ...
6
votes
2answers
155 views

Multiple \cline{x-y} in align environment for subtracting equations

I'm trying to make a solution sheet for a student of mine and want to write it in a similar way as I would do when writing per hand. In this case I wanted to have 4 columns of equations (I know that ...
5
votes
2answers
54 views

Multiple align environments for defining a function into a function

I use the amsmath and the diagram.sty from A, but I have nearly no control over the alignment. \begin{align*} A \colon A &\longrightarrow A \\ X &\longmapsto AAAAAA \\ A &\longmapsto AAA ...
0
votes
1answer
32 views

How adjust the vertical space in aligned equations (in the Preamble)?

I always find the standard \\ to be too little in aligned equations. I used to do \\[5mm] or similar in the past, but there must be some automatic way to do this once and for all in the preamble. Is ...
5
votes
1answer
135 views

Why does \begin{align} &&&\cr \end{align} give “Missing number”?

Consider the following MWE: \documentclass{article} \usepackage{amsmath,bbm} \begin{document} \begin{align} &&&\cr \end{align} \end{document} It generates both the "Missing number, ...
7
votes
4answers
143 views

Multiple alignments within align environment

My minimum working example: \documentclass{report} \usepackage{amsmath} \begin{document} \begin{align} \dot{x}_2 = \dot{x}_{2,0}&+\frac{\partial f_2(x_1)}{\partial x_1} \bigg|_{x_1=x_{1,0}} ...
2
votes
1answer
50 views

Aligning numbers in array

What am I doing wrong here?: \documentclass[11pt,a4paper]{article} \usepackage[latin1]{inputenc} \usepackage{amsmath} \usepackage{amsfonts} \usepackage{amssymb} \begin{document} \begin{align} ...
17
votes
2answers
449 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. ...
4
votes
3answers
80 views

align+multicolumn sometimes produces misaligned equation labels

Here is a short document demonstrating the problem: \documentclass[twocolumn]{article} \makeatletter \renewcommand{\rmdefault}{ptm} \renewcommand{\normalsize}{\@setfontsize{\normalsize}{9pt}{10pt}} ...
3
votes
2answers
94 views

Second align within first align environment with equation numbers

Is it possible to align the for statements here, without dropping the equation numbers? \hfill and && mess up the placement of the equation numbers for me. Edit: Picture of what I get ...
2
votes
2answers
71 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
95 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 \\ ...
3
votes
2answers
113 views

How to remove unnecessary space in flalign* environment

This is the first time I've ever used TeX and I'm super confused as to why this is happening. When I used the flalign* environment within the enumerate environment, it leaves line break after the item ...
2
votes
2answers
1k views

Center \leq, \geq, = with different text above [duplicate]

I am typesetting some mathematical equations using \begin{align*} environment. Hopefully to make the steps clear I am adding text above =, \leq, \geq but I am having troubles with aligning them e.g.: ...
4
votes
2answers
119 views

Aligning numbers in tables

just wanted to create a table, that looks something like the following First and second row are no problem at all, but the third row is difficult. I can't achieve this special alignment. Thanks ...
5
votes
1answer
115 views

Caption for align environment

I would like to add a caption under the set of equations that I have in the align environment (i.e., \begin{align} ... \end{align}). I tried \caption{...} inside the align environment, but it didn't ...
1
vote
0answers
50 views

How to add and align figure and texts like that [duplicate]

Please show me how I can do that. And I want to use many times. Help me write a macro so that I can use every time I need. For example, \begin{question} Texts in the question field. ...
3
votes
1answer
140 views

Reason of existense of the extra space in align environment and removal of it between two align environments

This is a follow-up question regarding the extra vertical space in amsmath's align environment. Why when in use align uses so much vertical space in contrast with other environments like for example ...
3
votes
1answer
56 views

Large horizontal gap between my align equations

I wanted to show how a bijection works and so created equations below: \begin{align*} x_1 & \longmapsto &y_1 \\ x_2 & \longmapsto &y_2 \\ & \vdots & \\ x_n & ...
1
vote
2answers
249 views

Remove extra vertical space in amsmath's align environment [duplicate]

If I use \begin{align*}...\end{align*} and out of it I write a text then there is a big vertical space between the text and the mentioned environment. Why is there that space? And how can I erase it? ...
2
votes
1answer
121 views

latex typesetting multiline alignment with flalign

I'm trying to align the second line equation below the integral in the first line. How do I go about doing that? I have used \right. commands to be able to move onto the next lines. I didn't have to ...
0
votes
1answer
206 views

Xtable and Sweave

My question is regarding xtable and sweave. I have a certain table created in RStudio and want to create a pdf file using it. I use the package Sweave and write the necessary code and I get the ...
5
votes
1answer
142 views

Box or [ around multiple lines inside align

I have the following code \documentclass{article} \usepackage{amsmath} \begin{document} \begin{alignat*}{4} \begin{minipage}[h!]{0\linewidth} \text{Let:} \end{minipage} ...
5
votes
1answer
60 views

Why don't pifonts work in align environment?

Minimal example: \documentclass{article} \usepackage{amsmath} \usepackage{pifont} \begin{document} \begin{align} \ding{172} \ding{182} \end{align} \ding{172} \ding{182} \end{document}
1
vote
2answers
101 views

Equation number is not appeared using align environment

\usepackage{times} \usepackage{graphicx} \usepackage{algorithm} \usepackage{algorithmic} \usepackage[nointegrals]{wasysym} \usepackage{amsmath} \usepackage{pseudocode} \usepackage{rotating} I've ...
2
votes
3answers
112 views

left align using alignat?

I want to align some equations on the left side in a document. And additionally I want to have some aligned text behind every equation. Also the equations need to be numbered. With the code below my ...
5
votes
2answers
103 views

right bind when using align

I have multiple lines of equations in align environment, some of those are to long and I have to split them. How can I make the second line rightbound? What I do now is: ...
2
votes
2answers
58 views

How to split very long equation in two pages?

I need to split this equation in two pages. Can you help me? Thanks \documentclass[11 pt,a4paper,oneside,openany, notitlepage]{article} \input epsf \usepackage{amsmath, amssymb, graphics} ...
8
votes
3answers
222 views

Align text equation and math equation

How do align an textual equation with the mathematical expression under it? Some text before Sum = Summand + Summand * Factor of Eternity x = a + b * ...
2
votes
1answer
94 views

align environment not entirely functional in beamer

I am currently working on a beamer project where I use the align enviroment. My code is as follows: \begin{frame} \frametitle{The Hovorka model} \begin{tabular}{l l} \begin{minipage}{0.5\textwidth} ...
4
votes
3answers
139 views

How to wrap text in flalign

not a duplicate of this question because I want to keep the equation numbering, so a tabular won't do (I think). I am using flalign to typeset philosophical arguments. I also want to use hyperref to ...
10
votes
5answers
465 views

How to make a multiply equation?

I need to make a equation like this 1011 (this is 11 in decimal) x 1110 (this is 14 in decimal) ====== 0000 (this is 1011 x 0) 1011 (this is 1011 x 1, shifted one ...
3
votes
2answers
112 views

Combine two `align` in one

Consider the minimal code: \documentclass{report} \usepackage{mathtools} \usepackage{lipsum} \begin{document} \lipsum*[2]% \begin{align*} m_{1}(x) &=x(x-1)=x^{2}-x, & ...
3
votes
2answers
110 views

Using eqnarray (or similar) with exam class

I'm trying to use eqnarray in my solutions to questions using the exam class: \begin{questions} \printanswers \question What is $10 - 3$? \begin{solution} \begin{eqnarray} 10 ...
7
votes
1answer
128 views

Left aligning equations without align character

I realise that this has been asked many times before, but no answers I've found seem to provide a solution to my question. I'd like to left align all text in an align block, in: ...
5
votes
1answer
62 views

how to use conditional to define different \begin and \end environment at compile time

I just need little help on the syntax for this. I am using tex4ht, and I get an error when I use empheq for the align environment. I want to build this TeX file both in pdflatex and htlatex. I ...
4
votes
1answer
59 views

using tag within align

I have the following code: \begin{align} [m] &= [n] \nonumber \\ &= b \refstepcounter{equation} \label{eq:m} \tag{\theequation,~tag} \end{align} If I cross reference the equation, with ...
0
votes
1answer
90 views

Beamer: \qed at the end of align*

I finish a proof sketch on beamer slides with a formula, e.g., \begin{align*} P\leq n^{-\alpha} \end{align*} How can I get a qed symbol at the end of this line? Using \qed as well as ...
1
vote
0answers
35 views

How can I make braket's \Set work with align* and htlatex/tex4ht

I have the following test.tex file: \documentclass{article} \usepackage{tex4ht} \usepackage{amsmath} \usepackage{braket} \begin{document} \begin{align*} \Set{|} \end{align*} \end{document} When I ...
1
vote
1answer
62 views

How can I get htlatex to work with amsmath's align and cleveref?

I have a document test.tex: \documentclass{article} \usepackage{amsmath} \usepackage{etoolbox} \AtEndPreamble{\usepackage{cleveref}} \begin{document} \begin{align} . \end{align} \end{document} It ...
4
votes
2answers
205 views

Why are braces (for scoping) not allowed in an align environments?

I just learned that you can use braces to scope the effect of \tikzset. But it is not allowed in align environments: \documentclass{article} \usepackage{amsmath} \usepackage{tikz} \begin{document} ...
5
votes
1answer
46 views

Align and sub-indexes.

Consider \begin{align} u_j &= x\\ v &= x \end{align} Compiling this the $=$'s are going to be aligned, but the $v$ gets aligned to the end of the $u_j$, which is a bit beyond the end of ...
4
votes
2answers
92 views

How to align long subequations while breaking each one?

I want to align all the terms of two similar subequations, but the problem is that each one is long enough to need breaking. The problem is that after breaking \align tries to align every line with ...
3
votes
4answers
99 views

Make aligned equation vary alignment to avoid equation numbers on new line

I need to write a mathematical programming model composed of several constraints. Constraints are represented as two-columns rows: the first column is the equation and the second is its domain, e.g. ...
2
votes
1answer
64 views

\tag{} causes line break in align environment. how to prevent?

while using the leqno and fleqn options of amsmath package tags tend to cause line-breaks: MWE: \documentclass{article} \usepackage[leqno, fleqn]{amsmath} \usepackage{mhchem} \begin{document} ...
6
votes
2answers
66 views

Relational Operator spacing problem with alignat

I have not asked a really embarrassing question in a while, so thought it was time :-). I am stumped as to why the spacing around the = on the third line is incorrect: Notes: I realize I am ...
7
votes
3answers
169 views

How to horizontally align rotated text in a table?

I am trying to horizontally align text that has been rotated in a table. I want the rotated "Lorem Ipsum" and the rotated "Lorem Ipsum & Lorem Ipsum" text to be horizontally centered in the cell. ...