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

ctex对更新后的fancyhdr宏包v4.0补丁失效 #554

Closed
wrfwerrr opened this issue Jan 7, 2021 · 3 comments
Closed

ctex对更新后的fancyhdr宏包v4.0补丁失效 #554

wrfwerrr opened this issue Jan 7, 2021 · 3 comments

Comments

@wrfwerrr
Copy link

wrfwerrr commented Jan 7, 2021

\documentclass{book}
\usepackage[heading=true]{ctex}
\usepackage{fancyhdr}
\begin{document}
aaa
\end{document}

对 ps@fancy 的修补失效,产生警告 Package ctex Warning: Oops! Command `\ps@fancy' is NOT patchable.
(ctex) 。

@xiaozhongguo
Copy link

xiaozhongguo commented Jan 11, 2021

使用tlmgr更新的,可暂时从backup里面恢复到fancyhdr v3.10,等待ctex更新

还有一个临时补救的方法,在使用相应ctex宏包时,去相应的源文件搜索"\ctex_patch_cmd:Nnn \ps@fancy",替换成”\ctex_patch_cmd:Nnn \f@nch@initialise“,例如,使用ctexbook类,应该修改%TEXLIVE%\texmf-dist\tex\latex\ctex下的ctexbook.cls文件

@Coder-zhangwei
Copy link

按照这个方法:“还有一个临时补救的方法,在使用相应ctex宏包时,去相应的源文件搜索"\ctex_patch_cmd:Nnn \ps@fancy",替换成”\ctex_patch_cmd:Nnn \f@nch@initialise“,例如,使用ctexbook类,应该修改%TEXLIVE%\texmf-dist\tex\latex\ctex下的ctexbook.cls文件”,修改了 还是不好使呀?请问还有其他解决办法吗?谢谢

@zepinglee
Copy link
Member

我已经初步写好了一个 patch,但是 fancyhdr 的代码还有些问题,见 pietvo/fancyhdr#5。等那边修好了再改吧。

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

No branches or pull requests

6 participants