mohuangrui / ucasthesis

LaTeX Thesis Template for the University of Chinese Academy of Sciences
3.43k stars 925 forks source link

怎么把图目录和表目录分开,而不是图目录下接着生成表目录啊 #417

Closed liu-123321 closed 1 year ago

liu-123321 commented 1 year ago

检查 / Check

编译环境 / Compilation Environment

描述问题 / Problem Description

问题描述: 国科大最新的latex模板,表目录是紧挨着图目录生成的,怎么让表目录另起一页生成啊?

日志文件 / .log file

将编译生成的 .log 文件拖入下行空白处:

问题截图 / Screenshots

将出现的问题或需要实现的效果的 截图照片 拖入下行空白处: 1679319726261

最小工作示例(MWE) / Minimal Working Example

sdusdl commented 1 year ago

我是在figuretable.tex里在图目录和表目录中间加了1cm的垂直距离

liu-123321 commented 1 year ago

我是在figuretable.tex里在图目录和表目录中间加了1cm的垂直距离

你好,能让我看下你的代码吗,刚开始用latex,不太熟练

sdusdl commented 1 year ago

我看你用的应该是在这个模板的基础上修改的版本,原始模板没有figuretable.tex这个文件。如果你用的模板里有figuretable.tex这个文件,可以做如下修改: \intobmk{\cleardoublepage}{图表目录} \thispagestyle{noheaderstyle} { \renewcommand{\addvspace}[1]{} \let\oldnumberline\numberline% \renewcommand{\numberline}{\figurename~\oldnumberline}% \listoffigures% } \clearpage%另起一页 { \let\cleardoublepage\relax \let\clearpage\relax \renewcommand*{\addvspace}[1]{} \let\oldnumberline\numberline% \renewcommand{\numberline}{\tablename~\oldnumberline}% \listoftables% }

liu-123321 commented 1 year ago

我看你用的应该是在这个模板的基础上修改的版本,原始模板没有figuretable.tex这个文件。如果你用的模板里有figuretable.tex这个文件,可以做如下修改: \intobmk{\cleardoublepage}{图表目录} \thispagestyle{noheaderstyle} { \renewcommand{\addvspace}[1]{} \let\oldnumberline\numberline% \renewcommand{\numberline}{\figurename~\oldnumberline}% \listoffigures% } \clearpage%另起一页 { \let\cleardoublepage\relax \let\clearpage\relax \renewcommand*{\addvspace}[1]{} \let\oldnumberline\numberline% \renewcommand{\numberline}{\tablename~\oldnumberline}% \listoftables% }

已经解决,十分感谢!

sampr373 commented 1 year ago

新规word里图表目录也是在一页里的,按照官方模板编译之后,如果图表目录跨页,会出现第一页的页眉是“表目录”,第二页页眉是“图表目录”,这个dirty hack有点问题

image image
sampr373 commented 1 year ago

267 似乎修改模板的人使用了这段代码,

目前我改了一点不会在第一页生成页眉"表目录"了,但是第二页本应该是标题,不知道怎么改,过两天看看

\intobmk*{\cleardoublepage}{图表目录}
\fancyhead{} % 清空默认的页眉内容
\fancyhead[C]{\footnotesize 图表目录} % 将页眉设置为“图表目录”
{
\renewcommand*{\addvspace}[1]{}
\let\oldnumberline\numberline%
\renewcommand{\numberline}{\figurename~\oldnumberline}%
\listoffigures%
}
{
\let\cleardoublepage\relax
\let\clearpage\relax
\renewcommand*{\addvspace}[1]{}
\let\oldnumberline\numberline%
\renewcommand{\numberline}{\tablename~\oldnumberline}%
\listoftables%
}
liu-123321 commented 1 year ago

新规word里图表目录也是在一页里的,按照官方模板编译之后,如果图表目录跨页,会出现第一页的页眉是“表目录”,第二页页眉是“图表目录”,这个dirty hack有点问题 image image

把 thesis.tex 中的\fancyhead[C]{\footnotesize 图表目录}改为\fancyhead[C]{\footnotesize 表目录}就行了

sampr373 commented 1 year ago

现行是这样的,和word是一致的

image

我们这里规定是按照新版要求来,但是按照新版只要图表到第二页,页眉就会变,我觉得你可能误解了我的意思,我不确定是不是需要单开一个issue去讨论这个问题。

另外,按照你的设置分页的话,第二页因为已经是偶数页,按照word里的要求,不应该设置为表目录,而是应该设置为标题。应该做的是修改第一页为图表目录。

我不确定管这些格式有没有意义。用tex就是为了省事而已。

目前我想到一个比较脏的方法在修改figuretable.tex基础上:

\intobmk*{\cleardoublepage}{图表目录}
\fancyhead{} % 清空默认的页眉内容
\fancyhead[C]{\footnotesize 图表目录} % 将页眉设置为“图表目录”
{
\renewcommand*{\addvspace}[1]{}
\let\oldnumberline\numberline%
\renewcommand{\numberline}{\figurename~\oldnumberline}%
\listoffigures%
}
{
\let\cleardoublepage\relax
\let\clearpage\relax
\renewcommand*{\addvspace}[1]{}
\let\oldnumberline\numberline%
\renewcommand{\numberline}{\tablename~\oldnumberline}%
\listoftables%
}

修改thesis.tex中的\fancyhead[C]{\footnotesize 图表目录}\fancyhead[LE]{\centering \footnotesize 中文标题}%此处填写中文标题`

这样可以在不分页图表目录时正确显示页眉

mohuangrui commented 1 year ago

你提到的发布基于ucasthesis进行了修改,其发布我不知情也不负责维护,请咨询相关部门和人员