From mboxrd@z Thu Jan 1 00:00:00 1970 From: Longmin WANG Subject: Re: CDLaTeX (4.0) not working in Org mode (8.0.3)? Date: Mon, 20 May 2013 15:57:31 +0800 Message-ID: References: Mime-Version: 1.0 Content-Type: multipart/alternative; boundary=047d7b5dbd84471e0d04dd21af87 Return-path: Received: from eggs.gnu.org ([208.118.235.92]:42301) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1UeL1l-0004v5-KS for emacs-orgmode@gnu.org; Mon, 20 May 2013 04:01:08 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1UeKyK-0001n8-DR for emacs-orgmode@gnu.org; Mon, 20 May 2013 03:57:46 -0400 Received: from mail-qa0-x232.google.com ([2607:f8b0:400d:c00::232]:59480) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1UeKyK-0001mr-4b for emacs-orgmode@gnu.org; Mon, 20 May 2013 03:57:32 -0400 Received: by mail-qa0-f50.google.com with SMTP id bn16so1364312qab.16 for ; Mon, 20 May 2013 00:57:31 -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: emacs-orgmode@gnu.org --047d7b5dbd84471e0d04dd21af87 Content-Type: text/plain; charset=ISO-8859-1 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 --047d7b5dbd84471e0d04dd21af87 Content-Type: text/html; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable


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 last-command-= event in cdlatex.el.

--
Longmin = Wang (http://wan= glm.droppages.com/)
Nankai University, 94 Weijin Road, Tianjin 300071, P. R. China
--047d7b5dbd84471e0d04dd21af87--