From mboxrd@z Thu Jan 1 00:00:00 1970 From: Stefan Otte Subject: org-preview-latex-fragment ignores \includes in the LATEX_HEADER Date: Wed, 27 May 2015 15:02:02 +0200 Message-ID: Reply-To: stefan.otte@gmail.com Mime-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Return-path: Received: from eggs.gnu.org ([2001:4830:134:3::10]:54784) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1YxayY-0004Ql-5f for emacs-orgmode@gnu.org; Wed, 27 May 2015 09:02:26 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1YxayW-0001u1-Ni for emacs-orgmode@gnu.org; Wed, 27 May 2015 09:02:26 -0400 Received: from mail-wi0-x22d.google.com ([2a00:1450:400c:c05::22d]:34352) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1YxayW-0001tj-HF for emacs-orgmode@gnu.org; Wed, 27 May 2015 09:02:24 -0400 Received: by wicmc15 with SMTP id mc15so93053754wic.1 for ; Wed, 27 May 2015 06:02:23 -0700 (PDT) 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: emacs-orgmode@gnu.org Hey, I'm using orgmode with lots of LaTeX for equations. A typical document start with #+TITLE: Some Title #+LaTeX_HEADER: \include{commands} commands.tex contains commands like: \newcommand{\RRR}{{\mathbb{R}}} The pdf export works flawlessly, however `org-preview-latex-fragment` seems to ignore "\include{commands}", i.e., equations that use commands that are defined in commands.tex are rendered as blank/empty image. Is it the intended behavior that `org-preview-latex-fragment` ignores "\include", is it a bug, or is there a better way to do it? Best, Stefan