From: Rasmus <rasmus@gmx.us>
To: emacs-orgmode@gnu.org
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 [thread overview]
Message-ID: <87h9pv1nfy.fsf@gmx.us> (raw)
In-Reply-To: CAN_Dec8+CJkrPwWBkbjuPy6-RDhWPW+BdtOc+nwN9wOGw9AJvA@mail.gmail.com
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!
prev parent reply other threads:[~2015-06-25 21:35 UTC|newest]
Thread overview: 2+ messages / expand[flat|nested] mbox.gz Atom feed top
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 [this message]
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
List information: https://www.orgmode.org/
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=87h9pv1nfy.fsf@gmx.us \
--to=rasmus@gmx.us \
--cc=emacs-orgmode@gnu.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
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).