emacs-orgmode@gnu.org archives
 help / color / mirror / code / Atom feed
From: Eric Schulte <schulte.eric@gmail.com>
To: Org Mode Mailing List <emacs-orgmode@gnu.org>
Subject: [bug] ox-org.el subtree export appears broken
Date: Wed, 06 Nov 2013 10:59:21 -0700	[thread overview]
Message-ID: <87ppqd1kee.fsf@gmail.com> (raw)

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

Specifically, the title is not taken from the current heading, and
subheadings are not promoted to the top level.

Export the "Example Subtree" heading in the attached example file using
the "subtree" option to demonstrate.

Thanks,


[-- Warning: decoded text below may be mangled, UTF-8 assumed --]
[-- Attachment #2: minimal.org --]
[-- Type: text/x-org, Size: 1309 bytes --]

#+Title: Subtree Export Example

* Top
** Problem
I think subtree exports are broken using the Org-mode backend.  I
would expect the subtree title to become the exported page title, and
all nested heading to be promoted to the top level, however this does
not happen.  This appears to work with other backends (confirmed with
the html backend).

** Example Subtree
With the point in this subtree I export using the =subtree= option.

*** Nested subtree one
Lorem ipsum dolor sit amet, consectetuer adipiscing elit. Donec
hendrerit tempor tellus. Donec pretium posuere tellus. Proin quam
nisl, tincidunt et, mattis eget, convallis nec, purus. Cum sociis
natoque penatibus et magnis dis parturient montes, nascetur ridiculus
mus. Nulla posuere. Donec vitae dolor. Nullam tristique diam non
turpis. Cras placerat accumsan nulla. Nullam rutrum. Nam vestibulum
accumsan nisl.

*** Nested subtree two
Lorem ipsum dolor sit amet, consectetuer adipiscing elit. Donec
hendrerit tempor tellus. Donec pretium posuere tellus. Proin quam
nisl, tincidunt et, mattis eget, convallis nec, purus. Cum sociis
natoque penatibus et magnis dis parturient montes, nascetur ridiculus
mus. Nulla posuere. Donec vitae dolor. Nullam tristique diam non
turpis. Cras placerat accumsan nulla. Nullam rutrum. Nam vestibulum
accumsan nisl.

[-- Attachment #3: Type: text/plain, Size: 63 bytes --]


-- 
Eric Schulte
https://cs.unm.edu/~eschulte
PGP: 0x614CA05D

             reply	other threads:[~2013-11-06 18:00 UTC|newest]

Thread overview: 6+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2013-11-06 17:59 Eric Schulte [this message]
2013-11-06 18:34 ` [bug] ox-org.el subtree export appears broken Nicolas Goaziou
2013-11-06 21:21   ` Eric Schulte
2013-11-06 22:02     ` Nicolas Goaziou
2013-11-11  2:12       ` Eric Schulte
2013-11-15 23:25         ` Nicolas Goaziou

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=87ppqd1kee.fsf@gmail.com \
    --to=schulte.eric@gmail.com \
    --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).