Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[bug] when use fig-content and tab-content at same time #1

Open
aschenmaker opened this issue Mar 20, 2022 · 2 comments
Open

[bug] when use fig-content and tab-content at same time #1

aschenmaker opened this issue Mar 20, 2022 · 2 comments

Comments

@aschenmaker
Copy link

问题

  1. 同时增加表和图目录时,导致整个分页失效。
  2. 图目录和表目录在 目录下的超链接失效。

1

在同时增加figtoc、tabtoc的时候,整个分页会失效,
看了一下实现为什么会选择这么写,可能作者在写的时候基于了什么考虑。

        \ifcug@toc@tab@show
		    \let\cleardoublepage\relax
		    \let\clearpage\relax
	    \fi

2

第二个问题就是 图目录和表目录的,PDF链接是失效的,这个我没有找到原因。

@Timozer
Copy link
Owner

Timozer commented May 23, 2022

@aschenmaker 发几张截图看看

@mangoding71
Copy link

mangoding71 commented Jan 15, 2025

在cugtheis.cls文件中添加:
\renewcommand{\listfigurename}{图清单}
\renewcommand{\listtablename}{表清单}
并修改\newcommand{\makefrontpages}部分的相关代码可以解决,用下面代码替换:
\newcommand{\makefrontpages}{%
\maketitle
\emptymatter
\makeextrapages
\makeauthorcv
\makeabstract
\tableofcontents
\thispagestyle{empty}
\frontmatter

%% 插图目录和表格目录 %%
\chapter*{}
\addcontentsline{toc}{chapter}{\hyperref[figures]{图清单}}
\label{figures}
\listoffigures

\newpage

\chapter*{}
\addcontentsline{toc}{chapter}{\hyperref[tables]{表清单}}
\label{tables}
\listoftables

\clearpage
\mainmatter

}

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants