emacs-orgmode@gnu.org archives
 help / color / mirror / code / Atom feed
* [BUG] org-export-pdf-remove-logfiles extensions
@ 2009-11-25 12:56 Łukasz Stelmach
  2009-11-25 13:27 ` Carsten Dominik
  2009-11-25 14:05 ` Carsten Dominik
  0 siblings, 2 replies; 9+ messages in thread
From: Łukasz Stelmach @ 2009-11-25 12:56 UTC (permalink / raw)
  To: emacs-orgmode

Hello.

XeLaTeX[1,2] produces some more files than pdflatex. These are:
 .nav, .snm, .vrb. All named the same as the base file. The list in
org-export-as-pdf should be extended or even made customisable.

[1] http://scripts.sil.org/XeTeX
[2] http://en.wikipedia.org/wiki/XeTeX 

-- 
Miłego dnia,
Łukasz Stelmach

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

* Re: [BUG] org-export-pdf-remove-logfiles extensions
  2009-11-25 12:56 [BUG] org-export-pdf-remove-logfiles extensions Łukasz Stelmach
@ 2009-11-25 13:27 ` Carsten Dominik
  2009-11-25 14:24   ` Sébastien Vauban
  2009-11-25 14:05 ` Carsten Dominik
  1 sibling, 1 reply; 9+ messages in thread
From: Carsten Dominik @ 2009-11-25 13:27 UTC (permalink / raw)
  To: Łukasz Stelmach; +Cc: emacs-orgmode


On Nov 25, 2009, at 1:56 PM, Łukasz Stelmach wrote:

> Hello.
>
> XeLaTeX[1,2] produces some more files than pdflatex. These are:
> .nav, .snm, .vrb. All named the same as the base file. The list in
> org-export-as-pdf should be extended or even made customisable.
>
> [1] http://scripts.sil.org/XeTeX
> [2] http://en.wikipedia.org/wiki/XeTeX

Hi,

Are you using XeTeX with Org-mode?

How exactly, can you white a little HOWTO and post it here?

Thanks

- Carsten

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

* Re: [BUG] org-export-pdf-remove-logfiles extensions
  2009-11-25 12:56 [BUG] org-export-pdf-remove-logfiles extensions Łukasz Stelmach
  2009-11-25 13:27 ` Carsten Dominik
@ 2009-11-25 14:05 ` Carsten Dominik
  2009-11-25 17:31   ` [PATCH] " Łukasz Stelmach
  1 sibling, 1 reply; 9+ messages in thread
From: Carsten Dominik @ 2009-11-25 14:05 UTC (permalink / raw)
  To: Łukasz Stelmach; +Cc: emacs-orgmode

Hi Łukasz,

I have fixed this.

- Carsten

On Nov 25, 2009, at 1:56 PM, Łukasz Stelmach wrote:

> Hello.
>
> XeLaTeX[1,2] produces some more files than pdflatex. These are:
> .nav, .snm, .vrb. All named the same as the base file. The list in
> org-export-as-pdf should be extended or even made customisable.
>
> [1] http://scripts.sil.org/XeTeX
> [2] http://en.wikipedia.org/wiki/XeTeX
>
> -- 
> Miłego dnia,
> Łukasz Stelmach
>
>
>
> _______________________________________________
> 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

- Carsten

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

* Re: [BUG] org-export-pdf-remove-logfiles extensions
  2009-11-25 13:27 ` Carsten Dominik
@ 2009-11-25 14:24   ` Sébastien Vauban
  2009-11-25 16:07     ` Łukasz Stelmach
  0 siblings, 1 reply; 9+ messages in thread
From: Sébastien Vauban @ 2009-11-25 14:24 UTC (permalink / raw)
  To: emacs-orgmode-mXXj517/zsQ

Carsten Dominik wrote:
> On Nov 25, 2009, at 1:56 PM, Łukasz Stelmach wrote:

>> XeLaTeX produces some more files than pdflatex. These are: .nav, .snm,
>> .vrb. All named the same as the base file.

I don't think those extensions are specific to XeLaTeX. I have them as well as
soon as I use beamer and verbatim code.


> Are you using XeTeX with Org-mode?
> How exactly, can you white a little HOWTO and post it here?

I would be interested as well...

Best regards,
  Seb

-- 
Sébastien Vauban



_______________________________________________
Emacs-orgmode mailing list
Please use `Reply All' to send replies to the list.
Emacs-orgmode-mXXj517/zsQ@public.gmane.org
http://lists.gnu.org/mailman/listinfo/emacs-orgmode

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

* Re: [BUG] org-export-pdf-remove-logfiles extensions
  2009-11-25 14:24   ` Sébastien Vauban
@ 2009-11-25 16:07     ` Łukasz Stelmach
  2009-11-26  0:31       ` Łukasz Stelmach
  0 siblings, 1 reply; 9+ messages in thread
From: Łukasz Stelmach @ 2009-11-25 16:07 UTC (permalink / raw)
  To: emacs-orgmode; +Cc: Carsten Dominik

Sébastien Vauban <wxhgmqzgwmuf@spammotel.com>
writes:

> Carsten Dominik wrote:
>> On Nov 25, 2009, at 1:56 PM, Łukasz Stelmach wrote:
>
>>> XeLaTeX produces some more files than pdflatex. These are: .nav, .snm,
>>> .vrb. All named the same as the base file.
>
> I don't think those extensions are specific to XeLaTeX. I have them as
> well as soon as I use beamer and verbatim code.

It's quite possible.

>> Are you using XeTeX with Org-mode?
>> How exactly, can you white a little HOWTO and post it here?
>
> I would be interested as well...
>

It's nothing special really. The only thing I had to do is change
"pdflatex" to "xelatex" in org-latex-to-pdf-process. There are some
slight changes in a preamble too. You have to use some packages to take
full advantage of xelatex. They are

  - xunicode and xltxtra --- for utf-8 input,
  - fontspec --- for convenient access to TTF fonts.

I'am not (Xe)LaTeX guru so I can't explain you anything more.

I am creating a beamer presentation so I had to create my preamble from
scrach and add it to org-export-latex-classes (in fact I M-w C-y-ed it
from the web). However, this reminds me of a drawback I found. There is
no way to put some LaTeX code from the Org document into the preamble.
You can use #+begin_latex only for the body.

I use xelatex because it supports UTF-8 input and TTF fonts much better
than any other tex "backend".

-- 
Miłego dnia,
Łukasz Stelmach

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

* [PATCH] org-export-pdf-remove-logfiles extensions
  2009-11-25 14:05 ` Carsten Dominik
@ 2009-11-25 17:31   ` Łukasz Stelmach
  2009-11-26  1:28     ` GT
  2009-11-26  6:36     ` Carsten Dominik
  0 siblings, 2 replies; 9+ messages in thread
From: Łukasz Stelmach @ 2009-11-25 17:31 UTC (permalink / raw)
  To: emacs-orgmode

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

Carsten Dominik <carsten.dominik@gmail.com> writes:

> On Nov 25, 2009, at 1:56 PM, Łukasz Stelmach wrote:
>> XeLaTeX[1,2] produces some more files than pdflatex. These are:
>> .nav, .snm, .vrb. All named the same as the base file. The list in
>> org-export-as-pdf should be extended or even made customisable.
> I have fixed this.

That's great. How about this one? I'm just not sure 'sexp is the best
type.

P.S. Is it ok to post patches here?

-- 
Miłego dnia,
Łukasz Stelmach


[-- Warning: decoded text below may be mangled, UTF-8 assumed --]
[-- Attachment #2: customisable list of logfile types --]
[-- Type: text/x-diff, Size: 1076 bytes --]

diff --git a/lisp/org-latex.el b/lisp/org-latex.el
index 09e7067..e2959c1 100644
--- a/lisp/org-latex.el
+++ b/lisp/org-latex.el
@@ -400,6 +400,12 @@ This function should accept the file name as its single argument."
 		  (string :tag "Shell command"))
 		 (function)))
 
+(defcustom org-export-pdf-logfiles
+  '("aux" "idx" "log" "out" "toc" "nav" "snm" "vrb")
+  "The list of file extensions to consider as LaTeX logfiles."
+  :group 'org-export-pdf
+  :type 'sexp)
+
 (defcustom org-export-pdf-remove-logfiles t
   "Non-nil means, remove the logfiles produced by PDF production.
 These are the .aux, .log, .out, and .toc files."
@@ -719,7 +725,7 @@ when PUB-DIR is set, use this as the publishing directory."
 	(error "PDF file was not produced")
       (set-window-configuration wconfig)
       (when org-export-pdf-remove-logfiles
-	(dolist (ext '("aux" "idx" "log" "out" "toc" "nav" "snm" "vrb"))
+	(dolist (ext org-export-pdf-logfiles)
 	  (setq file (concat base "." ext))
 	  (and (file-exists-p file) (delete-file file))))
       (message "Exporting to PDF...done")

[-- Attachment #3: Type: text/plain, Size: 201 bytes --]

_______________________________________________
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

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

* Re: [BUG] org-export-pdf-remove-logfiles extensions
  2009-11-25 16:07     ` Łukasz Stelmach
@ 2009-11-26  0:31       ` Łukasz Stelmach
  0 siblings, 0 replies; 9+ messages in thread
From: Łukasz Stelmach @ 2009-11-26  0:31 UTC (permalink / raw)
  To: emacs-orgmode

Łukasz Stelmach <lukasz.stelmach@iem.pw.edu.pl> writes:

> Sébastien Vauban <wxhgmqzgwmuf@spammotel.com>
> writes:
>
>> Carsten Dominik wrote:
>>> Are you using XeTeX with Org-mode?
>>> How exactly, can you white a little HOWTO and post it here?
>>
>> I would be interested as well...
>>
> It's nothing special really. The only thing I had to do is change
> "pdflatex" to "xelatex" in org-latex-to-pdf-process. There are some
> slight changes in a preamble too. (...)  I am creating a beamer
> presentation so I had to create my preamble from scrach and add it to
> org-export-latex-classes (in fact I M-w C-y-ed it from the
> web). However, this reminds me of a drawback I found. There is no way
> to put some LaTeX code from the Org document into the preamble.


"Use the Source Luke!"

There is #+LATEX_HEADER to put a single line into a preamble. You can
use it multiple times.

* TODO Write a few words about #+LATEX_HEADER in the documentation.

-- 
Miłego dnia,
Łukasz Stelmach

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

* Re: [PATCH] org-export-pdf-remove-logfiles extensions
  2009-11-25 17:31   ` [PATCH] " Łukasz Stelmach
@ 2009-11-26  1:28     ` GT
  2009-11-26  6:36     ` Carsten Dominik
  1 sibling, 0 replies; 9+ messages in thread
From: GT @ 2009-11-26  1:28 UTC (permalink / raw)
  To: =?ISO-2022-JP-2?B?GyQoRCkoGyhCdWthc3o=?= Stelmach; +Cc: emacs-orgmode

My first mail on the list! Love org-mode by the way.

>> XeLaTeX[1,2] produces some more files than pdflatex. These are:
>> .nav, .snm, .vrb. All named the same as the base file. The list in
>> org-export-as-pdf should be extended or even made customisable.

I second you on this one! That would be nice if the "log" files list was customizable.

I use xelatex and bibtex which leads to additional garbage files such as ".blg" and ".bbl".

For the moment, I am cleaning the mess with a unix "rm" command at the end of the latex/bibtex processing, like this:

(setq org-latex-to-pdf-process '("xelatex -interaction nonstopmode %s" "bibtex %b" "xelatex -interaction nonstopmode %s" "xelatex -interaction nonstopmode %s" "rm *blg *bbl"))

best regards,


GT

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

* Re: [PATCH] org-export-pdf-remove-logfiles extensions
  2009-11-25 17:31   ` [PATCH] " Łukasz Stelmach
  2009-11-26  1:28     ` GT
@ 2009-11-26  6:36     ` Carsten Dominik
  1 sibling, 0 replies; 9+ messages in thread
From: Carsten Dominik @ 2009-11-26  6:36 UTC (permalink / raw)
  To: Łukasz Stelmach; +Cc: emacs-orgmode

Hi Lukasz,

I have applied, you patch, thanks.  But...

On Nov 25, 2009, at 6:31 PM, Łukasz Stelmach wrote:

> Carsten Dominik <carsten.dominik@gmail.com> writes:
>
>> On Nov 25, 2009, at 1:56 PM, Łukasz Stelmach wrote:
>>> XeLaTeX[1,2] produces some more files than pdflatex. These are:
>>> .nav, .snm, .vrb. All named the same as the base file. The list in
>>> org-export-as-pdf should be extended or even made customisable.
>> I have fixed this.
>
> That's great. How about this one? I'm just not sure 'sexp is the best
> type.

No, I have changed that

> P.S. Is it ok to post patches here?

Yes.  But can I convince you to sign the papers with the FSF so that I  
can also accept longer patches from you?

- Carsten

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

end of thread, other threads:[~2009-11-26  6:36 UTC | newest]

Thread overview: 9+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2009-11-25 12:56 [BUG] org-export-pdf-remove-logfiles extensions Łukasz Stelmach
2009-11-25 13:27 ` Carsten Dominik
2009-11-25 14:24   ` Sébastien Vauban
2009-11-25 16:07     ` Łukasz Stelmach
2009-11-26  0:31       ` Łukasz Stelmach
2009-11-25 14:05 ` Carsten Dominik
2009-11-25 17:31   ` [PATCH] " Łukasz Stelmach
2009-11-26  1:28     ` GT
2009-11-26  6:36     ` Carsten Dominik

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