Re: Non-mathematics inside @Math?
Jeff Kingston <[email protected]>
| Newsgroups | gmane.comp.type-setting.lout |
|---|---|
| Message-ID | <[email protected]> |
On Fri, Mar 20, 2009 at 02:47:49PM -0000, [email protected] 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. Jeff