lout-users
[Top][All Lists]
Advanced

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

Re: New page, contents and references


From: Ludovic Courtès
Subject: Re: New page, contents and references
Date: Mon, 10 Jan 2011 10:08:07 +0100
User-agent: Gnus/5.110011 (No Gnus v0.11) Emacs/23.2 (gnu/linux)

Hello, and happy new year!  :-)

Stéphane Legrand <address@hidden> writes:

> - How to force the first page of references to begin on a new page ?

It seems that @Report lacks a knob for this.

You could set @SectionGap to 1b, which would cause each section to start
on a new page, including the “References” section.  But that may not be
what you want.

Hmm.  The attached patch adds the address@hidden option, which should
allow you to do what you want.  Can you test it and report back?

Thanks,
Ludo’.

diff --git a/include/report b/include/report
index 2a66c8e..f02f7c6 100644
--- a/include/report
+++ b/include/report
@@ -152,6 +152,7 @@
   # @ContentsRightWidth        { 3f    @OrIfPlain 6s   } # page numbers column 
width
 
   # @MakeReferences    { Yes                   } # make references? Yes or No
+  # @RefSectionGap     { @SectionGap           } # gap before the ref section
   # @RefCiteStyle      { [cite]                } # citation style
   # @RefCiteLabels     { @RefNum               } # citation items
   # @RefNumbers                { Arabic                } # reference numbers
diff --git a/include/reportf b/include/reportf
index ffc7fbb..7ad96e9 100644
--- a/include/reportf
+++ b/include/reportf
@@ -122,6 +122,7 @@ def @ReportSetup
     named @SectionGap                  { 2.0v  @OrIfPlain 3f   }
     named @SubSectionGap               { 1.5v  @OrIfPlain 2f   }
     named @SubSubSectionGap            { 1.5v  @OrIfPlain 2f   }
+    named @RefSectionGap               { dft                   }
     named @AppendixGap                 { 2.0v  @OrIfPlain 3f   }
     named @SubAppendixGap              { 1.5v  @OrIfPlain 2f   }
     named @SubSubAppendixGap           { 1.5v  @OrIfPlain 2f   }
@@ -272,6 +273,21 @@ def @ReportSetup
 
     #######################################################################
     #                                                                     #
+    #  Gap before the "References" section.                               #
+    #                                                                     #
+    #######################################################################
+
+    def @GapBeforeRefs
+    {
+       @RefSectionGap @Case {
+           "dft" @Yield @SectionGap
+           else  @Yield @RefSectionGap
+       }
+    }
+
+
+    #######################################################################
+    #                                                                     #
     #  @Report                                                            #
     #                                                                     #
     #######################################################################
@@ -559,13 +575,13 @@ def @ReportSetup
            //                  @AbstractDisplay @NoDo @AbstractPart
            //@ContentsGap      @ContentsPart
            //@ContentsGap      @SectionList @FirstSectionNumber
-           //@SectionGap       @ReferencesBeforeAppendices @Do {
+           //@GapBeforeRefs    @ReferencesBeforeAppendices @Do {
                                    @MakeReferences @Do @ReferencesPart
                                }
             //@AppendixGap     @AppendixList @FirstAppendixNumber
            //@SectionGap       @EndFigureList
            //@SectionGap       @EndNoteList 1
-           //@SectionGap       @ReferencesBeforeAppendices @NoDo {
+           //@GapBeforeRefs    @ReferencesBeforeAppendices @NoDo {
                                    @MakeReferences @Do @ReferencesPart
                                }
            //                  @MakeGlossary @Do @GlossaryPart
@@ -589,11 +605,11 @@ def @ReportSetup
                                Start @Runner
            //@ContentsGap      @ContentsPart
            //@ContentsGap      @SectionList @FirstSectionNumber
-           //@SectionGap       @ReferencesBeforeAppendices @Do {
+           //@GapBeforeRefs    @ReferencesBeforeAppendices @Do {
                                    @MakeReferences @Do @ReferencesPart
                                }
             //@AppendixGap     @AppendixList @FirstAppendixNumber
-           //@SectionGap       @ReferencesBeforeAppendices @NoDo {
+           //@GapBeforeRefs    @ReferencesBeforeAppendices @NoDo {
                                    @MakeReferences @Do @ReferencesPart
                                }
            //@SectionGap       @EndFigureList

Attachment: pgpoPDuTfypd2.pgp
Description: PGP signature


reply via email to

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