[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) |
Hello,
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
@@latex:}\\@@
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!
thanks,
eric
--
: Eric S Fraga (0xFFFCF67D), Emacs 25.0.92.1, Org release_8.3.4-705-g716e33
- [O] font-lock fails with \to in a macro,
Eric S Fraga <=