[問題] 用了\label,但是圖片還是沒有編號?

看板LaTeX作者 (小肥肥)時間14年前 (2010/03/11 17:42), 編輯推噓2(203)
留言5則, 3人參與, 最新討論串1/1
如題,我用的是ubuntu下的texmaker,打開簡報主題的latex.... 自己編譯過很多次了。但是我要的Figure1:沒有出現,一直都是Figure: 擷取一小段檔案如下: \documentclass[fleqn]{beamer} \usetheme{Bergen} %檔案佈景 \usepackage{tabularx,graphicx,theorem,CJK} \renewcommand{\thefigure}{\arabic{figure}} \begin{document} \section{Results} \begin{frame} \frametitle{Results} \begin{figure} \scalebox{1.2}{\includegraphics[width=0.8\textwidth]{fig1}} \caption{ \scriptsize{ (a) Number of BMC cells}} \label{fig} \end{figure} \end{frame} \end{document} 請問是那個不分出了問題嗎? -- ※ 發信站: 批踢踢實業坊(ptt.cc) ◆ From: 203.71.94.14

03/11 17:45, , 1F
\renewcommand
03/11 17:45, 1F

03/11 19:12, , 2F
其實去掉了\renewcommand這一行,問題依然存在~
03/11 19:12, 2F

03/12 08:53, , 3F
\setbeamertemplate{caption}[numbered] %放第二行
03/12 08:53, 3F

03/12 09:40, , 4F
可以了~謝謝樓上
03/12 09:40, 4F

03/12 09:43, , 5F
剛剛發現只要是在標頭,不管第三行四五行都沒問題~
03/12 09:43, 5F
文章代碼(AID): #1BcBiFBp (LaTeX)