From mboxrd@z Thu Jan 1 00:00:00 1970 From: Carsten Dominik Subject: Re: CDLaTeX (4.0) not working in Org mode (8.0.3)? Date: Sat, 31 Aug 2013 08:16:42 +0200 Message-ID: <9CFBB2FF-22D7-4977-9903-045BF5226FBE@gmail.com> References: Mime-Version: 1.0 (Mac OS X Mail 6.5 \(1508\)) Content-Type: multipart/alternative; boundary="Apple-Mail=_53C7D957-F603-437C-B464-5C9269ECC045" Return-path: Received: from eggs.gnu.org ([2001:4830:134:3::10]:60653) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1VFeUR-0001yf-GY for emacs-orgmode@gnu.org; Sat, 31 Aug 2013 02:17:00 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1VFeUJ-0002jU-6t for emacs-orgmode@gnu.org; Sat, 31 Aug 2013 02:16:55 -0400 Received: from mail-ee0-x236.google.com ([2a00:1450:4013:c00::236]:47669) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1VFeUI-0002jH-Rd for emacs-orgmode@gnu.org; Sat, 31 Aug 2013 02:16:47 -0400 Received: by mail-ee0-f54.google.com with SMTP id e53so1301906eek.27 for ; Fri, 30 Aug 2013 23:16:46 -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: Omid Cc: Longmin WANG , emacs-orgmode@gnu.org --Apple-Mail=_53C7D957-F603-437C-B464-5C9269ECC045 Content-Transfer-Encoding: quoted-printable Content-Type: text/plain; charset=iso-8859-1 On 20.5.2013, at 10:59, Omid wrote: > Thanks. I confirm that this in fact solves the problem. This is also fixed in CDLaTeX 4.6 at = http://staff.science.uva.nl/~dominik/Tools/cdlatex - Carsten >=20 >=20 > On Mon, May 20, 2013 at 3:57 AM, Longmin WANG = wrote: >=20 >=20 > On Mon, May 20, 2013 at 11:14 AM, Omid wrote: > I see the following strange behavior from Org-CDLaTeX (OCDL). >=20 > Outside a * heading it works. Inside a * heading (or anything under = that) it does NOT work. What can be causing this? >=20 > Here is a minimal example: >=20 > # Org CDLaTeX (OCDL) works here (at least does not issue an error) > \[ > x^2 > \] >=20 > * heading > ** subheading > # Org CDLaTeX (OCDL) does NOT work here. Pressing ^ (caret) or _ > # (underscore) causes the following error to appear in *Messages* > # buffer: > #=20 > # call-interactively: Symbol's value as variable is void: > # last-command-char > \[ > x > \] > # Same error here. > \begin{align*} > x > \end{align*} >=20 >=20 > last-command-char should be changed to last-command-event in = cdlatex.el.=20 >=20 > --=20 > Longmin Wang (http://wanglm.droppages.com/) > Nankai University, 94 Weijin Road, Tianjin 300071, P. R. China >=20 --Apple-Mail=_53C7D957-F603-437C-B464-5C9269ECC045 Content-Transfer-Encoding: 7bit Content-Type: text/html; charset=iso-8859-1
On 20.5.2013, at 10:59, Omid <omidlink@gmail.com> wrote:

Thanks. I confirm that this in fact solves the problem.


This is also fixed in CDLaTeX 4.6 at http://staff.science.uva.nl/~dominik/Tools/cdlatex

- Carsten



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 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


--Apple-Mail=_53C7D957-F603-437C-B464-5C9269ECC045--