emacs-orgmode@gnu.org archives
 help / color / mirror / code / Atom feed
* ox-odt: headline export breaks if org-export-with-section-numbers set to nil
@ 2015-06-25 19:45 Matt Price
  2015-06-25 21:35 ` Rasmus
  0 siblings, 1 reply; 2+ messages in thread
From: Matt Price @ 2015-06-25 19:45 UTC (permalink / raw)
  To: Org Mode

[-- Attachment #1: Type: text/plain, Size: 779 bytes --]

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

[-- Attachment #2: Type: text/html, Size: 911 bytes --]

^ permalink raw reply	[flat|nested] 2+ messages in thread

* Re: ox-odt: headline export breaks if org-export-with-section-numbers set to nil
  2015-06-25 19:45 ox-odt: headline export breaks if org-export-with-section-numbers set to nil Matt Price
@ 2015-06-25 21:35 ` Rasmus
  0 siblings, 0 replies; 2+ messages in thread
From: Rasmus @ 2015-06-25 21:35 UTC (permalink / raw)
  To: emacs-orgmode

Matt Price <moptop99@gmail.com> 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!

^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2015-06-25 21:35 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2015-06-25 19:45 ox-odt: headline export breaks if org-export-with-section-numbers set to nil Matt Price
2015-06-25 21:35 ` Rasmus

Code repositories for project(s) associated with this public inbox

	https://git.savannah.gnu.org/cgit/emacs/org-mode.git

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).