From mboxrd@z Thu Jan 1 00:00:00 1970 From: Nicolas Goaziou Subject: Re: org-create-formula--latex-header does not respect latex_header in included file Date: Wed, 03 Jul 2013 21:28:31 +0200 Message-ID: <871u7fl9y8.fsf@gmail.com> References: <87d2qzzjhi.fsf@pku.edu.cn> Mime-Version: 1.0 Content-Type: text/plain Return-path: Received: from eggs.gnu.org ([2001:4830:134:3::10]:44296) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1UuSj0-0005Xa-2r for emacs-orgmode@gnu.org; Wed, 03 Jul 2013 15:28:27 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1UuSiy-0003bv-8u for emacs-orgmode@gnu.org; Wed, 03 Jul 2013 15:28:21 -0400 Received: from mail-wi0-x234.google.com ([2a00:1450:400c:c05::234]:62940) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1UuSiy-0003b6-2z for emacs-orgmode@gnu.org; Wed, 03 Jul 2013 15:28:20 -0400 Received: by mail-wi0-f180.google.com with SMTP id c10so501272wiw.13 for ; Wed, 03 Jul 2013 12:28:19 -0700 (PDT) In-Reply-To: <87d2qzzjhi.fsf@pku.edu.cn> (Bing Sun's message of "Thu, 04 Jul 2013 00:38:49 +0800") 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: Bing Sun Cc: emacs-orgmode@gnu.org Hello, Bing Sun 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