[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: Import?
From: |
Jason Whittle |
Subject: |
Re: Import? |
Date: |
Fri, 10 Sep 2004 16:41:43 -0400 |
On Fri, 10 Sep 2004 22:03:35 +0200, Edgar Toernig <address@hidden> wrote:
> Jason Whittle wrote:
> > Edgar Toernig wrote:
> > > Jason Whittle wrote:
> > > > @SysInclude{ diag }
> > > > @SysInclude{ tbl }
> > > > @SysInclude{ doc }
> > > >
> > > > import @BasicSetup
> > > > def @Charm { @SubSection }
> > > >
> > > > [gives: symbol @SubSection unknown or misspelt]
> > >
> > > extend @Text @Section
> > > def @Charm { @SubSection }
> >
> > Copying this into mydefs (and nothing else) gives:
> >
> > lout file "mydefs" (from "doc" line 29, from "ma" line 3):
> > 1,8: extend symbol @Text not in scope
> > 1,14: extend symbol @Section not in scope
> > not in scopeend symbol
> > 1,37: fatal error: exiting now
> >
> > Is there something wrong with my installation, do you think?
>
> No, I get the same if I put the two lines in mydefs[1]. When I wrote
> the mail I'd put the def in the main file just after the SysIncludes.
> The difference is that doc reads mydefs before it has exported all
> those Setup symbols. So you would have to supply the complete
> nesting chain when defining it in mydefs:
>
> import/export @BasicSetup @DocumentSetup @OrdinarySetup @Text @Section
> def @Charm body x { @SubSection { x } }
Excellent, thank you. I didn't know about @OrdinarySetup. Is there
somewhere I can find the various Setup scopes? I'd like to be able to
use the Book setup, etc. without having to harass the list again.
Cheers,
Jason Whittle