From mboxrd@z Thu Jan 1 00:00:00 1970 From: Diego Nicola Barbato Subject: =?UTF-8?B?QnVnOiBzdGFydHVwIGxhdGV4cHJldmlldyBbOS4wLjUgKDkuMC41?= =?UTF-8?B?LWVscGEgQCAvZ251L3N0b3JlLy4uLi1lbWFjcy1vcmctMjAxNzAyMTAvc2hh?= =?UTF-8?B?cmUvZW1hY3Mvc2l0ZS1saXNwL2d1aXguZC9vcmctMjAxNzAyMTAvKV0=?= Date: Sun, 19 Mar 2017 22:52:47 +0100 Message-ID: <87tw6p7x3k.fsf@GLaDOS.i-did-not-set--mail-host-address--so-tickle-me> Mime-Version: 1.0 Content-Type: multipart/mixed; boundary="=-=-=" Return-path: Received: from eggs.gnu.org ([2001:4830:134:3::10]:36750) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1cpj4f-0004kc-Na for emacs-orgmode@gnu.org; Sun, 19 Mar 2017 18:13:18 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1cpj4c-00064R-KY for emacs-orgmode@gnu.org; Sun, 19 Mar 2017 18:13:17 -0400 Received: from vimdzmsp-nwas04.bluewin.ch ([195.186.228.51]:47272 helo=nwas.lb.bluewin.ch) by eggs.gnu.org with esmtps (TLS1.0:DHE_RSA_AES_256_CBC_SHA1:32) (Exim 4.71) (envelope-from ) id 1cpj4c-00064B-D2 for emacs-orgmode@gnu.org; Sun, 19 Mar 2017 18:13:14 -0400 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" To: emacs-orgmode@gnu.org --=-=-= Content-Type: text/plain Hello, When opening an org-file in emacs which contains the in-buffer setting "#+STARTUP: latexpreview" the minibuffer displays "Creating images for section...done" instead of "Creating images for buffer...done" and the LaTeX fragments in the buffer are not converted to images. However, if I type "C-u C-u C-c C-x C-l" or "C-u C-u M-x org-toggle-latex-fragment RET" Org behaves as expected, by converting all LaTeX fragments to images. I believe this happens because in org.el on line 5682 the function org-toggle-latex-fragment is called with no argument, which does only create images for the current section. AFAICT org-toggle-latex-fragment should be called with '(16) as argument. The enclosed documents are a minimal setup for loading nothing but orgmode (emacs -Q -l /path/to/minimal-org.el) and a simple test file which produces the error I describe above. Emacs : GNU Emacs 25.1.1 (x86_64-unknown-linux-gnu, GTK+ Version 3.22.6) of 2017-03-04 Package: Org mode version 9.0.5 (9.0.5-elpa @ /gnu/store/ky6z4kg7lq5g5w2ylyq692sc4ypx9vmr-emacs-org-20170210/share/emacs/site-lisp/guix.d/org-20170210/) I hope you'll find this bug-report helpful Diego N. Barbato --=-=-= Content-Type: application/emacs-lisp Content-Disposition: attachment; filename=minimal-org.el Content-Transfer-Encoding: quoted-printable Content-Description: minimal setup ;;; Minimal setup to load latest 'org-mode' ;; activate debugging (setq debug-on-error t debug-on-signal nil debug-on-quit nil) ;; add latest org-mode to load path (add-to-list 'load-path (expand-file-name "/gnu/store/ky6z4kg7lq5g5w2ylyq69= 2sc4ypx9vmr-emacs-org-20170210/share/emacs/site-lisp/guix.d/org-20170210")) --=-=-= Content-Type: text/x-org Content-Disposition: attachment; filename=test.org Content-Description: test file #+STARTUP: latexpreview * Formula 1 ** a \[ \int\limits_a^b f(x) \, \mathrm{d}x \] ** b \[ \int_a^b f(x) \, \mathrm{d}x \] --=-=-=--