Hot answers tagged

3

You have to set the variable org-html-mathjax-template appropriately. Assuming you are using the default configuration, loading mathjax from cdn.mathjax.org, then the following setting (which loads the mhchem extension, as well as the siunitx extension, but also contains ancient cruft that might no longer be needed, or might even cause problems) works for me,...


2

texfrag can be used for rendering TeX fragments in stackexchange pages (e.g., https://math.stackexchange.com) presented with sx. It uses the AucTeX preview package for the job. Therefore, you need a working AucTeX preview (inclusive a working LaTeX). Several other major modes are supported, e.g., html-mode for MathJax fragments in html pages and prog-mode ...


2

Here is a partial answer. If you have the org file below, you can export to HTML via ox-pandoc using the org-pandoc-export-to-html5-and-open function. #+TITLE: Test Export using ox-pandoc #+PANDOC_OPTIONS: mathjax:t #+BEGIN_EXPORT html <!-- https://stackoverflow.com/questions/45774826/svg-output-of-mathjax --> <script type="text/x-mathjax-config"&...


1

Because they don't exist in the tables org-entities or org-entities-user. You can customize the latter and add them if you want. You need to figure out what to replace it with for LaTeX, HTML, ASCII, Latin1 and UTF8. Here's a possible definition for \bot although the Latin1 part could probably be improved: #+begin_src emacs-lisp (add-to-list 'org-entities-...


1

Here is my (maybe somewhat hacky) fix. Put this in your config file. (with-eval-after-load 'ox-html (setq org-html-head (replace-regexp-in-string ".org-svg { width: 90%; }" ".org-svg { width: auto; }" org-html-style-default))) How did I came up with this? Reading the org-mode manual's section about ...


1

I ended up finding the following solution. I found a base solution on reddit that adds a "fake" language to babel as follows: (add-to-list 'org-src-lang-modes '("latex-macros" . latex)) (defvar org-babel-default-header-args:latex-macros '((:results . "raw") (:exports . "results"))) (defun prefix-all-lines (pre body) (with-temp-buffer (insert ...


1

I don't think you're seeing the image preview via imagemagick/dvisvgm, I think you might be seeing a unicode overlay maybe? If it is, according to the manual you should be able to toggle it with C-c C-x \ looking at the variable org-pretty-entities in M-x customize-variables may help you.


1

As of now no package in emacs use mathjax rendering in-place. This is an open question, since mathjax is javascript. On the other hand, there are several ways to display math in the buffer. The way these methods typically works is to take your equation, use latex engine to compile them into pictures, and then insert the pictures in your buffer. A common ...


Only top voted, non community-wiki answers of a minimum length are eligible