Discussion:
center tabular in beamer
(too old to reply)
DG
2004-10-06 07:50:10 UTC
Permalink
How can I center a tabular on a page in the beamer class?

Thanks,
David
--
David J. Grant
http://www.davidgrant.ca:81
Jellby
2004-10-06 12:51:16 UTC
Permalink
Post by DG
How can I center a tabular on a page in the beamer class?
Vertically or horizontally? What did you try?

I guess \begin{centering}...\end{centering} doesn't work (it failed for me
with some other material). Have you tried with:

\center
\begin{tabular}
...

or:

\hspace*{\fill}
\begin{tabular}...\end{tabular}
\hspace*{\fill}

?
--
Ignacio __ Fern�ndez Galv�n
/ /\
Linux user / / \
#289967 / / /\ \ PGP Pub Key
/ / /\ \ \ 0x01A95F99
/ /_/__\ \ \
/________\ \ \
jellby \___________\/ yahoo.com
Harry Schmidt
2004-10-06 13:08:00 UTC
Permalink
Post by Jellby
Post by DG
How can I center a tabular on a page in the beamer class?
Vertically or horizontally? What did you try?
I guess \begin{centering}...\end{centering} doesn't work (it failed
for me with some other material).
\centering is a switch, not an environment.
Post by Jellby
\center
No! center is an environment, not a switch (in fact the
center-environment uses \centering internally):

\begin{center}
...
\end{center}


Harry
--
When you are in it up to your ears, keep your mouth shut.
Jellby
2004-10-06 13:12:47 UTC
Permalink
Post by Harry Schmidt
Post by Jellby
I guess \begin{centering}...\end{centering} doesn't work (it failed
for me with some other material).
\centering is a switch, not an environment.
Post by Jellby
\center
No! center is an environment, not a switch (in fact the
Oh, well, I wrote it the other way :-D

(I'll have to check what I actually wrote in my sources...)
--
Ignacio __ Fernández Galván
/ /\
Linux user / / \
#289967 / / /\ \ PGP Pub Key
/ / /\ \ \ 0x01A95F99
/ /_/__\ \ \
/________\ \ \
jellby \___________\/ yahoo.com
Harry Schmidt
2004-10-06 13:05:45 UTC
Permalink
Post by DG
How can I center a tabular on a page in the beamer class?
Have you tried \centering or the center-environment?

Harry
--
When you are in it up to your ears, keep your mouth shut.
DG
2004-10-06 15:22:28 UTC
Permalink
Post by Harry Schmidt
Post by DG
How can I center a tabular on a page in the beamer class?
Have you tried \centering or the center-environment?
Harry
I tried centering but that didn't work. Only enclosing it in a \table
environment and then using the \centering switch worked.
--
David J. Grant
http://www.davidgrant.ca:81
Robin Fairbairns
2004-10-07 09:28:17 UTC
Permalink
Post by DG
Post by Harry Schmidt
Post by DG
How can I center a tabular on a page in the beamer class?
Have you tried \centering or the center-environment?
I tried centering but that didn't work. Only enclosing it in a \table
environment and then using the \centering switch worked.
the table environment sounds like the wrong way to go, since you don't
want the thing to float.

{\par\centering\begin{tabular}...
\end{tabular}\par}

should do what you're after; both \par tokens are necessary, in the
general case (the second one is always necessary).

or you could use the center environment, which provides \par for you.
--
Robin (http://www.tex.ac.uk/faq) Fairbairns, Cambridge
Loading...