all messages for Emacs-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
From: Bing Sun <subi.the.dream.walker@gmail.com>
To: emacs-orgmode@gnu.org
Subject: org-create-formula--latex-header does not respect latex_header in included file
Date: Thu, 04 Jul 2013 00:38:49 +0800	[thread overview]
Message-ID: <87d2qzzjhi.fsf@pku.edu.cn> (raw)

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.

             reply	other threads:[~2013-07-03 16:36 UTC|newest]

Thread overview: 3+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2013-07-03 16:38 Bing Sun [this message]
2013-07-03 19:28 ` org-create-formula--latex-header does not respect latex_header in included file Nicolas Goaziou
2013-07-04  6:38   ` subi.the.dream.walker

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

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

  git send-email \
    --in-reply-to=87d2qzzjhi.fsf@pku.edu.cn \
    --to=subi.the.dream.walker@gmail.com \
    --cc=emacs-orgmode@gnu.org \
    /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 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.