From mboxrd@z Thu Jan 1 00:00:00 1970 From: Rasmus Subject: Re: \input causes conflict with LaTeX equation preview Date: Tue, 21 Oct 2014 00:26:22 +0200 Message-ID: <871tq2nzsh.fsf@gmx.us> References: Mime-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 8bit Return-path: Received: from eggs.gnu.org ([2001:4830:134:3::10]:37862) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1XgLSu-0007Qy-5R for emacs-orgmode@gnu.org; Mon, 20 Oct 2014 18:30:22 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1XgLSm-0006Lc-Jx for emacs-orgmode@gnu.org; Mon, 20 Oct 2014 18:30:12 -0400 Received: from plane.gmane.org ([80.91.229.3]:34018) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1XgLSm-0006JE-9I for emacs-orgmode@gnu.org; Mon, 20 Oct 2014 18:30:04 -0400 Received: from list by plane.gmane.org with local (Exim 4.69) (envelope-from ) id 1XgLSk-00021e-Ep for emacs-orgmode@gnu.org; Tue, 21 Oct 2014 00:30:02 +0200 Received: from 109.201.154.187 ([109.201.154.187]) by main.gmane.org with esmtp (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Tue, 21 Oct 2014 00:30:02 +0200 Received: from rasmus by 109.201.154.187 with local (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Tue, 21 Oct 2014 00:30:02 +0200 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@gnu.org Ken Mankoff writes: > I have > [+] > #+LATEX_HEADER: \input{preamble} > > in an Org file. When I try to preview equations, it does not work > because "\input{preamble}" is exported to the equation preview preamble, > but no file "preamble.tex" is exported. The "preamble.tex" file is not > needed just to preview an equation. > > Can anyone suggest a work-around? \IfFileExists{./preamble.tex}{true}{false} Etoolbox has a number of nice tests for more sophisticated conditioning. —Rasmus -- Dobbelt-A