From mboxrd@z Thu Jan 1 00:00:00 1970 From: Eric S Fraga Subject: Re: org-preview-latex-fragment ignores \includes in the LATEX_HEADER Date: Fri, 29 May 2015 08:44:27 +0100 Message-ID: <87pp5jeskk.fsf@delle7240.chemeng.ucl.ac.uk> References: Mime-Version: 1.0 Content-Type: text/plain Return-path: Received: from eggs.gnu.org ([2001:4830:134:3::10]:41906) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1YyFDw-0007yw-WC for emacs-orgmode@gnu.org; Fri, 29 May 2015 04:01:01 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1YyFDp-0004Ou-Tr for emacs-orgmode@gnu.org; Fri, 29 May 2015 04:01:00 -0400 Received: from mail-am1on0138.outbound.protection.outlook.com ([157.56.112.138]:37280 helo=emea01-am1-obe.outbound.protection.outlook.com) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1YyFDp-0004O1-EN for emacs-orgmode@gnu.org; Fri, 29 May 2015 04:00:53 -0400 In-Reply-To: (Stefan Otte's message of "Wed, 27 May 2015 15:02: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: Stefan Otte Cc: emacs-orgmode@gnu.org On Wednesday, 27 May 2015 at 15:02, Stefan Otte wrote: [...] > 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? Maybe create a style file and then use ,----[ C-h v org-latex-packages-alist RET ] | org-latex-packages-alist is a variable defined in `org.el'. | | Documentation: | Alist of packages to be inserted in every LaTeX header. | | These will be inserted after `org-latex-default-packages-alist'. | Each element is either a cell or a string. | | A cell is of the format: | | ("options" "package" SNIPPET-FLAG) | | SNIPPET-FLAG, when non-nil, indicates that this package is also | needed when turning LaTeX snippets into images for inclusion into | non-LaTeX output. | | A string will be inserted as-is in the header of the document. | | Make sure that you only list packages here which: | | - you want in every file; | - do not conflict with the setup in `org-format-latex-header'; | - do not conflict with the default packages in | `org-latex-default-packages-alist'. | | You can customize this variable. `---- Note bit about LaTeX snippets. -- : Eric S Fraga (0xFFFCF67D), Emacs 24.4.1, Org release_8.3beta-1136-g0e7062