From mboxrd@z Thu Jan 1 00:00:00 1970 From: Darlan Cavalcante Moreira Subject: Latex Preview Equations(with C-u C-u) Date: Mon, 11 Aug 2014 11:55:40 -0300 Message-ID: <874mxj5aka.fsf@gmail.com> Mime-Version: 1.0 Content-Type: text/plain Return-path: Received: from eggs.gnu.org ([2001:4830:134:3::10]:51740) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1XGrCc-0002R4-3Z for emacs-orgmode@gnu.org; Mon, 11 Aug 2014 11:08:11 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1XGrCT-00085r-2Q for emacs-orgmode@gnu.org; Mon, 11 Aug 2014 11:08:02 -0400 Received: from mail-yh0-x229.google.com ([2607:f8b0:4002:c01::229]:47053) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1XGrCS-00085l-Tx for emacs-orgmode@gnu.org; Mon, 11 Aug 2014 11:07:53 -0400 Received: by mail-yh0-f41.google.com with SMTP id b6so6391361yha.14 for ; Mon, 11 Aug 2014 08:07:52 -0700 (PDT) Received: from darlan-G75VX ([177.65.106.37]) by mx.google.com with ESMTPSA id x48sm24133476yha.5.2014.08.11.08.07.51 for (version=TLSv1.2 cipher=RC4-SHA bits=128/128); Mon, 11 Aug 2014 08:07:51 -0700 (PDT) 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 Recently the latex preview equation in org-mode was improved. Particularly 'C-c C-c' no longer removes the latex equations overlays, and now we have a single function, org-toggle-latex-fragment, to create/remove the image and overlays. I think these changes were very good. One small inconvenient, however, is that I usually pass two prefix arguments, 'C-u C-u', to org-toggle-latex-fragment to render everything in the buffer. If I add a new equation and then call org-toggle-latex-fragment again with 'C-u C-u' org-mode will simply remove the overlays. This was not a problem when there was a single function that only created overlays and another to remove them. I think having a 'toggle function' is better, but if the user passes two prefix arguments he wants to render everything in the buffer, even if there are already equations overlays in the buffer. Could org-mode be changed to behave like that? -- Darlan Cavalcante Moreira