all messages for Emacs-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
* org-create-formula--latex-header does not respect latex_header in included file
@ 2013-07-03 16:38 Bing Sun
  2013-07-03 19:28 ` Nicolas Goaziou
  0 siblings, 1 reply; 3+ messages in thread
From: Bing Sun @ 2013-07-03 16:38 UTC (permalink / raw)
  To: emacs-orgmode

hello list,

I have a separate org file for a rather complicated latex preamble and
then include it when needed. It works well for latex exporting but it
appears that org-create-formula--latex-header just ignores the
latex_header properties in the included org file when previewing latex
fragments.

Is this intended or am I missing anything?

BTW, I find it painful to maintain the latex preamble as the
latex_header properties, say
#+LATEX_HEADER: \newcommand{\mathd}{\mathrm{d}}
#+LATEX_HEADER: \newcommand{\mathbf}[1]{\ensuremath{\boldsymbol{#1}}}
#+LATEX_HEADER: \newcommand{\op}[1]{\ensuremath{\operatorname{#1}}}

I'd like something like this,
#+BEGIN_SRC latex :preamble
 \newcommand{\mathd}{\mathrm{d}}
 \newcommand{\mathbf}[1]{\ensuremath{\boldsymbol{#1}}}
 \newcommand{\op}[1]{\ensuremath{\operatorname{#1}}}
#+END_SRC

Does that make any sense?

Regards.

^ permalink raw reply	[flat|nested] 3+ messages in thread

* Re: org-create-formula--latex-header does not respect latex_header in included file
  2013-07-03 16:38 org-create-formula--latex-header does not respect latex_header in included file Bing Sun
@ 2013-07-03 19:28 ` Nicolas Goaziou
  2013-07-04  6:38   ` subi.the.dream.walker
  0 siblings, 1 reply; 3+ messages in thread
From: Nicolas Goaziou @ 2013-07-03 19:28 UTC (permalink / raw)
  To: Bing Sun; +Cc: emacs-orgmode

Hello,

Bing Sun <subi.the.dream.walker@gmail.com> writes:

> I have a separate org file for a rather complicated latex preamble and
> then include it when needed. It works well for latex exporting but it
> appears that org-create-formula--latex-header just ignores the
> latex_header properties in the included org file when previewing latex
> fragments.
>
> Is this intended or am I missing anything?

Yes, this is intended. Including files, or expanding Babel blocks, which
may create additional #+latex_header lines, would be too costly for
a simple preview.

OTOH, have you tried to use #+setupfile: instead of #+include:?


Regards,

-- 
Nicolas Goaziou

^ permalink raw reply	[flat|nested] 3+ messages in thread

* Re: org-create-formula--latex-header does not respect latex_header in included file
  2013-07-03 19:28 ` Nicolas Goaziou
@ 2013-07-04  6:38   ` subi.the.dream.walker
  0 siblings, 0 replies; 3+ messages in thread
From: subi.the.dream.walker @ 2013-07-04  6:38 UTC (permalink / raw)
  To: Nicolas Goaziou; +Cc: emacs-orgmode

Hello,

I DO missed the #+setupfile. Thanks for the tip!

Regards,

Bing Sun

^ permalink raw reply	[flat|nested] 3+ messages in thread

end of thread, other threads:[~2013-07-04  6:35 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2013-07-03 16:38 org-create-formula--latex-header does not respect latex_header in included file Bing Sun
2013-07-03 19:28 ` Nicolas Goaziou
2013-07-04  6:38   ` subi.the.dream.walker

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.