From mboxrd@z Thu Jan 1 00:00:00 1970 From: Carsten Dominik Subject: Re: cdlatex, previewing LaTeX, and dollar signs Date: Wed, 14 Jul 2010 20:41:53 +0200 Message-ID: References: Mime-Version: 1.0 (Apple Message framework v936) Content-Type: text/plain; charset=US-ASCII; format=flowed; delsp=yes Content-Transfer-Encoding: 7bit Return-path: Received: from [140.186.70.92] (port=41731 helo=eggs.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1OZ6u7-0007Dl-FT for emacs-orgmode@gnu.org; Wed, 14 Jul 2010 14:42:00 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.69) (envelope-from ) id 1OZ6u6-0002Gd-5v for emacs-orgmode@gnu.org; Wed, 14 Jul 2010 14:41:59 -0400 Received: from mail-ey0-f169.google.com ([209.85.215.169]:42851) by eggs.gnu.org with esmtp (Exim 4.69) (envelope-from ) id 1OZ6u6-0002GX-0N for emacs-orgmode@gnu.org; Wed, 14 Jul 2010 14:41:58 -0400 Received: by eydd26 with SMTP id d26so15171eyd.0 for ; Wed, 14 Jul 2010 11:41:57 -0700 (PDT) In-Reply-To: List-Id: "General discussions about Org-mode." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: emacs-orgmode-bounces+geo-emacs-orgmode=m.gmane.org@gnu.org Errors-To: emacs-orgmode-bounces+geo-emacs-orgmode=m.gmane.org@gnu.org To: Mike Benfield Cc: emacs-orgmode@gnu.org On Jul 14, 2010, at 7:55 PM, Mike Benfield wrote: > > org-cdlatex-mode subverts cdlatex's normal behavior > in that it doesn't give dollar signs when they're not there. > And on the other hand, org-preview-latex-fragment only displays > rendered LaTeX when the dollar signs are there. I don't know > what other people's usage pattern is, but I read my notes in > emacs with the LaTeX rendered, so I never write LaTeX > outside of dollar signs because that is useless to me. > > Could one or the other of these behaviors change? > > For me, the ideal situation would be for org-preview-latex-fragment > to work even when dollar signs aren't present, This would be very difficult to achieve. But note that you can part of it by setting (setq org-pretty-entities t) This will give UTF8 display of many math symbols - imperfect though for your example.... To get dollars from org-cdlatex-mode, you could cheat by setting (setq org-cdlatex-texmathp-advice-is-done t) very early in .emacs, before any Org mode stuff gets loaded.... HTH - Carsten > so that for instance > \int_a^b f would render \int_a^b as LaTeX math and leave f alone. > (By the way, right now such an expression renders correctly when > exporting to HTML but not when exporting to LaTeX.) > > > _______________________________________________ > Emacs-orgmode mailing list > Please use `Reply All' to send replies to the list. > Emacs-orgmode@gnu.org > http://lists.gnu.org/mailman/listinfo/emacs-orgmode - Carsten