Re: New page, contents and references
[email protected] (Ludovic Courtès)
| Newsgroups | gmane.comp.type-setting.lout |
|---|---|
| Message-ID | <[email protected]> |
Hello, and happy new year! :-) Stéphane Legrand <[email protected]> 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 ‘@RefSectionGap’ 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
signature.asc
(application/pgp-signature, 197 B)
-----BEGIN PGP SIGNATURE----- Version: GnuPG v2.0.16 (GNU/Linux) iEYEARECAAYFAk0qzHoACgkQd92V4upS7PQ0lQCfQ64NiSdzx6myA9iNgncVjFUk PN8Anj2D+t0pjMS818ixmLjaSK6kI8r/ =sTU4 -----END PGP SIGNATURE-----