lout-users
[Top][All Lists]
Advanced

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

should @NumberOf <tag> work in @ReportLayout?


From: Greg A. Woods
Subject: should @NumberOf <tag> work in @ReportLayout?
Date: Fri, 19 Jan 96 16:00:46 -0500 (EST)

I'm having difficulty getting to get @NumberOf to work in the way I
interpret it should work from the documentation.

I'm using @ReportLayout with a custom setup file, and I'd like to do
some things with headers and lists that aren't normally offered in the
default package.  However I can't even seem to get off the ground with
it!

Should I or can I call @SubSectionNum instead?

The body of my main document is:

        @Include { PlanixReport }
        @Report
                @Title { 2.0f @Font { System Administration Services Agreement 
}}
                @InitialFont { Times Base 10p }
                @CoverSheet { No }
        //
        @Section
                @Tag { admin-agree }
        @Begin
        @Include { "agree-body.lout" }
        @End @Section   # admin-agree

and in agree-body.lout I've:

        @LP
        Preceding text...
        @BeginSubSections
        @SubSection
                @Tag { defs }
        @Begin
        @Heading { ARTICLE @NumberOf defs -- DEFINITIONS }
        @LP
        The following terms are integral to this Agreement and shall have the
        meanings stated.
        @List
                style { @NumberOf defs | "." | num }
        @ListItem {
                @B { Systems Administrative Services (``SAS'') }
        are services that maintain the operating integrity of Operating 
        Systems Software (``OSS'') and Additional Operating Systems 
        Software (``AOSS'').
        }
        @EndList
        OK, that's all in section @NumberOf { admin-agree }, sub-section
        @NumberOf defs on page @PageOf defs for now folks!
        @End @SubSection        # defs
        @EndSubSections

This produces (approximately -- "lout -p" with headers and footers stripped):


                       System Administration Services Agreement



              Preceding text...

              ARTICLE  -- DEFINITIONS

              The following  terms  are integral  to  this Agreement  and
              shall have the meanings stated.

              .1Systems  Administrative Services  (``SAS'') are  services
[[ why this blank line? ]]
                that  maintain  the   operating  integrity  of  Operating
                Systems  Software  (``OSS'')   and  Additional  Operating
                Systems Software (``AOSS'').

              OK, that's all in section , sub-section  on  page 1 for now
              folks!

As you can see only the "@PageOf defs" worked.  There are no error
messages from lout, and the .dl and lout.li files seem to contain
sufficient information to provide @NumberOf with the necessary value
(i.e. @NumberMark is called for the "@Tag"s of @Section, @SubSection,
and @SubSubSection in "reportf").

-- 
                                                        Greg A. Woods

+1 416 443-1734                 VE3TCP                  robohack!woods
Planix, Inc. <address@hidden>; Secrets of the Weird <address@hidden>


reply via email to

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