0

Please I am trying to prepare a manuscript using a journal template. I have the code below:

Full Text

    \documentclass{cta-author}

\newtheorem{theorem}{Theorem}{}
\newtheorem{corollary}{Corollary}{}
\newtheorem{remark}{Remark}{}

\usepackage[utf8]{inputenc}
\usepackage[english]{babel}
\usepackage{tabularx}
\usepackage{array}
\usepackage{url}
\usepackage{float}
\usepackage{longtable}
\usepackage{natbib}
\usepackage[]{changes}
\usepackage{amsmath}
\usepackage{lipsum}
\usepackage{booktabs}
\usepackage{amssymb}
\usepackage{multirow}
\usepackage{comment}
\usepackage[]{changes}
\usepackage{wrapfig}
\begin{document}

\begin{table*}[hbt!]
\processtable{Heading\label{tab8}}
{\begin{tabular}{p{0.1\textwidth} p{0.2\textwidth} p{0.1\textwidth}}\toprule
Heading1  &Heading 2  &  Heading3 \\
\midrule
000000000000000
000000000000000000
00000000000 &
11111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111
  & 00000000000000000000000000  \\
\botrule
%\bottomrule
\end{tabular}}{}
\end{table*}
%vfill\pagebreak
\end{document}

On display, the botrule gets far longer than the top and midrule. I am not sure if the botrule is adjustable or something. I had expected all to be equal. Will appreciate any help.

15
  • 1
    As always on the site, please provide a full (but minimal) self containd example instead of sniplets. Here we do not know your documentclass or preamble, both things that might be important. So please provide an example others can copy and test as is. And where does \processtable come from?
    – daleif
    Mar 13, 2020 at 11:21
  • \processtable is preferred by the journal instead of \caption. I also saw that they prefer \botrule instead of the usual \bottomrule. The example above is a working example.
    – ibiangalex
    Mar 13, 2020 at 11:28
  • 1
    note \begin{table*}[hbt!] seems very wrong, table* does not support h or b so this is the same as [t] so the only affect is to stop p, if you allowed p you presumably wouldn't get the warning "Text page 8 contains only floats." so wouldn't need the silence package to stop being warned about that. Mar 13, 2020 at 11:31
  • 1
    @ibiangalex sure but we can only comment on the code shown, you haven't provided a test file that produces the actual issue you are asking about. But presumably the floats that did generate the warning had a similar option (you would never get that warning normally as unless you disable the usual float positioning it can not happen) Mar 13, 2020 at 11:38
  • 1
    This is not a complete example, and where do one get that class? it is not a known class.
    – daleif
    Mar 13, 2020 at 11:42

1 Answer 1

3

The class implements its own version of \toprule and \midrule plus \botrule. When you load booktabs its version of \toprule and \midrule are now used and they are defined differently.

Remove booktabs and the rule have the same length

You must log in to answer this question.

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