参考乳胶中的数字

gst*_*ata 1 latex reference figures

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

[;;]

这是我写的代码:

\begin{figure}[h]
\label{ fig:image1}
\includegraphics[width=1\textwidth]{image1}
\caption{?????????? ?????? ????????????????}
\end{figure}
Run Code Online (Sandbox Code Playgroud)

我通过写:{\ref{fig:{image1}}.

我该如何解决?

Moh*_*hit 6

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

\begin{figure}[h]
\includegraphics[width=1\textwidth]{image1}
\caption{?????????? ?????? ????????????????}
\label{fig:image1}
\end{figure}
Run Code Online (Sandbox Code Playgroud)

另外,您错误地引用了图像。您可以参考它\ref{fig:image1}来获得正确的参考。

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

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