* Publishing documents body-only
@ 2010-08-19 7:25 Harri Kiiskinen
0 siblings, 0 replies; 2+ messages in thread
From: Harri Kiiskinen @ 2010-08-19 7:25 UTC (permalink / raw
To: emacs-orgmode
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))
------------------
And 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 in-file option...)
Of course, if there already is a way to access this functionality, I'd
be delighted to hear.
Best,
Harri Kiiskinen
^ permalink raw reply [flat|nested] 2+ messages in thread
* Publishing documents body-only
@ 2010-08-18 12:59 Harri Kiiskinen
0 siblings, 0 replies; 2+ messages in thread
From: Harri Kiiskinen @ 2010-08-18 12:59 UTC (permalink / raw
To: emacs-orgmode
-----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-----
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2010-08-19 7:25 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2010-08-19 7:25 Publishing documents body-only Harri Kiiskinen
-- strict thread matches above, loose matches on Subject: below --
2010-08-18 12:59 Harri Kiiskinen
Code repositories for project(s) associated with this external index
https://git.savannah.gnu.org/cgit/emacs.git
https://git.savannah.gnu.org/cgit/emacs/org-mode.git
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.