[Tex/LaTex] remove colon from table name

captionslongtabletables

I'm using two-column article document class. Long table Name is displayed in the following format:

Table 1: table caption goes here.

But I want to change in this way:

Table 1 table caption goes here

on the other words, I want to remove colon (:).

How can I do it?

I have to say that I tried the following topic: How to remove colon(:) on longtable suffix caption
and I place that code below documentclass[a4paper]{article} and some \usepakage...
but it did not work out.

My template is as follows:

    \documentclass[a4paper]{article}
    \usepackage{graphicx}
    \usepackage[cmex10]{amsmath}
    \usepackage[left=2cm, right=2cm]{geometry}
    \begin{document}

    \title{Title}
    \author{author}
    \linespread{1.6}
    \renewenvironment{abstract}{%
      \noindent\bfseries\abstractname:\normalfont}{}

    \maketitle
    \begin{abstract}
    \end{abstract}
    \section{Introduction}

    \end{document}

Best Answer

I suggest you load the package caption with the following option:

\usepackage{caption}
\captionsetup[table]{labelsep=space}

If you want this setting, i.e., a space instead of a colon, to apply to figure environments as well, you'd just remove the [table] option from the \captionsetup command.

A separate issue: To get the caption to print above the body of the float, all you need to do is to specify the caption (and its label, if any) after the \begin{table/figure} command but before starting a tabular environment and/or before including some external graphics file.