There's a No suitable columns
warning in my tabulary
table.
I googled a lot, but it seems former examples of this warning were triggered by other things (e.g. cases
) in the table (e.g. this question).
However, my table is very simple:
\begin{table*}
\centering
\caption{Experiment Results}
\begin{threeparttable}
\begin{tabulary}{.5\linewidth}{l|c||l|c}
\toprule
A & B & C & D \\
\midrule
E & F & G & H \\
I & J & K & L \\
& & M & N\\
\bottomrule
\end{tabulary}
\begin{tablenotes}
\item [*] XXX
\item [*] YYY
\end{tablenotes}
\end{threeparttable}
\label{tab:res}
\end{table*}
Anything I can do to solve such warning?
Working exmaple:
\documentclass{ieeeaccess}
\usepackage{cite}
\usepackage{amsmath,amssymb,amsfonts}
\usepackage{algorithmic}
\usepackage{graphicx}
\usepackage{textcomp}
\usepackage{subcaption}
\usepackage{threeparttable}
\usepackage{makecell}
\usepackage{booktabs}
\usepackage{tabulary}
\begin{document}
\history{Date of publication xxxx 00, 0000, date of current version xxxx 00, 0000.}
\doi{10.1109/ACCESS.2017.DOI}
\title{FooFooFoo}
\author{Foo}
\markboth
{Author \headeretal: Preparation of Papers for IEEE TRANSACTIONS and JOURNALS}
{Author \headeretal: Preparation of Papers for IEEE TRANSACTIONS and JOURNALS}
\corresp{Corresponding author: First A. Author (e-mail: author@ boulder.nist.gov).}
\begin{abstract}
foo
\end{abstract}
\begin{keywords}
foo
\end{keywords}
\titlepgskip=-15pt
\maketitle
\begin{table*}
\centering
\caption{Experiment Results}
\begin{threeparttable}
\begin{tabulary}{.5\linewidth}{l|c||l|c}
\toprule
AAAAAAA & BBBBBBBB & CCCCCC & DDDDDDDD \\
\midrule
Eaaaa & Faaaa & Gaaaa & Haaaaa \\
Iaa & aaaaaaJ & Kaaaaa & Laaaaa \\
& & Maaaaaaa & Naaaaaaaa\\
\bottomrule
\end{tabulary}
\begin{tablenotes}
\item [*] XXX
\item [*] YYY
\end{tablenotes}
\end{threeparttable}
\label{tab:res}
\end{table*}
\EOD
\end{document}
Best Answer
tabulary
determines the widths ofL
,C
,R
andJ
columns to achieve the specified table width. If none of these special column types is used in the table, the package can do nothing useful and gives theno suitable columns
warning.Probably you want to change
{l|c||l|c}
to{L|C||L|C}