From mboxrd@z Thu Jan 1 00:00:00 1970 From: Eric S Fraga Subject: Re: Bug: "LATEX_HEADER includes are not copied to temp directories" [8.2.5c (8.2.5c-elpa @ /Users/avigoz/.emacs.d/elpa/org-20140107/)] Date: Thu, 21 Aug 2014 16:40:23 +0100 Message-ID: <87d2btyhp4.fsf@ucl.ac.uk> References: Mime-Version: 1.0 Content-Type: text/plain Return-path: Received: from eggs.gnu.org ([2001:4830:134:3::10]:56855) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1XKUTg-0000gg-Ke for emacs-orgmode@gnu.org; Thu, 21 Aug 2014 11:40:46 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1XKUTZ-0001lx-W4 for emacs-orgmode@gnu.org; Thu, 21 Aug 2014 11:40:40 -0400 Received: from mail-am1lrp0012.outbound.protection.outlook.com ([213.199.154.12]:3412 helo=emea01-am1-obe.outbound.protection.outlook.com) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1XKUTZ-0001ey-MD for emacs-orgmode@gnu.org; Thu, 21 Aug 2014 11:40:33 -0400 In-Reply-To: (avigoz@gmail.com's message of "Thu, 21 Aug 2014 14:28:21 +0300") List-Id: "General discussions about Org-mode." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: emacs-orgmode-bounces+geo-emacs-orgmode=m.gmane.org@gnu.org Sender: emacs-orgmode-bounces+geo-emacs-orgmode=m.gmane.org@gnu.org To: avigoz Cc: emacs-orgmode@gnu.org On Thursday, 21 Aug 2014 at 14:28, avigoz wrote: > Remember to cover the basics, that is, what you expected to happen and > what in fact did happen. You don't know how to make a good report? See > > http://orgmode.org/manual/Feedback.html#Feedback > > Your bug report will be posted to the Org-mode mailing list. > ------------------------------------------------------------------------ > > in my orgmode files i include the line "#+LATEX_HEADER: \input{lib.tex}" > in order to have the latex listings package included. (lib.tex includes > only one line - \usepackage{listings} ). When I now use c-c c-x c-l in > order to view an equation snippet inside an orgmode buffer, compilation fails > because the temporary directory that orgmode uses does not include > lib.tex . if I copy lib.tex manually to the temp directory, everything works. I am not sure this really qualifies as a bug. I think it would be unrealistic to expect org to be able to parse LaTeX code. The solution is relatively straightforward, albeit maybe not the most portable: specify a full path for the file name in the input command. Alternatively, use org directives for including other org files? Or modify the org-latex-classes variable to include your desired header specifications if you always want them. HTH, eric -- : Eric S Fraga (0xFFFCF67D), Emacs 24.4.50.1, Org release_8.3beta-246-g77d0da