EssenSea <[email protected]> writes:

> '\label{}' under automate prompt mechanism on echo area will not accept
> Chinese character as valid character. And I'm doubt that this may not
> only don't accept Chinese character but also for all non-latin
> character.
> [...]
> I did think this was a thing with Auctex, but while I use cdlatex, C-c {
> for auto insert some thing with label prompt upon echo area, the same
> "invalid `character'" will emerge.
>
> For now, I'm not sure which level is this related, Emacs TeX system
> level or Plug Level such as auctex or cdlatex.

It is RefTeX; I presume you have something like this in your init file:

  (add-hook 'LaTeX-mode-hook 'turn-on-reftex)

In that case, customize the variable `reftex-label-illegal-re':

,----[ C-h v reftex-label-illegal-re RET ]
| reftex-label-illegal-re is a variable defined in ‘reftex-vars.el’.
| 
| Its value is "[^-a-zA-Z0-9_+=:;,.]"
| 
| Regexp matching characters not valid in labels.
`----

Something like this should do the trick:

  (setq reftex-label-illegal-re "[^-[:alnum:]_+=:;,.]")

Best, Arash



_______________________________________________
bug-auctex mailing list
[email protected]
https://lists.gnu.org/mailman/listinfo/bug-auctex

Reply via email to