From mboxrd@z Thu Jan 1 00:00:00 1970 From: "Eric Schulte" Subject: Re: [BABEL] Bugin :session? Export html - works --- export pdf not Date: Thu, 08 Jul 2010 11:40:59 -0700 Message-ID: <877hl5u890.fsf@gmail.com> References: Mime-Version: 1.0 Content-Type: multipart/mixed; boundary="=-=-=" Return-path: Received: from [140.186.70.92] (port=40160 helo=eggs.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1OWw1w-0001eG-Ca for emacs-orgmode@gnu.org; Thu, 08 Jul 2010 14:41:05 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.69) (envelope-from ) id 1OWw1v-0000GM-01 for emacs-orgmode@gnu.org; Thu, 08 Jul 2010 14:41:04 -0400 Received: from mail-gw0-f41.google.com ([74.125.83.41]:37415) by eggs.gnu.org with esmtp (Exim 4.69) (envelope-from ) id 1OWw1u-0000GB-TK for emacs-orgmode@gnu.org; Thu, 08 Jul 2010 14:41:02 -0400 Received: by gwb1 with SMTP id 1so759806gwb.0 for ; Thu, 08 Jul 2010 11:41:02 -0700 (PDT) In-Reply-To: (Rainer M. Krug's message of "Thu, 8 Jul 2010 12:42:52 +0200") List-Id: "General discussions about Org-mode." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: emacs-orgmode-bounces+geo-emacs-orgmode=m.gmane.org@gnu.org Errors-To: emacs-orgmode-bounces+geo-emacs-orgmode=m.gmane.org@gnu.org To: Rainer M Krug Cc: emacs-orgmode --=-=-= Hi Rainer, I am aware of this problem, and although I don't know any a good solution, I do have a good workaround (example attached [1]). The problem is that org-latex removes all of the #+ lines from the beginning of any Org-mode file which has headlines as part of the export process. This means that by the time it's Babel's turn to run code blocks, the #+BABEL line has been removed, and the session is not set. If there are no headlines, then this problem does not arise. I sent in a patch last week, [2] but it's application would have broken other features of the latex export, I've yet to work out a good solution to this. There is a decent work-around. Whenever there are no headlines, then the #+BABEL: line works fine on LaTeX export, when there are headlines, then header arguments can be placed as properties in the headlines to the same effect. Cheers -- Eric Rainer M Krug writes: > Hi > > I have the attached org file. > > It seems that when exporting to a pdf, the :session argument is ignored, as > I get a > Org-Babel Error Output buffer with: > Error: object 'x' not found > Execution halted > > and an Org-Babel Error buffer with the same text, and the resulting pdf does > only show the code.. > > HTML export, works as expected. > > If I put :session *R_test* behind #+begin_src (R2.org) it works. > > Cheers, > > Rainer Footnotes: [1] --=-=-= Content-Type: application/octet-stream Content-Disposition: attachment; filename=R.3.org Content-Transfer-Encoding: base64 IytUSVRMRTogICAgIFIub3JnCiMrQVVUSE9SOiAgICBSYWluZXIgTSBLcnVnCiMrRU1BSUw6ICAg ICBya3J1Z0BlY29sbW9kCiMrREFURTogICAgICAyMDEwLTA3LTA4IFRodQojK0RFU0NSSVBUSU9O OiAKIytLRVlXT1JEUzogCiMrTEFOR1VBR0U6ICBlbgojK09QVElPTlM6ICAgSDozIG51bTp0IHRv Yzp0IFxuOm5pbCBAOnQgOjp0IHw6dCBeOnQgLTp0IGY6dCAqOnQgPDp0CiMrT1BUSU9OUzogICBU ZVg6dCBMYVRlWDpuaWwgc2tpcDpuaWwgZDpuaWwgdG9kbzp0IHByaTpuaWwgdGFnczpub3QtaW4t dG9jCiMrSU5GT0pTX09QVDogdmlldzpuaWwgdG9jOm5pbCBsdG9jOnQgbW91c2U6dW5kZXJsaW5l IGJ1dHRvbnM6MCBwYXRoOmh0dHA6Ly9vcmdtb2RlLm9yZy9vcmctaW5mby5qcwojK0VYUE9SVF9T RUxFQ1RfVEFHUzogZXhwb3J0CiMrRVhQT1JUX0VYQ0xVREVfVEFHUzogbm9leHBvcnQKIytMSU5L X1VQOiAgIAojK0xJTktfSE9NRTogCiMrWFNMVDoKCiogdGVzdCAxCiAgOlBST1BFUlRJRVM6CiAg OnNlc3Npb246ICAqUl90ZXN0KiAKICA6RU5EOgojK2JlZ2luX3NyYyBSICA6ZXhwb3J0cyBib3Ro CiAgeCA8LSBsb2coMToxMCkKIytlbmRfc3JjCiMrYmVnaW5fc3JjIFIgIDpleHBvcnRzIGJvdGgg OnJlc3VsdHMgb3V0cHV0CiAgeCArIHgKIytlbmRfc3JjCg== --=-=-= [2] http://thread.gmane.org/gmane.emacs.orgmode/27081 --=-=-= Content-Type: text/plain; charset="us-ascii" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit Content-Disposition: inline _______________________________________________ Emacs-orgmode mailing list Please use `Reply All' to send replies to the list. Emacs-orgmode@gnu.org http://lists.gnu.org/mailman/listinfo/emacs-orgmode --=-=-=--