[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
branch master updated: * doc/txi-zh.tex: Override \thischapterAppendix,
From: |
Gavin D. Smith |
Subject: |
branch master updated: * doc/txi-zh.tex: Override \thischapterAppendix, \thischapterChapter, \thissectionDef. From Wu XiangCheng. |
Date: |
Tue, 18 Oct 2022 13:49:21 -0400 |
This is an automated email from the git hooks/post-receive script.
gavin pushed a commit to branch master
in repository texinfo.
The following commit(s) were added to refs/heads/master by this push:
new 10e355bf90 * doc/txi-zh.tex: Override \thischapterAppendix,
\thischapterChapter, \thissectionDef. From Wu XiangCheng.
10e355bf90 is described below
commit 10e355bf9045835ed6c87284cd6aa30476045aa4
Author: Gavin Smith <gavinsmith0123@gmail.com>
AuthorDate: Tue Oct 18 18:49:13 2022 +0100
* doc/txi-zh.tex: Override \thischapterAppendix,
\thischapterChapter, \thissectionDef. From Wu XiangCheng.
---
ChangeLog | 5 +++++
doc/txi-zh.tex | 14 ++++++++++++++
2 files changed, 19 insertions(+)
diff --git a/ChangeLog b/ChangeLog
index d9c4899fef..cdb591671f 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,8 @@
+2022-10-18 Gavin Smith <gavinsmith0123@gmail.com>
+
+ * doc/txi-zh.tex: Override \thischapterAppendix,
+ \thischapterChapter, \thissectionDef. From Wu XiangCheng.
+
2022-10-18 Gavin Smith <gavinsmith0123@gmail.com>
Translation hooks for chapter/section title
diff --git a/doc/txi-zh.tex b/doc/txi-zh.tex
index aecaf51254..90601aa4e0 100644
--- a/doc/txi-zh.tex
+++ b/doc/txi-zh.tex
@@ -75,6 +75,20 @@
\fi
\number\day 日}
+%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
+% fix Chinese chapter/section dispaly
+% modify \chapmacro, \sectionheading
+%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
+
+\def\thischapterAppendix{%
+ \putwordAppendix{} \thischapternum\space\thischaptername}
+
+\def\thischapterChapter{%
+ 第 \thischapternum \putwordChapter{}\space\thischaptername}
+
+\def\thissectionDef{%
+ \putwordAppendix{} \thissectionnum\putwordSection{}\space\thissectionname}
+
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
% Chinese font definitions
% font choice: 1. Noto Serif CJK 思源宋体 NotoSerifCJK-Regular.ttc
[Prev in Thread] |
Current Thread |
[Next in Thread] |
- branch master updated: * doc/txi-zh.tex: Override \thischapterAppendix, \thischapterChapter, \thissectionDef. From Wu XiangCheng.,
Gavin D. Smith <=