From mboxrd@z Thu Jan 1 00:00:00 1970 From: tsd@tsdye.com (Thomas S. Dye) Subject: Re: Force new page on exporting Date: Tue, 01 Jul 2014 06:12:15 -1000 Message-ID: References: Mime-Version: 1.0 Content-Type: text/plain Return-path: Received: from eggs.gnu.org ([2001:4830:134:3::10]:39892) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1X20fg-0003oa-J3 for emacs-orgmode@gnu.org; Tue, 01 Jul 2014 12:12:47 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1X20fZ-0000TG-Hy for emacs-orgmode@gnu.org; Tue, 01 Jul 2014 12:12:40 -0400 Received: from gproxy1-pub.mail.unifiedlayer.com ([69.89.25.95]:56370) by eggs.gnu.org with smtp (Exim 4.71) (envelope-from ) id 1X20fZ-0000TB-9i for emacs-orgmode@gnu.org; Tue, 01 Jul 2014 12:12:33 -0400 In-Reply-To: (York Zhao's message of "Tue, 1 Jul 2014 10:45:48 -0400") List-Id: "General discussions about Org-mode." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: emacs-orgmode-bounces+geo-emacs-orgmode=m.gmane.org@gnu.org Sender: emacs-orgmode-bounces+geo-emacs-orgmode=m.gmane.org@gnu.org To: York Zhao Cc: emacs-orgmode Aloha York, York Zhao writes: >> * Latex New Page :ignoreheading: >> #+latex: \newpage > > This should work, but didn't, I will figure out why when I have some time. > >> Also, see the LaTeX commands \pagebreak and \clearpage, which do generally the >> same thing but in slightly different ways. > > I was aware of these, but if \newpage doesn't work I don't think these will > work. But thank you very much anyway. This works for me. I'm using Suvayu Ali's function to ignore the headline: #+name: ignoreheading-on-export #+BEGIN_SRC emacs-lisp :results silent (defun sa-ignore-headline (contents backend info) "Ignore headlines with tag `ignoreheading'." (when (and (org-export-derived-backend-p backend 'latex 'html 'ascii) (string-match "\\`.*ignoreheading.*\n" (downcase contents))) (replace-match "" nil nil contents))) (add-to-list 'org-export-filter-headline-functions 'sa-ignore-headline) #+END_SRC hth, Tom -- T.S. Dye & Colleagues, Archaeologists 735 Bishop St, Suite 315, Honolulu, HI 96813 Tel: 808-529-0866, Fax: 808-529-0884 http://www.tsdye.com