lout-users
[Top][All Lists]
Advanced

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

Re: Import?


From: Edgar Toernig
Subject: Re: Import?
Date: Fri, 10 Sep 2004 22:03:35 +0200

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 } }

Scoping in Lout is kind of complex and weird.  I'm not sure whether
this is the right approach.  Just trial'n'error...

Ciao, ET.

[1] I never used mydefs before.


reply via email to

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