From mboxrd@z Thu Jan 1 00:00:00 1970 From: Rasmus Subject: Re: [bug?] org-inside-latex-fragment-p broken? Date: Sat, 24 Jun 2017 13:13:14 +0200 Message-ID: <87y3shljud.fsf@gmx.us> References: <87o9tfngo3.fsf@pank.eu> <87shiq6hqe.fsf@nicolasgoaziou.fr> <87k242oovk.fsf@gmx.us> <87lgoi6cn1.fsf@nicolasgoaziou.fr> <87zicy4orq.fsf@nicolasgoaziou.fr> Mime-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable Return-path: Received: from eggs.gnu.org ([2001:4830:134:3::10]:54457) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1dOj0E-0005Fj-OG for emacs-orgmode@gnu.org; Sat, 24 Jun 2017 07:13:23 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1dOj0B-0002xr-Ii for emacs-orgmode@gnu.org; Sat, 24 Jun 2017 07:13:22 -0400 Received: from mout.gmx.net ([212.227.15.15]:49800) by eggs.gnu.org with esmtps (TLS1.0:DHE_RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1dOj0B-0002xL-80 for emacs-orgmode@gnu.org; Sat, 24 Jun 2017 07:13:19 -0400 In-Reply-To: <87zicy4orq.fsf@nicolasgoaziou.fr> (Nicolas Goaziou's message of "Fri, 23 Jun 2017 19:06:33 +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" To: mail@nicolasgoaziou.fr Cc: dominik@uva.nl, emacs-orgmode@gnu.org Nicolas Goaziou writes: > Hello, > > Carsten Dominik writes: > >> Yes, these can be used in partially written fragments. > > OK. Does it make sense to use them outside of any fragment? For example, > you don't need to be in a LaTeX fragment to insert \alpha. First, we have to be careful because the cdlatex keys occupy a precious key. Second, it depends on the cdlatex function in question. cdlatex-math-symbol-alist already works outside of fragments and it probably should as it can be used to insert entities, such as "=CE=B2". On the other hand, cdlatex-math-modify probably only makes sense inside fragments. It is used to change characteristics of already inserted entity, e.g. make a character bold. That typically only makes sense inside a math environment of some sort. Add to this, that something like "\mathbf{x}" isn=E2=80=99t "correctly" exported via ox, (it should then pro= duce "$\mathbf{x}$"). So cdlatex-math-modify should only work inside latex fragments IMO. --=20 m-mm-mmm-mmmm bacon!