* What happens to org-export-with-LaTeX-fragments
@ 2013-05-14 9:21 Leo Liu
2013-05-14 13:02 ` Rasmus
0 siblings, 1 reply; 3+ messages in thread
From: Leo Liu @ 2013-05-14 9:21 UTC (permalink / raw)
To: emacs-orgmode
Hi there,
I am upgrading to org 8 and cleaning up my init. There are two variables
that aren't defined any more: org-export-with-LaTeX-fragments and
org-highlight-latex-fragments-and-specials.
Could someone tell me what are the replacement for them?
Thanks,
Leo
^ permalink raw reply [flat|nested] 3+ messages in thread
* Re: What happens to org-export-with-LaTeX-fragments
2013-05-14 9:21 What happens to org-export-with-LaTeX-fragments Leo Liu
@ 2013-05-14 13:02 ` Rasmus
2013-05-15 0:26 ` Leo Liu
0 siblings, 1 reply; 3+ messages in thread
From: Rasmus @ 2013-05-14 13:02 UTC (permalink / raw)
To: emacs-orgmode
Hi Leo,
> I am upgrading to org 8 and cleaning up my init. There are two variables
> that aren't defined any more: org-export-with-LaTeX-fragments and
I'm looking at an "old" exporter and assume that you are interested in
MathJax and HTML. . .?
In any case, the source suggests that org-element only checks
:with-latex, which can be set 'globally' with org-export-with-latex (I
think). Also, it seems there might be a bug in the docstring as the
function below suggests it also support value dvipng and mathjax. But
I could be wrong.
Anyway, check out this function:
#+BEGIN_SRC emacs-lisp
;;;; Latex Fragment [snip from ox-html.el]
(defun org-html-latex-fragment (latex-fragment contents info)
"Transcode a LATEX-FRAGMENT object from Org to HTML.
CONTENTS is nil. INFO is a plist holding contextual information."
(let ((latex-frag (org-element-property :value latex-fragment))
(processing-type (plist-get info :with-latex)))
(case processing-type
((t mathjax)
(org-html-format-latex latex-frag 'mathjax))
(dvipng
(let* ((formula-link (org-html-format-latex
latex-frag processing-type)))
(when (and formula-link
(string-match "file:\\([^]]*\\)" formula-link))
(org-html-format-inline-image
(match-string 1 formula-link) info))))
(t latex-frag))))
#+END_SRC
> org-highlight-latex-fragments-and-specials.
This is improved through org-highlight-latex-and-related. Check it
out.
Hope it helps,
Rasmus
--
. . . Stallman was indeed the tallest possible mountain and by
standing on his shoulders you could see forever. . .
^ permalink raw reply [flat|nested] 3+ messages in thread
* Re: What happens to org-export-with-LaTeX-fragments
2013-05-14 13:02 ` Rasmus
@ 2013-05-15 0:26 ` Leo Liu
0 siblings, 0 replies; 3+ messages in thread
From: Leo Liu @ 2013-05-15 0:26 UTC (permalink / raw)
To: Rasmus; +Cc: emacs-orgmode
On 2013-05-14 21:02 +0800, Rasmus wrote:
> I'm looking at an "old" exporter and assume that you are interested in
> MathJax and HTML. . .?
Thank you, Rasmus.
Leo
^ permalink raw reply [flat|nested] 3+ messages in thread
end of thread, other threads:[~2013-05-15 0:26 UTC | newest]
Thread overview: 3+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2013-05-14 9:21 What happens to org-export-with-LaTeX-fragments Leo Liu
2013-05-14 13:02 ` Rasmus
2013-05-15 0:26 ` Leo Liu
Code repositories for project(s) associated with this public inbox
https://git.savannah.gnu.org/cgit/emacs/org-mode.git
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).