texinfo-commits
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

branch master updated: * doc/txi-zh.tex (\Ynumbered): Override.


From: Gavin D. Smith
Subject: branch master updated: * doc/txi-zh.tex (\Ynumbered): Override.
Date: Tue, 18 Oct 2022 14:15:20 -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 cfa0c610fa * doc/txi-zh.tex (\Ynumbered): Override.
cfa0c610fa is described below

commit cfa0c610fa07cf4738c0a6cfefeca473ce0d57ad
Author: Wu XiangCheng <bobwxc@yeah.net>
AuthorDate: Tue Oct 18 19:15:04 2022 +0100

    * doc/txi-zh.tex (\Ynumbered): Override.
---
 ChangeLog      |  4 ++++
 doc/txi-zh.tex | 15 ++++++++++++++-
 2 files changed, 18 insertions(+), 1 deletion(-)

diff --git a/ChangeLog b/ChangeLog
index e3251cbd50..da7db37d51 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,7 @@
+2022-10-18  Wu XiangCheng  <bobwxc@yeah.net>
+
+       * doc/txi-zh.tex (\Ynumbered): Override.
+
 2022-10-18  Gavin Smith  <gavinsmith0123@gmail.com>
 
        Page ref hook
diff --git a/doc/txi-zh.tex b/doc/txi-zh.tex
index ca64316115..8698502eeb 100644
--- a/doc/txi-zh.tex
+++ b/doc/txi-zh.tex
@@ -77,7 +77,7 @@
 
 %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
 % fix Chinese chapter/section display
-% modify \chapmacro, \sectionheading, \xrefX
+% modify \chapmacro, \sectionheading, \xrefX, \Ynumbered
 %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
 
 \def\thischapterAppendix{%
@@ -91,6 +91,19 @@
 
 \def\putpageref#1{ \refx{#1-pg}\tie\putwordpage}
 
+\def\Ynumbered{%
+  \ifnum\secno=0
+    第\ \the\chapno\tie\putwordChapter
+  \else \ifnum\subsecno=0
+    \the\chapno.\the\secno\putwordSection
+  \else \ifnum\subsubsecno=0
+    \the\chapno.\the\secno.\the\subsecno\tie\putwordSection
+  \else
+    \the\chapno.\the\secno.\the\subsecno.\the\subsubsecno\tie\putwordSection
+  \fi\fi\fi
+}
+
+
 %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
 % Chinese font definitions
 % font choice: 1. Noto Serif CJK 思源宋体 NotoSerifCJK-Regular.ttc



reply via email to

[Prev in Thread] Current Thread [Next in Thread]