From mboxrd@z Thu Jan 1 00:00:00 1970 From: Rasmus Subject: Re: org-preview-latex-fragment is very picky Date: Sun, 05 May 2013 21:07:23 +0200 Message-ID: <87mws9z1n8.fsf@pank.eu> References: <87ip2xqq0d.fsf@mat.ucm.es> Mime-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 8bit Return-path: Received: from eggs.gnu.org ([208.118.235.92]:46375) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1UZ4Hf-00017K-AH for emacs-orgmode@gnu.org; Sun, 05 May 2013 15:07:44 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1UZ4He-00035O-8e for emacs-orgmode@gnu.org; Sun, 05 May 2013 15:07:43 -0400 Received: from plane.gmane.org ([80.91.229.3]:56260) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1UZ4He-00035I-24 for emacs-orgmode@gnu.org; Sun, 05 May 2013 15:07:42 -0400 Received: from list by plane.gmane.org with local (Exim 4.69) (envelope-from ) id 1UZ4HX-00008P-8l for emacs-orgmode@gnu.org; Sun, 05 May 2013 21:07:35 +0200 Received: from e178246201.adsl.alicedsl.de ([85.178.246.201]) by main.gmane.org with esmtp (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Sun, 05 May 2013 21:07:35 +0200 Received: from rasmus by e178246201.adsl.alicedsl.de with local (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Sun, 05 May 2013 21:07:35 +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 Uwe Brauer writes: > Hello > the following formula works well with org-preview-latex-fragment > $\|v^k(t > > However > > $ \|vk(t)\|_{Hs+1,δ}$ > > Not nor > > $ \|vk(t)\|_{Hs+1,δ}$, > > Could that behaviour made a little less picky? Probably not. Note these are Org features irrespective of fragment preview. There was some talk about it not so long ago. Basically, it just happens that $·$ works as desired most of the time. The proper way in LaTeX as well as in Org is \(·\). Often you'll find that in challenging cases you're better off with \(·\). To see whether $·$ will work I use (setq org-highlight-latex-and-related '(latex)) To have nice symbols making preview of fragments less dire I use pretty entities: (setq org-pretty-entities t) Pretty entities can also be turned on locally. For missing glyphs you're using you can do something like: (setq org-entities-user '(("implies" "\\Rightarrow" t "⇒" "=>" "=>" "⇒") ("iff" "\\iff" t "⇔" "<=>" "<=>" "⇔"))) Hope this helps. –Rasmus -- Don't panic!!!