From mboxrd@z Thu Jan 1 00:00:00 1970 From: Rasmus Subject: Re: customizing preamble for org-preview-latex-fragment Date: Mon, 16 Sep 2013 12:49:54 +0200 Message-ID: <87eh8pvy5p.fsf@gmx.us> References: <87txhmuqxa.fsf@free.fr> <87vc21iw9x.fsf@gmail.com> 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]:54469) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1VLWSO-0004wL-UY for emacs-orgmode@gnu.org; Mon, 16 Sep 2013 06:55:16 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1VLWSO-0000Au-6r for emacs-orgmode@gnu.org; Mon, 16 Sep 2013 06:55:04 -0400 Received: from plane.gmane.org ([80.91.229.3]:40258) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1VLWSO-00008Y-0f for emacs-orgmode@gnu.org; Mon, 16 Sep 2013 06:55:04 -0400 Received: from list by plane.gmane.org with local (Exim 4.69) (envelope-from ) id 1VLWSM-0005HH-V4 for emacs-orgmode@gnu.org; Mon, 16 Sep 2013 12:55:02 +0200 Received: from f053046208.adsl.alicedsl.de ([78.53.46.208]) by main.gmane.org with esmtp (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Mon, 16 Sep 2013 12:55:02 +0200 Received: from rasmus by f053046208.adsl.alicedsl.de with local (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Mon, 16 Sep 2013 12:55:02 +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 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. –Rasmus -- . . . It begins of course with The Internet. A Net of Peers.