LaTeX 自定义图题:改变图片编号、标题文字
在 LaTeX 写作中,默认的图片标题是这样的:
代码:
% in preamble
\usepackage{graphicx}
% in main body
\begin{figure}[t]
\centering
\includegraphics[width=.8\textwidth]{theshy.jpg}
\caption{This is TheShy, a famous league of legends pro-player.}
\label{fig:theshy}
\end{figure}
....
效果:
改变图题文字
如果我们想改变Figure 1
,改如何做呢?
代码:
\renewcommand{\figurename}{Fig.}
效果:
取消图题文字
代码:
\usepackage{caption}
...
\caption*{...} % 注意加星号
...