\tabular aligned on the left

7,870 views
Skip to first unread message

Sven Siegmund

unread,
Sep 9, 2009, 6:48:30 AM9/9/09
to LaTeX Users Group
Hi,

I am desperately trying to get a tabular environment aligned with the
left text margin. This is the closest I could get:

\documentclass{article}
\begin{document}
\paragraph{Abbreviations}\ \par
\noindent{}\begin{tabular}{ll}
SG & singular \\
PL & plural \\
\end{tabular}
\end{document}

but still, when I pdflatex this, the table is not aligned with the
"Abbreviations" heading.

How can I achieve that?

TIA,

S.

Alain

unread,
Sep 9, 2009, 9:25:56 AM9/9/09
to LaTeX Users Group
Hi,

A quick solution for your problem would be :

%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
\documentclass{article}
\begin{document}
%\paragraph{Abbreviations}\ \par
\noindent{}\begin{tabular}{ll}
\textbf{Abbreviations} & \\
SG & singular \\
PL & plural \\
\end{tabular}
\end{document}
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%

However, if you do need to keep the paragraph structure then I believe
you have two options :
1 - you shift your table manually to the left (using changemargin
package)
2 - you modify the margin for "paragraphs" in a .cls file by
specifying it yourself

Hope this can help, if you need details on solutions 1 or 2, let me
know.

Regards,

Alain

jon

unread,
Sep 9, 2009, 12:24:22 PM9/9/09
to LaTeX Users Group
On Sep 9, 6:48 am, Sven Siegmund <sven.siegm...@gmail.com> wrote:
> Hi,
>
> I am desperately trying to get a tabular environment aligned with the
> left text margin. This is the closest I could get:
>
> \documentclass{article}
> \begin{document}
> \paragraph{Abbreviations}\ \par
> \noindent{}\begin{tabular}{ll}
> SG & singular \\
> PL & plural \\
> \end{tabular}
> \end{document}

you need to use "@{}"

\noindent%
\begin{tabular}{@{}ll}

...

cheers,
jon.
Reply all
Reply to author
Forward
0 new messages