Git Product home page Git Product logo

emacs-webkit-katex-render's Introduction

Hi there ๐Ÿ‘‹

emacs-webkit-katex-render's People

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar

emacs-webkit-katex-render's Issues

Persistent render display in-buffer below/in-place of equation

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).

Use xwidget + Guppy (or Mathquill) as a latex equation input widget

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 :)

Ivy minibuffer issue

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.

Error running javascript: TypeError: undefined is not a function

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.

Unpredictable behavior

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.

The preview disappears very quickly

I successfully installed the latest version of emacs-webkit-katex-render. However, when I run preview command in org-mode, the preview frame disappears very quickly, leaving only a small with box, making it barely be seen. PS, I'm running on emacs 28.
The screenshot looks like this:
image

Applying patch to emacs

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!

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.