From mboxrd@z Thu Jan 1 00:00:00 1970 From: Omid Subject: Re: CDLaTeX (4.0) not working in Org mode (8.0.3)? Date: Mon, 20 May 2013 04:59:10 -0400 Message-ID: References: Mime-Version: 1.0 Content-Type: multipart/alternative; boundary=001a11c3530029bb8404dd228e04 Return-path: Received: from eggs.gnu.org ([208.118.235.92]:60572) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1UeLwf-0006vL-Ha for emacs-orgmode@gnu.org; Mon, 20 May 2013 04:59:54 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1UeLwd-0004oi-Mo for emacs-orgmode@gnu.org; Mon, 20 May 2013 04:59:53 -0400 Received: from mail-wi0-x234.google.com ([2a00:1450:400c:c05::234]:39499) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1UeLwd-0004oa-E7 for emacs-orgmode@gnu.org; Mon, 20 May 2013 04:59:51 -0400 Received: by mail-wi0-f180.google.com with SMTP id hn14so1861483wib.1 for ; Mon, 20 May 2013 01:59:50 -0700 (PDT) In-Reply-To: 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: Longmin WANG Cc: emacs-orgmode@gnu.org --001a11c3530029bb8404dd228e04 Content-Type: text/plain; charset=ISO-8859-1 Thanks. I confirm that this in fact solves the problem. On Mon, May 20, 2013 at 3:57 AM, Longmin WANG wrote: > > > On Mon, May 20, 2013 at 11:14 AM, Omid wrote: > >> I see the following strange behavior from Org-CDLaTeX (OCDL). >> >> Outside a * heading it works. Inside a * heading (or anything under that) >> it does NOT work. What can be causing this? >> >> Here is a minimal example: >> >> # Org CDLaTeX (OCDL) works here (at least does not issue an error) >> \[ >> x^2 >> \] >> >> * heading >> ** subheading >> # Org CDLaTeX (OCDL) does NOT work here. Pressing ^ (caret) or _ >> # (underscore) causes the following error to appear in *Messages* >> # buffer: >> # >> # call-interactively: Symbol's value as variable is void: >> # last-command-char >> \[ >> x >> \] >> # Same error here. >> \begin{align*} >> x >> \end{align*} >> >> > last-command-char should be changed to last-command-event in cdlatex.el. > > -- > Longmin Wang (http://wanglm.droppages.com/) > Nankai University, 94 Weijin Road, Tianjin 300071, P. R. China > > --001a11c3530029bb8404dd228e04 Content-Type: text/html; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable
Thanks. I confirm that this in fact solves the problem.


On Mon, May = 20, 2013 at 3:57 AM, Longmin WANG <longminwang@gmail.com> wrote:
=


On Mon, May 20, 2013 at 11:14 = AM, Omid <omidlink@gmail.com> wrote:
I see th= e following strange behavior from Org-CDLaTeX (OCDL).

Outside a * he= ading it works. Inside a * heading (or anything under that) it does NOT wor= k. What can be causing this?

Here is a minimal example:

# Org CDLaTeX (OCDL) works here (at least does not issue an error)
\= [
x^2
\]

* heading
** subheading
=A0=A0 # Org CDLaTeX (O= CDL) does NOT work here. Pressing ^ (caret) or _
=A0=A0 # (underscore) c= auses the following error to appear in *Messages*
=A0=A0 # buffer:
=A0=A0 #
=A0=A0 # call-interactively: Symbol's = value as variable is void:
=A0=A0 # last-command-char
=A0=A0 \[
= =A0=A0 x
=A0=A0 \]
=A0=A0 # Same error here.
=A0=A0 \begin{align*}=
=A0=A0 x
=A0=A0 \end{align*}


last-command-char should be changed to l= ast-command-event in cdlatex.el.

--
Longmin Wang (http://wanglm.droppages.com/)
Nankai University, 94 Weijin Road, Tianjin 300071, P. R. China

--001a11c3530029bb8404dd228e04--