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

2
votes
2answers
800 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
99 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
137 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
54 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
226 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
111 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
156 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
134 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
55 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
100 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
106 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
100 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
56 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
211 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
86 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
133 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
452 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
109 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
109 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
127 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
58 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
81 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
33 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
56 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
204 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
45 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
86 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
93 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
61 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
64 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
166 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. ...
1
vote
1answer
57 views

Two separate align in one direction in latex

I would like two write two different align with two different labels, but I want both of them begin in one direction. How can I fix this code in latex? ...
9
votes
1answer
366 views

How do I rescale an align environment on a beamer slide?

I'm trying to resize an equation on a beamer slide to make it larger. However, the usual approach of using \scalebox doesn't seem to work: \begin{frame} \scalebox{2}{ \begin{align} x &= y\\ y ...
2
votes
3answers
94 views

How can systems be side by side with an arrow between them

Here's my problem : I'd like to a write many equivalent systems of equations. Therefore, I'd like the first to be at the left, then an arrow (\Leftrightarrow, for example, since they're equivalent ...
4
votes
2answers
74 views

Array within Align*

LaTeX fresh beginner here. Using TexStudio. In the second row of an equation array (using align*), I am trying to multiply a row vector by a column vector, using the array command. Apparently the ...
1
vote
1answer
79 views

Aligned and \left \right [duplicate]

The following aligned equation gives an error 'Extra }, or forgotten \right.': \begin{equation} \begin{aligned} U&=\mathbb{R}^{M N}\\ V&=\mathbb{R}^{2 M N}\\ W&=\mathbb{R}^{4 M N}\\ ...
6
votes
3answers
219 views

why does something disappear in the aligned environment?

I noticed a strange behaviour with the aligned environment: \begin{equation}\label{eq:direct_limit} \begin{aligned} [x] + [y] & := [\eta_{ik}(x) + \eta_{jk}(y)],\\ [x] \cdot r & := [x \cdot ...
3
votes
2answers
95 views

align nested in cases

Code \documentclass[a4paper,twoside,12pt]{book} \usepackage{amstext} \usepackage[utf8]{inputenc} \usepackage{cases} \usepackage{amsmath} \begin{document} ...
4
votes
4answers
517 views

Are there any way to align this equation?

I have a long equation. I used multline and tried \documentclass[12pt,a4paper]{article} \usepackage[utf8]{inputenc} \usepackage{amsmath} \begin{document} \begin{multline*} ...
1
vote
1answer
105 views

Force equation number to be right aligned

I'm trying to typeset some basic equations with proper numbering. I simply want a single equation to have a right aligned number in the two column environment that I'm using. I tried three approaches, ...
9
votes
2answers
278 views

Center one equation of many in align?

I have the following align enviroment: \documentclass[12pt]{memoir} \usepackage{amsmath} \begin{document} Here we see \begin{align} \text{cat} &= \text{dog}\\ \text{dog} &= cute ...
3
votes
1answer
106 views

Exam class: aligning outline marks within solution flush right

I would like to get the marks e.g. [1/2] within the solution to appear flush right in the same way as the overall mark for the question. \documentclass[11pt,answers]{exam} \RequirePackage{amssymb, ...
5
votes
2answers
149 views

Simplifying macro for the align* environment for two column equations

The align* environment provides for a two column layout of equations, similar to the eqnarray* environment. \begin{align*} [left side of the first column] &= [first line of the first ...
0
votes
1answer
42 views

Table desturbingly floats into align environment functions

this is my code \begin{align} S(\Theta)&=\ln\left|\nu(\Theta)\right|\label{eq:S_theta}\\ \intertext{where $\nu(\Theta)$ is the determinant of the covariance matrix of the responses, which are ...
3
votes
1answer
75 views

How to remove unncessary whitespaces between two lonely figures on page

Im sure it's an easy question but I cant figure it out and I was searching google for different keywords crossing my mind but couldn't find a relevant post. I have two tables which are positioned on ...
1
vote
1answer
95 views

Putting a number on the right hand side without using the equation or align environment? [closed]

I have a couple of lines which I wish to number and I'm hoping for something like: Text... \alignright{1} or something like that if it exists to produce Text... (1)
3
votes
2answers
125 views

How to draw horizontal line within align and mhchem? [duplicate]

No matter what I do, I can't get the line to position properly. align* always wants to move it. and i can't use \noalignwithin \cee, or perhaps I'm not using it properly (beginner here)? Here's a MWE: ...