[Tex/LaTex] Label and numbering in Latex

counterslabelsnumbering

I'm returning to LaTeX after many years away from it, and hope you can answer this question.

I am writing a catalogue that has a lot of cross references that need to be individually numbered (probably 5000+), so using the \label and \ref commands will be very useful. I've also used sections and subsections to make the catalogue manageable.

I would simply like to label items starting at number 1, 2, 3 etc. and going to 5000+. I've used \label{itema}\textbf{\ref{itema}} to label and reference the items but this adds in 0.1.1 as its in a subsection, and then restarts the numbering in the next section/subsection.

Any suggestions for how I just get \label to label items as 1, 2, 3 etc. without restarting for each section, subsection etc.

Best Answer

An example in your question would make it a lot easier to help. And more likely the answer would be of some use to you.

Something like this?

\documentclass{article}
\usepackage{enumitem}
\newlist{myitems}{enumerate}{1}
\setlist[myitems]{label=\arabic*, font=\bfseries, resume}
\begin{document}
\section{Living}
\subsection{Animals}
\begin{myitems}
  \item\label{enum:wombat} Wombat\footnote{Not usually found in terraced houses (\ref{enum:terrace}).}
  \item\label{enum:parrot} Parrot
\end{myitems}
\subsection{Plants}
\begin{myitems}
  \item\label{enum:cactus} Cactus\footnote{Not suitable for igloo-dwellers (\ref{enum:igloo}).}
  \item\label{enum:willow} Willow
  \item\label{enum:ivy} Ivy
\end{myitems}
\subsection*{Important notes}
\begin{enumerate}
  \item Note 1
  \item Note 2
\end{enumerate}
\section{Homes}
\begin{myitems}
  \item\label{enum:igloo} Igloo
  \item\label{enum:terrace} Terraced house
  \item\label{enum:tree} Tree house
\end{myitems}
\end{document}

lists

Related Question