Skip to content

Commit

Permalink
[66_3] TMU 1.0.0: identical to TM format
Browse files Browse the repository at this point in the history
  • Loading branch information
da-liii authored Jun 19, 2024
1 parent 3ad2311 commit 75e6596
Show file tree
Hide file tree
Showing 6 changed files with 834 additions and 1 deletion.
30 changes: 30 additions & 0 deletions TeXmacs/plugins/tmu/progs/data/tmu.scm
Original file line number Diff line number Diff line change
@@ -0,0 +1,30 @@

;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
;;
;; MODULE : data/tmu.scm
;; DESCRIPTION : tmu data format
;; COPYRIGHT : (C) 2024 Darcy Shen
;;
;; This software falls under the GNU general public license version 3 or later.
;; It comes WITHOUT ANY WARRANTY WHATSOEVER. For details, see the file LICENSE
;; in the root directory or <http://www.gnu.org/licenses/gpl-3.0.html>.
;;
;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;

(texmacs-module (data tmu))

(define-format tmu
(:name "TMU")
(:suffix "tmu" "tsu"))

(converter tmu-document texmacs-tree
(:function parse-tmu))

(converter texmacs-tree tmu-document
(:function serialize-tmu))

(converter tmu-snippet texmacs-tree
(:function parse-tmu-snippet))

(converter texmacs-tree tmu-snippet
(:function serialize-tmu))
3 changes: 2 additions & 1 deletion TeXmacs/progs/init-research.scm
Original file line number Diff line number Diff line change
Expand Up @@ -335,8 +335,9 @@
gif jpeg png ppm tif webp xpm)

(lazy-format (convert rewrite init-rewrite) texmacs verbatim)
(lazy-format (data stm) stm)
(lazy-format (data mgs) mgs)
(lazy-format (data stm) stm)
(lazy-format (data tmu) tmu)
(lazy-format (convert latex init-latex) latex)
(lazy-format (convert html init-html) html)
(lazy-format (convert bibtex init-bibtex) bibtex)
Expand Down
Loading

0 comments on commit 75e6596

Please sign in to comment.