54
GitHub - fuxialexander/emacs-webkit-katex-render: An instant latex previewer for...
source link: https://github.com/fuxialexander/emacs-webkit-katex-render
Go to the source link to view the article. You can view the picture content, updated content and better typesetting reading experience. If the link is broken, please click the button below to view the snapshot at that time.
readme.org
webkit-katex-render
: an instant Latex Previewer for Emacs
Demo
Please checkout the demo video.Preparation
You need emacs compiled withxwidget
support.
If you are on mac OS, you need to apply this patch to emacs master branch and compile using the following commands:
./autogen.sh ./configure --with-xwidgets --with-ns --with-gnutls --with-imagemagick --with-modules --with-rsvg --with-xml2 make install
If you are on Linux, maybe you can follow this blog post.
Install
use-package
(use-package webkit-katex-render :init ;; if you use doom-emacs (setq webkit-katex-render--background-color (doom-color 'bg)) ;; if you want to set a different path to the html client (setq webkit-katex-render--client-path "PATH/TO/CLIENT.html") ;; if you want to add your customized ~math-at-point~ function (setq webkit-katex-render--math-at-point-function 'function))
- My config for
doom-emacs
(def-package! webkit-katex-render :load-path "~/Source/playground/emacs-webkit-katex-render" :commands (webkit-katex-render-mode) :config (setq webkit-katex-render--background-color (doom-color 'bg)))
Usage
M-x webkit-katex-render-mode
to start the minor mode- Move your cursor to a latex fragment (in either org mode or latex-mode)
- Try look around and type equations!
Plans
See issue board.Recommend
About Joyk
Aggregate valuable and interesting links.
Joyk means Joy of geeK