Skip to content

johanvts/metapost-png-preview

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

14 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Metapost PNG preview for Emacs

Easy interactive workflow for writing Metapost in Emacs.

Based on metapost-mode+ but using the Metapost png backend.

Alt text

Usage

To preview the current figure:

M-x metapost-png-next

Installation

Simply load the file

(load "metapost-png-preview-mode.el")

ToDo

  • Add as a Melpa package.
    • Package-lint found these issues that should be fixed before adding to MELPA:
    • 7:0: error: "metapost-prev-outputformat" doesn't start with package's prefix "metapost-png-preview".
    • 11:0: error: "metapost-prog-mpost" doesn't start with package's prefix "metapost-png-preview".
    • 15:0: error: "metapost-regex-find-first-match" doesn't start with package's prefix "metapost-png-preview".
    • 23:0: error: "metapost-outputformat-set" doesn't start with package's prefix "metapost-png-preview".
    • 42:7: warning: Closing parens should not be wrapped onto new lines.
    • 44:0: error: "metapost-outputformat-remove" doesn't start with package's prefix "metapost-png-preview".
    • 55:0: error: "metapost-outputformat-restore" doesn't start with package's prefix "metapost-png-preview".
    • 62:0: error: "metapost-compile-buffer" doesn't start with package's prefix "metapost-png-preview".
    • 69:0: error: "metapost-prepare-buffer" doesn't start with package's prefix "metapost-png-preview".
    • 80:0: error: "metapost-locate-figure-no" doesn't start with package's prefix "metapost-png-preview".
    • 118:0: error: "metapost-png-next" doesn't start with package's prefix "metapost-png-preview".
  • Testing, especially on non Windows10/miktex setups.

License

MIT

About

png-based preview of metapost in emacs.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published