emacs-orgmode
[Top][All Lists]
Advanced

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

Re: [O] Force new page on exporting


From: York Zhao
Subject: Re: [O] Force new page on exporting
Date: Tue, 1 Jul 2014 12:59:04 -0400

> 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.



reply via email to

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