From: York Zhao <gtdplatform@gmail.com>
To: Nick Dokos <ndokos@gmail.com>
Cc: emacs-orgmode <emacs-orgmode@gnu.org>
Subject: Re: Force new page on exporting
Date: Tue, 1 Jul 2014 12:59:04 -0400 [thread overview]
Message-ID: <CAD3zm20y1_Nv8TW05V+2KOspVS_RCdeA4TGUyNvuLC-1voL2Pw@mail.gmail.com> (raw)
In-Reply-To: <87bnt9aw2x.fsf@alphaville.bos.redhat.com>
> So before parsing, you are getting rid of the "ignoreheading" headline (first,
> "promoting" it to a comment and then deleting the region), so the #+latex:
> \newpage line now belongs to headline 2 which is then parsed and discarded.
Really great catch Nick, exactly as what you pointed out. Saved me some time on
investigating, thanks.
> I think you need a filter after parsing (which of course conflicts with
> your need in the "Wrong numbering..." thread).
Yes, like you said before, using filter is too late because the contents is
already LaTeX content and it's impossible to prompt the tree any more.
> [fn:1] there is a "removeheading" vs "ignoreheading" inconsistency, btw.
I'm sorry for the confusion. I changed the tag name from "ignoreheadline" to
"remomeheading" in my implementation.
@Thomas,
I was using `org-export-filter-headline-functions' before but like Nick and I
said, it was not capable of promoting the subtree after removing the headline,
which is why I discarded it and used my implementation.
Maybe I will implement some addition machinery in the
"org-export-before-parsing-hook" when I get some time to handle this new page
thing. I will update here once that gets done.
next prev parent reply other threads:[~2014-07-01 16:59 UTC|newest]
Thread overview: 14+ messages / expand[flat|nested] mbox.gz Atom feed top
2014-06-30 23:37 Force new page on exporting York Zhao
2014-07-01 0:49 ` Thomas S. Dye
2014-07-01 2:13 ` York Zhao
2014-07-01 4:00 ` Thomas S. Dye
2014-07-01 14:45 ` York Zhao
2014-07-01 15:30 ` Nick Dokos
2014-07-01 15:52 ` York Zhao
2014-07-01 16:21 ` Nick Dokos
2014-07-01 16:59 ` York Zhao [this message]
2014-07-01 18:22 ` York Zhao
2014-07-03 16:55 ` York Zhao
2014-07-01 16:12 ` Thomas S. Dye
2014-07-01 15:06 ` John Hendy
2014-07-01 16:31 ` Thomas S. Dye
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
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=CAD3zm20y1_Nv8TW05V+2KOspVS_RCdeA4TGUyNvuLC-1voL2Pw@mail.gmail.com \
--to=gtdplatform@gmail.com \
--cc=emacs-orgmode@gnu.org \
--cc=ndokos@gmail.com \
/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 external index
https://git.savannah.gnu.org/cgit/emacs.git
https://git.savannah.gnu.org/cgit/emacs/org-mode.git
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.