~ubuntu-branches/ubuntu/quantal/texmacs/quantal

« back to all changes in this revision

Viewing changes to plugins/mathemagix/progs/init-mathemagix.scm

  • Committer: Bazaar Package Importer
  • Author(s): Atsuhito KOHDA
  • Date: 2010-04-23 07:09:40 UTC
  • mfrom: (1.2.6 upstream)
  • mto: This revision was merged to the branch mainline in revision 16.
  • Revision ID: james.westby@ubuntu.com-20100423070940-juy8n05xs1b6au8i
Re-upload, former upload failed with wrong diff.gz perhaps.

Show diffs side-by-side

added added

removed removed

Lines of Context:
27
27
  (import-from (utils plugins plugin-convert))
28
28
  (lazy-input-converter (mathemagix-input) mathemagix))
29
29
 
 
30
(define (mathemagix-serialize lan t)
 
31
  (import-from (utils plugins plugin-cmd))
 
32
  (with u (pre-serialize lan t)
 
33
    (with v (texmacs->verbatim (stree->tree u))
 
34
      (with w (string-replace v "\n" "/{CR}/")
 
35
        (string-append (escape-verbatim w) "\n")))))
 
36
 
30
37
(plugin-configure mathemagix
31
38
  (:require (url-exists-in-path? "mmx-light"))
 
39
  (:serializer ,mathemagix-serialize)
32
40
  (:initialize (mathemagix-initialize))
33
41
  (:launch "mmx-light --texmacs")
34
42
  (:session "Mathemagix"))