[OS X TeX] Referencing to figure in another document

Herbert Schulz herbs at wideopenwest.com
Tue Feb 22 02:57:38 CET 2011


On Feb 21, 2011, at 7:33 PM, Shahriar Anwar wrote:

> Dear LaTeX Community,
> 
> I am writing a manuscript using the memoir class. The different chapters ( .tex files) of the manuscript are entered in the main document with the command \include{Path/ChapterName}. Now if I have a figure in Chapter2 (\label{fig:AGreatFigure}), say, and want to reference it from Chapter4, then how would I go about doing it? 
> 
> I have tried \ref{fig:AGreatFigure} and \ref{Path/Chapter2/fig:AGreatFigure} and different variants of it in Chapter4, but upon compiling my main manuscript.tex file I get question marks (??) where I expect the proper referencing to be. Of course I have saved and compiled my documents several times but haven't figured out the solution.
> 
> Thanks for any help and suggestions.
> 
> Shahriar Anwar

Howdy,

Have you compiled, and let the files produced remain, for the chapter you want to reference? Try compiling with everything included and then use the \includeonly in the root file.

Good Luck,

Herb Schulz
(herbs at wideopenwest dot com)






More information about the macostex-archives mailing list