From: "Łukasz Stelmach" <lukasz.stelmach@iem.pw.edu.pl>
To: emacs-orgmode@gnu.org
Subject: [PATCH] org-export-pdf-remove-logfiles extensions
Date: Wed, 25 Nov 2009 18:31:43 +0100 [thread overview]
Message-ID: <87fx82ecjk.fsf_-_@dasa3.iem.pw.edu.pl> (raw)
In-Reply-To: F56376C9-8CC4-4421-844E-3285696A68A5@gmail.com
[-- 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
next prev parent reply other threads:[~2009-11-25 17:31 UTC|newest]
Thread overview: 9+ messages / expand[flat|nested] mbox.gz Atom feed top
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 ` Łukasz Stelmach [this message]
2009-11-26 1:28 ` [PATCH] " GT
2009-11-26 6:36 ` Carsten Dominik
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
List information: https://www.orgmode.org/
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=87fx82ecjk.fsf_-_@dasa3.iem.pw.edu.pl \
--to=lukasz.stelmach@iem.pw.edu.pl \
--cc=emacs-orgmode@gnu.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
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).