From mboxrd@z Thu Jan 1 00:00:00 1970 From: =?utf-8?Q?Stefanos_Carlstr=C3=B6m?= Subject: Bug: ox-latex math in headings export error [8.3.6 (release_8.3.6-1257-g33f8f8 @ /Users/stefanos/org-mode/lisp/)] Date: Fri, 28 Oct 2016 12:39:58 +0200 Message-ID: <92CD02B1-8B6C-4CB3-BAE4-AC699D00CFE6@gmail.com> Mime-Version: 1.0 (Mac OS X Mail 10.0 \(3226\)) Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable Return-path: Received: from eggs.gnu.org ([2001:4830:134:3::10]:36246) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1c04a0-0005aB-AQ for emacs-orgmode@gnu.org; Fri, 28 Oct 2016 06:40:09 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1c04Zw-0008W2-2d for emacs-orgmode@gnu.org; Fri, 28 Oct 2016 06:40:08 -0400 Received: from mail-lf0-x22b.google.com ([2a00:1450:4010:c07::22b]:35635) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1c04Zv-0008Vg-NI for emacs-orgmode@gnu.org; Fri, 28 Oct 2016 06:40:04 -0400 Received: by mail-lf0-x22b.google.com with SMTP id f134so48496938lfg.2 for ; Fri, 28 Oct 2016 03:40:02 -0700 (PDT) Received: from [192.168.8.101] (c-2ec3e1d1-74736162.cust.telenor.se. [46.195.225.209]) by smtp.gmail.com with ESMTPSA id d188sm644496lfe.29.2016.10.28.03.39.59 for (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Fri, 28 Oct 2016 03:39:59 -0700 (PDT) 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" To: emacs-orgmode@gnu.org Remember to cover the basics, that is, what you expected to happen and what in fact did happen. You don't know how to make a good report? See http://orgmode.org/manual/Feedback.html#Feedback Your bug report will be posted to the Org mailing list. ------------------------------------------------------------------------ Exporting a simple document such as * Section heading with math \(\pi\) bug with ox-latex on HEAD gives the attached output, which does not compile, due to the newline in the exported heading. % Created 2016-10-28 Fri 12:31 % Intended LaTeX compiler: pdflatex \documentclass[11pt]{article} \usepackage[utf8]{inputenc} \usepackage[T1]{fontenc} \usepackage{graphicx} \usepackage{grffile} \usepackage{longtable} \usepackage{wrapfig} \usepackage{rotating} \usepackage[normalem]{ulem} \usepackage{amsmath} \usepackage{textcomp} \usepackage{amssymb} \usepackage{capt-of} \usepackage{hyperref} \author{Stefanos Carlstr=C3=B6m} \date{\today} \title{} \hypersetup{ pdfauthor=3D{Stefanos Carlstr=C3=B6m}, pdftitle=3D{}, pdfkeywords=3D{}, pdfsubject=3D{}, pdfcreator=3D{Emacs 25.1.1 (Org mode 8.3.6)},=20 pdflang=3D{English}} \begin{document} =20 \tableofcontents =20 \section{Section heading with math \(\pi\) =20 bug} \label{sec:org16a7736} \end{document} =20 which does not compile. =20 Emacs : GNU Emacs 25.1.1 (x86_64-apple-darwin13.4.0, NS = appkit-1265.21 Version 10.9.5 (Build 13F1911)) of 2016-09-21 Package: Org mode version 8.3.6 (release_8.3.6-1257-g33f8f8 @ = /Users/stefanos/org-mode/lisp/) =20 current state: =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D (setq org-hide-leading-stars t org-pandoc-epub-rights "Copyright 2016 Stefanos Carlstr=C3=B6m <>" org-tab-first-hook '(org-babel-hide-result-toggle-maybe org-babel-header-arg-expand) outline-minor-mode-hook '(outshine-hook-function) org-latex-classes '(("beamer" "\\documentclass[presentation]{beamer}" ("\\section{%s}" . "\\section*{%s}") ("\\subsection{%s}" . "\\subsection*{%s}") ("\\subsubsection{%s}" . = "\\subsubsection*{%s}")) ("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}")) ("landau-book" "\\documentclass[11pt]{book}" ("\\chapter{%s}" . "\\chapter*{%s}") ("\\section{%s}" . "\\section*{%s}") ("\\subsection{%s}" . "\\subsection*{%s}") ("\\subsubsection{%s}" . = "\\subsubsection*{%s}")) ) org-speed-command-hook '(org-speed-command-default-hook org-babel-speed-command-hook) org-occur-hook '(org-first-headline-recenter) org-metaup-hook '(org-babel-load-in-session-maybe) org-html-format-drawer-function #[514 "\207" [] 3 "\n\n(fn NAME = CONTENTS)"] org-format-latex-options '(:foreground default :background default = :scale 2 :html-foreground "Black" :html-background = "Transparent" :html-scale 1.0 :matchers ("begin" "$1" "$" "$$" "\\(" "\\[")) org-latex-format-inlinetask-function = 'org-latex-format-inlinetask-default-function org-confirm-shell-link-function 'yes-or-no-p org-ascii-format-inlinetask-function = 'org-ascii-format-inlinetask-default org-latex-pdf-process '("latexmk -pdflatex=3D'pdflatex -shell-escape' = -pdf %f") org-preview-latex-default-process 'imagemagick org-babel-clojure-backend 'cider org-latex-format-headline-function = 'org-latex-format-headline-default-function org-default-notes-file "/Users/stefanos/org/notes.org" org-after-todo-state-change-hook '(org-clock-out-if-current) org-latex-format-drawer-function #[514 "\207" [] 3 "\n\n(fn _ = CONTENTS)"] org-odt-format-headline-function = 'org-odt-format-headline-default-function org-from-is-user-regexp "\\" org-src-mode-hook '(org-src-babel-configure-edit-buffer org-src-mode-configure-edit-buffer) org-agenda-before-write-hook '(org-agenda-add-entry-text) org-babel-pre-tangle-hook '(save-buffer) org-trigger-hook '(org-depend-trigger-todo) org-ascii-format-drawer-function #[771 "=01\207" [] 4 "\n\n(fn NAME = CONTENTS WIDTH)"] org-odt-format-inlinetask-function = 'org-odt-format-inlinetask-default-function org-directory "/Users/stefanos/org" org-cycle-hook '(org-cycle-hide-archived-subtrees = org-cycle-hide-drawers org-cycle-show-empty-lines org-optimize-window-after-visibility-change) org-export-before-processing-hook '(my-auto-tex-cmd) org-babel-python-command "python3" org-download-annotate-function 'org-download-annotate-default org-babel-tangle-lang-exts '(("clojure" . "clj") ("ruby" . "rb") ("D" = . "d") ("C++" . "cpp") ("julia" . "jl") = ("python" . "py") ("emacs-lisp" . "el") ("elisp" . "el")) org-confirm-elisp-link-function 'yes-or-no-p org-metadown-hook '(org-babel-pop-to-session-maybe) org-odt-format-drawer-function #[514 "\207" [] 3 "\n\n(fn NAME = CONTENTS)"] org-babel-after-execute-hook '(org-display-inline-images) org-latex-listings 'minted org-blocker-hook '(org-depend-block-todo) org-html-format-headline-function = 'org-html-format-headline-default-function org-agenda-files '("~/org/todo.org" "~/org/notes.org") org-clock-out-hook '(org-clock-remove-empty-clock-drawer) org-confirm-babel-evaluate nil ) =20