From mboxrd@z Thu Jan 1 00:00:00 1970 From: =?ISO-8859-1?Q?J=F6rg_Hagmann?= Subject: Re: latex export problem Date: Fri, 01 Oct 2010 09:30:48 +0200 Message-ID: <4CA58E28.2030104@unibas.ch> References: <4CA4A4CF.6060305@unibas.ch> <4CA4C29B.1060404@christianmoe.com> Mime-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 8bit Return-path: Received: from [140.186.70.92] (port=56701 helo=eggs.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1P1a50-000750-1b for Emacs-orgmode@gnu.org; Fri, 01 Oct 2010 03:30:55 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1P1a4y-0007A1-Jh for Emacs-orgmode@gnu.org; Fri, 01 Oct 2010 03:30:53 -0400 Received: from smtp2pub.unibas.ch ([131.152.227.82]:52714) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1P1a4y-00079V-BD for Emacs-orgmode@gnu.org; Fri, 01 Oct 2010 03:30:52 -0400 In-Reply-To: <4CA4C29B.1060404@christianmoe.com> 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: mail@christianmoe.com Cc: Emacs-orgmode@gnu.org Hi Christian, On 9/30/10 7:02 PM, Christian Moe wrote: > The exact error message is "No such file: /Users/me/test.org::" with > two colons at the end, right? You are right, I forgot the colons. > I reported the same problem on 23 September ("Bug: subtree export > fails with src block"), but others were not able to reproduce it. I can understand that. In my case it worked for at least a month. I have no idea why it stopped doing so. > As I wrote at the time, it looks like the problem comes to a head in > this part of org-babel-exp-src-blocks > > : (link (org-make-link-string > : (concat > : org-current-export-file > : "::" > : (nth 4 (ignore-errors (org-heading-components)))))) > > and that org-heading-components fails to return the heading text. I'm > not lisp-canny enough to see why. Maybe something to do with the > active region? I don't know enough lisp either. But it would be nice if it could be corrected; the (working) alternative is to have all the lines in the source block preceded by "#+LATEX: " which is less convenient. > On 9/30/10 4:55 PM, Jörg Hagmann wrote: >> Dear list, >> >> I have an org file named "test.org" structured as follows (minimal >> example): >> >> ------minimal example------------ >> * Head >> text >> >> * Second head >> :PROPERTIES: >> :EXPORT_OPTIONS: H:5 num:nil toc:t \n:nil @:t ::t |:t ^:{} -:t f:t *:t >> skip:nil d:nil tags:nil >> :EXPORT_TITLE: My Title >> :EXPORT_FILE_NAME: scripts/filename >> :END: >> >> >> #+begin_src latex >> \input gentium-ge >> #+end_src >> >> ** section >> text >> ------end of minimal example----------- >> >> I export the second head to a filename.tex file in a subdirectory (and >> convert it later to ConTeXt code, but that shouldn't matter here). I >> swear that this worked -- I have everything pertaining to my lectures >> in this file. >> However, it stopped working recently (without updating org-mode). All >> I get when I export "Second Head" to latex is: >> "No such file: /Users/me/test.org" >> The cause is the #+begin_src ... #+end_src block >> >> Did I inadvertently change some parameter? Or is it a bug (less likely)? >> >> Thanks for your suggestions, Jörg