在 Latex 中引用图形

Referencing Figures in Latex

我目前正在用 希腊语 写我的论文,每当我尝试引用一个数字时,我都会在我的文本中得到以下内容:

[;;]

这是我写的代码:

\begin{figure}[h]
\label{ fig:image1}
\includegraphics[width=1\textwidth]{image1}
\caption{Απεικόνιση τρόπου κληρονομικότητας}
\end{figure}

我通过写作来称呼裁判:{\ref{fig:{image1}}

我该如何解决这个问题?

latex 中有一个简单的规则 \caption 应该总是在 \label [1] 之前。所以你写的代码变成:

\begin{figure}[h]
\includegraphics[width=1\textwidth]{image1}
\caption{Απεικόνιση τρόπου κληρονομικότητας}
\label{fig:image1}
\end{figure}

此外,您引用的图像不正确。 您可以使用 \ref{fig:image1} 来引用它以获得正确的引用。

这会很好用,因为您用于 \label 的密钥就是您用于 \ref 的密钥。

参考资料 [1] https://tex.stackexchange.com/questions/32325/why-does-an-environments-label-have-to-appear-after-the-caption