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

如果排版页面超过 330 左右,会耗尽 TeX 内存。 #2

Open
Soanguy opened this issue Dec 1, 2024 · 1 comment
Open

如果排版页面超过 330 左右,会耗尽 TeX 内存。 #2

Soanguy opened this issue Dec 1, 2024 · 1 comment

Comments

@Soanguy
Copy link

Soanguy commented Dec 1, 2024

如题。排版内容超过 330 页左右时,会触发错误:TeX capacity exceeded, sorry [node memory size=50000000]

一个简单例子: \dorecurse{25000}{乱数:「假文。」乱数:假文?乱数!假文}

@Fusyong
Copy link
Owner

Fusyong commented Dec 5, 2024

感谢反馈。我暂时没有时间排查。一点提示:见lua文件65和405行,这里有缓存标点数据的机制,目的是避免同字体的同一个标点每次都计算,但也增加了内存消耗(逻辑上讲,字体*字号*标点种类很有限,因此数据量是很少的)。可以打印存储信息,看是不是有低级错误导致不必要的存储

另,我正正在排的一个项目是500多页,一个是250多页,使用的是全角式样,能正常处理。(当然,标点密度要比你的样例低得多。)

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

No branches or pull requests

2 participants