[texhax] Please Help with Tables

Philip G. Ratcliffe philip.ratcliffe at uninsubria.it
Wed Jan 21 15:03:48 CET 2004


Quite simply, the line that reads

\vspace{2cm}

should be changed to

\hspace{2cm}

Note that \vspace is inoperative inside paragraphs and in any case "v"
stands for vertical while "h" for horizontal.

Putting \hspace*{2cm} before the first table will indent it by 2cm (the *
forces LaTeX not to ignore the space, as it would normally at the start or
end of a line).

Have a look at

...\doc\latex\help\latex2e.chm

and choose \vspace, \hspace.

Or try Sec 6.3.3 in lshort.dvi (The not so short....).

Cordialmente,  Philip G. Ratcliffe

> -----Original Message-----
> From: texhax-bounces at tug.org [mailto:texhax-bounces at tug.org]On Behalf Of
> Robert Sherry
> Sent: Wednesday, January 21, 2004 5:32 AM
> To: texhax at tug.org
> Subject: [texhax] Please Help with Tables
>
>
> Please consider the following LaTeX file:
>
> \documentclass[a4paper,11pt]{article}
> \usepackage{pst-node}
> \usepackage{amsmath}
> \usepackage{latexsym}
> \title {Notes On Lattices}
> \author{Robert~Sherry}
> \begin{document}
> \maketitle
> \flushleft
> Here are two table that define
> $\sqcup$ and $\sqcap$.
> \newline
> \begin{tabular}{r|rrrr}
> $\sqcup$ & x & y & $\bot$ & $\top$ \\
> \hline
> $\bot$ & $\bot$ & $\bot$ & $\bot$ & $\top$ \\
> $\bot$ & $\bot$ & $\bot$ & $\bot$ & $\top$ \\
> $\bot$ & $\bot$ & $\bot$ & $\bot$ & $\top$ \\
> $\top$ & $\top$ & $\top$ & $\top$ & $\top$ \\
> \end{tabular}
> \vspace{2cm}
> \begin{tabular}{r|rrrr}
> $\sqcap$ & x & y & $\bot$ & $\top$ \\
> \hline
> $\bot$ & $\bot$ & $\bot$ & $\bot$ & $\bot$ \\
> $\bot$ & $\bot$ & $\bot$ & $\bot$ & $\bot$ \\
> $\bot$ & $\bot$ & $\bot$ & $\bot$ & $\bot$ \\
> $\bot$ & $\bot$ & $\bot$ & $\bot$ & $\top$ \\
> \end{tabular}
> \newline
> \end{document}
>
> This file produces two tables side by side with the left table flush with
> the
> margin. Also there is very little space between the two tables. I
> would like
> to see the left table indented some, and more space between the
> two tables.
> I have tried \hspace but that did not help.
>
>                           Robert Sherry
>
>
> _______________________________________________
> TeX FAQ: http://www.tex.ac.uk/faq
> TeX newsgroup: http://groups.google.com/groups?group=comp.text.tex
> Mailing list archives: http://tug.org/pipermail/texhax/
> More links: http://tug.org/begin.html
>
> Automated subscription management: http://tug.org/mailman/listinfo/texhax
> Human mailing list managers: postmaster at tug.org



More information about the texhax mailing list