Take the 2-minute tour ×
TeX - LaTeX Stack Exchange is a question and answer site for users of TeX, LaTeX, ConTeXt, and related typesetting systems. It's 100% free, no registration required.

I want a chapter tittle and a table to fit in just one page. It looks possible as it is enough space, but this is the output:

enter image description here

The code used is:

\afterpage{
\chapter{Esquemáticos y PCB}
\clearpage     % flush out other floats waiting to be typeset
\begin{table}
\centering
\begin{tabular}{@{}cp{10cm}@{}}
\toprule
Nº referencia & Descripción \\
\cmidrule(l){1-1}\cmidrule(l){2-2}
3113067-01 & Esquemático del primer prototipo de placa (página 1)\\
3113067-02 & Esquemático del primer prototipo de placa (página 2)\\
3113067-03 & Esquemático del primer prototipo de placa (página 3)\\
3113067-04 & Cara TOP de la PCB del primer prototipo de placa\\
3113067-05 & Cara BOTTOM de la PCB del primer prototipo de placa\\
3113067-06 & Vías de la PCB del primer prototipo de placa\\

3113067-07 & Esquemático del diseño final de placa (página 1)\\
3113067-08 & Esquemático del diseño final de placa (página 2)\\
3113067-09 & Esquemático del diseño final de placa (página 3)\\
3113067-10 & Cara TOP de la PCB del diseño final de placa\\
3113067-11 & Cara BOTTOM de la PCB del diseño final de placa\\
3113067-12 & Vías de la PCB del diseño final de placa\\

3113067-13 & Esquemático de la placa de la tarjeta SD \\
3113067-14 & Cara TOP de la PCB de la placa de la tarjeta SD\\
3113067-15 & Cara BOTTOM de la PCB de la placa de la tarjeta SD\\
3113067-16 & Vías de la PCB de la placa de la tarjeta SD\\
\bottomrule
\end{tabular}
\caption{Referencia y descripción de los planos del Apéndice A}
\label{planostable}
\end{table}

 \clearpage}  % prevent other material from being placed on this page

NOTE: I posted before for this same problem for figures and I tried aswking this there too once the image problem was solved, but I got the question closed, so I open a new one as I understand this is a different question.

share|improve this question
1  
Why using \afterpage? The other question has been closed with a reference to another question where the problem is solved. –  egreg Dec 14 '11 at 16:11
    
But not for a table, that's why I'm asking –  Roman Rdgz Dec 14 '11 at 16:15
1  
Tables or figures is just the same. –  egreg Dec 14 '11 at 16:19
add comment

1 Answer

up vote 6 down vote accepted

This works for me.

\chapter{Esquemáticos y PCB}
\begin{table}[!h]
\centering
\begin{tabular}{@{}cp{10cm}@{}}
...
\bottomrule
\end{tabular}
\caption{Referencia y descripción de los planos del Apéndice A}
\label{planostable}
\end{table}

It's quite difficult to understand why you're using \afterpage and \clearpage after \chapter which will push the float on the following page.

share|improve this answer
add comment

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.