论文的tex文档里include了cls文件,cls文件里对图表格式进行了定义,要求只在文末列表汇总显示。
求教需求:修改cls相关代码,实现图表既在正文提及处显示,又在文末列表汇总显示。
cls当前相关代码如下:
\newboolean{BackFigs}
\newboolean{InsideFigs}
\DeclareOption{BackFigs}%
{\setboolean{BackFigs}{true}\setboolean{InsideFigs}{false}}
\DeclareOption{InsideFigs}%
{\setboolean{InsideFigs}{true}\setboolean{BackFigs}{false}}
\ifthenelse{\boolean{Journal}}
{\ifthenelse{\boolean{InsideFigs}}{true}{\setboolean{BackFigs}{true}}}
{\ifthenelse{\boolean{BackFigs}}{true}{\setboolean{InsideFigs}{true}}}
\ifthenelse{\boolean{BackFigs}}
{\typeout{%
(2) Figures and Tables will be placed together at the end of the manuscript
(change with the 'InsideFigs' option)}}
{\typeout{%
(2) Figures and Tables will be placed within the text of the manuscript
(change with the 'BackFigs' option)}}
\ifthenelse{\boolean{BackFigs}}
{\ifthenelse{\boolean{NoLists}}% 11-21-02
{\RequirePackage[nolists,noheads,nomarkers,tablesfirst]{endfloat}}%11-21-02
{\RequirePackage[lists,noheads,nomarkers,tablesfirst]{endfloat}}
}
\ifthenelse{\boolean{Journal}\and\boolean{BackFigs}}%
{\setlength{\Abovecaptionrule}{0.75in}}
{\setlength{\Abovecaptionrule}{0.05in}}
\ifthenelse{\boolean{BackFigs}}
{\renewcommand\listoftables{%
\section*{\listtablename
\@mkboth{%
\MakeUppercase\listtablename}{\MakeUppercase\listtablename}}%
\ifthenelse{\boolean{DoubleSpace}}% 02-14-13
{\doublespacing\@starttoc{lot}\singlespacing}% 02-14-13
{\@starttoc{lot}}}
\renewcommand\listoffigures{%
\section*{\listfigurename
\@mkboth{\MakeUppercase\listfigurename}%
{\MakeUppercase\listfigurename}}%
\ifthenelse{\boolean{DoubleSpace}}% 02-14-13
{\doublespacing\@starttoc{lof}\singlespacing}% 02-14-13
{\@starttoc{lof}}}
}{}