I am involved in a writing a large document with a co-author who set up the LaTex files that we're using (i.e., I don't have complete autonomy in what I change).
We have a root file which does two things:
1) loads a header file that contains the \usepackage{} commands and then lists the user-defined commands.
2) Then it loads in each chapter file using a user-defined command \Chapter{#}{Title}
Which is coded as:
\newcommand{\Chapter}[2]{
\setcounter{chapter}{\numexpr#1-1}%
\refstepcounter{chapter}%
\setcounter{eqnhelper}{0}
\setcounter{section}{0}
\setcounter{figure}{0}
\setcounter{equation}{0}
\include{#2}
}
As you can see, this command mostly just resets various counters to 0, it also has the command \setcounter{chapter}{#1}. That way, when we compile chapters 3 and 8, they are both numbered correctly. Last, it calls the chapter file with the \include command.
Each chapter file starts off with
% !TEX root = 00_makefile.tex
\chapter*{Chapter \thechapter\\ Chapter Title}
\label{chapter: apps of integration}
Here's the problem. Let's say we compile two chapters (say #3 and 8), and we want to reference Chapter 3 up in Chapter 8. Using the Typing Chapter \ref{chapter_label} command produces: Chapter <-(see the blank space?). Why is that? and how do we fix it?
I guess I should also mention that this is using \documentclass{report} and we are NOT using the hyperref package.
UPDATE: I just now realized I can't reference the chapter within itself either. Inside chapter 3 I added the line This is chapter \ref{chapter3} and I still got a blank space after the word 'chapter.'
\Chapter. – Werner Dec 29 '11 at 20:26