emacs-orgmode@gnu.org archives
 help / color / mirror / code / Atom feed
From: Nicolas Goaziou <mail@nicolasgoaziou.fr>
To: Ken Mankoff <mankoff@gmail.com>
Cc: emacs-orgmode@gnu.org, Rasmus <rasmus@gmx.us>
Subject: Re: \input causes conflict with LaTeX equation preview
Date: Tue, 21 Oct 2014 08:01:37 +0200	[thread overview]
Message-ID: <87r3y2yn9a.fsf@nicolasgoaziou.fr> (raw)
In-Reply-To: <m238aib414.fsf@gmail.com> (Ken Mankoff's message of "Mon, 20 Oct 2014 21:33:11 -0400")

Hello,

Ken Mankoff <mankoff@gmail.com> writes:

> * On 2014-10-20 at 18:26, Rasmus wrote:
>> Ken Mankoff <mankoff@gmail.com> 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.

See also

 #+LATEX_HEADER_EXTRA: \input{preamble}


Regards,

-- 
Nicolas Goaziou

      reply	other threads:[~2014-10-21  6:01 UTC|newest]

Thread overview: 4+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2014-10-18 14:26 \input causes conflict with LaTeX equation preview Ken Mankoff
2014-10-20 22:26 ` Rasmus
2014-10-21  1:33   ` Ken Mankoff
2014-10-21  6:01     ` Nicolas Goaziou [this message]

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

  List information: https://www.orgmode.org/

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=87r3y2yn9a.fsf@nicolasgoaziou.fr \
    --to=mail@nicolasgoaziou.fr \
    --cc=emacs-orgmode@gnu.org \
    --cc=mankoff@gmail.com \
    --cc=rasmus@gmx.us \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
Code repositories for project(s) associated with this public inbox

	https://git.savannah.gnu.org/cgit/emacs/org-mode.git

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).