* \input causes conflict with LaTeX equation preview
@ 2014-10-18 14:26 Ken Mankoff
2014-10-20 22:26 ` Rasmus
0 siblings, 1 reply; 4+ messages in thread
From: Ken Mankoff @ 2014-10-18 14:26 UTC (permalink / raw)
To: Org-mode
[-- Attachment #1: Type: text/plain, Size: 339 bytes --]
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?
Thanks,
-k.
[-- Attachment #2: Type: text/html, Size: 2114 bytes --]
^ permalink raw reply [flat|nested] 4+ messages in thread
* Re: \input causes conflict with LaTeX equation preview
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
0 siblings, 1 reply; 4+ messages in thread
From: Rasmus @ 2014-10-20 22:26 UTC (permalink / raw)
To: emacs-orgmode
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.
—Rasmus
--
Dobbelt-A
^ permalink raw reply [flat|nested] 4+ messages in thread
* Re: \input causes conflict with LaTeX equation preview
2014-10-20 22:26 ` Rasmus
@ 2014-10-21 1:33 ` Ken Mankoff
2014-10-21 6:01 ` Nicolas Goaziou
0 siblings, 1 reply; 4+ messages in thread
From: Ken Mankoff @ 2014-10-21 1:33 UTC (permalink / raw)
To: Rasmus; +Cc: emacs-orgmode
* 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.
-k.
^ permalink raw reply [flat|nested] 4+ messages in thread
* Re: \input causes conflict with LaTeX equation preview
2014-10-21 1:33 ` Ken Mankoff
@ 2014-10-21 6:01 ` Nicolas Goaziou
0 siblings, 0 replies; 4+ messages in thread
From: Nicolas Goaziou @ 2014-10-21 6:01 UTC (permalink / raw)
To: Ken Mankoff; +Cc: emacs-orgmode, Rasmus
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
^ permalink raw reply [flat|nested] 4+ messages in thread
end of thread, other threads:[~2014-10-21 6:01 UTC | newest]
Thread overview: 4+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
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
Code repositories for project(s) associated with this external index
https://git.savannah.gnu.org/cgit/emacs.git
https://git.savannah.gnu.org/cgit/emacs/org-mode.git
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.