\documentclass[12pt]{report}
\usepackage{enumerate}
\usepackage{tikz}
\usetikzlibrary{intersections}
\usepackage{float}
\usepackage{amsmath}
\usepackage{pgfplots}
\usetikzlibrary{calc}
\usepackage{graphicx}
\usepackage[space]{grffile}
\usepackage{filecontents}
\usepackage{etoolbox}
\usepackage{lmodern}
\usepackage[T1]{fontenc}
\usepackage{amssymb}
\usepackage{subcaption}
\usepackage{lipsum}
\usepackage{booktabs}
\begin{document}
\begin{table} [hbp!]
\begin{center}
\begin{tabular}{l |l | c }
\textbf{Sharpe Index} & \textbf{Values} \\
\hline \hline
$\mu$ &0.01839318\\
$\sigma$& 0.002537097\\
Max & 0.02531137\\
Min & 0.01269837 \\
Median & 0.01829877\\
\end{tabular}
\caption{Statistic Moments}
\end{center}
\end{table}
\begin{figure}
\end{document}
答案1
您需要将其添加\captionsetup{justification=raggedright,singlelinecheck=false}
到您的序言中并\begin{center}
从\end{center}
您的代码中删除。
\documentclass[12pt]{report}
\usepackage{enumerate}
\usepackage{tikz}
\usetikzlibrary{intersections}
\usepackage{float}
\usepackage{amsmath}
\usepackage{pgfplots}
\usetikzlibrary{calc}
\usepackage{graphicx}
\usepackage[space]{grffile}
\usepackage{filecontents}
\usepackage{etoolbox}
\usepackage{lmodern}
\usepackage[T1]{fontenc}
\usepackage{amssymb}
\usepackage{subcaption}
\usepackage{lipsum}
\usepackage{booktabs}
\captionsetup{justification=raggedright,singlelinecheck=false}
\begin{document}
\begin{table} [hbp!]
\begin{tabular}{l |l | c }
\textbf{Sharpe Index} & \textbf{Values} \\
\hline \hline
$\mu$ &0.01839318\\
$\sigma$& 0.002537097\\
Max & 0.02531137\\
Min & 0.01269837 \\
Median & 0.01829877\\
\end{tabular}
\caption{Statistic Moments}
\end{table}
\end{document}