- Thread starter
- Admin
- #1

- Jan 26, 2012

- 4,197

Code:

```
\begin{tabbing}\qquad \= 11.\quad \=
\kill
\>1.\>
\begin{align*}
f(x)&=2x+4\\
a&=3\\
\end{align*}
\\
\end{tabbing}
```

- Thread starter Ackbach
- Start date

- Thread starter
- Admin
- #1

- Jan 26, 2012

- 4,197

Code:

```
\begin{tabbing}\qquad \= 11.\quad \=
\kill
\>1.\>
\begin{align*}
f(x)&=2x+4\\
a&=3\\
\end{align*}
\\
\end{tabbing}
```

Is it not allowed to put an align* environment inside a tabbing environment?Code:`\begin{tabbing}\qquad \= 11.\quad \= \kill \>1.\> \begin{align*} f(x)&=2x+4\\ a&=3\\ \end{align*} \\ \end{tabbing}`

Have you tried \alignat* ?

- Thread starter
- Admin
- #3

- Jan 26, 2012

- 4,197

\kill

\>1.\>

\begin{alignat*}{1}

f(x)&=2x+4\\

a&=3\\

\end{alignat*}

\\

\end{tabbing}

The alignat* environment didn't work any better than align*, so far as I can see.

- Jan 30, 2012

- 2,502

In my test, the environmentLike equation, the multi-equation environmentsgather,align, andalignatare designed to produce a structure whose width is the full line width. This means, for example, that one cannot readily add parentheses around the entire structure. But variantsgathered,aligned, andalignedatare provided whose total width is the actual width of the contents; thus they can be used as a component in a containing expression.

- Thread starter
- Admin
- #5

- Jan 26, 2012

- 4,197

Wonderful! The quote you so helpfully posted helps me understand why it doesn't work, as well as showing me why the substitute environment does. Fantastic. I'll give it a try when I have some time.Here is a quote from the User's Guide for the amsmath Package.

In my test, the environmentLike equation, the multi-equation environmentsgather, align, and alignat are designed to produce a structure whose width is the full line width. This means, for example, that one cannot readily add parentheses around the entire structure. But variants gathered, aligned, and alignedat are provided whose total width is the actual width of the contents; thus they can be used as a component in a containing expression.alignedworked.

- Thread starter
- Admin
- #6

- Jan 26, 2012

- 4,197

Code:

```
\begin{tabbing}\qquad \= 11.\quad \= \hpsace{0.4\linewidth} \= 11.\quad \=
\kill
\>$\phantom{1}$1.\>
$\begin{aligned}[t]
f(x)&=2x+4\\
a&=3\\
L&=10\\
\varepsilon&=0.01
\end{aligned}$
\>$\phantom{1}$5.\>
$\begin{aligned}[t]
f(x)&=6x-10\\
a&=-2\\
L&=-22\\
\varepsilon&=0.4
\end{aligned}$\\
\end{tabbing}
```