Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

keep MathJax compatible LaTeX environment #60

Open
appetrosyan opened this issue Nov 4, 2019 · 3 comments
Open

keep MathJax compatible LaTeX environment #60

appetrosyan opened this issue Nov 4, 2019 · 3 comments

Comments

@appetrosyan
Copy link

Anki supports either providing a LaTeX equation via [$$] ... [/$$] or a MathJax using \[ ... \]. The latter is much more useful because it allows us to use cloze deletions.

Seeing as any LaTeX environment is being exported surrounded with the former tags and not the latter, I woulkd suggest adding an option not to convert the \( \) \[ \] family of delimiters to the [$$] ... [/$$]. To allow those of us using mathJax to do what we want.

@nicories
Copy link

nicories commented Nov 9, 2019

That's already possible, just set anki-editor-use-math-jax to true.

I think it should become the new default, especially now that AnkiDroid supports it as well. Or at least be documented.

@appetrosyan
Copy link
Author

Doesnt produce the expected result.

@psii
Copy link

psii commented Apr 21, 2020

It does! I had the same problem, but when setting the option before the package is loaded, it works, i.e.:

(setq-default anki-editor-use-math-jax t)
(require 'anki-editor)

;; Or using the use-package stuff
(use-package anki-editor
  :after org
  :init
  (setq-default anki-editor-use-math-jax t))

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants