From mboxrd@z Thu Jan 1 00:00:00 1970 From: heroxbd@gentoo.org Subject: Bug: [regression] superscript not available after non-alphanumeric [8.2.7b (8.2.7b-dist @ /home/benda/gnto/usr/share/emacs/site-lisp/org-mode/)] Date: Fri, 27 Jun 2014 19:42:32 +0900 Message-ID: <86simqocpz.fsf@moguhome00.in.awa.tohoku.ac.jp> Mime-Version: 1.0 Content-Type: text/plain Return-path: Received: from eggs.gnu.org ([2001:4830:134:3::10]:34168) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1X0TcC-0007TX-Hi for emacs-orgmode@gnu.org; Fri, 27 Jun 2014 06:42:49 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1X0Tc7-0002uz-DB for emacs-orgmode@gnu.org; Fri, 27 Jun 2014 06:42:44 -0400 Received: from smtp.gentoo.org ([140.211.166.183]:46042) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1X0Tc7-0002ui-5H for emacs-orgmode@gnu.org; Fri, 27 Jun 2014 06:42:39 -0400 Received: from moguhome00.in.awa.tohoku.ac.jp (ernie02-dmz.awa.tohoku.ac.jp [130.34.99.37]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-SHA (128/128 bits)) (No client certificate requested) (Authenticated sender: heroxbd) by smtp.gentoo.org (Postfix) with ESMTPSA id 523783400D5 for ; Fri, 27 Jun 2014 10:42:37 +0000 (UTC) List-Id: "General discussions about Org-mode." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: emacs-orgmode-bounces+geo-emacs-orgmode=m.gmane.org@gnu.org Sender: emacs-orgmode-bounces+geo-emacs-orgmode=m.gmane.org@gnu.org To: emacs-orgmode@gnu.org superscript after non-alphanumeric, primarily used for isotopes, is broken again[1, 2]. #+begin_org \ce{^{238}U}, ^2H #+end_org is exported as #+begin_latex \ce\{$^{\text{238}}$U\}, \^{}2H #+end_latex on org-mode 8.2.7b I've also tried 8.0.7, the bug persists. So I suppose the regression is introduced by 8.0 exporter refactorization. How about making a set of unit tests for the exporter to watch against these? Cheers, Benda 1. http://lists.gnu.org/archive/html/emacs-orgmode/2009-09/msg00887.html 2. http://orgmode.org/cgit.cgi/org-mode.git/commit/?id=7d5408a717374641b2d2cddcfef27ec9c137a9a7 current state: ============== (setq org-ctrl-c-ctrl-c-hook '(org-babel-hash-at-point org-babel-execute-safely-maybe) org-latex-format-headline-function 'org-latex-format-headline-default-function org-src-fontify-natively t org-html-format-inlinetask-function 'ignore org-export-with-drawers nil org-export-copy-to-kill-ring t org-export-with-tags 'not-in-toc org-export-preprocess-before-selecting-backend-code-hook '(org-beamer-select-beamer-code) org-tab-first-hook '(org-hide-block-toggle-maybe org-src-native-tab-command-maybe org-babel-hide-result-toggle-maybe org-babel-header-arg-expand) org-modules '(org-bbdb org-bibtex org-docview org-gnus org-info org-jsinfo org-irc org-mew org-mhe org-rmail org-special-blocks org-vm org-wl org-w3m) org-cycle-hook '(org-cycle-hide-archived-subtrees org-cycle-hide-drawers org-cycle-hide-inline-tasks org-cycle-show-empty-lines org-optimize-window-after-visibility-change) org-agenda-before-write-hook '(org-agenda-add-entry-text) org-speed-command-hook '(org-speed-command-default-hook org-babel-speed-command-hook) org-ascii-format-inlinetask-function 'org-ascii-format-inlinetask-default org-babel-pre-tangle-hook '(save-buffer) org-occur-hook '(org-first-headline-recenter) org-export-latex-after-blockquotes-hook '(org-special-blocks-convert-latex-special-cookies) org-latex-default-packages-alist '(("T1" "fontenc" nil) ("" "graphicx" t) ("" "longtable" nil) ("" "float" nil) ("" "wrapfig" nil) ("" "soul" t) ("" "textcomp" t) ("" "marvosym" t) ("" "latexsym" t) ("" "amssymb" t) ("" "hyperref" nil) ("" "fontspec" nil) ("CJKchecksingle" "xeCJK" nil) "\\tolerance=1000" "\\setCJKmainfont[BoldFont={WenQuanYi Zen Hei},ItalicFont={AR PL UKai CN}, FallBack={AR PL UMing CN}]{Kochi Mincho}" "\\setCJKsansfont{AR PL UKai CN}") org-html-format-headline-function 'ignore org-metaup-hook '(org-babel-load-in-session-maybe) org-confirm-elisp-link-function 'yes-or-no-p org-export-latex-format-toc-function 'org-export-latex-format-toc-default org-latex-classes '(("article" "\\documentclass[11pt]{article}" ("\\section{%s}" . "\\section*{%s}") ("\\subsection{%s}" . "\\subsection*{%s}") ("\\subsubsection{%s}" . "\\subsubsection*{%s}") ("\\paragraph{%s}" . "\\paragraph*{%s}") ("\\subparagraph{%s}" . "\\subparagraph*{%s}")) ("thesis" "\\documentclass[12pt,final]{tohoku-thesis}" ("\\chapter{%s}" . "\\chapter*{%s}") ("\\section{%s}" . "\\section*{%s}") ("\\subsection{%s}" . "\\subsection*{%s}") ("\\subsubsection{%s}" . "\\subsubsection*{%s}")) ("book" "\\documentclass[11pt]{book}" ("\\part{%s}" . "\\part*{%s}") ("\\chapter{%s}" . "\\chapter*{%s}") ("\\section{%s}" . "\\section*{%s}") ("\\subsection{%s}" . "\\subsection*{%s}") ("\\subsubsection{%s}" . "\\subsubsection*{%s}")) ("beamer" "\\documentclass{beamer}" org-beamer-sectioning) ("revtex" "\\RequirePackage{fixltx2e}\n\\documentclass[11pt, reprint]{revtex4-1}" ("\\section{%s}" . "\\section*{%s}") ("\\subsection{%s}" . "\\subsection*{%s}") ("\\subsubsection{%s}" . "\\subsubsection*{%s}") ("\\paragraph{%s}" . "\\paragraph*{%s}") ("\\subparagraph{%s}" . "\\subparagraph*{%s}")) ) org-latex-format-drawer-function '(lambda (name contents) contents) org-export-preprocess-after-blockquote-hook '(org-special-blocks-make-special-cookies) org-format-latex-options '(:foreground default :background default :scale 1.7 :html-foreground "Black" :html-background "Transparent" :html-scale 1.0 :matchers ("begin" "$1" "$" "$$" "\\(" "\\[")) org-latex-to-pdf-process '("latexmk -f -pdf %f") org-babel-tangle-body-hook '((lambda nil (org-preprocess-apply-macros))) org-clock-out-hook '(org-clock-remove-empty-clock-drawer) org-export-latex-classes '(("article" "\\documentclass[11pt]{article}" ("\\section{%s}" . "\\section*{%s}") ("\\subsection{%s}" . "\\subsection*{%s}") ("\\subsubsection{%s}" . "\\subsubsection*{%s}") ("\\paragraph{%s}" . "\\paragraph*{%s}") ("\\subparagraph{%s}" . "\\subparagraph*{%s}")) ("report" "\\documentclass[11pt]{report}" ("\\part{%s}" . "\\part*{%s}") ("\\chapter{%s}" . "\\chapter*{%s}") ("\\section{%s}" . "\\section*{%s}") ("\\subsection{%s}" . "\\subsection*{%s}") ("\\subsubsection{%s}" . "\\subsubsection*{%s}")) ("book" "\\documentclass[11pt]{book}" ("\\part{%s}" . "\\part*{%s}") ("\\chapter{%s}" . "\\chapter*{%s}") ("\\section{%s}" . "\\section*{%s}") ("\\subsection{%s}" . "\\subsection*{%s}") ("\\subsubsection{%s}" . "\\subsubsection*{%s}")) ("beamer" "\\documentclass{beamer}" org-beamer-sectioning) ("revtex" "\\RequirePackage{fixltx2e}\n\\documentclass[11pt, reprint]{revtex4-1}" ("\\section{%s}" . "\\section*{%s}") ("\\subsection{%s}" . "\\subsection*{%s}") ("\\subsubsection{%s}" . "\\subsubsection*{%s}") ("\\paragraph{%s}" . "\\paragraph*{%s}") ("\\subparagraph{%s}" . "\\subparagraph*{%s}")) ) org-export-first-hook '((lambda nil (org-babel-tangle)) org-beamer-initialize-open-trackers) org-mode-hook '(org-mode-reftex-setup #[nil "\300\301\302\303\304$\207" [org-add-hook change-major-mode-hook org-show-block-all append local] 5] #[nil "\300\301\302\303\304$\207" [org-add-hook change-major-mode-hook org-babel-show-result-all append local] 5] org-babel-result-hide-spec org-babel-hide-all-hashes) org-ascii-format-drawer-function '(lambda (name contents width) contents) org-footnote-define-inline t org-from-is-user-regexp nil org-export-allow-bind-keywords t org-html-format-drawer-function '(lambda (name contents) contents) org-export-latex-final-hook '(org-beamer-amend-header org-beamer-fix-toc org-beamer-auto-fragile-frames org-beamer-place-default-actions-for-lists) org-latex-format-toc-function 'org-latex-no-toc org-export-latex-after-initial-vars-hook '(org-beamer-after-initial-vars) org-metadown-hook '(org-babel-pop-to-session-maybe) org-agenda-files '("~/art/refBook.org") org-src-mode-hook '(org-src-babel-configure-edit-buffer org-src-mode-configure-edit-buffer) org-file-apps '((auto-mode . emacs) ("\\.mm\\'" . default) ("\\.x?html?\\'" . default) ("\\.pdf\\'" . default) ("\\.pdf::\\([0-9]+\\)\\'" . "okular \"%s\" -p %1")) org-export-html-after-blockquotes-hook '(org-special-blocks-convert-html-special-cookies) org-footnote-auto-label nil org-after-todo-state-change-hook '(org-clock-out-if-current) org-babel-tangle-lang-exts '(("python" . "py") ("emacs-lisp" . "el")) org-babel-load-languages '((python . t) (R . t) (emacs-lisp . t) (sh . t)) org-latex-format-inlinetask-function 'ignore org-confirm-shell-link-function 'yes-or-no-p )