BYRIO / BUPTBachelorThesis

A LaTeX Template for BUPT Bachelor Thesis (updated in 2023)
MIT License
172 stars 28 forks source link

当目录为多页时会出现页眉和页码失效的问题 #23

Closed kahakaha closed 1 year ago

kahakaha commented 1 year ago

当目录很长,延伸到下一页的时候,页眉和页脚便会失效,我见最新的源码中的pdf也出现了这个问题,请问有什么解决方案吗?

kahakaha commented 1 year ago

latex新手一枚,求轻喷。 https://github.com/BYRIO/BUPTBachelorThesis/blob/b7961f19fdff4ffb4947cb46846c7557dec606de/main.tex#L37 我尝试将该行代码中的\pagestyle{catalogmatter}改为了\thispagestyle{catalogmatter} 第二页的页码显示正常了,页眉也出现了,可是只有第二页的页眉有“北京邮电大学本科毕业设计 (论文)”。 所以,感觉这个bug可能和目录发生了换页有关。

Makiras commented 1 year ago

方便核对一下今年目录还要求页眉吗? https://github.com/BYRIO/BUPTBachelorThesis/issues/20 中提到的新要求似乎目录不再拥有页眉?

Makiras commented 1 year ago

具体原因为 https://github.com/BYRIO/BUPTBachelorThesis/pull/19 这个提交 虽然新定义了fancypagestyle catalogmatter image 但是忽略了 renewcommand 这一过程 image

将这个修改回滚,并将catalogmatter 的内容替换进 frontmatter 即可 image

kahakaha commented 1 year ago

感谢,我的问题已得到解决,我将关闭这个issue