thx.,
matt.
--------------------------------------------------------------------
\documentclass[10pt,dvips,twocolumn]{article}
\topmargin -0.50in
\textheight 8.5in
\textwidth 6.25in
\oddsidemargin -0.010in
%\oddsidemargin -0.10in
%\evensidemargin 0.75in
\usepackage{times}
\usepackage{courier}
\usepackage{epsfig}
\usepackage{psfig,latexsym}
\usepackage{ulem}
\usepackage{graphicx}
\usepackage{subfigure}
\usepackage{multirow}
\usepackage{graphicx}
\usepackage{amsmath}
\usepackage{amsfonts}
\usepackage{amssymb}
\usepackage{algorithm}
\usepackage{algpseudocode}
\usepackage{ccaption}
\usepackage{hyphenat}
%\usepackage{fancyheadings}
\usepackage{fancyhdr}
\usepackage{url}
\usepackage{array}
\usepackage{setspace}
\usepackage{enumitem}
\usepackage{booktabs}
\usepackage{titling}
\usepackage{threeparttable}
%\usepackage{tabls}
\begin{document}
\begin{tabular}{ >{\centering}p{0.8in} | >{\centering}p{0.4in} |
>{\centering}p{0.4in} | >{\centering\arraybackslash}p{0.4in} }
\toprule
&\multicolumn{3}{c}{daytime} \\
&first&second&third \\ \midrule
monday&1pm&2pm&3pm\\
tuesday&2pm&3pm&4pm\\
wednesday&1pm&2pm&3pm\\\bottomrule
\end{tabular}
\end{document}
> The bug with the included code is: the vertical lines are broken
> at their intersection with the horizontal lines. I read somewhere
> this is fixed with the array package. But, when I used the array
> package, the problem was not fixed. Could some please inform me
> about the correct solution.
>
> thx.,
> matt.
>
> --------------------------------------------------------------------
>
> \documentclass[10pt,dvips,twocolumn]{article}
> ...
> \usepackage{booktabs}
> \usepackage{titling}
> \usepackage{threeparttable}
> %\usepackage{tabls}
> \begin{document}
> \begin{tabular}{ >{\centering}p{0.8in} | >{\centering}p{0.4in} |
> >{\centering}p{0.4in} | >{\centering\arraybackslash}p{0.4in} }
> \toprule
> &\multicolumn{3}{c}{daytime} \\
> &first&second&third \\ \midrule
> monday&1pm&2pm&3pm\\
> tuesday&2pm&3pm&4pm\\
> wednesday&1pm&2pm&3pm\\\bottomrule
> \end{tabular}
> \end{document}
The booktabs package, which provides \toprule, \midrule
and \bottomrule, is not compatible with vertical rules.
His author thinks that vertical rules must never be used
in tables; he's not the only one. :)
Ciao
Enrico
Besides, tabls is not compatible with the array package.
Example with tabu instead: (comparison with you example)
\documentclass[10pt,twocolumn]{article}
\topmargin -0.50in
\textheight 8.5in
\textwidth 6.25in
\oddsidemargin -0.010in
\usepackage{array}
\usepackage{booktabs}
\usepackage{tabu}
% ------------------------------------------------------------
\begin{document}
{% (group to make \tabulinesep local)
\tabulinesep=1mm
\begin{tabu}spread 0pt {X[2c]|X[c]|X[c]|X[c]} \tabucline[\heavyrulewidth]-
&\multicolumn3c{daytime} \\
&first &second &third \\ \tabucline-
monday &1pm &2pm &3pm \\
tuesday &2pm &3pm &4pm \\
wednesday &1pm &2pm &3pm \\
\tabucline[\heavyrulewidth]-
\end{tabu}
}
\vskip.5cm
\hrule
\vskip.5cm
\begin{tabular}{ >{\centering}p{0.8in} | >{\centering}p{0.4in} |
>{\centering}p{0.4in} | >{\centering\arraybackslash}p{0.4in} }
\toprule
&\multicolumn{3}{c}{daytime} \\
&first&second&third \\ \midrule
monday&1pm&2pm&3pm\\
tuesday&2pm&3pm&4pm\\
wednesday&1pm&2pm&3pm\\\bottomrule
\end{tabular}
\end{document}
% -------------------------------------
thanks,
matias
??? I thought (and tested) tabu worked with footnotes, and i compiled
some examples with threeparttable successfully...
Please, first check your version against CTAN (current
version is 2.5 2011/02/19
http://dante.ctan.org/tex-archive/macros/latex/contrib/tabu/tabu.pdf)
Then please, let me see a minimal example if something doesn't work
properly.
Regards.
tabu claims to support regular (page) footnotes.
I think I can update threeparttable to work with tabu easily.
In your document try a quick test, where you have
\begin{threepartable}
\begin{tabu}...
try instead
\begin{threepartable}
\makeatletter
\TPT@hookin{tabu}%
\begin{tabu}...
--
Donald Arseneau as...@triumf.ca
M.
I would be grateful to have a minimal example please.
Yours sincerely.
\begin{figure}[h]
\centering
{%\fontsize{\figcapsize}{\figcapsize}\selectfont
\tabulinesep=1mm
\centering
\subfigure[Subfigure title.]
{
{% (group to make \tabulinesep local)
\begin{threeparttable}
\makeatletter
\TPT@hookin{tabu}%
\tabulinesep=1mm
\begin{tabu}spread 0pt {X[2c]|X[c]|X[c]|X[c]}
\tabucline[\heavyrulewidth]-
&\multicolumn3c{daytime} \\
&first &second &third \\
\tabucline-
monday &1pm &2pm &3pm \\
tuesday &2pm &3pm &4pm \\
wednesday &1pm\tnote{1} &2pm &3pm \\
\tabucline[\heavyrulewidth]-
\end{tabu}
\begin{tablenotes}
\item [1] This is the footnote.
\end{tablenotes}
\end{threeparttable}
}
}
}
\end{figure}
\end{document}
This will be fixed in the next release. Coming soon: I fight against
the leaders...
I made the patch for \TPT@hookin but i'm not used to the dvips option.
I usually compile under pdfTeX. With hyperref and
[referable]{threeparttablex} support for linked table notes will be
provided for tabu and longtabu.
Ensuring compatibility with other package is a long job...
Best regards.