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: Stéphane Legrand
Subject: Re: New page, contents and references
Date: Tue, 11 Jan 2011 00:22:11 +0100

Hi,

Happy new year too! / Bonne année également ! :-)

Thanks for your answer.

Unfortunately, i can't apply the patch, the patch utility throws me
several hunk errors : 

patch < /sequoia/lout/lout-3.39/patch.diff
Hmm...  Looks like a unified diff to me...
The text leading up to this was:
--------------------------
|diff --git a/include/report b/include/report
|index 2a66c8e..f02f7c6 100644
|--- a/include/report
|+++ b/include/report
--------------------------
Patching file report using Plan A...
Hunk #1 failed at 152.
Can't backup report, output is in /tmp//patchoaXx41l: Permission denied
1 out of 1 hunks failed--saving rejects to report.rej
Can't create report.rej, output is in /tmp//patchrWqxoJ9: Permission
denied
Hmm...  The next patch looks like a unified diff to me...
The text leading up to this was:
--------------------------
|diff --git a/include/reportf b/include/reportf
|index ffc7fbb..7ad96e9 100644
|--- a/include/reportf
|+++ b/include/reportf
--------------------------
Patching file reportf using Plan A...
Hunk #1 failed at 122.
Hunk #2 succeeded at 290 (offset 17 lines).
Hunk #3 failed at 592.
Hunk #4 failed at 622.
Can't backup reportf, output is in /tmp//patchoaXx41l: Permission denied
3 out of 4 hunks failed--saving rejects to reportf.rej
Can't create reportf.rej, output is in /tmp//patchrWqxoJ9: Permission
denied
done


So i tried to apply it by hand. But when i try to use @RefSectionGap i
get the following error : 

   157,1: symbol @RefSectionGap unknown or misspelt
   158,3: symbol @RefCiteStyle unknown or misspelt
   159,3: symbol @RefCiteLabels unknown or misspelt
   161,3: symbol @RefListFormat unknown or misspelt
   162,3: symbol @RefListLabels unknown or misspelt
   163,3: symbol @RefListTitle unknown or misspelt
   170,3: symbol @RefListLabelWidth unknown or misspelt
   265,3: symbol @MarginNoteWidth unknown or misspelt
   304,3: symbol @OddFoot unknown or misspelt
   306,3: symbol @EvenFoot unknown or misspelt
    89,8: fatal error: invalid parameter of @Use


I use lout 3.39. May be i have to try your patch with a different
version ?

Regards,
Stéphane.


Le lundi 10 janvier 2011 à 10:08 +0100, Ludovic Courtès a écrit :
> 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
> 






reply via email to

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