Graphics, Figures & Tableslongtable moving

Information and discussion about graphics, figures & tables in LaTeX documents.
Post Reply
7788
Posts: 17
Joined: Sat Aug 28, 2010 1:17 am

longtable moving

Post by 7788 »

hi everyone, I have a chapter in my thesis which I have used tables (example below)
after that I use longtable (syntax below).

The output shows the longtable before the table.

How do I get the longtable to appear after this table?

I also tried putting [h!] after \begin{longtable}{p{4cm}p{8cm}}
but it still didn't stay there.
Thank you very much
7788


begin{landscape}
\begin{table}[htdp]
\caption{Intercoder reliability..}
\begin{center}
\begin{tabular}{p{3cm}rrrrrrrrrrrrrr} \hline
%data
\end{tabular}
\end{center}
\label{tab:kappaStudy1}
\end{table}

\begin{longtable}{p{4cm}p{8cm}}
\caption{Excerpts..} \\
\textbf{Theme} & \textbf{Statements} \\
\endhead
%data
\label{tab:excerptsStudy1}
\end{longtable}
Last edited by 7788 on Thu Oct 21, 2010 3:24 pm, edited 1 time in total.

Recommended reading 2024:

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

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

User avatar
gmedina
Posts: 2313
Joined: Wed Jul 11, 2007 11:45 pm

Re: longtable moving

Post by gmedina »

Hi,

please follow the Board Rules and provide complete, compilable, and minimal code.
1,1,2,3,5,8,13,21,34,55,89,144,233,...
7788
Posts: 17
Joined: Sat Aug 28, 2010 1:17 am

Re: longtable moving

Post by 7788 »

hi, thank you for the reminder
have I posted too much syntax..

my question please, is how do I stop longtable from moving around?

my next problem is I might not know how to ask or post questions properly;
sorry about that and thanks for letting me know

much appreciated
7788
User avatar
gmedina
Posts: 2313
Joined: Wed Jul 11, 2007 11:45 pm

Re: longtable moving

Post by gmedina »

What I suggested you was to add the necessary commands to your previous code to make it compilable in such a way that we can reproduce the problem mentioned. Of course, we could do that, but take into account that we don't have much spare time to do what you are supposed to do when posting code.
1,1,2,3,5,8,13,21,34,55,89,144,233,...
7788
Posts: 17
Joined: Sat Aug 28, 2010 1:17 am

Re: longtable moving

Post by 7788 »

sorry I did not understand
but I understand everybody is busy
thanks very much again; here it is again
thank you
7788

the table
\newpage
\begin{table}[h!]
\caption{Frequency of categories generated}
\begin{center}
\begin{tabular}{cp{7cm}rrrrrrrr} \hline
&\textbf{Theme \& Description}&\textbf{T1}&\textbf{T2}&\textbf{T3}&\textbf{T4}&\textbf{T5}&\textbf{T6}&\textbf{Ave} \\ \hline
1&Enjoyment&&&&&&\\
&Yes (enjoyable)&28&25&23&23&24&23&24.33\\
\hline
\end{tabular}
\end{center}
\label{tab:FreqThemeStudy1}
\end{table}


the longtable
\begin{longtable}{p{4cm}p{9cm}}
\caption{Excerpts} \\
\hline
\textbf{Category \& subcategory} & \textbf{Statement} \\ \hline
\endhead
\textbf{Enjoyable}&\\
Yes (enjoyable) & ``I enjoyed learning all the new features of this app.'' Male, age 71(T1)\\
& ``I am not a great fan of using computers but I enjoyed what I did today.'' Male, age (T1)\\
No &``I do not feel I would use this application for email." Male, age 64 (T6) \\
\hline
\label{tab:TranscriptionStudy1}
\end{longtable}
User avatar
gmedina
Posts: 2313
Joined: Wed Jul 11, 2007 11:45 pm

longtable moving

Post by gmedina »

Try other combinations of placement modifiers for your table: [!ht] or [!hb]; if none of those work, then you could load the placeins package and place a \FloatBarrier command right after the table.
1,1,2,3,5,8,13,21,34,55,89,144,233,...
7788
Posts: 17
Joined: Sat Aug 28, 2010 1:17 am

Re: longtable moving

Post by 7788 »

[!ht] [!hb] did not change anything but
the placein package helped
Thank you very much
7788
Post Reply