version 1.10, 2004/03/17 13:28:38 |
version 1.12, 2004/03/25 01:05:34 |
|
|
; $OpenXM: OpenXM/src/kxx/init-openxm.scm,v 1.9 2004/03/16 11:41:15 ohara Exp $ |
; $OpenXM: OpenXM/src/kxx/init-openxm.scm,v 1.11 2004/03/19 07:53:43 ohara Exp $ |
|
|
(define (openxm-eval t) |
(define (openxm-eval t) |
(import-from (texmacs plugin plugin-cmd)) |
(import-from (texmacs plugin plugin-cmd)) |
|
|
(cond |
(cond |
((url-exists-in-path? "w3m") |
((url-exists-in-path? "w3m") |
(cond ((url-exists-in-path? "rxvt") "rxvt -g 100x50 -e w3m") |
(cond ((url-exists-in-path? "rxvt") "rxvt -g 100x50 -e w3m") |
|
((url-exists-in-path? "kterm") "kterm -g 100x50 -e w3m") |
((url-exists-in-path? "xterm") "xterm -g 100x50 -e w3m") |
((url-exists-in-path? "xterm") "xterm -g 100x50 -e w3m") |
(else #f))) |
(else #f))) |
((url-exists-in-path? "mozilla" ) "mozilla" ) |
((url-exists-in-path? "mozilla" ) "mozilla" ) |
|
|
("LaTeX" (openxm-eval "!latex;")) |
("LaTeX" (openxm-eval "!latex;")) |
("verbatim" (openxm-eval "!verbatim;"))) |
("verbatim" (openxm-eval "!verbatim;"))) |
(-> "Load Modules (Asir)" |
(-> "Load Modules (Asir)" |
("dsolv" (openxm-eval "load(\"dsolv\");")) |
|
("ccurve" (openxm-eval "load(\"ccurve.rr\");")) |
("ccurve" (openxm-eval "load(\"ccurve.rr\");")) |
|
("dsolv" (openxm-eval "load(\"dsolv\");")) |
|
("ratint" (openxm-eval "load(\"ratint\");")) |
|
("solv" (openxm-eval "load(\"solv\");")) |
|
("sp" (openxm-eval "load(\"sp\");")) |
|
("sturm" (openxm-eval "load(\"sturm\");")) |
|
("sym" (openxm-eval "load(\"sym\");")) |
|
("weight" (openxm-eval "load(\"weight\");")) |
("yang" (openxm-eval "load(\"yang.rr\");")) |
("yang" (openxm-eval "load(\"yang.rr\");")) |
) |
) |
(-> "Display Configuration (Asir)" |
(-> "Display Configuration (Asir)" |
|
|
))) |
))) |
) |
) |
|
|
|
(define (openxm-serialize lan t) |
|
(import-from (texmacs plugin plugin-cmd)) |
|
(with u (pre-serialize lan t) |
|
(with s (texmacs->verbatim (object->tree u)) |
|
(string-append (string-replace s "\n" "\v") "\n") |
|
))) |
|
|
(plugin-configure openxm |
(plugin-configure openxm |
(:require (url-exists-in-path? "openxm")) |
(:require (url-exists-in-path? "openxm")) |
(:initialize (openxm-initialize)) |
(:initialize (openxm-initialize)) |
|
(:serializer ,openxm-serialize) |
(:launch "exec openxm ox_texmacs") |
(:launch "exec openxm ox_texmacs") |
(:session "OpenXM[asir,sm1]")) |
(:session "OpenXM[asir,sm1]")) |