From mboxrd@z Thu Jan 1 00:00:00 1970 From: Mark Edgington Subject: Unable to use "+LaTeX_HEADER: \input{...}" with latex-preview-fragment Date: Tue, 4 Jun 2013 15:44:52 -0400 Message-ID: Mime-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1 Return-path: Received: from eggs.gnu.org ([2001:4830:134:3::10]:39337) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1UjxAW-0007nF-4N for emacs-orgmode@gnu.org; Tue, 04 Jun 2013 15:45:25 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1UjxAQ-0000O3-St for emacs-orgmode@gnu.org; Tue, 04 Jun 2013 15:45:20 -0400 Received: from mail-ob0-x232.google.com ([2607:f8b0:4003:c01::232]:41226) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1UjxAQ-0000Nf-NM for emacs-orgmode@gnu.org; Tue, 04 Jun 2013 15:45:14 -0400 Received: by mail-ob0-f178.google.com with SMTP id fb19so1123806obc.23 for ; Tue, 04 Jun 2013 12:45:13 -0700 (PDT) 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: emacs-orgmode I attempted recently to have org-mode use a preamble file when previewing latex-fragments. I used a line like the following: +LaTeX_HEADER: \input{relative-path-to-file.tex} Unfortunately, the file referenced by the \input{} command doesn't get copied to the location where the preview tex file is compiled. Certainly a way of making it work would be to use an absolute path instead of a relative path, but I really want to have a self-contained portable directory containing both org-mode and preamble files. Would it be possible or sensible to make an option which makes latex-preview-fragment parse +LaTeX_HEADER lines for \input{} commands, and attempt to copy the input files to the preview compilation-folder? Regards, Mark