From mboxrd@z Thu Jan 1 00:00:00 1970 From: Rasmus Subject: Re: ox-odt: headline export breaks if org-export-with-section-numbers set to nil Date: Thu, 25 Jun 2015 23:35:13 +0200 Message-ID: <87h9pv1nfy.fsf@gmx.us> References: Mime-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 8bit Return-path: Received: from eggs.gnu.org ([2001:4830:134:3::10]:51321) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Z8Env-00084O-JJ for emacs-orgmode@gnu.org; Thu, 25 Jun 2015 17:35:28 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1Z8Enq-0005nb-FX for emacs-orgmode@gnu.org; Thu, 25 Jun 2015 17:35:27 -0400 Received: from plane.gmane.org ([80.91.229.3]:56924) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Z8Enq-0005mu-8T for emacs-orgmode@gnu.org; Thu, 25 Jun 2015 17:35:22 -0400 Received: from list by plane.gmane.org with local (Exim 4.69) (envelope-from ) id 1Z8Enp-0007ld-Bt for emacs-orgmode@gnu.org; Thu, 25 Jun 2015 23:35:21 +0200 Received: from 90.163.164.75 ([90.163.164.75]) by main.gmane.org with esmtp (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Thu, 25 Jun 2015 23:35:21 +0200 Received: from rasmus by 90.163.164.75 with local (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Thu, 25 Jun 2015 23:35:21 +0200 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 Matt Price writes: > In an up to date master branch, I'm noticing a bug in ODT export: if > org-export-with-section-numbers is set to nil, ox-odt exports headlines as > plain-text paragraphs. > > With emacs -q, evaluate: > > (setq org-export-with-section-numbers nil > org-export-with-toc nil > org-export-preserve-breaks nil > org-export-email-info nil > ) > > then try to export to odt using the builtin org(emacs 25.1, so org 8.2.10, > in my case). Headlines should export fine. Now try with a recent git org; > headlines should fail to export. At least, that's my experience. I tried > to bisect by checking out old commits and running make-all, then > org-reload; but the problem persisted even for pretty old commits, so I > think I'm not doing it right. Would very much welcome any help! thanks, > Matt I can't reproduce. Most likely your org is picking up old style files. Check org-odt-styles-dir and make sure that the style "Heading_20_1_unnumbered" (and friends) is present in this style file. This is my ox-odt setup, where I unfortunately have to explicitly set the dirs because of a combination of how packages are build for my distro since dirs for style files are inferred at setup time. (with-eval-after-load 'ox-odt (setq org-latex-to-mathml-convert-command "latexmlmath \"%i\" --presentationmathml=%o") ;; This relies on `org-display-custom-times'... (setq org-odt-use-date-fields t) (let ((schema-dir "/usr/share/emacs/etc/org/schema/") (style-dir "/usr/share/emacs/etc/org/styles")) (when (file-exists-p schema-dir) (setq org-odt-schema-dir-list (list schema-dir))) (when (file-exists-p style-dir) (setq org-odt-styles-dir style-dir)))) Rasmus -- El Rey ha muerto. ¡Larga vida al Rey!