1

I'm using the following code:

\documentclass[10pt, conference, letterpaper]{IEEEtran}
\begin{document}
        \begin{table}
            \begin{tabular}{|c|c|c|c|}
                \hline 
                Algorithm  & Space  & Query / Update time & Some other metric   \tabularnewline
                \hline 
                \hline 
                A  & 1  & 1  & 11  \tabularnewline
                \hline 
            \end{tabular}   
            \caption{Why like this?}
        \end{table}
    \end{document}

and am getting the following result:

enter image description here

Notice that the top of "TABLE I" intersects with the above \hline.

How can I make the "TABLE I" go down a bit so it won't intersect with the table?

3
  • 2
    Usually a table caption has to go above the table. Do you really have to put it below?
    – Bernard
    Jan 31, 2017 at 19:54
  • @Bernard - I prefer so, yes. Haven't noticed a problem with this when using different document classes.
    – R B
    Jan 31, 2017 at 19:55
  • 3
    The class is designed to have table captions above tables.
    – Bernard
    Jan 31, 2017 at 20:35

2 Answers 2

3

Use

\makeatletter
\def\@IEEEtablestring{figure}
\makeatother

In this way you are using the same definition of spaces for tables as for figures.

0
0

You simply have to put \usepackage{subcaption} after the \documentclass... to produce this:

\documentclass[10pt, conference, a4paper]{IEEEtran}
\usepackage{subcaption}
\begin{document}
%...

The result: enter image description here

You must log in to answer this question.

Not the answer you're looking for? Browse other questions tagged .