[Tex/LaTex] LaTeX gives warning – empty label `’ multiply defined

cross-referencingwarnings

I have a LaTeX document that works fine, but it does give a warning message every time I compile it. Here is the text of the warning message:

LaTeX Warning: Label `' multiply defined.

The name of the label that is multiply defined appears to be an empty string. I am confused about this, but I have had trouble searching for it online because the key element is the empty string, which does not make for a good search term. Does anyone know what this warning message could mean?

I can post details of the document in question as needed, but at this point I have no idea what parts could be important.

Got it. I guess I didn't realize that bibliography items counted as labels – since I never had any intention of referring to them anywhere, I left all of their labels blank initially.

Best Answer

A label is something that you create in a document. So, you'll want to look through your document for something like \label and see how the label has been defined.

The syntax is

 \label{<label-name>}

where <label-name> is something that you create.

If you have multiple empty labels created, such as

\label{}

or something equivalent, then you'll get the error you've reported.

One way to bug-chase this and a generally good practice is to give useful and meaningful names to your labels. For example, if you have an equation, then you can write

\label{eqn:<short description of equation>}

If, for example, the label is for a section introducing the definition of a martingale, then you can write

\label{sec:defn_of_martingale}

By doing this, your labels will be meaningful and easier to understand in your source document. But also, it'll much easier to find duplicate labels.