I'm building a table of integrals, for my own use. I need simple things: equations must be left aligned, sometimes I need alignment on the equal symbol and to save space sometimes I need 2 equations on the same line.
\begin{fleqn}[0pt]
\setlength{\jot}{6pt}
\begin{align*}
&\int f(x) \ldots \mbox{long expression here} \ldots dx = F(x) + C \\
&\int f(x) \ldots \mbox{long expression here} \ldots dx = F(x) + C \\
&\int f(x) dx = F(x) + C &&\int f(x) dx = F(x) + C \\
&\int f(x) \ldots \mbox{long expression here} \ldots dx = F_1(x) + C = \\
&\qquad\qquad = F_1(x) + C \\
\end{align*}
\end{fleqn}
First I'm not satisfied, I can't set the point of alignment with 2 equations in one line and I can't align the equations on the equal sign. Most environment (tabular
, tabbed
, split
,...) do only one job and when I try to mix them I always get some errors.
Second I would like to create a new environment with
\newenvironment{mathtable}
{ \begin{fleqn}[0pt] \setlength{\jot}{6pt} \begin{align*} }
{ \end{align*} \end{fleqn} }
But it show me an error, it seems I can't use align
inside newenvironment
. Did a lot of research, used the environ package, used \csname
and so on, but I don't know how to build this environment.
\align
\endalign
forms not\begin{align}
\end{align}
\begin{fleqn}
...aligned
environment ofamsmath
might be helpful, since it's meant to be embedded within another environment.fleqn
environment.fleqn
environment with \usepackage{nccmath}.