[Tex/LaTex] remove colon from table name


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:

    \usepackage[left=2cm, right=2cm]{geometry}




Best Answer

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


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.