Re: user def symbols for use in @Eq - misbehaving!

Daren Scot Wilson <[email protected]>
Newsgroups gmane.comp.type-setting.lout
Message-ID <[email protected]>
Ah, this is getting interesting.  I added "extend @Eq" as Wolfram 
suggested, and the problem went away.   _That_ problem; there are 
several other defs to which I added that extra preamble.  Now Lout is 
quitting with the complaint "import extend not in scope" but only for 
the first def when it has this preamble.   Clearly there is more to study...

The @Math/@Eq thing is a new one - haven't heard of that until now.  
Missed that memo!  Tell me when that happened.

I'm using Lout 3.39, and was reading (unwittingly) the User's Guide for 
3.31.  That might be one reason I'm running into trouble.

Resisting the urge to give up and do it all with a crayon and paper, I 
will be studying the Expert Guide.  All things considered, even with a 
few puzzling problems along the way, using Lout is *way* better than the 
typewriter and white-out I used when I first wrote this paper back in 
1981.  *Wayyyyy* better!



On 12/27/2011 02:12 PM, Martin Senft wrote:
> 2011/12/27 Daren Scot Wilson<[email protected]>:
>> What are the limitations on what a user defined symbol can contain?  I think
>> I am running into some obstacle.
>>
>>
>> In mydefs I have written
>>
>>     def @opone {times}
>>
>>
>> In the lout source file there is:
>>
>>     @Eq {x @opone y = x times y }
>>
>> The final output, converted to PDF, shows
>>
>>     xtimesy = x в y
>>
>> (In case the unicode doesn't survive the mailing list system: on the right
>> hand side there's a letter x, the times symbol which looks like a plain
>> geometric x, then the letter y)  The "times" works find directly in an @Eq,
>> but not if given as a user defined symbol.
>>
>> Why is the @opone symbol not working?
>>
>> Lout ran without showing any error messages.  There are other similar
>> definitions in mydefs that work fine.  (The problem reported in the previous
>> message was "solved" by commenting out lots of stuff temporarily. I still
>> need to resolve that.)
>>
>> I tried some simple variations, speculating that some subtle ambiguities
>> were involved, but there's no change.
>>     def @opone { times }
>>     def @opone {{times}}
>>
>>
>> --
>> Daren Scot Wilson
>> Escondido California
>> http://www.darenscotwilson.com
>
> This issue looks like a forgotten "import @Eq" or "extend @Eq" in the
> definition of @opone. Without this line, there is no symbol "times"
> defined when Lout finds and evaluates "def @opone { times }" and thus
> "times" is just a word.
>
> Also, I believe that @Eq is deprecated and @Math is recommended for
> new projects.
>
> Martin Senft
>


-- 
Daren Scot Wilson
Escondido California
720-253-2646 (cell)
[email protected]
http://www.darenscotwilson.com
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.