LaTeX Question
I would like to have integer tags all the way on the right hand side of each equation line.
I also need multiple alignment(horizontal) levels.
Attempt 01: Michelle Krummel's Lists tutorial '
Code:
\begin{enumerate}
\item
\begin{align}
\frac{d}{dx}[f(x)]
\end{align}
\item
\begin{align}
\frac{d}{dx}[g(x)]
\end{align}
\item
\begin{itemize}
\item
\begin{align}
\frac{d}{dx}[h(x)]
\end{align}
\item
\begin{itemize}
\item
\begin{itemize}
\item
\begin{align}
\frac{d}{dx}[A(x)]
\end{align}
\item
\begin{align}
\frac{d}{dx}[H(x)]
\end{align}
\end{itemize}
\end{itemize}
\end{itemize}
\end{enumerate}
This way does produce an effect very close to what I want to do, except for the list numbering, bulleting, "dash", and "star" on the left hand side. This is a result of \begin{enumerate} and \end{enumerate}, but without it the \item trick just doesn't work. '
However, I find having to write the following clauses for each successive indentation a tad bit onerous:
Code:
\begin{enumerate}
\item
\begin{itemize}
...
\end{itemize}
\end{enumerate}
The next two attempts I use:
http://tex.stackexchange.com/questio...gn-environment
On this page there are two solutions: 2) Steven B. Segletes and 3) David Carlisle
Attempt 02: Segletes
Code:
\documentclass[12pt,a4paper]{article}
\usepackage[fleqn]{amsmath}
\usepackage[utf8]{inputenc}
\usepackage{amsmath}
\usepackage{mathtools}
\usepackage{amsfonts}
\usepackage{amssymb}
\usepackage{makeidx}
\usepackage{parskip}
\usepackage{graphicx}
\usepackage{lmodern}
\usepackage{verbatim}
\usepackage[usestackEOL]{stackengine}
\usepackage[left=2cm,right=2cm,top=2cm,bottom=2cm]{geometry}
\author{Andrew}
\stackMath
\begin{document}
Proove Theorem AAC
\begin{align}
\mbox{Let y } & = \Longunderstack[l] {
f(x) \\
g(x)
} \\
x & = \Longunderstack[l] {
h(x) \\
%w & = \Longunderstack[l] {
% A(x) \\
% }
}
\end{align}
\end{document}
This works well for two levels of alignment, but notice how above I had to comment out the third level of alignment. You can't use the \Longunderstack[l] within another \Longunderstack, thus only two levels of alignment. '
Attempt 03: David Carlisle
Code:
\documentclass[12pt,a4paper]{article}
\usepackage[fleqn]{amsmath}
\usepackage[utf8]{inputenc}
\usepackage{amsmath}
\usepackage{mathtools}
\usepackage{amsfonts}
\usepackage{amssymb}
\usepackage{makeidx}
\usepackage{parskip}
\usepackage{graphicx}
\usepackage{lmodern}
\usepackage{verbatim}
\usepackage[usestackEOL]{stackengine}
\usepackage[left=2cm,right=2cm,top=2cm,bottom=2cm]{geometry}
\author{Andrew}
\stackMath
\begin{document}
\begin{align}
Carlisle & \\
&Sample Explanation \\
\nu(u_1)&= f(x) \\ %Alignment Level 1
&= \cosh(x) - \sinh(x) \\ %Alignment Level 1
& G(x) =
\!\begin{aligned}[t]
& A(x) \\ %Alignment Level 2
& H(x) = \int^Q_O z(x) dx \\ %Alignment Level 2
& L(x) = %Alignment Level 2
\!\begin{aligned}[t]
& \frac{d}{dx} P(x) \\ %Alignment Level 3
& S(x) %Alignment Level 3
\end{aligned}
\end{aligned}
\end{align}
\end{document}
Carlisle's method better matches my purpose than Segletes' method because you can utilize "\!\begin{aligned}[t]" recursively, thus it seems that there is no limitation on the number of alignment levels. '
But where did the TAGS go? Vanished!? I am in dire need for them.