[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [AUCTeX] Ignoring some non reference labels
From: |
Tassilo Horn |
Subject: |
Re: [AUCTeX] Ignoring some non reference labels |
Date: |
Thu, 25 Apr 2013 14:03:21 +0200 |
User-agent: |
Gnus/5.130006 (Ma Gnus v0.6) Emacs/24.3.50 (gnu/linux) |
Tassilo Horn <address@hidden> writes:
Hi Julien,
>> Here is an example of such a tikzpicture label:
>>
>> \begin{tikzpicture}
>> \node [label={\RayonArc:$\theta$}] at (\AngleMilieu:\RayonArc) {};
>> \node [shape = vector out,label=left:$\vvEz $] {};
>> \end{tikzpicture}
>
> Ah, that's unfortunate. reftex actually doesn't know anything about
> environments, so it's not even possible to skip some of them right
> now...
Ok, in emacs bzr I added a new defcustom:
,----[ C-h v reftex-label-ignored-macros-and-environments RET ]
| reftex-label-ignored-macros-and-environments's value is nil
|
| Documentation:
| List of macros and environments to be ignored when searching for labels.
| The purpose is to ignore environments and macros that use keyval
| style label=foo arguments, but the label has a different meaning
| than \label{foo}. For example, TikZ defines several
| environments and macros where [label=foo] defines the label to be
| printed at some node or edge, but it's not a label used for
| referencing.
|
| Note that this feature is only supported if you are using AUCTeX
| and the functions `TeX-current-macro' and
| `LaTeX-current-environment' are bound. Also note that this
| feature might slow down the reftex parsing process for large TeX
| files.
|
| You can customize this variable.
`----
So add "node" and "shape" (and "axis" from the other example) to that
variable, and keyval style label=foo are ignored for these macros and
environments.
Bye,
Tassilo