From mboxrd@z Thu Jan 1 00:00:00 1970 From: Julien Cubizolles Subject: Re: customizing preamble for org-preview-latex-fragment Date: Mon, 16 Sep 2013 18:29:17 +0200 Message-ID: <87hadk91cy.fsf@free.fr> References: <87txhmuqxa.fsf@free.fr> <87vc21iw9x.fsf@gmail.com> <87eh8pvy5p.fsf@gmx.us> Mime-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 8bit Return-path: Received: from eggs.gnu.org ([2001:4830:134:3::10]:59285) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1VLbgD-0004nl-Qg for emacs-orgmode@gnu.org; Mon, 16 Sep 2013 12:29:47 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1VLbg7-0006TQ-GX for emacs-orgmode@gnu.org; Mon, 16 Sep 2013 12:29:41 -0400 Received: from plane.gmane.org ([80.91.229.3]:50483) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1VLbg7-0006TE-9f for emacs-orgmode@gnu.org; Mon, 16 Sep 2013 12:29:35 -0400 Received: from list by plane.gmane.org with local (Exim 4.69) (envelope-from ) id 1VLbg3-0005Je-P3 for emacs-orgmode@gnu.org; Mon, 16 Sep 2013 18:29:31 +0200 Received: from gas45-3-82-244-252-119.fbx.proxad.net ([82.244.252.119]) by main.gmane.org with esmtp (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Mon, 16 Sep 2013 18:29:31 +0200 Received: from j.cubizolles by gas45-3-82-244-252-119.fbx.proxad.net with local (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Mon, 16 Sep 2013 18:29:31 +0200 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 Rasmus writes: > Nick Dokos writes: > >> Julien Cubizolles writes: >> >>> How can I change the default packages used in the latex file generated >>> by org-preview-latex-fragment ? >>> >> >> They are produced by the function org-create-formula--latex-header, >> which uses the variables >> >> org-latex-default-packages-alist >> org-latex-packages-alist > > and If you want to get real dirty look at `org-format-latex-header`. > > Any package you load with #+LATEX_HEADER should also be part of the > preview tex document. It's working, I think the best would be to make a custom tex including all necessary packages and include it in this manner. Julien C.