LaTex图表中英文标题,中英文图表目录

bicaption可以提供图表的中英文标题,如果要填加中英文图表目录,可以参考bicaption的参考文档,自定义list。

\documentclass[journal]{IEEEtran}
% Use "ngerman" as 1st language, "english" as 2nd one
\usepackage[english,ngerman]{babel}
% Load the bicaption package with 2nd language set to
% "english", and list type "figure2" resp. "table2"
\usepackage[lang=english,listtype+=2]{bicaption}
% We load the titletoc package for customizing lists
% Note: Loading titletoc should be done prior
% defining additional floating environments with
% \DeclareFloatingEnvironment
\usepackage{titletoc}
\usepackage{newfloat}
\usepackage[UTF8, scheme = plain]{ctex}
\usepackage{epstopdf}
\usepackage{stfloats}
\usepackage{float}
\usepackage[pdftex]{graphicx}

\captionsetup[figure][bi-first]{name=图} %设置图的英文编号前缀
\captionsetup[table][bi-first]{name=表} %设置表的英文编号前缀
\captionsetup[figure][bi-second]{name=Fig.} %设置图的英文编号前缀
\captionsetup[table][bi-second]{name=Table} %设置表的英文编号前缀


\DeclareCaptionFormat{tabfigformat}{\bfseries\songti\zihao{5}{#1~~#3}}
\captionsetup[figure]{
	position=bottom, margin=0mm, format=tabfigformat,
	aboveskip=6pt, belowskip=-15pt, justification=centerlast}
\captionsetup[table]{
	position=top, margin=0mm, format=tabfigformat,
	aboveskip=0pt, belowskip=0pt, justification=centerlast}

% Define the new floating environment type "figure2"
% Use the same file extension as for "figure" (.lof) here
\DeclareFloatingEnvironment[fileext=lof]{figure2}
% Define the new floating environment type "table2"
% Use the same file extension as for "table" (.lot) here
\DeclareFloatingEnvironment[fileext=lot]{table2}
% We use the titletoc package for customizing "figure2"
% which is appropriate for the second language captions
\titlecontents{figure2}[0pt]
{\settowidth{\hangindent}{Fig.~\thecontentslabel\ \ }\songti\zihao{-4}}
{Fig.~\thecontentslabel\ \ }{}
{\hspace{.25em}\titlerule*[4pt]{$\cdot$}\contentspage}
\titlecontents{table2}[0pt]
{\settowidth{\hangindent}{Table~\thecontentslabel\ \ }\songti\zihao{-4}}
{Table~\thecontentslabel\ \ }{}
{\hspace{.25em}\titlerule*[4pt]{$\cdot$}\contentspage}

\titlecontents{figure}[0pt]{\settowidth{\hangindent}{图~\thecontentslabel\ \ }\songti\zihao{-4}}
{图~\thecontentslabel\ \ }{}
{\hspace{.25em}\titlerule*[4pt]{$\cdot$}\contentspage}

\titlecontents{table}[0pt]{\settowidth{\hangindent}{表~\thecontentslabel\ \ }\songti\zihao{-4}}
{表~\thecontentslabel\ \ }{}
{\hspace{.25em}\titlerule*[4pt]{$\cdot$}\contentspage}

\begin{document}
\renewcommand\listfigurename{图目录}
\listoffigures

\begin{figure}[!h]
	\centering
	\includegraphics[width=0.6\linewidth]{a.png}
	\bicaption{中文}{English text}
\end{figure}
\end{document}

在这里插入图片描述


版权声明:本文为hq_cjj原创文章,遵循 CC 4.0 BY-SA 版权协议,转载请附上原文出处链接和本声明。
THE END
< <上一篇
下一篇>>