casouri / quick-mathlive

Quick mathlive from commandline

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

quick mathlive

This is a command line tool wrapper around mathlive.

./quick-mathlive.gif

Install

git clone https://github.com/casouri/quick-mathlive.git
cd quick-mathlive
npm install

Emacs

Put quick-mathlive.el under somewhere in load-path.

(require 'quick-mathlive)

Run M-x quick-mathlive on math environments. Close the window and the change will be applied. If you want to shutdown the background process, use quick-mathlive-quit-server.

Command line

Usage: quick-mathlive [options] [command]

Options:
  -V, --version     output the version number
  -p --port <port>  Port
  -h, --help        output usage information

Commands:
  start             Start background process
  edit [latex]      Edit Latex equations in mathlive
  quit              Quit background process
quick-mathlive start

This starts a server listening on local port. You can append an ampersand to make it run in the background.

quick-mathlive edit '\iota'

This send the latex text to the server, and the server will open a mathlive window in where you can edit math formulas. When you close the window the modified content is printed to standard output.

quick-mathlive quit

This sends QUIT to the server and shuts it down.

About

Quick mathlive from commandline


Languages

Language:JavaScript 99.6%Language:Emacs Lisp 0.4%Language:Makefile 0.0%Language:HTML 0.0%Language:TeX 0.0%Language:CSS 0.0%