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

frontmatter和backmatter报错 #75

Open
EatonL opened this issue Mar 17, 2023 · 11 comments
Open

frontmatter和backmatter报错 #75

EatonL opened this issue Mar 17, 2023 · 11 comments
Labels
invalid This doesn't seem right

Comments

@EatonL
Copy link

EatonL commented Mar 17, 2023

image

编译时会报这样的错,注释掉frontmatter和backmatter就好了,怀疑是cls里的问题,但是替换了新的cls重新加完宏包还是会报相同的错误

@note286
Copy link
Owner

note286 commented Mar 17, 2023

请给出能复现问题的最精简的代码。

@EatonL
Copy link
Author

EatonL commented Mar 17, 2023

`\NeedsTeXFormat{LaTeX2e}
\RequirePackage{expl3}
\ProvidesExplClass{xdupgthesis}
{2022/12/06}{3.1.1.2}
{Xidian University Postgraduate Thesis document class}
\RequirePackage { xparse, l3keys2e }
\PassOptionsToPackage { quiet } { xeCJK }
\PassOptionsToClass
{
a4paper,
zihao=-4,
sub4section,
fontset = none
}
{ ctexbook }
\LoadClass { ctexbook }
\RequirePackage { geometry }
\geometry { paper = a4paper }
\RequirePackage { fancyhdr }
\RequirePackage { xeCJKfntef }
\RequirePackage { graphicx }

\RequirePackage { color }
\RequirePackage { amssymb }
\RequirePackage { amsmath }
\RequirePackage { diagbox }
\RequirePackage {algorithm}
\RequirePackage {algorithmic}
\floatname{algorithm}{算法}
\renewcommand{\algorithmicrequire}{\textbf{输入:}}
\renewcommand{\algorithmicensure}{\textbf{输出:}}
`
不好意思,我不确定具体出错的位置,我只加了这些包

@note286
Copy link
Owner

note286 commented Mar 17, 2023

你仔细看看你发的都是什么?

@EatonL
Copy link
Author

EatonL commented Mar 17, 2023

请问这不是cls文件的一部分吗,我现在只确定与frontmatter和backmatter有关,但是cls里面关于这两个的我都没有修改,只在cls里面加了宏包

@note286
Copy link
Owner

note286 commented Mar 17, 2023

.cls文件不允许做任何修改,那不是用户该动的文件!
我让你发的是.tex文件中的代码,越精简越好,能复现问题即可。并描述清楚你的LaTeX发行版版本,xduts的版本号等其他信息。

@note286
Copy link
Owner

note286 commented Mar 17, 2023

我真好奇,谁教你这么加载包的。我真是长见识了。

@EatonL
Copy link
Author

EatonL commented Mar 17, 2023

我第一次用latex很多东西不太熟悉,bug我自己解决了,是其中一个宏包有冲突,我很感谢你的模板,但是大家都是从初学者来的,我也只是来讨论的,希望都能平和一点,不要带入戾气

@EatonL EatonL closed this as completed Mar 17, 2023
@note286 note286 added the invalid This doesn't seem right label Mar 17, 2023
@note286
Copy link
Owner

note286 commented Mar 17, 2023

但是大家都是从初学者来的

那你倒是学啊,以你在.cls里加载包而不是.tex里加载包,就能看出来你压根没学,你可以随便找稍微接触过LaTeX的同学朋友来瞧瞧。

我也只是来讨论的,希望都能平和一点,不要带入戾气

我有什么戾气吗?你去翻看一下这个项目的所有的讨论和issue,哪一个我没有认真回复?你的操作过于离谱,还不能说说了?我还要照顾你娇嫩的情绪呗。

@note286 note286 reopened this Mar 17, 2023
@EatonL
Copy link
Author

EatonL commented Mar 17, 2023

我只是请教一下,你能保证你尝试的所有问题都不会出错吗?更何况就算我在cls里引入包,充其量只算是不按照常理,编译也没有问题。难不成我看到别人把import写在文件中间就要一顿输出?我不想和你在github上吵,希望你遇到事情要请教别人时,别人能对你耐心一点

@note286
Copy link
Owner

note286 commented Mar 17, 2023

是你上来就说我有戾气的!

@note286
Copy link
Owner

note286 commented Mar 17, 2023

希望你遇到事情要请教别人时,别人能对你耐心一点

至少我不会在有人吐槽我最基础的知识都不会的时候,有情绪。

别把自己当成娇贵的小公主,所有人都哄着你。有点难度的问题,大家交流交流没问题;由于疏忽大意产生的问题,有人指出来方向,自己弄一下就完了。过于离谱的操作,吐槽吐槽有什么问题吗?

1679044710845

按照你的标准,我得给 @zilangch 道歉,指的是 #68#74

@note286 note286 pinned this issue Jan 12, 2025
@note286 note286 unpinned this issue Mar 17, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
invalid This doesn't seem right
Projects
None yet
Development

No branches or pull requests

2 participants