Hi Marcin,

Marcin Kolenda <[email protected]> writes:

> I am using AUCTeX for typesetting mathematics in English and Polish
> language.
>
> When I interactively call #'reftex-label and put space inside the label or
> an character commonly used in polish like ą ę ł ó ź ć ż I get message that
> it contains invalid characters.
>
> However, I successfully use the labels with spaces or utf8 characters
> without an issue. I am tempted to remove the aforementioned check for label
> characters domain. Why shouldn't I do that?

The only reason for sticking with ASCII characters is portability, in my
opinion.

Not tested, but you can lift the restriction in RefTeX by customizing
the variable `reftex-label-illegal-re'.  Something like this should do
the job:

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

Best, Arash

Reply via email to