[Top][All Lists]
[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: |
Tue, 11 Jan 2011 19:46:37 +0100 |
User-agent: |
Gnus/5.110011 (No Gnus v0.11) Emacs/23.2 (gnu/linux) |
Salut Stéphane, ;-)
Oops, the address@hidden option should be under address@hidden, not
under address@hidden Here’s an updated patch.
Let us know how it goes.
Ludo’.
PS: Use ‘cd /path/to/lout ; patch -p1 < the-patch’.
diff --git a/include/report b/include/report
index 2a66c8e..4459314 100644
--- a/include/report
+++ b/include/report
@@ -423,6 +423,7 @@
# @AppendixGap { 2.0v @OrIfPlain 3f } # between appendices
# @SubAppendixGap { 1.5v @OrIfPlain 2f } # between
subappendices
# @SubSubAppendixGap { 1.5v @OrIfPlain 2f } # between sub-subapps
+ # @RefSectionGap { @SectionGap } # gap before the ref
section
# @SectionInContents { Yes } # add sections to contents
# @SubSectionInContents { Yes } # add subsections to contents
# @SubSubSectionInContents { No } # add sub-subsects to contents
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
pgp0vGFI1NNu6.pgp
Description: PGP signature
- New page, contents and references, Stéphane Legrand, 2011/01/09
- Re: New page, contents and references, Ludovic Courtès, 2011/01/10
- Re: New page, contents and references, Mark T. B. Carroll, 2011/01/10
- Re: New page, contents and references, Stéphane Legrand, 2011/01/10
- Re: New page, contents and references, Mark Summerfield, 2011/01/11
- Re: New page, contents and references, Stéphane Legrand, 2011/01/11
- Re: New page, contents and references, Albert J Kinderman, 2011/01/11
- Re: New page, contents and references, Stéphane Legrand, 2011/01/11
Re: New page, contents and references, Stéphane Legrand, 2011/01/10
- Re: New page, contents and references,
Ludovic Courtès <=
- Re: New page, contents and references, Stéphane Legrand, 2011/01/11
- Re: New page, contents and references, Ludovic Courtès, 2011/01/11
- Re: New page, contents and references, Jeff Kingston, 2011/01/12
- Re: New page, contents and references, Ludovic Courtès, 2011/01/12
- Re: New page, contents and references, Stéphane Legrand, 2011/01/12