RSS

 
WinEdt Macro Library  | LaTEX previous macro  | next macro

autoLabel

Description

This macro suggests a name for a label. It is supposed to be the response to the Active String "\label{}".

The suggested name will consist of the type of label (i.e. section, equation, footnote etc.) and, if it is able to guess, an abbreviation of the contents. Example:

\section{Epistemology Naturalized}\label{sec:Epistem-Natural}

The macro will also check whether the label name already exists.

Installation

Put the macro in %b\Macros\LaTeX\, and set it up as the response to the Active String "\label{}" (in Options | Settings | Active Strings).

Or, if you prefer that, append

CMD('Char Right'); Exe('%b\Macros\LaTeX\autoLabel.edt');

to the Insert | LaTeX | Label menu item.

Download

LaTeX/autoLabel.edt

Macro contributed by Robert <w.m.lgmx.net>.

WinEdt Macro Library  | LaTEX previous macro  | next macro