Hello,
Eric S Fraga <[email protected]> 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