自定义前缀
\NeedsTeXFormat{LaTeX2e}[2007/10/19]
\ProvidesClass{cpbtex}[2014/11/12 v1.0 LaTeX Template for Chinese Physics B]
\LoadClass[a4paper]{article}[2007/10/19]
\RequirePackage{amsmath,amsfonts,amssymb,bm,CJK,ccmap}
\RequirePackage{graphics,epstopdf,ifpdf}
\RequirePackage{mathrsfs,textcomp,multicol}
\RequirePackage{indentfirst,fancyhdr,upgreek}
\RequirePackage[columnwise]{lineno}
\RequirePackage[compress,nospace]{cite}
\RequirePackage[bookmarksnumbered=true,bookmarksopen=true,colorlinks=true,pdfborder=001,
urlcolor=blue,linkcolor=blue,anchorcolor=blue,citecolor=blue]{hyperref}
\newcommand{\ucite}[1]{$^{\text{\!\cite{#1}}}$} % reference citation
%================================== page setting =================================================%
\renewcommand{\baselinestretch}{1.5} % set the line spacing
\renewcommand{\thesection}{\arabic{section}.\hspace{-.4cm}}
\renewcommand{\thesubsection}{\arabic{section}.\arabic{subsection}.\hspace{-.4cm}}
\renewcommand{\thesubsubsection}{\arabic{section}.\arabic{subsection}.\arabic{subsubsection}.\hspace{-.3cm}}
\footskip=45pt \headsep=4truemm \topmargin=-0.5cm \oddsidemargin=0pt \evensidemargin=0pt
\textwidth=170truemm % set page width
\textheight=250truemm % set page height
\parindent=19pt % set page indent
\def\thefootnote{} %% remove the footnote number label
\RequirePackage[labelsep=space]{caption}
\renewcommand{\thefigure}{\footnotesize{\bf \arabic{figure}.}}
\renewcommand{\figurename}{\footnotesize{\bf Fig.}}
\endinput
%%
%% End of file `article.cls'.
主要起是以下三行代码起作用
\RequirePackage[labelsep=space]{caption}
\renewcommand{\thefigure}{\footnotesize{\bf \arabic{figure}.}}
\renewcommand{\figurename}{\footnotesize{\bf Fig.}}
设定名称大小与展示范围
\begin{figure}
\centering
\includegraphics{e2.eps}\\[5pt]
\parbox[c]{15.0cm}{\caption{ (color online) % figure caption
The transition of trajectories of spiral tip by changing the
frequency of a local periodic forcing. The amplitude of the local
forcing is $A=0.35$. Corresponding orbits are shown. (a) $\omega
_{\rm af} = 0.955\omega _0$, an epicycloids-like orbit with inward
petals; (b) $\omega _{\rm bf} = 0.9768\omega _0 $, a straight line;
(c) $\omega _{\rm cf} = 0.992\omega _0 $, a hypocycloid-like orbit
with outward petals.} \label{figure2}}
\end{figure}
如上,可以用parbox
命令设置,此时注意label
要放到parbox
里面去。