Subject: mailing-list for TeXmacs Users
List archive
From : "Andrey G. Grozin" <address@hidden>- To: Robert Jerrard <address@hidden>
- Cc: address@hidden
- Subject: Re: [TeXmacs] Texmacs 1.06.9 Maxima 5.12.0
- Date: Thu, 17 May 2007 04:37:56 +0700 (NOVST)
On Wed, 16 May 2007, Robert Jerrard wrote:
On my debian unstable machine I have installed the latest packages formaxima-5.12.0 appeared later than TeXmacs-1.0.6.9.
TeXmacs, 1.0.6.9, and Maxima, 5.12.0. Unfortunately when trying to use
it I get:
ed Unsupported version of maxima: 5.12.0
maxima]
Is there a fix?
The simplest fix is to install TeXmacs-1.0.6.10. Alternatively, you should edit 2 text files - maxima_detect and tm_maxima, and insert the version 5.12.0 in the same way as 5.11.0 was used. If you don't want to edit them, just replace them by the attached files.
Andrey#!/bin/sh
# if there is an argument, find maxima_toc.html
find_old_help()
{
if grep -F 'MAXIMA_DIRECTORY=' $MAXIMA >/dev/null
then
MAXIMA_DIRECTORY=`grep -F 'MAXIMA_DIRECTORY=' $MAXIMA | sed -e
's/MAXIMA_DIRECTORY=//'`
if [ -f "$MAXIMA_DIRECTORY/doc/html/maxima_toc.html" ]
then echo "\"$MAXIMA_DIRECTORY/doc/html/maxima_toc.html\""
elif [ -f "$MAXIMA_DIRECTORY/info/maxima_toc.html" ]
then echo "\"$MAXIMA_DIRECTORY/info/maxima_toc.html\""
else echo '#f'
fi
else
# resorting to locate
MAXIMA_HELP=`locate maxima_toc.html`
if [ $? -eq 0 ]
then
MAXIMA_HELP2=`echo "$MAXIMA_HELP" | grep -F /doc/html/maxima_toc.html`
if [ $? -eq 0 ]
then MAXIMA_HELP="$MAXIMA_HELP2"
else
MAXIMA_HELP2=`echo "$MAXIMA_HELP" | grep -F /info/maxima_toc.html`
if [ $? -eq 0 ]
then MAXIMA_HELP="$MAXIMA_HELP2"
fi
fi
MAXIMA_HELP2=`echo "$MAXIMA_HELP" | grep '^/usr'`
if [ $? -eq 0 ]
then MAXIMA_HELP="$MAXIMA_HELP2"
fi
echo "$MAXIMA_HELP" | sed -e 's/^/"/' -e 's/$/"/' -e '1s/^/(/' -e
'$s/$/)/'
else echo '#f'
fi
fi
}
PATH="/cygdrive/c/Program Files/Maxima-5.9.2/bin:$PATH"
PATH="/cygdrive/c/Program Files/Maxima-5.9.3/bin:$PATH"
export PATH
MAXIMA=`type -p maxima 2>/dev/null`
if [ $? -eq 0 ]
then
if [ -f "/usr/bin/cygwin1.dll" ]
then
if [ "$1" ]
then
maxima.bat -d | grep -F 'maxima-htmldir=' | \
sed -e 's/maxima-htmldir=/"/' -e 's|$|/maxima_toc.html"|' \
-e 's|\\|/|g' -e 's|C:|/cygdrive/c/|'
else
echo '("cygwin")'
fi
else
if grep -F list-avail $MAXIMA >/dev/null
then
# 5.9.0 or later
if [ "$1" ]
then
if $MAXIMA --list-avail | grep -F "version 5.9.1
version 5.9.2
version 5.9.3
version 5.10
version 5.11" >/dev/null
then
# 5.9.1 or 5.9.2 or 5.9.3 or 5.10 or 5.11
maxima -d | grep -F 'maxima-htmldir=' | sed -e \
's/maxima-htmldir=/"/' -e 's|$|/maxima_toc.html"|'
else
# 5.9.0
find_old_help
fi
else
maxima --list-avail | sed -e '1d' -e 's/version /"/' \
-e 's/, lisp / /' -e 's/$/"/' -e '2s/^/(/' -e '$s/$/)/'
fi
else
# 5.6
if [ "$1" ]
then
find_old_help
else
if grep -F clisp $MAXIMA >/dev/null
then echo '("5.6 clisp")'
else echo '("5.6 gcl")'
fi
fi
fi
fi
else
# maxima not found
echo '#f'
fi
#!/bin/sh
TEXMACS_MAXIMA_PATH="$TEXMACS_PATH/plugins/maxima/lisp"
export TEXMACS_MAXIMA_PATH
PATH="/cygdrive/c/Program Files/Maxima-5.9.2/bin:$PATH"
PATH="/cygdrive/c/Program Files/Maxima-5.9.3/bin:$PATH"
export PATH
case $1 in
5.6)
case $2 in
gcl) exec maxima -load "$TEXMACS_MAXIMA_PATH/texmacs-maxima-5.6.lisp" \
| maxima_filter;;
clisp) exec maxima -i "$TEXMACS_MAXIMA_PATH/texmacs-maxima-5.6.lisp" \
| maxima_filter;;
*) echo -e "\2latex:\\red Unsupported lisp for old maxima: $2\5"
esac;;
5.9.0) exec maxima -u $1 -l $2 -p
"$TEXMACS_MAXIMA_PATH/texmacs-maxima-5.9.0.lisp" \
| maxima_filter;;
5.9.1) exec maxima -u $1 -l $2 -p
"$TEXMACS_MAXIMA_PATH/texmacs-maxima-5.9.1.lisp";;
5.9.1.1* | 5.9.2* | 5.9.3*) exec maxima -u $1 -l $2 -p
"$TEXMACS_MAXIMA_PATH/texmacs-maxima-5.9.2.lisp";;
5.10.*) exec maxima -u $1 -l $2 -p
"$TEXMACS_MAXIMA_PATH/texmacs-maxima-5.10.0.lisp";;
5.11.*) exec maxima -u $1 -l $2 -p
"$TEXMACS_MAXIMA_PATH/texmacs-maxima-5.11.0.lisp";;
cygwin)
CYGWIN_ROOT="C:\cygwin"
CYGWIN_TEXMACS_HOME=`echo $TEXMACS_HOME_PATH | sed 's|/|\\\\|g'`
export CYGWIN_TEXMACS_HOME
cp -f "$TEXMACS_MAXIMA_PATH/texmacs-maxima-5.9.2.lisp" \
"$CYGWIN_ROOT$CYGWIN_TEXMACS_HOME\system\tmp"
exec maxima.bat -p \
"$CYGWIN_ROOT$CYGWIN_TEXMACS_HOME\system\tmp\texmacs-maxima-5.9.2.lisp";;
*) echo -e "\2latex:\\red Unsupported version of maxima: $1\5"
esac
- Texmacs 1.06.9 Maxima 5.12.0, Robert Jerrard, 05/16/2007
- Re: [TeXmacs] Texmacs 1.06.9 Maxima 5.12.0, Andrey G. Grozin, 05/16/2007
- Message not available
- Re: [TeXmacs] Texmacs 1.06.9 Maxima 5.12.0, Andrey G. Grozin, 05/17/2007
- Message not available
- Re: [TeXmacs] Texmacs 1.06.9 Maxima 5.12.0, Andrey G. Grozin, 05/16/2007
Archive powered by MHonArc 2.6.19.