Re: TeX -> Mathematica
- To: mathgroup at smc.vnet.net
- Subject: [mg20644] Re: TeX -> Mathematica
- From: Jens-Peer Kuska <kuska at informatik.uni-leipzig.de>
- Date: Sun, 7 Nov 1999 02:09:52 -0500
- Organization: Universitaet Leipzig
- References: <199910260530.BAA06310@smc.vnet.net.>
- Sender: owner-wri-mathgroup at wolfram.com
[I asked the author for more detail on his message at the bottom of this post -moderator] yes it *is* TeX and you should definetly TeXed it. A nice poem comes out. It is the TeX version of a "obfuscated C" contest entry. The point for "translating TeX -> Mathematica Notebooks" is that TeX is a programing language that can change it's syntax "on flight" by changing the catcodes. That's the reason why TeX has no syntax diagrams and no regular parser can parse TeX. The only program that can pare TeX is TeX and it destroy all the fancy document structure and make small boxes out of it. As you see from the first part of the TeX code, the first thing it does it to change the catcode -- than the madness start. Regards Jens Kenneth Levasseur wrote: Is anyone aware of a utility to convert TeX to Mathematica? Ken Levasseur Math Sciences UMass Lowell No, but it would be nice to see what the converter do with TeX code like: \let~\catcode~`76~`A13~`F1~`j00~`P2jdefA71F~`7113jdefPALLF PA''FwPA;;FPAZZFLaLPA//71F71iPAHHFLPAzzFenPASSFthP;A$$FevP A@@FfPARR717273F737271P;ADDFRgniPAWW71FPATTFvePA**FstRsamP AGGFRruoPAqq71.72.F717271PAYY7172F727171PA??Fi*LmPA&&71jfi Fjfi71PAVVFjbigskipRPWGAUU71727374 75,76Fjpar71727375Djifx :76jelse&U76jfiPLAKK7172F71l7271PAXX71FVLnOSeL71SLRyadR at oL RrhC?yLRurtKFeLPFovPgaTLtReRomL;PABB71 72,73:Fjif.73.jelse B73:jfiXF71PU71 72,73:PWs;AMM71F71diPAJJFRdriPAQQFRsreLPAI I71Fo71dPA!!FRgiePBt'el@ lTLqdrYmu.Q.,Ke;vz vzLqpip.Q.,tz; ;Lql.IrsZ.eap,qn.i. i.eLlMaesLdRcna,;!;h htLqm.MRasZ.ilk,% s$;z zLqs'.ansZ.Ymi,/sx ;LYegseZRyal,@i;@ TLRlogdLrDsW,@;G LcYlaDLbJsW,SWXJW ree @rzchLhzsW,;WERcesInW qt.'oL.Rtrul;e doTsW,Wk;Rri at stW aHAHHFndZPqpa.rtMRrgeLinZ.irLtYer.W,:jbye Regards Jens