TeXmacs can be used as a front end for many kinds of mathematical software, such as Maxima,octave,r. It can even be used as the front end of Mathematica. TeXmacs's Mathematica plugin is older and does not run Mathematica 10 by default. The following assumes that TeXmacs and Mathematica are properly installed in the/usr/local directory under 64-bit Linux, and that the following files need to be modified (where the Orange section is modified):
1./usr/local/libexec/texmacs/bin/tm_mathematica
#!/bin/sh
Error () {
#echo-E "\002latex:\\red $1\005"
Echo-e "$"
Exit 1
}
Export mathlink_platform=linux-x86-64
Export ld_library_path=/usr/local/wolfram/mathematica/10.0/systemfiles/links/mathlink/developerkit/ Linux-x86-64/compileradditions: $LD _library_path
if [!-X "$TEXMACS _home_path/bin/tm_mathematica.bin"]
Then
math0= ' which math '
If [$?-ne 0]
Then error "Mathematica seems isn't to be installed"
Fi
math1= ' Realpath ' $MATH 0 "'
If [$?-ne 0]
Then
math1= ' realpath.py ' $MATH 0 "'
If [$?-ne 0]
Then error "Realpath seems is not installed"
Fi
Fi
math2= ' echo ' $MATH 1 "| sed-e ' s=executables/math$=systemfiles/links/mathlink/developerkit= '
Platform= ' (cd "$MATH 2"; Echo *) '
Num_platforms= ' echo ' $PLATFORM | Wc-w '
If ["$NUM _platforms"-eq 1]
Then math3= "$MATH 2/$PLATFORM"
...................... The following omit ....... ........
`
2./usr/local/share/texmacs/plugins/mathematica/makefile.lazy
$ (Texmacs_home_path)/BIN/TM_MATHEMATICA.BIN:SRC.LAZY/TM_MATHEMATICA.C
Gcc-o $ (texmacs_home_path)/bin/tm_mathematica.bin src.lazy/tm_mathematica.c-i $ (mathlink_path)-L $ (MATHLINK_ PATH)-lml64i3-lm-lpthread-lrt-luuid
(Note: If necessary, install the UUID.) Ubuntu under command apt-get install Uuid-dev)
3. If you want to use Mathematica in TeXmacs, run the command each time you start the Mathematica plugin:
get["VERSION5/GRAPHICS.M"]
As follows:
Linux TeXmacs as the front end of Mathematica 10