[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: defining new symbols
From: |
Efraim Yawitz |
Subject: |
Re: defining new symbols |
Date: |
Mon, 08 Aug 2005 20:36:58 +0300 (IDT) |
I assume Professor Kingston or someone more expert than myself will answer
soon, but from just a quick look at what you're trying to do, I think
you're confusing macro (which just substitutes some string for another
string) with def (which actually defines a new function.) It's all in the
"Expert's Guide", although it takes some time to get used to.
Ephraim
On Mon, 8 Aug 2005, Lothar Krause wrote:
>
> Hej,
>
> I love using lout and stuff - yet one thing that I don't quite grasp is
> when it comes to defining new symbols and when to import what. For example I
> tried to define a symbol @sec like this:
>
> macro @sec
> right{x}
> { @Section @Include{x.lt} @Section}
>
> so I could write @sec{intro} and this would start a new section as well as
> including the file "intro.lt" looking like @Title{Introduction}
> @Begin ... @End so I'd be easier to turn sections into subsections and
> vice versa. Is it possible to do such a thing with lout and if so than
> how so? (Or did I overlook something?)
>
> lo
>
>
>