Graphics, Figures & TablesTable and figure placing

Information and discussion about graphics, figures & tables in LaTeX documents.
Post Reply
paulvdsterren
Posts: 5
Joined: Tue Jun 09, 2009 12:56 pm

Table and figure placing

Post by paulvdsterren »

Dear Latex pro's,

I have questions concerning table and figure placing. I made a research report for
my master thesis in texniccenter using apa-style template.

My results section stretches with 6 tables and 1 figure. I would like to have 2
tables on the top of the page and 1 page with the figure. On the lower end of the page I'd like to have the text. How can i force latech to do this? Now i use !t which isnt working for me.

thanks in advance

Paul

Recommended reading 2024:

LaTeXguide.org • LaTeX-Cookbook.net • TikZ.org

NEW: TikZ book now 40% off at Amazon.com for a short time.

fatra2
Posts: 126
Joined: Fri May 01, 2009 1:43 pm

Table and figure placing

Post by fatra2 »

Hi there,

Do you want to have the two tables next ot each other or on top of each other???

If you want to have the tables on top of each other, I would suggest to put the two tabular environment in the same table environment. Some like this:

Code: Select all

\begin{table}
\begin{center}
\begin{tabular}{lll}
col1 of tab1 & col2 of tab1 & col3 of tab1 \\
\end{tabular}

\begin{tabular}{rr}
col1 of tab2 & col2 of tab2 \\
\end{tabular}
\end{center}
\end{table
Of course this will work (and look good), only if your tables will not overflow the page.

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

Table and figure placing

Post by localghost »

paulvdsterren wrote:[...] My results section stretches with 6 tables and 1 figure. I would like to have 2 tables on the top of the page and 1 page with the figure. On the lower end of the page I'd like to have the text. How can i force latech to do this? Now i use !t which isnt working for me. [...]
Use a list of optional parameters to control the placement of your floats.

Code: Select all

\begin{table}[!ht]
  % table contents
\end{table}

\begin{figure}[!p]
  % figure contents
\end{figure}
To force the output of two tables placed on the top of a page, insert a \clearpage command right after every second figure environment. Don't forget to put some text between them in the source to get the desired output.


Best regards and welcome to the board
Thorsten
paulvdsterren
Posts: 5
Joined: Tue Jun 09, 2009 12:56 pm

Table and figure placing

Post by paulvdsterren »

So i tried some of the solutions but they dont seem to work :(

here is my doc setup

Code: Select all

\documentclass[jou,oneside]{apa}
\usepackage{apacite}
\usepackage{graphicx}
\usepackage{a4wide}
\title {The importance of sexual self-disclosure and perceived partner responsiveness in sexual intimacy: the proposition of an interpersonal process model.}
\author{Paul G.S. van der Sterren and Marjolein J.W. Verheij}
\affiliation{Faculty of social sieces\\ Utrecht University}
This package give 2 columns of text. Now i have 5 tables and 1 figure in my results section. Id like 2 pages with 2 tables and 1 page with 1 table and a figure.

So i start my /section{results}, than i have some text. Above this text i want the first 2 tables. On the next page id like a figure and 1 tables. On the page after that id like another 2 tables. (pages 6,7,8).

here's an example of a good table

Code: Select all

\begin{table*}[]
\caption{Beta (standardized in parentheses), Standard deviation (SD), T-score and VIF scores of PPR models predicting beliefs, fears and sexual motivation.}
\label{tab:tab5}
\begin{tabular}{llcccc}\thickline
& \multicolumn {2}{l}{}
& \multicolumn {3}{l} {PPR models} \\ \cline{3-6} 
& & Beta         & SD  & T-score & VIF \\ \hline             
Beliefs	& Constant &	2.51* &	.14	&	17.84	&		\\
	& Education&	.14(.20)*&	.06	&	2.47	&1.00	\\
        & PPR	&	.07(.19)*&	.03	&	2.35	&	1.00	\\
Fears	& Constant &	2.84*  &	.27	&	10.58	&		\\
        & Age	&	.23(.13)&	.14	&	1.67	&	1.01	\\
        & PPR	&	-.27(-.34)*&    .06	&-4.33	&1.01	\\
Motivation	&	Constant &	3.07*	& .33	& 9.27	\\
         &	Relationship length	& -.24(-.18)* & .10	& -2.32	& 1.00	\\
         & PPR	&	.23(.24)* &	.08	&	3.01	&	1.00	\\ \hline
\end{tabular}
\tabfnt{*}{p$<$.05}
\end{table*}
as you can see the beta arent nicely algined, does anyone have any idea to get them a little more in line ith eachother?

Also compared to this model, the model above has better lines, in other words the fill the page and and the "horizontal names are more to the right. Any ideas on how to get that done in the table below?

Code: Select all

\begin{table*}[!ht]
\caption{Independent student's t-tests comparing means between long and short relationships on various sexual self-disclosure measurements, specified in mean difference (Mean dif.), standard deviation (SD) and T-score.}
\label{tab:tab2}
\begin{tabular}{lccccc}\thickline
          & \multicolumn{4}{c}{Relationship length}\\ \cline{2-4}
				  & Mean dif. & SD & T-score \\ \hline
Sexual self-disclosure & -.29* & -2.26 & .13 \\
Behaviors	& -.40*	& -2.39	& .17 \\
Sexual fantasies & -.38* & -2.14 & .18 \\
Meaning of sex & -.34* & -2.38 &	.14 \\
Distressing sex &	-.33* &	-2.01 &	.16 \\ \hline             
\end{tabular}
\tabfnt{*}{p$<$.05}
\end{table*}
Thanks in advance

Paul
Post Reply