emacs-orgmode@gnu.org archives
 help / color / mirror / code / Atom feed
From: tsd@tsdye.com (Thomas S. Dye)
To: York Zhao <gtdplatform@gmail.com>
Cc: emacs-orgmode <emacs-orgmode@gnu.org>
Subject: Re: Force new page on exporting
Date: Tue, 01 Jul 2014 06:12:15 -1000	[thread overview]
Message-ID: <m24mz1oy74.fsf@tsdye.com> (raw)
In-Reply-To: <CAD3zm23UQBLAaJf2TAaa71+4vZ0zUi0ZYzusCQv7MkNn+x-1Ew@mail.gmail.com> (York Zhao's message of "Tue, 1 Jul 2014 10:45:48 -0400")

Aloha York,

York Zhao <gtdplatform@gmail.com> 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

  parent reply	other threads:[~2014-07-01 16:12 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
2014-07-01 18:22                 ` York Zhao
2014-07-03 16:55                   ` York Zhao
2014-07-01 16:12         ` Thomas S. Dye [this message]
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

  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=m24mz1oy74.fsf@tsdye.com \
    --to=tsd@tsdye.com \
    --cc=emacs-orgmode@gnu.org \
    --cc=gtdplatform@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 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).