From mboxrd@z Thu Jan 1 00:00:00 1970 From: Nicolas Richard Subject: preview and default class [8.2.5h (release_8.2.5h-677-g55b0a3 @ /home/youngfrog/sourcetrees/org-mode/lisp/)] Date: Thu, 06 Mar 2014 13:47:30 +0100 Message-ID: <87pplzbijh.fsf@yahoo.fr> Mime-Version: 1.0 Content-Type: text/plain Return-path: Received: from eggs.gnu.org ([2001:4830:134:3::10]:41280) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1WLXi7-0006og-Jr for emacs-orgmode@gnu.org; Thu, 06 Mar 2014 07:47:45 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1WLXi1-0004BW-Pz for emacs-orgmode@gnu.org; Thu, 06 Mar 2014 07:47:39 -0500 Received: from mxin.ulb.ac.be ([164.15.128.112]:60051) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1WLXi1-0004BF-JP for emacs-orgmode@gnu.org; Thu, 06 Mar 2014 07:47:33 -0500 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 Hello, I was a little bit surprised that previewing latex fragments doesn't use the same class as latex export. That's contrary to my expectation but I don't know how to fix it. The reason I expected that is : I set a default (personnal) latex class which defines many commands that I use everyday when writing latex, and thus also when writing latex in org documents. Also, it took me a lot of time to find out that org-format-latex-header was used for previewing latex fragments. I suggest that we mention it in the manual in (info "(org) Previewing LaTeX fragments"). It's already mentionned in (info "(org) LaTeX fragments") in a footnote, but I think the variable must be found in the "Previewing" section too. Here's a patch to do it, but maybe the whole footnote should be moved to the "Previewing" section instead ? From: Nicolas Richard Date: Thu, 6 Mar 2014 13:21:41 +0100 Subject: [PATCH] * doc/org.texi: mention org-format-latex-header near org-format-latex-options --- doc/org.texi | 9 +++++---- 1 file changed, 5 insertions(+), 4 deletions(-) diff --git a/doc/org.texi b/doc/org.texi index 7e66034..b85f8c0 100644 --- a/doc/org.texi +++ b/doc/org.texi @@ -10228,10 +10228,11 @@ Remove the overlay preview images. @end table @vindex org-format-latex-options -You can customize the variable @code{org-format-latex-options} to influence -some aspects of the preview. In particular, the @code{:scale} (and for HTML -export, @code{:html-scale}) property can be used to adjust the size of the -preview images. +@vindex org-format-latex-header +You can customize the variables @code{org-format-latex-options} and +@code{org-format-latex-header} to influence some aspects of the preview. In +particular, the @code{:scale} (and for HTML export, @code{:html-scale}) +property of the former can be used to adjust the size of the preview images. @vindex org-startup-with-latex-preview You can turn on the previewing of all @LaTeX{} fragments in a file with -- 1.8.5.2