fuxialexander / emacs-webkit-katex-render Goto Github PK
View Code? Open in Web Editor NEWAn instant latex previewer for Emacs, based on xwidget and child-frame
An instant latex previewer for Emacs, based on xwidget and child-frame
This looks amazing. Nice work.I'm interested in a persistent preview in-buffer.
So, to continually see an on-the-fly render of the latex block. Is there any way to modify this (or configure it) to display the preview persistently in buffer without the need for rolling over the actual formula? As in embed it above/below/over top of it and editable-on-click persistently in the buffer?
In a sense, I'm trying to emulate the really nice "Equation block" feature that Notion has (and that I flirted with over the holidays).
Add AUCTeX math environment support.
First of all, many many thanks for your wonderful package !
Do you think it could be possible to use xwidget + Guppy (or Mathquill) as a latex equation input widget for equations editing, "not just" rendering ... ?
https://guppy.js.org
http://mathquill.com
A possible workflow could be:
wen the cursor is inside a latex math expression, the user can open an xwidget input widget where Guppy or Matquill is running and display the equation inside it. The Latex code source should be modified according to modifications of the equation inside the input widget.
when not in a latex source code equation open the xwidget input widget to create one and copy the source code inside emacs as the equation is typed inside the input widget.
Do you think it could it be feasible with the base of emacs-webkit-katex-render
?
Many thanks for your feedback :)
When in webkit-katex-render-mode if I open the minibuffer (counsel-M-x) and try to close it with ESC-ESC-ESC or C-g it displays [Wrong type argument: commandp, webkit-katex-render-hide]
so I can't close the minibuffer. If I disable webkit-katex-render-hide the issue persists so I have to restart emacs.
I believe I have emacs with xwidgets support (I can do xwidget-webkit-browse-url
, for instance), but this package only renders a blank white popup for me, and I see the following errors in terminal:
** (emacs:16002): WARNING **: 13:02:06.764: Error running javascript: TypeError: undefined is not a function
** (emacs:16002): WARNING **: 13:02:06.764: Error running javascript: undefined:1:39: TypeError: null is not an object (evaluating 'document.querySelector('.katex-html').offsetWidth')
** (emacs:16002): WARNING **: 13:02:06.764: Error running javascript: TypeError: undefined is not a function
Any pointers would be appreciated.
When in webkit-katex-render-mode it sometimes works and most of the time it does not work.
It's better you look at the screen recording via this WeTranser link.
I'm on Manjaro linux using emacs27-git.
I use veshboo's xwidget webkit support emacs. My init.el:
(use-package webkit-katex-render
:load-path "~/emacs-webkit-katex-render"
:commands (webkit-katex-render-mode))
I enabled it in org-mode and moved the cursor on the latex fragment. No preview pops up and I got the above error.
And I use evil. Any suggestions?
Thank you!
I'm unable to apply the patch to emacs master as described in the readme. I get the following error:
error: patch failed: configure.ac:405
error: configure.ac: patch does not apply
error: patch failed: lisp/xwidget.el:39
error: lisp/xwidget.el: patch does not apply
error: patch failed: nextstep/templates/Info.plist.in:675
error: nextstep/templates/Info.plist.in: patch does not apply
error: patch failed: src/Makefile.in:414
error: src/Makefile.in: patch does not apply
error: patch failed: src/emacs.c:1541
error: src/emacs.c: patch does not apply
error: patch failed: src/nsterm.m:49
error: src/nsterm.m: patch does not apply
error: src/nsxwidget.h: already exists in index
error: src/nsxwidget.m: already exists in index
error: patch failed: src/xwidget.c:18
error: src/xwidget.c: patch does not apply
error: patch failed: src/xwidget.h:29
error: src/xwidget.h: patch does not apply
Do I need to checkout a particular commit from the emacs master branch? I'm using the emacs repo from here: https://github.com/emacs-mirror/emacs
Thanks for the package, I would love to take it for a spin!
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.