From mboxrd@z Thu Jan 1 00:00:00 1970 From: "Eric Schulte" Subject: Re: Blorgit > Adding PDF export Date: Mon, 23 Nov 2009 07:43:09 -0700 Message-ID: References: <87r5s24ebl.fsf@missioncriticalit.com> <87fx8asu9s.fsf@missioncriticalit.com> <873a451jox.fsf_-_@missioncriticalit.com> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Return-path: Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1NCa8Q-0004s8-Gm for emacs-orgmode@gnu.org; Mon, 23 Nov 2009 09:43:22 -0500 Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1NCa8K-0004et-QC for emacs-orgmode@gnu.org; Mon, 23 Nov 2009 09:43:20 -0500 Received: from [199.232.76.173] (port=46060 helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1NCa8K-0004eW-Fp for emacs-orgmode@gnu.org; Mon, 23 Nov 2009 09:43:16 -0500 Received: from mail-pz0-f181.google.com ([209.85.222.181]:45201) by monty-python.gnu.org with esmtp (Exim 4.60) (envelope-from ) id 1NCa8I-0003p3-HH for emacs-orgmode@gnu.org; Mon, 23 Nov 2009 09:43:15 -0500 Received: by pzk11 with SMTP id 11so3585433pzk.14 for ; Mon, 23 Nov 2009 06:43:13 -0800 (PST) In-Reply-To: <873a451jox.fsf_-_@missioncriticalit.com> (Francesco Pizzolante's message of "Mon, 23 Nov 2009 13:58:54 +0100") 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: Francesco Pizzolante Cc: mailing-list-org-mode Francesco Pizzolante writes: > Eric, > >> Also, rather than using a shell script, would it be possible to use the >> built in `org-export-as-pdf' function. This may obviate the need for a >> shell script at all. In this case you probably wouldn't need to remove >> the leading "." in the file names, and if you did, it could be done in >> elisp right around export with the `rename-file' function. > > Regarding the addition of an extra link in order to get the PDF export, I took > your remarks into account and here's what I finally went to. > [snip] > > Note that I use the /tmp folder to store temporary files without the leading > dot (the export do PDF does not work with a leading dot). > > What do you think? > First off this looks great. Rather than explicitly using the "/tmp" directory i would recommend using the `make-temp-file' function, which should work across a wider range of systems. Additionally if you need to get the directory from a path, or combine a file-name and a directory name into a path I'd recommend the `expand-file-name' and `file-name-directory' functions respectively. With those change I would love to include this new feature into the main blorgit repository. Much Thanks -- Eric > > Thanks for your feedback. > > Regards, > Francesco