[Top][All Lists]

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

Re: Non-mathematics inside @Math?

From: Jeff Kingston
Subject: Re: Non-mathematics inside @Math?
Date: Sat, 21 Mar 2009 16:35:22 +1100
User-agent: Mutt/1.4i

On Fri, Mar 20, 2009 at 02:47:49PM -0000, address@hidden wrote:
> Hi all,
>   does Lout have something corresponding to LaTeX's \mbox,
> allowing me to include non-mathematic material inside @Math?

This is an awkward problem.  There is nothing like \mbox and I
suspect there never will be.  You've picked a good example in

    @Haskell {n `div` 2}

since ` and div are both symbols defined in @Math, whereas in
@Haskell they are just tokens passed through uninterpreted.

It might be possible to modify the prg2lout program so that it
places everything it sees in double quotes, thereby isolating
everything from all possibility of further interpretation.  But
it doesn't seem likely that anyone would want to make such a
radical change to prg2lout at this point.  Besides, it would
be no help in other cases where there is no filter program.

These problems arise from the ability of symbols like @Math and
@Haskell to bring other symbols into scope for a limited region,
and also from Lout's willingness to use the same syntax for
symbols and for literal words.  I've already decided to have
neither of these features in Nonpareil, and that should fix
most of these interaction problems.


reply via email to

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