[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [O] font-lock fails with \to in a macro
From: |
Nicolas Goaziou |
Subject: |
Re: [O] font-lock fails with \to in a macro |
Date: |
Wed, 06 Apr 2016 14:46:21 +0200 |
Hello,
Eric S Fraga <address@hidden> writes:
> 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!
FWIW, I cannot reproduce it.
Regards,
--
Nicolas Goaziou