Graphics, Figures & TablesTables and Sections

Information and discussion about graphics, figures & tables in LaTeX documents.
Post Reply
Blindy
Posts: 2
Joined: Fri Jun 17, 2011 11:17 am

Tables and Sections

Post by Blindy »

Hello All,

I am new to this Forum so let me introduce myself first.
I am a Bachelor Student of Molecular Medicine, writing my Thesis with Scrivener using MMD3->LaTeX (on the Mac).

I used the search option and didn't find a similar post, it could be that i searched wrong or in the wrong place, if this is the case, i am sorry and it would be nice to delete this post and direct me to that thread.

I am writing the Material and Methods part right now, using tables without lines, each of those tables is put into its own \subsubsection unter the \subsection{Materials}.

When i typeset each subsubsection separatel i get the name of the subsubsection, a linebreak and then the table. when i then typeset the WHOLE document with all my subsubsections and the tables in them it only typesets the first two subsubsections correctly, then i get the other subsubsections listed without the tables and at the end of the document all the tables that were supposed to be in their subsubsections are listed one after the other.

I have no idea why this happens, can anyone help me?

Here is a link to the code: http://pastebin.tlhiv.org/BwOZeZUm
i couldnt take a small portion of the code because this problem happens only when i typeset the whole document.

Thank you in Advance
Blindy
Last edited by Blindy on Sun Jun 19, 2011 11:17 am, edited 1 time in total.

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
Stefan Kottwitz
Site Admin
Posts: 10348
Joined: Mon Mar 10, 2008 9:44 pm

Tables and Sections

Post by Stefan Kottwitz »

Hi Blindy,

welcome to the board!

You load use the placeins package, then you can place the command \FloatBarrier before starting a new subsection. This prevents tables from floating into the next subsection.

Stefan
LaTeX.org admin
User avatar
localghost
Site Moderator
Posts: 9202
Joined: Fri Feb 02, 2007 12:06 pm

Tables and Sections

Post by localghost »

I would start with the simplest approach instead of a sledgehammer method.

Code: Select all

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

Best regards and welcome to the board
Thorsten
Blindy
Posts: 2
Joined: Fri Jun 17, 2011 11:17 am

Re: Tables and Sections

Post by Blindy »

Thank you for the answers, worked :)
I changed htpb to H in the table. \floatbarrier worked too
Post Reply