emacs-orgmode
[Top][All Lists]
Advanced

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

[Orgmode] Publishing documents body-only


From: Harri Kiiskinen
Subject: [Orgmode] Publishing documents body-only
Date: Wed, 18 Aug 2010 15:59:07 +0300
User-agent: Mozilla/5.0 (X11; U; Linux i686; en-US; rv:1.9.1.11) Gecko/20100805 Icedove/3.0.6

-----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 via email to

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