I have a long table with a height of 0.75 page height. I want all columns be left aligned. I tried this:
\documentclass{cta-author}
\usepackage{booktabs}
\usepackage{subcaption}
\usepackage{threeparttable}
\usepackage{pifont}
\usepackage{hyperref}
\begin{document}
\begin{table}[htp]
\begin{threeparttable}
\caption{My table}\label{tab:1}
\begin{tiny}
\begin{tabular}[width=\linewidth]{p{0.12\linewidth}p{0.3\linewidth}p{0.06\linewidth}p{0.07\linewidth}p{0.09\linewidth}p{0.09\linewidth}}
\toprule
Paper&method&p1&p2&p3&p4\\
\midrule
\cite{c1} &method1 method1 method 1&\checkmark & \checkmark&\checkmark &\ding{55}\\
\rule{0pt}{4ex}
\cite{c2} &method2&\checkmark &\checkmark &\ding{55}&\ding{55}\\
\rule{0pt}{4ex}
\cite{c3}&method3 method3 method3 method3 &\ding{55} & \checkmark &\checkmark &\ding{55}\\
\rule{0pt}{4ex}
\midrule
my experiment test 123&method 4 method4&\checkmark &\ding{55} & \checkmark &\checkmark\\
\bottomrule
\end{tabular}
\begin{tablenotes}
\item *note
\end{tablenotes}
\end{tiny}
\end{threeparttable}
\end{table}
\end{document}
But using this all the columns are left aligned except the first column which contains paper citations. When I try using lp
instead of p
( \begin{tabular}[width=\linewidth]{lp{0.12\linewidth}lp{0.3\linewidth}lp{0.06\linewidth}lp{0.07\linewidth}lp{0.09\linewidth}lp{0.09\linewidth}}
) although all cells get left aligned correctly, but my table width gets more than one column and violates to the second column context.
How can I have a one column width- left aligned threeparttable in a twoColumn page?
I am using IET paper template which is IET-Submission-DoubleColumn-Template
.
This is my first column which has problem (all other columns are left aligned):
I used Foxit gridlines here, but in TexWorks pdf output is the same.
\rule{0pt}{4ex}
instructions at the beginning of various rows supposed to accomplish? Separately, isn't\begin{tabular}[width=\linewidth]{...}
generating quite a few error and warning messages?\rule{0pt}{4ex}
to add small vertical space between the rows. I don't receive any error but this warning at the header row of the table(Paper&method&p1&p2&p3&p4\`):
Underfull \hbox (badness 10000) in paragraph at lines 533--533 []|\T1/ptm/m/n/6 `\rule{0pt}{4ex}
are on lines by themselves that aren't terminated with%
(the comment symbol); the failure to add the comment symbols instructs LaTeX to insert a space in all three instances.