2

I want to create a notation section a la the Matrix Cookbook (PDF). Here's a screenshot:

Screenshot of the Matrix Cookbook.

I can create this using an array, so \begin{array}{r l} but then the whole array is centered. How can I left align the entire environment?

1
  • Do you write it by hand or is it generate with the help of some package such as nomencl?
    – egreg
    May 21, 2020 at 16:22

1 Answer 1

3

Add \hspace{1000pt minus 1fill} at the end of your array environment.

\documentclass{article}

\begin{document}

\[
\begin{array}{r l}
aaaa & d \\
bb & eeee \\
ccc & fff
\end{array}
\hspace{1000pt minus 1fill} % here it is
\]

\end{document}

enter image description here

You can push it even closely by removing column space from the left with @{}

\documentclass{article}

\begin{document}

\[
\begin{array}{@{}r l} % at-expression here
aaaa & d \\
bb & eeee \\
ccc & fff
\end{array}
\hspace{1000pt minus 1fill} % here it is
\]

\end{document}

enter image description here

You must log in to answer this question.

Not the answer you're looking for? Browse other questions tagged .