Linux TeXmacs as the front end of Mathematica 10

Source: Internet
Author: User
Tags uuid

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

Related Article

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.