0

I meet a problem of putting a table at the bottom of a conference paper. Because I want this table to be very small so I use the following way (I learned here before):

\documentclass[letterpaper, 10 pt, conference]{IEEEconf} 
\begin{document}
\begin{figure*}[b]
\footnotesize
\hrulefill
\begin{table}
\caption{An Example of a Table}
\label{table_example}
\begin{center}
\begin{tabular}{|c||c|}
\hline
One & Two\\
\hline
Three & Four\\
\hline
\end{tabular}
\end{center}
\end{table}
\end{figure*}  
\end{document}

However, latex shows:

! LaTeX Error: Float(s) lost.  

How do I fix it? What does that mean? Please advise, thanks!

cfr
  • 198,882
Denny
  • 103

2 Answers2

2

With the ieeeconf class, you can obtain what you want with the stfloats package, from the sttools bundle, with one exception: the table can't appear at the bottom of the first page.

\documentclass[letterpaper, 10 pt, conference]{ieeeconf}
\usepackage{stfloats, caption}%
\usepackage{lipsum}

\begin{document}

\lipsum[1-10]
\begin{table*}[b]
\hrulefill
\footnotesize\centering
\caption{An Example of a Table}
\label{table_example}
\begin{tabular}{|c||c|}
\hline
One & Two\\
\hline
Three & Four\\
\hline
\end{tabular}
\end{table*}

\lipsum[11-20]

\end{document} 

enter image description here

Bernard
  • 271,350
1
\documentclass{article}
\usepackage{lipsum}

\begin{document}
\lipsum[1]

\begin{table*}[b]
\footnotesize
\hrulefill
\caption{An Example of a Table}
\label{table_example}
\begin{center}
\begin{tabular}{|c||c|}
\hline
One & Two\\
\hline
Three & Four\\
\hline
\end{tabular}
\end{center}
\end{table*}
\end{document}

Output:

enter image description here

PS: Don't know if it is what you need, because I didn't understood the way you tried to use table inside figure

koleygr
  • 20,105
  • 1
    Yes, but probably the OP is using figure* because the document is formatted two-column, and this will not work there. – cfr Mar 04 '18 at 00:31
  • It seems that it does not make any change if I delete \footnotesize. However, I I want to control the size of it? I mean if I want everything at the bottom of the page to be very small? (That is why I use figure) – Denny Mar 04 '18 at 00:38
  • 1
    I had not the documentclass. I tested using \tiny and works... Do you want to control caption size too?.Also See @cfr's comment. I am working on the real MWE now – koleygr Mar 04 '18 at 00:40
  • 1
    @Denny You can't put it at the bottom if it is a float with the class settings you're using because double-column floats cannot use b. – cfr Mar 04 '18 at 00:41
  • @Denny my code doesn't really work with your documentclass (I could not do it and @cfr is right). Also conference seems to be an invalid option in my tests... – koleygr Mar 04 '18 at 00:50