Home >

# Environment aligned undefined aligned

• ## Environment aligned undefined when trying to write a system of equationsNovember 14

I'm trying to write a system of equations in LaTeX. From the Wiki page Advanced Mathematics I took this example: \left.\begin{aligned} B'&=-\partial \times E,\\ E'&=\partial \times B - 4\pi j, \end{aligned} \right\} \qquad \text{M

• ## Define a custom align, and align* environmentAugust 5

I would like to redefine both the align and \align* environments such that the first line is shifted up to line up with the list identifier. I attempted to adapt the solution provided at Starred equivalent in newenvironment, along with \NewDocumentEn

• ## How can I place a displaymath environment and an align* environment side by side?December 4

I have a displaymath environment and an align* environment I would like to display next to each other. My idea was to wrap them in a tabular environment: \begin{tabular}{c c} $%math stuff here$ & \begin{align*} %laign stuff here \end{align*} \end

• ## Define an align environment that always aligns to the first equal signApril 27

I noticed that 98% of the times I use align or aligned I place the & just before the first = of each line. Is there a way to define a new environment that automatically aligns equations to the first equal sign (as if placing an invisible & there)?

• ## Array alignment within align environmentJuly 13

I am trying to typeset an array within an align environment, aligning to a specific separator in the array. In the following example, I want to align on the ":" separator in the array. \documentclass{article} \usepackage{amsmath, array} \begin{d

• ## right align in align environmentOctober 18

I use a align* environment and on one line I have a very long equation which does not contain into a line. Thus for this line I would like to have the same behavior as a multline environment, that is after the break line I would like the end of the e

• ## equation labels inside a nested align and aligned environmentAugust 14

I'd like to have several equations aligned pair-wise in, essentially, two columns, but with individual labels for each equation and/or for each line (where one line displays two equations). I have achieved the desired alignments by nesting aligned en

• ## Displaymath environment that can align equations and squeezes mathJanuary 17

I have a long equation to align. Without squeezing the math, it is just barely longer than \textwidth. However, the align environment doesn't squeeze the math at all, which results in a badbox. \documentclass[11pt]{article} \usepackage{amsmath} \begi

• ## Alignment in align environmentJuly 16

I would like to align the first "+" in the third and fourth lines of the following code. In the third line, I have "= 3 + [a mess]" and in the fourth line, I have "+ [another mess]" - I don't have the "3" in the fou

• ## vertical center aligned inside align environmentSeptember 7

How can I make the top of the aligned pack vertically aligns with the x ->? How can I use a box or something to achieve this? (There are other options of course but I would like to use box or something ...?) \documentclass{article} \usepackage{amsmat

• ## amsmath: When to use equation environment instead of align? July 27

I always use align in my documents, and avoid equation. Is there anything wrong with that? My reasoning behind this: align > equation, so why not use it? --------------Solutions------------- While not exactly a bad idea in principle, unfortunately it

• ## Aligning across 'aligned' equation blocksAugust 18

I'd like to format two groups of equations such that all their equal signs line up and such that I can put a big brace to the right of each block to annotate that block. The last part is easily achieved using the aligned environment of amsmath: \docu

• ## Vertical alignment of align* in enumerateJanuary 21

Related (but not the same): Align number from enumerate with equation Displaying an equation in a list Earlier today I asked a question about aligning equations in an enumerate environment and got an answer that seemed to work for the example I gave,

• ## What's the difference between align and align*?January 23

After some brief searching I can't find the difference between align and align*. Google summarily ignoring the * is making it harder I think. Can you tell me the difference between these two? Moreover, can you tell me where you generally go for this

• ## Aligning plain align and cases?November 1

The cases environment works very well for enumerating cases within a large left bracket. I'd like to be able to combine it with the align environment so that equals-signs and conditions also line up: \item \begin{align*} T_{in\ general}\left(n\right)

• ## Horizontal alignment with align and casesFebruary 5

I have a cases environment inside an align environment, and I'm trying to align part of one line of the align environment with part of the cases environment via an ugly \phantom command. Here's a MWE: \documentclass{article} \usepackage{amsmath,matht

• ## Multlined in align enviromnent: alignment of = and equation numberingMay 27

I'm using the multlined environment inside an align environment and want have the = aligned at the top and the equation numbering at the bottom. Is this possible? Here my MWE: \documentclass{article} \usepackage{mathtools,amsmath} \begin{document} \b

• ## Problem with vertical alignment nesting align and alignedFebruary 18

I'm trying to write a good-looking optimization problem in LaTeX using amsmath. The MWE is this: \documentclass[letter, 10pt, conference]{article} \usepackage{amsmath} \begin{document} \begin{align*} & \underset{x,u}{\text{minimize}} & & \frac

• ## Environment code undefinedJanuary 16

Why do I get ! LaTeX Error: Environment code undefined. when I use: \documentclass[10pt,a4wide]{article} \usepackage{a4wide} \usepackage[utf8]{inputenc} \usepackage[portuguese]{babel} \usepackage{graphicx} \newcommand{\HRule}{\rule{\linewidth}{0.5mm}

• ## \usepackage{enumitem} produces "Environment description undefined" errorJuly 4

If I run pdflatex on the following: \documentclass[class=minimal,border=0pt]{standalone} \usepackage{tikz} \usepackage{varwidth} \usepackage{upquote} % \usepackage{enumitem} \usetikzlibrary{arrows,calc,chains,shapes,scopes} \renewcommand{\familydefau