emacs-orgmode@gnu.org archives
 help / color / mirror / code / Atom feed
From: Harri Kiiskinen <harkiisk@gmail.com>
To: emacs-orgmode@gnu.org
Subject: Publishing documents body-only
Date: Wed, 18 Aug 2010 15:59:07 +0300	[thread overview]
Message-ID: <4C6BD91B.6060107@gmail.com> (raw)

-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

Hello,

I'm preparing some LaTeX documents using org-babel and R, and I'd like
to export/publish these documents as body-only, so that they can be
directly included by the master document. (I don't want to convert the
whole book into org-mode).

the org-export-as-latex function has the argument to allow export
body-only, but it can not be easily accessed in any way.

There is some mention on the mailing list of a :body-only project
publishing property, but it does not seem to have any effect.

When looking at org-publish-org-to in org-publish.el, there are the 	
lines:

- ------------------
(setq export-buf-or-file
	      (funcall (intern (concat "org-export-as-" format))
		       (plist-get plist :headline-levels)
		       nil plist nil nil pub-dir))
- ------------------

An from org-html.el, for example, we see, that the second-to-last
argument could convey this body-only information to the individual
export functions (same works for org-export-as-latex):

- ------------------
org-export-as-html is an interactive compiled Lisp function in
`org-html.el'.

(org-export-as-html arg &optional hidden ext-plist to-buffer body-only
pub-dir)
- -----------------

I wonder if anyone out there capable of actually writing elisp code
(myself being able to read it only), would care to implement some kind
of access to this feature, that already seems to exist in the code? For
completeness' worth, it would be nice to have it both in the publishing
system as well as in the export options for individual files. (Perfect
would be an org-mode setting in the file...)

Of course, if there already is a way to access this functionality, I'd
be delighted to hear.

Best,

Harri Kiiskinen
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.10 (GNU/Linux)
Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org/

iEYEARECAAYFAkxr2RQACgkQ96/ytBLubNlq+ACgtdg2bod7cIneSPM0SDDCnSSF
mksAn2uK/rlkMjSx2topRimOyDbPkUlD
=zqQE
-----END PGP SIGNATURE-----

             reply	other threads:[~2010-08-18 12:59 UTC|newest]

Thread overview: 2+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2010-08-18 12:59 Harri Kiiskinen [this message]
  -- strict thread matches above, loose matches on Subject: below --
2010-08-19  7:25 Publishing documents body-only Harri Kiiskinen

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=4C6BD91B.6060107@gmail.com \
    --to=harkiisk@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).