According to Guide to LaTeX, 4th edition, when creating a \label{name}
,
The keyword name may be any combination of letters, numbers, or symbols.
Is the name of a label case-sensitive? Can the name contain spaces?
I'm asking because when using Vim's snipmate TeX snippet, if I type sec
and hit tab, I automatically get:
\section{section name}
\label{sec:section name}
Then when I enter the section name in the \section
, Vim automatically puts the same text after the sec:
portion of the \label
. Since my sections are often multiple, capitalized words, the label name ends up containing spaces and are capitalized. For instance, I might get:
\section{Planned Testing}
\label{sec:Planned Testing}
Prior to allowing Snipmate in Vim automatically enter the label name based on the section name, I would have manually typed:
\section{Planned Testing}
\label{sec:planned_testing}
Spaces not allowed
Syntastic in Vim shows an error if a label name contains spaces.
\label{chap:chapter-name}
,\label{sec:section-name}
,\label{subsec:subsection-name}
,\label{fig:figure-name}
,\label{tab:table-name}
,\label{eq:equation-name}
,\label{lst:code-name}
and\label{itm:important-note}
as shown in en.wikibooks.org/wiki/LaTeX/Labels_and_Cross-referencing and tex.stackexchange.com/questions/12174/…\label{fig:my_figure}
and\label{the_label}
.