I am experiencing some strange behavior here right now, but don't know
if I have hit a bug or just misunderstood something.

When I start Emacs, evaluate the following two forms:

(add-to-list 'org-export-inbuffer-options-extra
'("StaticMathJax" :static-mathjax))
(add-hook 'org-export-html-final-hook '(lambda () (print opt-plist)))

and then export this two-line example to HTML:

#+StaticMathJax: test
* Test

the following gets printed to my *Messages* buffer:

Exporting...

(:latex-image-options nil :exclude-tags ("noexport") :select-tags
("export") :email "j...@pythagoras" :author "Jan Böcker" :auto-postamble
t :auto-preamble t :postamble nil :preamble nil :publishing-directory
nil :timestamp nil :expand-quoted-html t :html-table-tag "<table
border=\"2\" cellspacing=\"0\" cellpadding=\"6\" rules=\"groups\"
frame=\"hsides\">" :xml-declaration (("html" . "<?xml version=\"1.0\"
encoding=\"%s\"?>") ("php" . "<?php echo \"<?xml version=\\\"1.0\\\"
encoding=\\\"%s\\\" ?>\"; ?>")) :html-extension "html" :inline-images
maybe :convert-org-links t :agenda-style "" :style-extra "" :style ""
:style-include-scripts t :style-include-default t :table-auto-headline t
:tables t :time-stamp-file t :creator-info t :email-info nil
:author-info t :timestamps t :fixed-width t :skip-before-1st-heading nil
:latex-listings nil :LaTeX-fragments t :TeX-macros t :priority nil
:todo-keywords t :tags not-in-toc :drawers nil :footnotes t
:special-strings t :sub-superscript t :emphasize t :archived-trees
headline :preserve-breaks nil :table-of-contents t
:section-number-format ((("1" ".")) . "") :section-numbers t
:headline-levels 3 :customtime nil :description "" :keywords ""
:language "en" :link-home "" :link-up "" :text nil :macro-date "(eval
(format-time-string \"$1\"))" :macro-time "(eval (format-time-string
\"$1\"))" :macro-modification-time "(eval (format-time-string \"$1\"
'(19561 23577)))" :macro-input-file "test.org" :title "test")


There is no :static-mathjax entry in the plist.

If I add a #+INFOJS_OPT: line, that value shows up. I am confused -- why
does this work for INFOJS_OPT (also an entry in
org-inbuffer-options-extra) and not for my new one?

Have I overlooked something?

-- Jan

_______________________________________________
Emacs-orgmode mailing list
Please use `Reply All' to send replies to the list.
Emacs-orgmode@gnu.org
http://lists.gnu.org/mailman/listinfo/emacs-orgmode

Reply via email to