[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: Using unicode labels with spaces in RefTex
From: |
Arash Esbati |
Subject: |
Re: Using unicode labels with spaces in RefTex |
Date: |
Mon, 04 Jan 2021 17:51:17 +0100 |
User-agent: |
Gnus/5.13 (Gnus v5.13) Emacs/28.0.50 |
Hi Marcin,
Marcin Kolenda <marcinkolenda419@gmail.com> 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