\newcommand{\figbicap}[2]{ %建立新命令, 有两个参数
\renewcommand{\figurename}{图} %将figure对象命名为"图"
\caption{#1} %将变量一(中文名)设置为标题
\addtocounter{figure}{-1} %figure计数器减一, 因为下面的英文的计数器要保持相同同
\vspace{-0.5ex} %换行
\renewcommand{\figurename}{Fig.} %将figure对象重新命名为"Fig."
\caption{#2} %将变量一(中文名)设置为标题
}
第二个: XeTeX的中文设置, 使用xCJK包
\documentclass{article}
\usepackage[cm-default]{fontspec}%set Computer Modern as default font
\usepackage{CJK}
\usepackage{xCJK}
\usepackage{xunicode}
\usepackage{xltxtra}
\XeTeXlinebreaklocale "zh"
\XeTeXlinebreakskip = 0pt plus 1pt minus 0.1pt
%define fonts
\newfontfamily\helvetica{Helvetica}
\newfontfamily\jenson{Adobe Jenson Pro}
\newfontfamily\lucidagrande{Lucida Grande}
\newfontfamily\song{SimSun}
\newfontfamily\hei{SimHei}
\newfontfamily\stheiti{STHeiti}
\newfontfamily\msyahei{Microsoft YaHei}
\newfontfamily\kai{KaiTi_GB2312}
\newfontfamily\adobesong{Adobe Song Std}
\newfontfamily\adobehei{Adobe Heiti Std}
\newfontfamily\adobekai{Adobe Kaiti Std}
\newfontfamily\adobefangsong{Adobe Fangsong Std}
\defaultfontfeatures{Mapping=tex-text}%启用tex风格字符:
%font customize
\setCJKmainfont[BoldFont={Adobe Heiti Std}, ItalicFont={Adobe Kaiti Std}]{Adobe Song Std}
\setCJKmonofont[Scale=0.9]{Microsoft YaHei}
\setCJKfamilyfont{msyahei}{微软雅黑}
\setCJKfamilyfont{adobefangsong}{Adobe Fangsong Std}
\begin{document}
\begin{CJK}{UTF8}{adobesong}
\section{标题}
宋体{\textbf{黑体}}{\textit{楷--体}}ComputerModern$e^{\pi i}=-1$\\
{\CJKfamily{msyahei} 微软雅黑}{\CJKfamily{adobefangsong} 奥多比仿宋}
\end{CJK}
\end{document}
xCJK包解决了中文字体的引用, 但是只有在将中文字体设置为CJKfamily时才能使用"\fontfamily"进行切换.

