[Top][All Lists]

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[O] font-lock fails with \to in a macro

From: Eric S Fraga
Subject: [O] font-lock fails with \to in a macro
Date: Wed, 6 Apr 2016 12:26:19 +0100
User-agent: Gnus/5.130016 (Ma Gnus v0.16) Emacs/25.0.92 (gnu/linux)


I have the following macro to aid in presenting calculations in
solutions to coursework questions etc. for my teaching:

#+macro: calculate src_calc[:exports code]{$1} = @@latex:\fbox{@@ 
src_emacs-lisp{(setq var-$2 (string-to-number (calc-eval "evalv($1)")))} \to $2 

The "\to" which org catches and converts to → on export causes a problem
with font-locking:

Error during redisplay: (jit-lock-function 1) signaled (wrong-type-argument 
vectorp →)

Using math mode directly, i.e. \(\to\) works just fine, at least for
LaTeX export, but I thought I'd mention this anomaly in case it bites
anybody else!


: Eric S Fraga (0xFFFCF67D), Emacs, Org release_8.3.4-705-g716e33

reply via email to

[Prev in Thread] Current Thread [Next in Thread]