emacs-orgmode
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [O] ox-odt: headline export breaks if org-export-with-section-number


From: Rasmus
Subject: Re: [O] ox-odt: headline export breaks if org-export-with-section-numbers set to nil
Date: Thu, 25 Jun 2015 23:35:13 +0200
User-agent: Gnus/5.130014 (Ma Gnus v0.14) Emacs/25.0.50 (gnu/linux)

Matt Price <address@hidden> 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!







reply via email to

[Prev in Thread] Current Thread [Next in Thread]