Nick Dokos <nicholas.do...@hp.com> wrote:

> Nick Dokos <nicholas.do...@hp.com> wrote:
> 
> > Henry Hirsch <henry.hir...@adition.com> wrote:
> > 
> > > Hello everyone,
> > > 
> > > I am trying to export an org-file with includes.
> > > When I export as PDF all includes work but when
> > > I export as org-file the includes are getting ignored.
> > > 
> > 
> > What does "export as org-file" mean? What do you do exactly?
> > 
> 
> Never mind: I didn't read the subject line.
> 

C-h f org-export-as-org says:

,----
| org-export-as-org is an interactive Lisp function in `org-exp.el'.
| 
| (org-export-as-org ARG &optional HIDDEN EXT-PLIST TO-BUFFER BODY-ONLY
| PUB-DIR)
| 
| Make a copy with not-exporting stuff removed.
| The purpose of this function is to provide a way to export the source
| Org file of a webpage in Org format, but with sensitive and/or irrelevant
| stuff removed.  This command will remove the following:
| 
| - archived trees (if the variable `org-export-with-archived-trees' is nil)
| - comment blocks and trees starting with the COMMENT keyword
| - only trees that are consistent with `org-export-select-tags'
|   and `org-export-exclude-tags'.
`----

It is not a general purpose exporter. It is supposed to allow you to post
org examples on web pages. I presume it is used when exporting to Worg.

In particular, I assume it does not process includes, because they need
to be preserved in examples.

Nick



Reply via email to