{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 question about aligning document elements, use {horizontal-alignment} or {vertical-alignment} instead.
1
vote
0answers
33 views
Name of length for equation number indent if [leqno] is set
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
71 views
How to edit the length of a color box?
I've typed my Resume and Im using a color box, with a line underneath it. However the grey colored box doesn't reach the full length of the page width.
\documentclass[letterpaper,11pt]{article}
...
6
votes
1answer
42 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 ...
3
votes
2answers
52 views
Cross reference to align
What I want to do is to make a cross reference to program (P) and still be able to make cross references to each separate line in the alignment.
\begin{align}
(P)\quad \min ...
2
votes
1answer
33 views
How to get to use {align} with an unusual document class?
So I'm required to use a particular documentclass, "llncs", which for some reason is preventing me from using {align}. Is there an alternative that I can use?
The beginning of my tex file
...
8
votes
2answers
48 views
Horizontal alignment across nested aligned
Is there a way to left align the first 2 rows with the last one?
\documentclass{article}
\usepackage{amsmath}
\begin{equation*}
\left\{{\begin{aligned}
&\left.{\begin{aligned}
&A+B=X\\
...
2
votes
1answer
39 views
Aligning equality sign with overset text
I'm typing a logic definition within an align environment that uses \overset{def}{=} from the amsmath environment.
However, the new sign is aligned vertically based on the equality sign, and not on ...
2
votes
1answer
78 views
Custom glossary environment improvement
This is a followup question about the code provided by Nicola Talbot in this question: Automated generation of equation key
TL;DR: Defines new environment alignglos which can be used to wrap ...
4
votes
1answer
56 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
50 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
41 views
Place Image and Break Pages
I want to obtain the following format:
Text
Text
Text
Text
endofpage
image
newpage
Text
Text
Text
Text
I have three pages in total. The image occupies whole page and the text in newpage is ...
0
votes
0answers
47 views
Is it possible to remove chapter number from align environment? [duplicate]
Basically I have written a proof using the align environment in a new .tex file and the numbers in the proof came like this (how I want them):
Line1 (1)
Line2 (2)
Line3 (3)
Now I've ...
2
votes
1answer
29 views
Multicolumn/multirow inside align
Is there a way to use \multicolumn or \multirow inside an array environment which is inside align environment?
For instance, the following piece of code gives me an error. What is the way around this? ...
8
votes
3answers
114 views
Numbering a set of horizontally distributed equations
Having different horizontally distributed equations inside an align environment, only lines are numbered, but not individual equations.
How can the left equations be numbered using subequations? ...
1
vote
1answer
87 views
some \newcommand instructions not working
I have created some new short command using \newcommand in the following example:
\documentclass[12pt,twoside,a4paper]{book}
\usepackage{enumerate,amsmath}
\newcommand{\ba}{\begin{array}} ...
1
vote
1answer
76 views
Prevent multiple equation numbers when using \allowdisplaybreak with align
I have a very long equation of the following format
\begingroup
\allowdisplaybreaks
\begin{align}
a &= very long expression here\\
+ & another long expression here\\
+ & another long ...
4
votes
2answers
32 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 & ...
6
votes
3answers
101 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}
...
0
votes
0answers
28 views
Codes running smoothly when run separately but generates error on running together [closed]
I have two chunks of code running both of them individually gives no error but when i run them together in a single tex file i get errors as mentioned below
\begin{longtable}{l c}
\caption{Basic ...
6
votes
3answers
98 views
aligned environment of amsmath vs array environment
Today I found out the existence of the aligned environment of the amsmath package. However, I can't see the advantage of using it instead of the array environment from the example provided in ...
5
votes
3answers
97 views
Aligning equal signs such that the line is already aligned
I have an align question. Essentially the following code:
\begin{align}
\nonumber & \exp\left(-\sum_{t=1}^T\lambda_t f_t(x_1)\right)\exp(-\mu-1) + \exp\left(-\sum_{t=1}^T\lambda_t ...
0
votes
0answers
31 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 ...
2
votes
1answer
61 views
TikZ object misaligned with main document: slightly shifted to the right
The TikZ picture is not aligned with the main content of the document. It slightly shifts to the right. Notice how the words go outside the frame on the right side.
Any hints on how to correct this ...
2
votes
2answers
47 views
Unnumbered line inside align
Basically, I have two equations that I wanted to use align to number, but I also wanted to put the word 'and' in between the lines.
Here's what I have so far
\begin{document}
\usepackage{amsmath}
...
3
votes
1answer
42 views
Conflict between \hline and arydshln in aligned environment?
I'm using the following code:
\documentclass{article}
\usepackage{tikz}
\usepackage{amsmath}
% \usepackage{arydshln} %code doesn't compile anymore with this package
\begin{document}
...
4
votes
1answer
32 views
Specify number of columns in brqalign
Some time ago David Carlisle wrote an awesome brqalign function in this answer: http://tex.stackexchange.com/a/51543/4011. See the cited code below.
How to modify the brqalign environment such that ...
10
votes
5answers
283 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} \\
= ...
0
votes
1answer
59 views
tabbing numbering and alignat numbering
Is there a way for the tabbing environment \begin{tabbing} to number equations and sync up with the align or alignat environments?
If I use align or alignat, each successive use is numbered ...
2
votes
2answers
63 views
Split equation with each element being exactly below each other
I have an estimated equation with both coefficients and t-statistics. It's a multiline equation and would like to put the t-statistics right below the coefficient estimates
Currently my code looks ...
6
votes
2answers
94 views
Equations and defining equation variables
I have a main equation that should be numbered and now I want to define the variables of the equations which may contain another set of equations. For example please have a look;
code:
\begin{align}
...
6
votes
3answers
76 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. ...
5
votes
3answers
73 views
Left-align math with fleqn inside split environment
Below, how would I move the first math-line left so that a^2 left-aligns with where?
\documentclass{article}
\usepackage[fleqn]{amsmath}
\begin{document}
\setlength{\parindent}{0pt}
Some text
...
8
votes
2answers
166 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
4answers
90 views
How can I nicely align a single split equation?
I'd like to align my equation to that it (and its label) fit on three lines.
MWE
\documentclass[11pt]{article}
\usepackage{amsmath}
\usepackage{amssymb}
\usepackage{xfrac}
\usepackage{transparent}
...
2
votes
1answer
62 views
Which one is recommended to split, continue and align a long equation?
In my investigation, the outputs are identical as follows.
Version 1:
Using aligned.
\begin{align*}
\framebox[6cm]{Top LHS}\\
\framebox[5cm]{Middle LHS}\\
\framebox[4cm]{Bottom LHS}
&= \!
...
4
votes
2answers
135 views
How to create a beautifully aligned solution for exercises?
Basically, I'm writing solution for the exercises on the textbook. And I want something like this:
As you can see, sub-problems are aligned after the problem number and the formulas are aligned ...
10
votes
1answer
87 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 ...
0
votes
1answer
69 views
Issues aligning equations
I thought I was doing everything correctly, but clearly not. I want my equations (all whether I use \begin{flalign} or \begin{equation}) to be aligned each other (have the same indent), and then when ...
2
votes
0answers
77 views
Automatic arrangement of equations with comments
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
\documentclass{article}
\usepackage{amsmath}
...
4
votes
1answer
50 views
Remove unnecessary horizontal space from amsmath align between two &
How do you remove unnecessary horizontal space in an amsmath align environment between two &?
Consider:
\documentclass{article}
\usepackage{amsmath}
\begin{document}
Version 1:
\begin{align*}
...
3
votes
1answer
94 views
Tikz Scaling and Positioning
I cannot scale the first picture. scale=0.6 does not work.
Also I cannot vertically align the picture. I want top of text and top of figure are same. See figures in the following examples.
...
3
votes
1answer
67 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
...
2
votes
1answer
41 views
Fixing alignment with the rest of the text
The image included above is what I want to replicate - I want the name to appear on the top left, and the address/email-id to appear on the top right, and I want both of them to be aligned with the ...
3
votes
2answers
134 views
Aligning tikz picture within text
I want to align my tikz within a text.
A sample can be seen at the second picture in the following link: Image courtesy from http://www.echoecho.com/htmlimages08.htm
This is my trial:
...
12
votes
2answers
102 views
Align*, & and \futurelet
can somebody explain futurelet within align-environments?
Example:
The command \A should give an "A" if the next char is a {, a "B" if it is & and "C" in any other case.
...
7
votes
1answer
105 views
Breaking lines in equations
I had an equation that was too long. It got cut off, so I modified it with the split environment inside an equation environment:
\begin{equation}
\begin{split}
& I_{ribbon} = \frac{1}{2} M(a^2 ...
8
votes
1answer
88 views
Align successive equations through the entire document
I am fairly new to TeX and need to create my math assignment with TeX.
I have succeeded aligning all my calculations with the use of \begin{align*} and \intertext{}, however in my document i have ...
1
vote
1answer
37 views
Aligning brackets [duplicate]
Hi is there anyway to get the two left [ brackets on the first and second lines to align?
\begin{align}
&\quad[v^{*}a^{-} +va^{\dagger}_{-k}]e^{+ik_{z}\centerdot z}=[u^{*}b^{-} ...
5
votes
2answers
106 views
Align environment inside TikZ
I'm new to TikZ, and I'm trying to use the align enviroment to align some text then draw something on it using some TikZ lines.
But the problem that pdfLaTeX is generating an error whenever I try to ...
2
votes
2answers
66 views
The multi-line equation with explanation is too wide
The original question provides a good answer for how to add explanations to the multi-line equations. However, my problem is that the explanations have too long space to the corresponding equations, ...








