lout-users
[Top][All Lists]
Advanced

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

[PATCH] New address@hidden' option for address@hidden'


From: Ludovic Courtès
Subject: [PATCH] New address@hidden' option for address@hidden'
Date: Mon, 27 Aug 2007 14:36:25 +0200
User-agent: Gnus/5.11 (Gnus v5.11) Emacs/22.1 (gnu/linux)

Hi,

The attached patch adds an address@hidden' option to address@hidden' in the
`book' style.  The purpose of this option is to provide front-ends with
more freedom.

For instance, frond-ends can implement appendices as
"@Chapter @BypassWord { Appendix }", which allows them to choose where
appendices should appear, as opposed to having this controlled by the
built-in features of `book'.  Likewise, this provides front-ends an
opportunity to use their own internationalization framework.

Comments?

Thanks,
Ludovic.

diff --git a/include/bookf b/include/bookf
index fde3b80..18fdf1b 100644
--- a/include/bookf
+++ b/include/bookf
@@ -1137,6 +1137,7 @@ def @BookSetup
        named @PartTitle {}
        named @PartText {}
         named @BypassNumber { dft }
+       named @BypassWord { dft }
         body @Body
     {
 
@@ -1162,7 +1163,10 @@ def @BookSetup
        def @MajorNum
        {
            @ChapterNumbers @Then @InitialLanguage @Language {
-               chapter @WordVal @ChapterWord @ChapterShortNum
+                @BypassWord @Dft {
+                   chapter @WordVal @ChapterWord
+               }
+                @ChapterShortNum
            }
        }
 
@@ -1374,7 +1378,7 @@ def @BookSetup
            headingformat { @Num @ChapterHeadingFormat @Body }
            incontents { @ChapterInContents }
            contentsindent { @ChapterContentsIndent }
-           word { chapter @WordVal @ChapterWord }
+           word { @BypassWord @Dft { chapter @WordVal @ChapterWord } }
            numbers { @ChapterNumbers }
            attachnum { @ChapterList&&preceding @Tagged @Tag }
            retrievenum { @ChapterList&&@Tag @Open { num } }

reply via email to

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