GeneralWarnings about undefined References

LaTeX specific issues not fitting into one of the other forums of this category.
Post Reply
clar
Posts: 7
Joined: Fri Oct 21, 2011 6:22 pm

Warnings about undefined References

Post by clar »

Hi,
I am running this latex file through PDFLaTeX i am getting this warnings
  1. latex warning: there were undefined references.
  2. latex warning: label(s) may have changed. Rerun to get cross-reference right.
and also some more warnings like this
latex warning: reference 'lastpage' on page 76 undefined on input line 3200. like this on every page end.
my latex file is like this

Code: Select all

\documentclass[a4paper,leqno,twoside]{article}

\usepackage[latin1]{inputenc}
\usepackage[english]{babel}
\usepackage{multirow}

\renewcommand{\familydefault}{\sfdefault}

\usepackage{color}
\usepackage[colorlinks=true]{hyperref}
\usepackage{draftwatermark}
\SetWatermarkText{EXPERIMENTAL}
\SetWatermarkScale{0.6}
\usepackage{parskip}

\graphicspath{{Figure/}}

\let\oldsection\section
\renewcommand{\section}{\clearpage\oldsection} 
\begin{document}



% Issued by {Name, acronym, department, phone}
\issuedby{vrebwr}
% Checked by
\checkedby{-}
% Approved by
\approvedby{-}
% Document title. Use \doctitleShort{} to insert a shorter title in the header.
\doctitle{test numbers with id}
\doctitleShort{document for tests}
% Publish date
\publishdate{\today}


% Titlepage
\frontmatter % Should be on first page
\maketitle

\vspace*{08eX}
\begin{center}
\subsection*{Abstract}
\end{center}

\noindent
it contains information about tests.
\newpage
\mainmatter
% Main pages. This command should be on page 2 or later.
\phantom{phantom}
\cleardoublepage

\subsection*{Change Record}

\begin{itemize}
\item R.1: Initial version.
  \begin{itemize}
  \item  generation of documentation using the vrebwr
  \end{itemize}
\end{itemize}

\cleardoublepage

\setcounter{tocdepth}{2}
\tableofcontents 

\cleardoublepage

\section{ How to read the tset information}

\begin{enumerate}
\item information how to read
\item information of tests
\end{enumerate}

\section{test numbers}

\subsection*{1, temperature sensor. }
\addcontentsline{toc}{subsection}{ 1, temperature sensor.}
\subsubsection*{data}
some data regarding test where we performed
\subsubsection*{values}
temperature sensor value here three or more.
\subsubsection*{reason}	
why we get like this.
\newpage

\subsection*{2, humidity sensor. }
\addcontentsline{toc}{subsection}{ 2, humidity sensor.}
\subsubsection*{data}
some data regarding test where we performed
\subsubsection*{values}
 humidity sensor value here three or more.
\subsubsection*{reason}	
why we get like this.

\subsection*{3, pressure sensor. }
\addcontentsline{toc}{subsection}{ 3, pressure sensor.}
\subsubsection*{data}
some data regarding test where we performed
\subsubsection*{values}
 pressure sensor value here three or more.
\subsubsection*{reason}	
why we get like this.
\newpage
\end{document}
in the above latex file I have so many tests like that around 100. I used * symbol to eliminate numbering in section 3 because I am using test name with number so i am tried to add that test name and number in table of contents by using this command

Code: Select all

\addcontentsline{toc}{subsection}{1,temperature sensor.}
when I used this command I am getting errors like as I explained in above. I searched and I found some reasons why this error occurred, because of \label{} and \ref{} is not used like that. but I don't know how to use that in my file can anyone help me with that in my latex file.because I am very new and this is my frist latex file I written.

Recommended reading 2024:

LaTeXguide.org • LaTeX-Cookbook.net • TikZ.org

NEW: TikZ book now 40% off at Amazon.com for a short time.

localghost
Site Moderator
Posts: 9202
Joined: Fri Feb 02, 2007 12:06 pm

Warnings about undefined References

Post by localghost »

Please get used to always checking your examples for functionality and completeness. Furthermore they have to reproduce the undesired behaviour clearly and have to be reduced to only relevant content. Such examples then are called a minimal example. Your example here fulfills none of these demands. So, please catch up on that.

Furthermore it would be very kind if you mention when doing a crossposting [1]*. This is only fair because it prevents others from double efforts and waste of time.

You've got already an answer there which is qualified to solve the issue.


* According to the rules you are obliged to do so.

[1] {TeX} SX — How Latex Warning: there were undefined references


Thorsten
Post Reply