Graphics, Figures & TablesPutting the Table in the middle of the Page

Information and discussion about graphics, figures & tables in LaTeX documents.
Post Reply
man2011
Posts: 43
Joined: Tue Jan 11, 2011 4:19 am

Putting the Table in the middle of the Page

Post by man2011 »

Dear All,
I have a problem with the table... the problem is the table is too large for the page I used command to change the width of the table but it does not work because the content of the page is mathematical rule so this rule is quite big... I tried to use landscape package but I fails and I tried to use rotating I also failed .. I am wondering if you could help with it.. I need to be fitted on the page..???

Thank you

Code: Select all

\begin{tabular}{ c }
  \begin{math}
\cfrac{\lambda a.\lambda b. eat(a,b)\colon c\multimap v\multimap f \hspace{0.8cm} charlie\colon c }{ }
\end{math}  \\
  \begin{math}
\cfrac{\lambda b.eat(charlie, b)\colon v\multimap f \hspace{0.3cm} \lambda P.<P\textsubscript{1}=\O,P>\colon \forall(v\multimap f).(v\multimap f) \multimap <m,(v\multimap f)> \hspace{0.3cm} \lambda P.<P\textsubscript{1}\cup \{x\}, P\textsubscript{2}(x, non-human(x))>\colon (v\multimap <m, f>) \multimap <m,f> }{ }
\end{math}   \\
  \begin{math}
\cfrac{<\{x\},(eat(charlie, (x, non-human(x))))>\colon <m,f> \hspace{0.8cm} \lambda P.\Lambda P\textsubscript{1}.P\textsubscript{2}\colon <m,f>\multimap f }{\Lambda\{x\}.eat(charlie,(x,human(x)))\colon f }
\end{math}  \\
\end{tabular}

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

User avatar
localghost
Site Moderator
Posts: 9202
Joined: Fri Feb 02, 2007 12:06 pm

Putting the Table in the middle of the Page

Post by localghost »

In the meantime you should know that a minimal example is essential for specific help. And you should be more specific about whether you want the table centered horizontally or vertically. This is not clear from your description.


Thorsten
man2011
Posts: 43
Joined: Tue Jan 11, 2011 4:19 am

Putting the Table in the middle of the Page

Post by man2011 »

sorry this is the sample.. As for the position, it does not matter to me as long as the table is shown on the page wholy :D

Code: Select all

\documentclass{article}
\usepackage{geometry}
\usepackage{lingmacros}
\usepackage{lscape}
\usepackage[safe]{tipa}
\usepackage[version=3]{mhchem}
\usepackage{amssymb}
\usepackage{mathpartir}
\usepackage{fixltx2e}
\makeatother
\begin{document}
\begin{tabular}{ c }
  \begin{math}
\cfrac{\lambda a.\lambda b. eat(a,b)\colon c\multimap v\multimap f \hspace{0.8cm} charlie\colon c }{ }
\end{math}  \\
  \begin{math}
\cfrac{\lambda b.eat(charlie, b)\colon v\multimap f \hspace{0.3cm} \lambda P.<P\textsubscript{1}=\O,P>\colon \forall(v\multimap f).(v\multimap f) \multimap <m,(v\multimap f)> \hspace{0.3cm} \lambda P.<P\textsubscript{1}\cup \{x\}, P\textsubscript{2}(x, non-human(x))>\colon (v\multimap <m, f>) \multimap <m,f> }{ }
\end{math}   \\
  \begin{math}
\cfrac{<\{x\},(eat(charlie, (x, non-human(x))))>\colon <m,f> \hspace{0.8cm} \lambda P.\Lambda P\textsubscript{1}.P\textsubscript{2}\colon <m,f>\multimap f }{\Lambda\{x\}.eat(charlie,(x,human(x)))\colon f }
\end{math}  \\
\end{tabular}
\end{document}
User avatar
localghost
Site Moderator
Posts: 9202
Joined: Fri Feb 02, 2007 12:06 pm

Putting the Table in the middle of the Page

Post by localghost »

man2011 wrote:[…] As for the position, it does not matter to me as long as the table is shown on the page wholy […]
That's not an appropriate answer to my question. For horizontal centering you can use the center environment (note additional space before and after). If you put the table into a floating table environment, you can just use the \centering switch. Placing the table on a separate float page (with [!p] as placement parameters) will center it vertically. If the table doesn't fit the page, you may turn it by structures of the rotating package (e. g. the sidewaystable environment) to get a table in landscape orientation.
Post Reply