Comments (4)
Sorry for the late replay...It's apparently a JS problem but I'm afraid at the moment I have no idea where it lies...Could be Katex itself not been successfully imported.
You may try to evaluate the following code and see whether the situation changes
(defun webkit-katex-render--resize() nil)
If not, the problem is probably that Katex is not functioning/imported
from emacs-webkit-katex-render.
Yeah, it doesn't seem to fix it. Can you give me any pointers as to where to look at the JS that should work? How can I investigate whether Katex is working?
from emacs-webkit-katex-render.
Digging into the file a bit, I think it's the try_render
function that is not being found -- when I change that to something else like document.body.innerHTML += %s
, I see the effects in the webkit buffer.
from emacs-webkit-katex-render.
Some more progress: I was setting --client-path
incorrectly, so it wasn't finding the right katex.html
. Once I fix that, and set --buffer-name
to something else, like "webkit-katex" that I can actually inspect myself, I see that the Latex is being rendered in the webkit, but it still won't render in my org-mode buffer. I still see errors like
** (emacs:12687): WARNING **: 21:16:06.817: Error running javascript: undefined:1:39: TypeError: null is not an object (evaluating 'document.querySelector('.katex-html').offsetWidth')
** (emacs:12687): WARNING **: 21:16:06.831: Error running javascript: TypeError: undefined is not a function
** (emacs:12687): WARNING **: 21:16:06.848: Error running javascript: TypeError: null is not an object
** (emacs:12687): WARNING **: 21:16:06.848: Error running javascript: TypeError: null is not an object
Any ideas on how to dig further?
from emacs-webkit-katex-render.
Related Issues (10)
- You should add some gifs to attract users! HOT 1
- Unpredictable behavior
- Ivy minibuffer issue
- Persistent render display in-buffer below/in-place of equation HOT 3
- The preview disappears very quickly
- Add support for AUCTeX HOT 1
- Applying patch to emacs HOT 1
- Error in post-command-hook (webkit-katex-render-update): (wrong-type-argument integer-or-marker-p nil) HOT 3
- Use xwidget + Guppy (or Mathquill) as a latex equation input widget HOT 8
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from emacs-webkit-katex-render.