Repository navigation
[6037] 改进 book 样式消除标题页之后的空白页并将 title-book 转为 stem - #4798
Merged
Merged
Conversation
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
问题描述
在
book样式长文档(如xiyouji.stem)中,标题页与首章正文之间以及章节之间会插入多个空白页,影响屏幕阅读体验。改动内容
TeXmacs/packages/header/title-book.ts→TeXmacs/packages/header/title-book.stem:title-book.ts转换为.stem格式并移除原.ts文件;doc-make-title,移除标题块后多余的反面空白页与(surround "" (hflush) (new-page)),仅保留单次(new-page)。TeXmacs/packages/section/section-book.stem:part-title-sub与chapter-title中的new-dpage*/new-dpage改为new-page*/new-page,消除章节前的奇数页对齐空白页。验证情况
gf fmt --check TeXmacs/packages/header/title-book.stem TeXmacs/packages/section/section-book.stem:通过。~/git/xiyouji/xiyouji.stem:第 1 页为标题页,第 2 页直接进入第一回正文,标题页之后无空白页;python3 tests/mogan/python/6036.py --verify通过。