mailing-list for TeXmacs Users

Text archives Help


Re: [TeXmacs] A (large) TeXmacs demo and how to use CAS in winTeXmacs (Rev.)


Chronological Thread 
  • From: Bob Lounsbury <address@hidden>
  • To: chu-ching huang <address@hidden>
  • Cc: address@hidden
  • Subject: Re: [TeXmacs] A (large) TeXmacs demo and how to use CAS in winTeXmacs (Rev.)
  • Date: Fri, 13 Oct 2006 10:41:11 -0600
  • Domainkey-signature: a=rsa-sha1; q=dns; c=nofws; s=beta; d=gmail.com; h=received:in-reply-to:references:mime-version:content-type:message-id:cc:content-transfer-encoding:from:subject:date:to:x-mailer; b=Fh8/IIw0rMQHGkCJdz5G5lBDCT5GCGFwO/JkR9Y9SVxr3r2BxeKvFdXtnmaUOtXGcvdpANlGnStMA+TZOe9/FrGaG98Lh9ke+Erb+P6NHM2CmHaPqXH1PonmNqLE3gC25K8SERk8/2IsI8aPh46Zg4wQdyiZ013omnQhL8av1Fo=

I just looked through your calculus.tm and all I can say is WOW!!! That is amazing!

I wish I had known about TeXmacs and had this guide when I was taking calculus, it could have really helped me learn and visualize better.

--
Bob Lounsbury
Bio-energy Graduate Assistant
University of Idaho-Boise
322 E. Front St. Suite 242
Boise, ID 83702
208-364-6196
208-364-3160 (Fax)
address@hidden

On Oct 13, 2006, at 3:50 AM, chu-ching huang wrote:

Hi all,

Sorry for some mistake in previous email. This is resent again!

I has used TeXmacs for a long time and use it to make many notes about math
and CAS. Now most of the notes are collected together as a file.

The content includes a mini math lecture about calculus (for management
students) and a appendix for the CAS demo for introducing Axiom, Maxima and
octave etc.

Both the files, in tm (about 10mb) and pdf (about 2mb) formats, are put on the
following:

http://math1.cgu.edu.tw:2006/class/management/951/calculus.tm
/calculus.pdf
Please feel free to download.

By the way, I also try to install winTexmacs and use CAS plugins directly. The
way to use CAS in winTeXmacs is as follows:


How to use octave and Maxima in winTeXmacs:

a) Suppose that winTeXmacs, Maxima and Octave are installed in
C:\Program Files\wintexmacs
\maxima
\octave
b) Modification for Maxima
i) modify "init-maxima.scm" in "C:\Program
Files\wintexmacs\plugins\maxima\progs"
@echo off

set arg0=%0
set arg1=%1
set arg2=%2
set arg3=%3
set arg4=%4
set arg5=%5
set arg6=%6
set arg7=%7
set arg8=%8
set arg9=%9
rem Uncomment line below and set required value to MAXIMA_LANG_SUBDIR
rem to get localized describe in command line Maxima
rem set MAXIMA_LANG_SUBDIR="es"

set lisp=gcl
set version=5.9.3
set prefix=c:/maxima
set maxima_prefix=C:\ROGRA~1\maxima
set package=maxima
set verbose=false
set path=%maxima_prefix%\bin;%path%

if "%USERPROFILE%" == "" goto win9x
if "%MAXIMA_USERDIR%" == "" set MAXIMA_USERDIR=%USERPROFILE% \maxima
if "%MAXIMA_TEMPDIR%" == "" set MAXIMA_TEMPDIR=%USERPROFILE%
goto startparseargs
:win9x
if "%MAXIMA_USERDIR%" == "" set MAXIMA_USERDIR=%maxima_prefix% \user
if "%MAXIMA_TEMPDIR%" == "" set MAXIMA_TEMPDIR=%maxima_prefix%

:startparseargs
if "%1" == "-l" goto foundlisp
if "%1" == "--lisp" goto foundlisp
if "%1" == "-u" goto foundversion
if "%1" == "--use-version" goto foundversion
if "%1" == "-v" goto foundverbose
if "%1" == "--verbose" goto foundverbose

:continueparseargs
shift
if not "%1" == "" goto startparseargs
goto endparseargs

:foundlisp
set lisp=%2
shift
goto continueparseargs

:foundversion
set version=%2
shift
goto continueparseargs

:foundverbose
set verbose=true
goto continueparseargs

:endparseargs

if "%MAXIMA_LAYOUT_AUTOTOOLS%" == "" goto defaultlayout
set layout_autotools=true
goto endlayout

:defaultlayout
set layout_autotools=true

:endlayout

if "%MAXIMA_PREFIX%" == "" goto defaultvars
if "%layout_autotools%" == "true" goto maxim_autotools
set maxima_imagesdir=%MAXIMA_PREFIX%\src
goto endsetupvars

:maxim_autotools
set maxima_imagesdir=%MAXIMA_PREFIX%\lib\%package%\%version%
goto endsetupvars

:defaultvars
if "%layout_autotools%" == "true" goto defmaxim_autotools
set maxima_imagesdir=%prefix%\src
goto endsetupvars

:defmaxim_autotools
set maxima_imagesdir=%prefix%\lib\%package%\%version%
goto endsetupvars

:endsetupvars

set maxima_image_base=%maxima_imagesdir%\binary-%lisp%\maxima

if "%verbose%" == "true" @echo on
if "%lisp%" == "gcl" goto dogcl
if "%lisp%" == "clisp" goto doclisp

@echo "maxima error: lisp %lisp% not known."
goto end

:dogcl
%maxima_imagesdir%\binary-gcl\maxima.exe -eval "(cl- user::run)" -f --
"%arg1%" "%arg2%" "%arg3%" "%arg4%" "%arg5%" "%arg6%" "%arg7%" "% arg8%" "%arg9%"
goto end

:doclisp
if "%layout_autotools%" == "true" goto clisp_autotools
clisp -q -M %maxima_image_base%.mem "" -- "%arg1%" "%arg2%" "% arg3%"
"%arg4%" "%arg5%" "%arg6%" "%arg7%" "%arg8%" "%arg9%"
goto end

:clisp_autotools
%maxima_imagesdir%\binary-clisp\lisp.exe -q -M % maxima_image_base%.mem
"" -- "%arg1%" "%arg2%" "%arg3%" "%arg4%" "%arg5%" "%arg6%" "% arg7%" "%arg8%"
"%arg9%"
goto end

:end

c) Modification for octave
i) modify "init-octave.scm" in "C:\Program
Files\wintexmacs\plugins\maxima\progs"
...
(plugin-configure octave
(:require (url-exists-in-path? "tm-start-octave.bat"))
(:initialize (octave-initialize))
(:launch "tm-start-octave.bat")
(:session "Octave"))

ii) add new file "tm-start-octave.bat"in "C:\Program Files\octave \bin"
@echo off
C:\PROGRA~1\octave\bin\bash.exe -e /bin/octave.sh
bash.exe and related dll files can be copied from "Gnuplot for windows".

iii) add new file "octave.sh"in "C:\Program Files\octave\bin"
#!/bin/sh
# This script is executed under sh.exe to start octave
export PATH="/bin:/usr/bin:/usr/local/bin:/usr/X11R6/bin:
export HOME="/octave_files"
export PS_VIEWER=""
export EDITOR="nodepad.exe"
cd "$HOME"
octave.exe -i tm-start.oct
rm -f /tmp/*
create the new directory as "C:\Program Files\octave \octave_files" if
not exists.

d) add the plugins into the file, "pluginpaths.txt" in C:\Documents and
settings\"YOUR USER FOLDER"\.TeXmacs\plugins" as the follows:
C:\Program Files\maxima\bin
C:\Program Files\octave\bin

By the way, another CAS "Axiom" can be used well in winTeXmacs without any
modification.


Best regrads,

chu-ching huang









Archive powered by MHonArc 2.6.19.

Top of page