2
;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
5
;; DESCRIPTION : finalize LaTeX -> TeXmacs conversions
6
;; COPYRIGHT : (C) 2002 Joris van der Hoeven
8
;; This software falls under the GNU general public license and comes WITHOUT
9
;; ANY WARRANTY WHATSOEVER. See the file $TEXMACS_PATH/LICENSE for details.
10
;; If you don't have this file, write to the Free Software Foundation, Inc.,
11
;; 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
13
;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
15
(texmacs-module (convert latex textm)
17
(convert rewrite tmtm-eqns) (convert rewrite tmtm-tidy))
21
(define (textm-finalize l1)
22
(let* ((l2 (tmtm-modernize-newlines l1))
23
(l3 (tmtm-nonumber->eqnumber l2))
24
(l4 (tmtm-eat-space-around-control l3))
25
(l5 (tmtm-remove-superfluous-newlines l4))
26
(l6 (tmtm-concat-document-correct l5)))