From mboxrd@z Thu Jan 1 00:00:00 1970 From: Nick Dokos Subject: Re: Include does not work when doing org-export-as-org Date: Tue, 11 Oct 2011 10:27:56 -0400 Message-ID: <6750.1318343276@alphaville.dokosmarshall.org> References: <20111011123829.GB17611@olymp.office.virtualminds.de> <6195.1318342189@alphaville.dokosmarshall.org> <6528.1318342888@alphaville.dokosmarshall.org> Reply-To: nicholas.dokos@hp.com Return-path: Received: from eggs.gnu.org ([140.186.70.92]:33091) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1RDdJP-0004Ic-Ju for Emacs-orgmode@gnu.org; Tue, 11 Oct 2011 10:28:12 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1RDdJH-0006D1-Ba for Emacs-orgmode@gnu.org; Tue, 11 Oct 2011 10:28:07 -0400 Received: from g1t0027.austin.hp.com ([15.216.28.34]:14949) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1RDdJH-0006Cg-1s for Emacs-orgmode@gnu.org; Tue, 11 Oct 2011 10:27:59 -0400 In-Reply-To: Message from Nick Dokos of "Tue, 11 Oct 2011 10:21:28 EDT." <6528.1318342888@alphaville.dokosmarshall.org> List-Id: "General discussions about Org-mode." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: emacs-orgmode-bounces+geo-emacs-orgmode=m.gmane.org@gnu.org Sender: emacs-orgmode-bounces+geo-emacs-orgmode=m.gmane.org@gnu.org To: Henry Hirsch Cc: nicholas.dokos@hp.com, Emacs-orgmode@gnu.org Nick Dokos wrote: > Nick Dokos wrote: > > > Henry Hirsch 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