我正在使用 Overleaf(在线 Latex 编辑器),添加新图时标题出现问题。它会自动生成图号,但写得不好。
这是我添加新图形时的代码:
\begin{figure}[h!]
\centering
\includegraphics[scale=0.29]{Git_Dashboard.PNG}
\caption{Dashboard du projet Serious Game sur InnerSource}
\end{figure}
这是输出:
图 1.:InnerSource 上的 Serious Game 项目仪表板
我有Figure 1.:
,并且我想要得到Figure 1:
,或者只是Figure 1
。
我该如何解决这个问题?
这是一个最小的例子:
\documentclass[]{interact}
\usepackage{epstopdf}% To incorporate .eps illustrations using PDFLaTeX, etc.
\usepackage{subfigure}% Support for small, `sub' figures and tables
\usepackage[numbers,sort&compress,merge]{natbib}% Citation support using natbib.sty
\bibpunct[, ]{(}{)}{,}{n}{,}{,}% Citation support using natbib.sty
\renewcommand\bibfont{\fontsize{10}{12}\selectfont}% Bibliography support using natbib.sty
\renewcommand\citenumfont[1]{\textit{#1}}% Citation numbers in italic font using natbib.sty
\renewcommand\bibnumfmt[1]{(#1)}% Parentheses enclose ref. numbers in list using natbib.sty
\theoremstyle{plain}% Theorem-like structures
\newtheorem{theorem}{Theorem}[section]
\newtheorem{lemma}[theorem]{Lemma}
\newtheorem{corollary}[theorem]{Corollary}
\newtheorem{proposition}[theorem]{Proposition}
\theoremstyle{definition}
\newtheorem{definition}[theorem]{Definition}
\newtheorem{example}[theorem]{Example}
\theoremstyle{remark}
\newtheorem{remark}{Remark}
\newtheorem{notation}{Notation}
\usepackage[utf8]{inputenc}
\usepackage[T1]{fontenc}
\usepackage[francais]{babel}
\usepackage{xcolor}
\usepackage{subfig}
\usepackage{listings}
\begin{document}
\begin{figure}[!ht]
\centering
\includegraphics[scale=0.29]{Git_Dashboard.PNG}
\caption{Dashboard du projet Serious Game sur InnerSource}
\end{figure}
\end{document}