Graphics, Figures & TablesNewbie Problem with Single Column Table within Double Column

Information and discussion about graphics, figures & tables in LaTeX documents.
Post Reply
Blue Ice
Posts: 8
Joined: Sat Apr 07, 2007 10:25 pm

Newbie Problem with Single Column Table within Double Column

Post by Blue Ice »

Hi all,

I have been having a lot of trouble whilst attempting to place a table which is the width of the page within a two column document.

SYSTEM: Vista 64.
Texnic Center: 1.0 Stable
MikTex: v2.7

I am using the IEEE journal template with the following packages:

Code: Select all

\documentclass[journal]{IEEEtran}
\usepackage{color}
\usepackage{colortbl}
\usepackage{fixltx2e}
\usepackage{array}
\usepackage{mdwmath}
\usepackage{mdwtab}

\usepackage{fixltx2e} (It was stated this might cause problems)

%\usepackage{stfloats}
I tried using the stfloats package to solve the problem which allowed me to use \begin{table*} command to insert single column tables within double column formats. But all my figures within the document immediately used two columns up leaving substantial white space.

Here is an example of a table that I am trying to insert into the text:

Code: Select all

\begin{table}[htbp]
\begin{center}
\begin{minipage}{\textwidth}
\begin{tabular}{|l|c|c|c|c|c|c|}
\hline
Body of table here....
\hline
\end{tabular}
\label{Processes2}
\end{center}
\end{table}
I have also had a problem centering tables it doesnt matter if I use \begin{center} or \centering it always begins flush against the left side of the document.

ANY assistance would be greatly appreciated.

Recommended reading 2024:

LaTeXguide.org • LaTeX-Cookbook.net • TikZ.org
LaTeX Beginner's Guide LaTeX Cookbook LaTeX TikZ graphics TikZによるLaTeXグラフィックス
User avatar
localghost
Site Moderator
Posts: 9201
Joined: Fri Feb 02, 2007 12:06 pm

Newbie Problem with Single Column Table within Double Column

Post by localghost »

The best is to read carefully the ieeetran manual (Section X - Floating structures, p. 8ff) and follow the given instructions. If all that doesn't work, build a minimal working example (MWE) that shows the problems in a comprehensible manner.


Best regards
Thorsten¹
How to make a "Minimal Example"
Board Rules
Avoidable Mistakes[/size]

¹ System: openSUSE 42.2 (Linux 4.4.52), TeX Live 2016 (vanilla), TeXworks 0.6.1
Blue Ice
Posts: 8
Joined: Sat Apr 07, 2007 10:25 pm

Re: Newbie Problem with Single Column Table within Double Column

Post by Blue Ice »

Dear Thorsten,

Thank you for the advice, I will get over there quickly to check that out!

I will let you know how it went and many thanks.
Blue Ice
Posts: 8
Joined: Sat Apr 07, 2007 10:25 pm

Re: Newbie Problem with Single Column Table within Double Column

Post by Blue Ice »

Hi Thorsten,

I had a good look through the documentation as suggested and finally found a solution which I was suprised with.

I simply commented out the both of the IEEE recommended packages,

stfloats and fixltx2e, interestingly it was the later package that caused all the problems!

Thought this might be of help to feedback incase others encouter a similiar problem. Many thanks for your help,

Kind regards, Ken.
Post Reply