需要为图片添加标题。用这种明显的方式根本行不通。LaTex

需要为图片添加标题。用这种明显的方式根本行不通。LaTex
\headerbox {Anomaly Detection}{name=problem,column=0,below=boxname1}{
 
 \textbf{Anomaly detection} is a subset of data processing and also the study of sorting and classifying normal data from abnormal
data.
\\ \textbf{An anomaly}(also known as an outlier) is anything unusual, odd, abnormal, strange, or
difficult to categorize. In statistics, this term is a data point that is noticeably different
from previous observations. An outlier may be the \textbf{consequence of experimental mistake}
.An outlier might indicate an intriguing opportunity
but can also result in significant issues with statistical analysis

\centering  \includegraphics[width=0.55\textwidth]{images/anomaly.png}


}

我试过:

\headerbox {Anomaly Detection}{name=problem,column=0,below=boxname1}{
 
 \textbf{Anomaly detection} is a subset of data processing and also the study of sorting and classifying normal data from abnormal
data.
\\ \textbf{An anomaly}(also known as an outlier) is anything unusual, odd, abnormal, strange, or
difficult to categorize. In statistics, this term is a data point that is noticeably different
from previous observations. An outlier may be the \textbf{consequence of experimental mistake}
.An outlier might indicate an intriguing opportunity
but can also result in significant issues with statistical analysis

\begin{figure}[h]
\centering
\includegraphics[width=0.55\textwidth]{images/anomaly.png}
\caption{Figure 1: Anomaly Detection Process Flow}
\label{fig:anomaly_detection}
\end{figure}


}

和许多其他方法。它只是什么也不做:我想要我想添加红色圆圈内的红色文字

我看不到图 1:异常

答案1

添加\usepackage{caption}到序言中并用于\captionof{figure}{<text>}制作图形标题。

A

\headerbox{Problem}{name=problem,column=0,row=0}{
 \textbf{Anomaly detection} is a subset of data processing and also the study of sorting and classifying normal data from abnormal  data.   \\ 
 \textbf{An anomaly}(also known as an outlier) is anything unusual, odd, abnormal, strange, or
difficult to categorize. In statistics, this term is a data point that is noticeably different
from previous observations. An outlier may be the \textbf{consequence of experimental mistake}. An outlier might indicate an intriguing opportunity but can also result in significant issues with statistical analysis.

\begin{center}
\includegraphics[width=0.55\linewidth]{example-image}
\captionof{figure}{Anomaly Detection Process Flow}\label{fig:anomaly_detection}
\end{center}    
}

环境center会在图形前后添加一些空间。

(避免将\begin{figure}[h]图像放在那里。这根本没有必要。我认为您不希望图像在海报上漂浮。)

相关内容