Math & ScienceAlignedat padding issue

Information and discussion about LaTeX's math and science related features (e.g. formulas, graphs).
Post Reply
kazza
Posts: 3
Joined: Wed Apr 25, 2012 7:07 pm

Alignedat padding issue

Post by kazza »

Hi, Ive recently been playing about with the alignedat environemnt, and have been porting my old definitions from arrays into it to allow for page breaking large equations.

But after much experimentation I can find how to cleanly remove the padding put around an alignedat environment. Ive looked at the amsmanual but no luck there.

So the following code type sets ok, but I dont like the negative space used.

Code: Select all

\begin{align*}
&\framebox[0.75\columnwidth]{left align header}\\
&\!
\begin{alignedat}{2}
 & \framebox[3em]{A} && \framebox[3em]{B}\\
 & \framebox[2em]{C} && \framebox[7em]{D}
\end{alignedat}
\end{align*}
I used to just use the array environemnt with a specifier such as {@{}l@{}} to remove padding. The manual says that the align*at environemnts allow for the horizontal spacing to be specified, but I cant see how to specificy the inital or final spaceing.
Attachments
img.png
img.png (5.59 KiB) Viewed 1490 times

Recommended reading 2024:

LaTeXguide.org • LaTeX-Cookbook.net • TikZ.org

Learn LaTeX easily with newest books:

The LaTeX Beginner's Guide: 2nd edition and perfect for students writing a thesis

The LaTeX Cookbook: 2nd edition full of practical examples for mathematics, physics, chemistry, and more

LaTeX Graphics with TikZ: the first book about TikZ for perfect drawings in your LaTeX thesis

Post Reply