[Tex/LaTex] Caption above figure

floats

I would like to show a caption above a figure.
I looked around for some solutions, but I still can not achieve my goal.

This is my code:

   \documentclass[12]{article}

\usepackage{fullpage}
\usepackage[nottoc]{tocbibind}
\usepackage{url}
\usepackage{xpatch} 
\usepackage{graphicx}
\usepackage{subcaption}
\usepackage{enumerate}
\usepackage{amssymb}
\usepackage{amsmath}
\usepackage{amsfonts}
\usepackage{gensymb}
\usepackage{caption}
\usepackage[round]{natbib}
\usepackage{pdfpages}
\usepackage{geometry}
\usepackage{wrapfig}
\usepackage{floatrow}
\usepackage{float}
\usepackage{hyperref}
\hypersetup{
    colorlinks,
    citecolor=black,
    filecolor=black,
    linkcolor=black,
    urlcolor=black
}

\begin{document}

\begin{titlepage}
.
.
.
\end{titlepage}
.
.
.
 \begin{table} [H]
                \caption{Summary of the Proctor compaction test results.}
                 \includegraphics[scale=0.80]{Excel_table.png}
    \end{table}

\end {document}

However, the caption still displays below the graphics. Can someone please help me?

Thank you!

Best Answer

binary chop on your package list soon shows that this is a feature of floatrow if you do not include that package, the caption is above the image.

\documentclass[12]{article}


\usepackage{graphicx}




%\usepackage{floatrow}
\usepackage{float}


\begin{document}


 \begin{table} [H]
                \caption{Summary of the Proctor compaction test results.}
                 \includegraphics[scale=0.80]{example-image}
    \end{table}

\end {document}
Related Question