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

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

Closed
kahakaha opened this issue May 31, 2023 · 4 comments
Closed

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

kahakaha opened this issue May 31, 2023 · 4 comments
Labels
bug Something isn't working

Comments

@kahakaha
Copy link

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

@Makiras Makiras added bug Something isn't working help wanted Extra attention is needed labels May 31, 2023
@kahakaha
Copy link
Author

latex新手一枚,求轻喷。

\fancypagestyle{plain}{\pagestyle{catalogmatter}}\pagenumbering{Roman}\tableofcontents % Content

我尝试将该行代码中的\pagestyle{catalogmatter}改为了\thispagestyle{catalogmatter}
第二页的页码显示正常了,页眉也出现了,可是只有第二页的页眉有“北京邮电大学本科毕业设计 (论文)”。
所以,感觉这个bug可能和目录发生了换页有关。

@Makiras
Copy link
Member

Makiras commented May 31, 2023

方便核对一下今年目录还要求页眉吗?
#20 中提到的新要求似乎目录不再拥有页眉?

@Makiras
Copy link
Member

Makiras commented May 31, 2023

具体原因为 #19 这个提交
虽然新定义了fancypagestyle catalogmatter
image
但是忽略了 renewcommand 这一过程
image

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

@Makiras Makiras removed the help wanted Extra attention is needed label May 31, 2023
@kahakaha
Copy link
Author

kahakaha commented Jun 1, 2023

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

@kahakaha kahakaha closed this as completed Jun 1, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

2 participants