[Tex/LaTex] Caption position “above left caption”

captionstablestabularx

I need to set the caption of a table to be above left as shown below, not like this.
case
Target

"the answer for this question didn't work".

\documentclass[review]{elsarticle}

 \usepackage{caption}

 \usepackage{tabularx}
 \usepackage{rotating}
 \usepackage{array}
 \usepackage{booktabs}
 \usepackage{ltablex,booktabs}
 \usepackage{lineno,hyperref}
 \begin{table*}[hbt]

 \setlength{\tabcolsep}{1.5pc}

 \newlength{\digitwidth} \settowidth{\digitwidth}{\rm 0}
 \catcode`?=\active \def?{\kern\digitwidth}
 \caption{Biologically treated effluents (mg/l)}
 \label{tab:effluents}
 \begin{tabular*}{\textwidth}{@{}l@{\extracolsep{\fill}}rrrr}
 \hline
              & \multicolumn{2}{l}{Pilot plant} 
              & \multicolumn{2}{l}{Full scale plant} \\
 \cline{2-3} \cline{4-5}
              & \multicolumn{1}{r}{Influent} 
              & \multicolumn{1}{r}{Effluent} 
              & \multicolumn{1}{r}{Influent} 
              & \multicolumn{1}{r}{Effluent}         \\
 \hline
 Total cyanide    & $ 6.5$ & $0.35$ & $  2.0$ & $  0.30$ \\
 Method-C cyanide & $ 4.1$ & $0.05$ &         & $  0.02$ \\
 Thiocyanide      & $60.0$ & $1.0?$ & $ 50.0$ & $ <0.10$ \\
 Ammonia          & $ 6.0$ & $0.50$ &         & $  0.10$ \\
 Copper           & $ 1.0$ & $0.04$ & $  1.0$ & $  0.05$ \\
 Suspended solids &        &        &         & $<10.0?$ \\
 \hline
 \multicolumn{5}{@{}p{120mm}}{Reprinted from: G.M. Ritcey,
                         Tailings Management,
                         Elsevier, Amsterdam, 1989, p. 635.}
 \end{tabular*}
 \end{table*}
  \end{document}

Best Answer

The key here is changing the displayed caption to Biologically treated effluents (mg/l)\hfill\mbox{}, adding the \hfill.

\documentclass[review]{elsarticle}
\usepackage[margin=1cm]{geometry}
\usepackage{caption}

\usepackage{tabularx}
\usepackage{rotating}
\usepackage{array}
\usepackage{booktabs}
\usepackage{ltablex,booktabs}
\usepackage{lineno,hyperref}
\begin{document}
\listoftables
\begin{table*}[hbt]

 \setlength{\tabcolsep}{1.5pc}

 \newlength{\digitwidth} \settowidth{\digitwidth}{\rm 0}
 \catcode`?=\active \def?{\kern\digitwidth}
 \caption[Biologically treated effluents (mg/l)]{%
  Biologically treated effluents (mg/l)\hfill\mbox{}}
 \label{tab:effluents}
 \begin{tabular*}{\textwidth}{@{}l@{\extracolsep{\fill}}rrrr}
 \hline
              & \multicolumn{2}{l}{Pilot plant} 
              & \multicolumn{2}{l}{Full scale plant} \\
 \cline{2-3} \cline{4-5}
              & \multicolumn{1}{r}{Influent} 
              & \multicolumn{1}{r}{Effluent} 
              & \multicolumn{1}{r}{Influent} 
              & \multicolumn{1}{r}{Effluent}         \\
 \hline
 Total cyanide    & $ 6.5$ & $0.35$ & $  2.0$ & $  0.30$ \\
 Method-C cyanide & $ 4.1$ & $0.05$ &         & $  0.02$ \\
 Thiocyanide      & $60.0$ & $1.0?$ & $ 50.0$ & $ <0.10$ \\
 Ammonia          & $ 6.0$ & $0.50$ &         & $  0.10$ \\
 Copper           & $ 1.0$ & $0.04$ & $  1.0$ & $  0.05$ \\
 Suspended solids &        &        &         & $<10.0?$ \\
 \hline
 \multicolumn{5}{@{}p{120mm}}{Reprinted from: G.M. Ritcey,
                         Tailings Management,
                         Elsevier, Amsterdam, 1989, p. 635.}
 \end{tabular*}
 \end{table*}
\end{document}

enter image description here