From mboxrd@z Thu Jan 1 00:00:00 1970 From: Myles English Subject: [new exporter][latex] does org-preview-latex-fragment use #+latex_header ? Date: Sun, 24 Feb 2013 17:00:37 +0000 Message-ID: <87mwutd4ui.fsf@gmail.com> Mime-Version: 1.0 Content-Type: text/plain Return-path: Received: from eggs.gnu.org ([208.118.235.92]:49459) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1U9ev9-00007G-VC for Emacs-orgmode@gnu.org; Sun, 24 Feb 2013 11:59:30 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1U9ev8-0008TH-Rh for Emacs-orgmode@gnu.org; Sun, 24 Feb 2013 11:59:27 -0500 Received: from mail-wg0-f50.google.com ([74.125.82.50]:42821) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1U9ev8-0008So-JE for Emacs-orgmode@gnu.org; Sun, 24 Feb 2013 11:59:26 -0500 Received: by mail-wg0-f50.google.com with SMTP id es5so1824595wgb.29 for ; Sun, 24 Feb 2013 08:59:25 -0800 (PST) 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 Hi, I have just pulled from git and have been migrating to use the new exporter. I have a problem where org-preview-latex-fragment appears not to use a style file the latex header. Starting emacs like this: emacs -Q -l ~/minimal.el ~/file.org When I export the whole buffer to pdf it looks right. When I call org-preview-latex-fragment on the fragment the definitions in a.sty are not picked up. This previously worked when using the new exporter before it was merged. Can anyone help? Thanks, Myles ---------------------------------- ~/bug.sty -------------- \newcommand{\mysymbol}{\mathbf v} ---------------------------------- minimal.el ------------ (add-to-list 'load-path "~/.emacs.d/plugins/org-mode/lisp") (require 'ox) ---------------------------------- file.org --------------- #+STARTUP: indent #+LATEX_HEADER: \usepackage{~/bug} * heading \[ \mysymbol = f \] -- NO WORK \[ 0 = f \] -- WORKS ----------------------------------------------------------