From mboxrd@z Thu Jan 1 00:00:00 1970 From: Nick Dokos Subject: Re: help debugging latex-overlays boxes Date: Fri, 05 Sep 2014 11:10:05 -0400 Message-ID: <8761h2gl2q.fsf@alphaville.bos.redhat.com> References: Mime-Version: 1.0 Content-Type: text/plain Return-path: Received: from eggs.gnu.org ([2001:4830:134:3::10]:59209) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1XPv9v-00008k-8q for emacs-orgmode@gnu.org; Fri, 05 Sep 2014 11:10:49 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1XPv9p-0001Eh-6P for emacs-orgmode@gnu.org; Fri, 05 Sep 2014 11:10:43 -0400 Received: from plane.gmane.org ([80.91.229.3]:48302) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1XPv9f-0001DM-RL for emacs-orgmode@gnu.org; Fri, 05 Sep 2014 11:10:36 -0400 Received: from list by plane.gmane.org with local (Exim 4.69) (envelope-from ) id 1XPv9e-0002G7-1t for emacs-orgmode@gnu.org; Fri, 05 Sep 2014 17:10:26 +0200 Received: from nat-pool-bos-t.redhat.com ([66.187.233.206]) by main.gmane.org with esmtp (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Fri, 05 Sep 2014 17:10:26 +0200 Received: from ndokos by nat-pool-bos-t.redhat.com with local (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Fri, 05 Sep 2014 17:10:26 +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 John Kitchin writes: > Hi All, > > I am using org-mode in a course this fall with 60 students. All of them > are using org-mode from elpa. For about 10 of them, they are unable to > toggle the latex-overlays; instead of getting the equations, they get > empty gray boxes with an error that the png file was not created. Oddly > enough, they can export to PDF just fine. I have also checked that they > have LaTeX (TeXLive) installed, and it appears it is. I am able to > convert tex files to dvi, and then use dvipng to make a png image. But > for some reason, the toggle-latex-overlay function does not work for > them. > > I am at a loss to figure out what the issue is. These are Windows > laptops that were preconfigured by the department. Almost all of them > work fine, except for this small number I cannot figure out. > > Any ideas? Thanks, I would edebug-defun the function org-create-formula-image and step through it to make sure that it goes the way you want (are you sure you are using the dvipng method on these machines? maybe you are using the imagemagick method but the program has not been installed? Check the value of org-latex-create-formula-image-program). While you are stepping you can also check the variables in the function and see e.g. what the output file name is. If that goes OK, then I would edebug-defun org-create-formula-image-with-dvipng next and check the latex input file it produces. Make sure that things like minted which require --shell-escape are *not* included in that input file: it's processed by a hard-wired call to latex (without --shell-escape) , so minted will cause a failure. If that is the case, check org-latex-packages-alist and make sure that minted's snippet-flag is nil. HTH, Nick