emacs-orgmode@gnu.org archives
 help / color / mirror / code / Atom feed
* latex export problem
@ 2010-09-30 14:55 Jörg Hagmann
       [not found] ` <4CA4C29B.1060404@christianmoe.com>
  2010-10-01  7:32 ` Noorul Islam K M
  0 siblings, 2 replies; 9+ messages in thread
From: Jörg Hagmann @ 2010-09-30 14:55 UTC (permalink / raw)
  To: Emacs-orgmode

  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

^ permalink raw reply	[flat|nested] 9+ messages in thread

* Re: latex export problem
       [not found] ` <4CA4C29B.1060404@christianmoe.com>
@ 2010-10-01  7:30   ` Jörg Hagmann
  0 siblings, 0 replies; 9+ messages in thread
From: Jörg Hagmann @ 2010-10-01  7:30 UTC (permalink / raw)
  To: mail; +Cc: Emacs-orgmode

  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

^ permalink raw reply	[flat|nested] 9+ messages in thread

* Re: latex export problem
  2010-09-30 14:55 latex export problem Jörg Hagmann
       [not found] ` <4CA4C29B.1060404@christianmoe.com>
@ 2010-10-01  7:32 ` Noorul Islam K M
  2010-10-01  7:40   ` Jörg Hagmann
  1 sibling, 1 reply; 9+ messages in thread
From: Noorul Islam K M @ 2010-10-01  7:32 UTC (permalink / raw)
  To: Jörg Hagmann; +Cc: Emacs-orgmode

Jörg Hagmann <joerg.hagmann@unibas.ch> writes:

>  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
>

Can you please tell us which version of emacs and org-mode are you
using? 

M-x org-version
M-x emacs-version

Thanks and Regards
Noorul

^ permalink raw reply	[flat|nested] 9+ messages in thread

* Re: latex export problem
  2010-10-01  7:32 ` Noorul Islam K M
@ 2010-10-01  7:40   ` Jörg Hagmann
  2010-10-01  9:03     ` Noorul Islam K M
  2010-10-01  9:06     ` Christian Moe
  0 siblings, 2 replies; 9+ messages in thread
From: Jörg Hagmann @ 2010-10-01  7:40 UTC (permalink / raw)
  To: Noorul Islam K M; +Cc: Emacs-orgmode

  org-version: yesterday's pull
emacs: 23.2.1 (x86_64-apple-darwin, NS apple-appkit-1038.29)
  of 2010-05-09

On 10/1/10 9:32 AM, Noorul Islam K M wrote:
> Jörg Hagmann<joerg.hagmann@unibas.ch>  writes:
>
>>   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
>>
> Can you please tell us which version of emacs and org-mode are you
> using?
>
> M-x org-version
> M-x emacs-version
>
> Thanks and Regards
> Noorul

-- 
Prof. Jörg Hagmann-Zanolari MD
University of Basel
Department of Biomedicine
Institute of Biochemistry and Genetics
Mattenstrasse 28
CH-4058 Basel
Switzerland
Phone +41 (0)61 267 3565

^ permalink raw reply	[flat|nested] 9+ messages in thread

* Re: latex export problem
  2010-10-01  7:40   ` Jörg Hagmann
@ 2010-10-01  9:03     ` Noorul Islam K M
  2010-10-01  9:17       ` Noorul Islam
  2010-10-01  9:06     ` Christian Moe
  1 sibling, 1 reply; 9+ messages in thread
From: Noorul Islam K M @ 2010-10-01  9:03 UTC (permalink / raw)
  To: Jörg Hagmann; +Cc: Emacs-orgmode

Jörg Hagmann <joerg.hagmann@unibas.ch> writes:

>  org-version: yesterday's pull
> emacs: 23.2.1 (x86_64-apple-darwin, NS apple-appkit-1038.29)
>  of 2010-05-09
>

I copied your example to a file /tmp/test.org and with the cursor on
Second head I did "C-c C-e 1 l". It did generate output file
/tmp/scripts/filename.tex and I did not get any error.

Is it related to Mac? I am not sure though

I have on my machine:

Org-mode version 7.01trans (release_7.01h.609.gc4916)
GNU Emacs 24.0.50.1 (i686-pc-linux-gnu, GTK+ Version 2.12.12)
 of 2010-09-29 on noorul

Thanks and Regards
Noorul


> On 10/1/10 9:32 AM, Noorul Islam K M wrote:
>> Jörg Hagmann<joerg.hagmann@unibas.ch>  writes:
>>
>>>   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
>>>
>> Can you please tell us which version of emacs and org-mode are you
>> using?
>>
>> M-x org-version
>> M-x emacs-version
>>
>> Thanks and Regards
>> Noorul

^ permalink raw reply	[flat|nested] 9+ messages in thread

* Re: Re: latex export problem
  2010-10-01  7:40   ` Jörg Hagmann
  2010-10-01  9:03     ` Noorul Islam K M
@ 2010-10-01  9:06     ` Christian Moe
  1 sibling, 0 replies; 9+ messages in thread
From: Christian Moe @ 2010-10-01  9:06 UTC (permalink / raw)
  To: Jörg Hagmann; +Cc: Emacs-orgmode, Noorul Islam K M

On 10/1/10 9:40 AM, Jörg Hagmann wrote:
> org-version: yesterday's pull
> emacs: 23.2.1 (x86_64-apple-darwin, NS apple-appkit-1038.29)
> of 2010-05-09

And mine is

- this morning's pull

- GNU Emacs 23.2.1 (powerpc-apple-darwin9.8.0, NS apple-appkit-949.54) 
of 2010-09-03

CM

^ permalink raw reply	[flat|nested] 9+ messages in thread

* Re: latex export problem
  2010-10-01  9:03     ` Noorul Islam K M
@ 2010-10-01  9:17       ` Noorul Islam
  2010-10-01 11:38         ` Jörg Hagmann
  0 siblings, 1 reply; 9+ messages in thread
From: Noorul Islam @ 2010-10-01  9:17 UTC (permalink / raw)
  To: Jörg Hagmann; +Cc: Emacs-orgmode

On Fri, Oct 1, 2010 at 2:33 PM, Noorul Islam K M <noorul@noorul.com> wrote:
> Jörg Hagmann <joerg.hagmann@unibas.ch> writes:
>
>>  org-version: yesterday's pull
>> emacs: 23.2.1 (x86_64-apple-darwin, NS apple-appkit-1038.29)
>>  of 2010-05-09
>>
>
> I copied your example to a file /tmp/test.org and with the cursor on
> Second head I did "C-c C-e 1 l". It did generate output file
> /tmp/scripts/filename.tex and I did not get any error.
>
> Is it related to Mac? I am not sure though
>
> I have on my machine:
>
> Org-mode version 7.01trans (release_7.01h.609.gc4916)
> GNU Emacs 24.0.50.1 (i686-pc-linux-gnu, GTK+ Version 2.12.12)
>  of 2010-09-29 on noorul
>
> Thanks and Regards
> Noorul
>
>

On emacs

GNU Emacs 23.1.1 (i686-pc-linux-gnu, GTK+ Version 2.12.12) of
2010-01-30 on noorul


I get the following error

Debugger entered--Lisp error: (wrong-type-argument stringp nil)
  get-file-buffer(nil)
  org-babel-exp-src-blocks(#("\\input gentium-ge" 0 17 (fontified nil
font-lock-fontified t)) #("latex" 0 5 (font-lock-fontified t fontified
nil)))
  apply(org-babel-exp-src-blocks #("\\input gentium-ge" 0 17
(fontified nil font-lock-fontified t)) #("latex" 0 5
(font-lock-fontified t fontified nil)))
  byte-code("ÆÇ\x18\x19\x1a^[\x1c\x1d\x1e%\x1e&\x1e'\x1e(ÈÉ!\x1e)#

Thanks and Regards
Noorul

>> On 10/1/10 9:32 AM, Noorul Islam K M wrote:
>>> Jörg Hagmann<joerg.hagmann@unibas.ch>  writes:
>>>
>>>>   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
>>>>
>>> Can you please tell us which version of emacs and org-mode are you
>>> using?
>>>
>>> M-x org-version
>>> M-x emacs-version
>>>
>>> Thanks and Regards
>>> Noorul
>

^ permalink raw reply	[flat|nested] 9+ messages in thread

* Re: latex export problem
  2010-10-01  9:17       ` Noorul Islam
@ 2010-10-01 11:38         ` Jörg Hagmann
  2010-10-01 12:05           ` Jörg Hagmann
  0 siblings, 1 reply; 9+ messages in thread
From: Jörg Hagmann @ 2010-10-01 11:38 UTC (permalink / raw)
  To: Noorul Islam; +Cc: Emacs-orgmode



On 10/1/10 11:17 AM, Noorul Islam wrote:
>> I have on my machine:
>>
>> Org-mode version 7.01trans (release_7.01h.609.gc4916)
>> GNU Emacs 24.0.50.1 (i686-pc-linux-gnu, GTK+ Version 2.12.12)
>>   of 2010-09-29 on noorul
>>
>> Thanks and Regards
>> Noorul
> On emacs
>
> GNU Emacs 23.1.1 (i686-pc-linux-gnu, GTK+ Version 2.12.12) of
> 2010-01-30 on noorul
>
>
> I get the following error
>
> Debugger entered--Lisp error: (wrong-type-argument stringp nil)
>    get-file-buffer(nil)
>    org-babel-exp-src-blocks(#("\\input gentium-ge" 0 17 (fontified nil
> font-lock-fontified t)) #("latex" 0 5 (font-lock-fontified t fontified
> nil)))
>    apply(org-babel-exp-src-blocks #("\\input gentium-ge" 0 17
> (fontified nil font-lock-fontified t)) #("latex" 0 5
> (font-lock-fontified t fontified nil)))
>    byte-code("ÆÇ\x18\x19\x1a^[\x1c\x1d\x1e%\x1e&\x1e'\x1e(ÈÉ!\x1e)#
>
> Thanks and Regards
> Noorul
I now tried it on linux (23.1.1 i486 pc-linux-gnu, GTK+ version 2.20.0) ...
... and there it works!

Kind regards, Jörg
>>>> Jörg Hagmann<joerg.hagmann@unibas.ch>    writes:
>>>>
>>>>>    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

^ permalink raw reply	[flat|nested] 9+ messages in thread

* Re: latex export problem
  2010-10-01 11:38         ` Jörg Hagmann
@ 2010-10-01 12:05           ` Jörg Hagmann
  0 siblings, 0 replies; 9+ messages in thread
From: Jörg Hagmann @ 2010-10-01 12:05 UTC (permalink / raw)
  To: Noorul Islam; +Cc: Emacs-orgmode

  And an update:

It also doesn't work on my Mac with Emacs 24 (GNU Emacs 24.0.50.1 
(x86_64-apple-darwin, NS apple-appkit-1038.32) of 2010-10-01 on 
black.porkrind.org

Summary:

Works on
- GNU Emacs 24.0.50.1 (i686-pc-linux-gnu) (Noorul)
- GNU Emacs 23.1.1 (i486 pc-linux-gnu) (Jörg)

Error on:
- GNU Emacs 23.1.1 (i686-pc-linux-gnu) (Noorul)
- GNU Emacs 23.2.1 (powerpc-apple-darwin9.8.0) (Christian)
- GNU Emacs 23.2.1 (x86_64-apple-darwin) (Jörg)
- GNU Emacs 24.0.50.1 (x86_64-apple-darwin) (Jörg)

But, to repeat myself, it might not depend on the Emacs version. In my 
case, it used to work with GNU Emacs 23.2.1 (x86_64-apple-darwin)...

Thanks and regards, Jörg

On 10/1/10 1:38 PM, Jörg Hagmann wrote:
>
>
> On 10/1/10 11:17 AM, Noorul Islam wrote:
>>> I have on my machine:
>>>
>>> Org-mode version 7.01trans (release_7.01h.609.gc4916)
>>> GNU Emacs 24.0.50.1 (i686-pc-linux-gnu, GTK+ Version 2.12.12)
>>>   of 2010-09-29 on noorul
>>>
>>> Thanks and Regards
>>> Noorul
>> On emacs
>>
>> GNU Emacs 23.1.1 (i686-pc-linux-gnu, GTK+ Version 2.12.12) of
>> 2010-01-30 on noorul
>>
>>
>> I get the following error
>>
>> Debugger entered--Lisp error: (wrong-type-argument stringp nil)
>>    get-file-buffer(nil)
>>    org-babel-exp-src-blocks(#("\\input gentium-ge" 0 17 (fontified nil
>> font-lock-fontified t)) #("latex" 0 5 (font-lock-fontified t fontified
>> nil)))
>>    apply(org-babel-exp-src-blocks #("\\input gentium-ge" 0 17
>> (fontified nil font-lock-fontified t)) #("latex" 0 5
>> (font-lock-fontified t fontified nil)))
>>    byte-code("ÆÇ\x18\x19\x1a^[\x1c\x1d\x1e%\x1e&\x1e'\x1e(ÈÉ!\x1e)#
>>
>> Thanks and Regards
>> Noorul
> I now tried it on linux (23.1.1 i486 pc-linux-gnu, GTK+ version 
> 2.20.0) ...
> ... and there it works!
>
> Kind regards, Jörg
>>>>> Jörg Hagmann<joerg.hagmann@unibas.ch>    writes:
>>>>>
>>>>>>    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

^ permalink raw reply	[flat|nested] 9+ messages in thread

end of thread, other threads:[~2010-10-01 12:05 UTC | newest]

Thread overview: 9+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2010-09-30 14:55 latex export problem Jörg Hagmann
     [not found] ` <4CA4C29B.1060404@christianmoe.com>
2010-10-01  7:30   ` Jörg Hagmann
2010-10-01  7:32 ` Noorul Islam K M
2010-10-01  7:40   ` Jörg Hagmann
2010-10-01  9:03     ` Noorul Islam K M
2010-10-01  9:17       ` Noorul Islam
2010-10-01 11:38         ` Jörg Hagmann
2010-10-01 12:05           ` Jörg Hagmann
2010-10-01  9:06     ` Christian Moe

Code repositories for project(s) associated with this public inbox

	https://git.savannah.gnu.org/cgit/emacs/org-mode.git

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).