emacs-orgmode@gnu.org archives
 help / color / mirror / code / Atom feed
* Problem when EXPORT_FILE_NAME contains a subdirectory
@ 2013-05-29 20:31 Martin Marier
  2013-05-30 12:39 ` Nicolas Goaziou
  0 siblings, 1 reply; 6+ messages in thread
From: Martin Marier @ 2013-05-29 20:31 UTC (permalink / raw)
  To: emacs-orgmode

Hi org users,

When trying to export a subtree as PDF in a subdirectory, I get this
error:
! I can't write on file `test.log'.

This is using this source:

* head 1
  :PROPERTIES:
  :EXPORT_FILE_NAME: pdf/test.pdf
  :END:
  Moo Moo Moo.
* head 2

This used to work fine with the old exporter.  It I remove the
subdirectory :
  :EXPORT_FILE_NAME: test.pdf

Everything works as expected.  Is this intended behavior?  Is there a
work around that would let me export to a subdirectory?

Thank you very much,
Martin
-- 
Martin Marier
http://www.martinmarier.com

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

* Re: Problem when EXPORT_FILE_NAME contains a subdirectory
  2013-05-29 20:31 Problem when EXPORT_FILE_NAME contains a subdirectory Martin Marier
@ 2013-05-30 12:39 ` Nicolas Goaziou
  2013-05-30 14:57   ` Martin Marier
  0 siblings, 1 reply; 6+ messages in thread
From: Nicolas Goaziou @ 2013-05-30 12:39 UTC (permalink / raw)
  To: Martin Marier; +Cc: emacs-orgmode

Hello,

Martin Marier <mariermartin@gmail.com> writes:

> When trying to export a subtree as PDF in a subdirectory, I get this
> error:
> ! I can't write on file `test.log'.
>
> This is using this source:
>
> * head 1
>   :PROPERTIES:
>   :EXPORT_FILE_NAME: pdf/test.pdf
>   :END:
>   Moo Moo Moo.
> * head 2
>
> This used to work fine with the old exporter.  It I remove the
> subdirectory :
>   :EXPORT_FILE_NAME: test.pdf
>
> Everything works as expected.  Is this intended behavior?  Is there a
> work around that would let me export to a subdirectory?

I just fixed a bug around the same area: when providing a relative path,
pdf file was produced but not found and process returned an error.
Though, the error message wasn't the same.

Could you test it again with an updated Org anyway?


Regards,

-- 
Nicolas Goaziou

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

* Re: Problem when EXPORT_FILE_NAME contains a subdirectory
  2013-05-30 12:39 ` Nicolas Goaziou
@ 2013-05-30 14:57   ` Martin Marier
  2013-05-30 15:01     ` Nicolas Goaziou
  0 siblings, 1 reply; 6+ messages in thread
From: Martin Marier @ 2013-05-30 14:57 UTC (permalink / raw)
  To: emacs-orgmode

[-- Attachment #1: Type: text/plain, Size: 1016 bytes --]

2013-05-30 08:39   Nicolas Goaziou <n.goaziou@gmail.com>:
>
> I just fixed a bug around the same area: when providing a relative path,
> pdf file was produced but not found and process returned an error.
> Though, the error message wasn't the same.
>
> Could you test it again with an updated Org anyway?

Yes.  I just updated and I still get the same problem.  The full output
is here:

> Wrote /home/myHome/aFolderWithAnOrgFile/pdf/test.tex
> Processing LaTeX file ./pdf/test.tex...
> This is pdfTeX, Version 3.1415926-1.40.10 (TeX Live 2009/Debian)
> entering extended mode
> ! I can't write on file `test.log'.
> (Press Enter to retry, or Control-D to exit; default file extension is `.log')
> Please type another transcript file name
> ! Emergency stop
> !  ==> Fatal error occurred, no output PDF file produced!

Since I use the "run latex three times" option, this output appears
three times.  Thank you for looking into that!

Martin
-- 
Martin Marier
http://www.martinmarier.com

[-- Attachment #2: smime.p7s --]
[-- Type: application/pkcs7-signature, Size: 0 bytes --]

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

* Re: Problem when EXPORT_FILE_NAME contains a subdirectory
  2013-05-30 14:57   ` Martin Marier
@ 2013-05-30 15:01     ` Nicolas Goaziou
  2013-05-30 15:26       ` Martin Marier
  0 siblings, 1 reply; 6+ messages in thread
From: Nicolas Goaziou @ 2013-05-30 15:01 UTC (permalink / raw)
  To: Martin Marier; +Cc: emacs-orgmode

Martin Marier <mariermartin@gmail.com> writes:

> Yes.  I just updated and I still get the same problem.  The full output
> is here:
>
>> Wrote /home/myHome/aFolderWithAnOrgFile/pdf/test.tex
>> Processing LaTeX file ./pdf/test.tex...
>> This is pdfTeX, Version 3.1415926-1.40.10 (TeX Live 2009/Debian)
>> entering extended mode
>> ! I can't write on file `test.log'.
>> (Press Enter to retry, or Control-D to exit; default file extension is `.log')
>> Please type another transcript file name
>> ! Emergency stop
>> !  ==> Fatal error occurred, no output PDF file produced!
>
> Since I use the "run latex three times" option, this output appears
> three times.  Thank you for looking into that!

I don't think it is related to Org.

Do you have write access on "test.log" file in that directory? Also,
what happens if you remove it first and export the document twice?


Regards,

-- 
Nicolas Goaziou

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

* Re: Problem when EXPORT_FILE_NAME contains a subdirectory
  2013-05-30 15:01     ` Nicolas Goaziou
@ 2013-05-30 15:26       ` Martin Marier
  2013-05-30 18:35         ` Nicolas Goaziou
  0 siblings, 1 reply; 6+ messages in thread
From: Martin Marier @ 2013-05-30 15:26 UTC (permalink / raw)
  To: Nicolas Goaziou; +Cc: emacs-orgmode

2013-05-30 11:01   Nicolas Goaziou <n.goaziou@gmail.com>:
> I don't think it is related to Org.
>
> Do you have write access on "test.log" file in that directory? 

Yes I do.  And by the way, the .tex file is rendered correctly in the
pdf/ folder.

> Also, what happens if you remove it first and export the document
> twice?

I get the same error twice.

And just to make sure I was expressing myself clearly: this happens when
exporting a subtree only; there is no issue when exporting the full
document.  You (or anyone else) can't reproduce the problem?

Thanks!
Martin
-- 
Martin Marier
http://www.martinmarier.com

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

* Re: Problem when EXPORT_FILE_NAME contains a subdirectory
  2013-05-30 15:26       ` Martin Marier
@ 2013-05-30 18:35         ` Nicolas Goaziou
  0 siblings, 0 replies; 6+ messages in thread
From: Nicolas Goaziou @ 2013-05-30 18:35 UTC (permalink / raw)
  To: Martin Marier; +Cc: emacs-orgmode

Martin Marier <mariermartin@gmail.com> writes:

> And just to make sure I was expressing myself clearly: this happens when
> exporting a subtree only; there is no issue when exporting the full
> document.  You (or anyone else) can't reproduce the problem?

I could reproduce the problem: I wasn't using default value for
`org-latex-pdf-process'.

The problem should be fixed in maint. Thank you for reporting it.


Regards,

-- 
Nicolas Goaziou

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

end of thread, other threads:[~2013-05-30 18:35 UTC | newest]

Thread overview: 6+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2013-05-29 20:31 Problem when EXPORT_FILE_NAME contains a subdirectory Martin Marier
2013-05-30 12:39 ` Nicolas Goaziou
2013-05-30 14:57   ` Martin Marier
2013-05-30 15:01     ` Nicolas Goaziou
2013-05-30 15:26       ` Martin Marier
2013-05-30 18:35         ` Nicolas Goaziou

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