From mboxrd@z Thu Jan 1 00:00:00 1970 From: Nicolas Goaziou Subject: Re: [bug?] org-inside-latex-fragment-p broken? Date: Thu, 29 Jun 2017 15:17:15 +0200 Message-ID: <87d19nrl0k.fsf@nicolasgoaziou.fr> References: <87o9tfngo3.fsf@pank.eu> <87shiq6hqe.fsf@nicolasgoaziou.fr> <87k242oovk.fsf@gmx.us> <87lgoi6cn1.fsf@nicolasgoaziou.fr> <87zicy4orq.fsf@nicolasgoaziou.fr> <87y3shljud.fsf@gmx.us> 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]:44943) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1dQZJw-00053f-4L for emacs-orgmode@gnu.org; Thu, 29 Jun 2017 09:17:20 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1dQZJv-0004ry-6G for emacs-orgmode@gnu.org; Thu, 29 Jun 2017 09:17:20 -0400 Received: from relay2-d.mail.gandi.net ([2001:4b98:c:538::194]:39700) by eggs.gnu.org with esmtps (TLS1.0:DHE_RSA_AES_256_CBC_SHA1:32) (Exim 4.71) (envelope-from ) id 1dQZJu-0004rd-Vi for emacs-orgmode@gnu.org; Thu, 29 Jun 2017 09:17:19 -0400 In-Reply-To: <87y3shljud.fsf@gmx.us> (rasmus@gmx.us's message of "Sat, 24 Jun 2017 13:13:14 +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: Rasmus Cc: dominik@uva.nl, emacs-orgmode@gnu.org Hello, Rasmus writes: > 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. Well. Then, could your patch uses `org-backward-paragraph' instead of plain `backward-paragraph'? > Add to this, that something like "\mathbf{x}" isn=E2=80=99t "correctly" > exported via ox, (it should then produce "$\mathbf{x}$"). Of course it is "correctly" exported. When you write raw LaTeX, Org assumes you know what you are doing. Regards, --=20 Nicolas Goaziou