From mboxrd@z Thu Jan 1 00:00:00 1970 From: Ken Mankoff Subject: Re: \input causes conflict with LaTeX equation preview Date: Mon, 20 Oct 2014 21:33:11 -0400 Message-ID: References: <871tq2nzsh.fsf@gmx.us> Mime-Version: 1.0 Content-Type: text/plain Return-path: Received: from eggs.gnu.org ([2001:4830:134:3::10]:40018) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1XgOKB-0007Sl-7o for emacs-orgmode@gnu.org; Mon, 20 Oct 2014 21:33:32 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1XgOK2-00059K-7p for emacs-orgmode@gnu.org; Mon, 20 Oct 2014 21:33:23 -0400 Received: from mail-yh0-x229.google.com ([2607:f8b0:4002:c01::229]:65261) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1XgOK2-00059C-3M for emacs-orgmode@gnu.org; Mon, 20 Oct 2014 21:33:14 -0400 Received: by mail-yh0-f41.google.com with SMTP id i57so372098yha.0 for ; Mon, 20 Oct 2014 18:33:13 -0700 (PDT) In-reply-to: <871tq2nzsh.fsf@gmx.us> 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: Rasmus Cc: emacs-orgmode@gnu.org * On 2014-10-20 at 18:26, Rasmus wrote: > 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. > Works great. Thank you. -k.