cls文件图表位置定义

发布于 2023-06-30 16:38:08

论文的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}}}
    }{}

查看更多

关注者
0
被浏览
1.8k
0 个回答
暂无答案,快来添加答案吧

撰写答案

请登录后再发布答案,点击登录

发布
问题

分享
好友

手机
浏览

扫码手机浏览