I am writing my Thesis using the memoir class. To keep my main .tex file fairly short I use the \input command to compile the chapters. This also helps when I only want to send a chapter on to my supervisor for reviewing as I can % out the \input of the chapter I don't want to compile. My issue is though that when, for example, only send on one chapter it will automatically be renumbered Chapter 1 even though it could be Chapter 4 in context of all the other chapter.
Good time for some background info. My supervisor does not use LaTeX so I can't just send him the TeX files. I send a pdf document which is why the problem arises. It's a small issue but can lead to some confusion as to what chapter I'm sending.
I don't know if I can do a MWE that would be helpful but I hope I have described my issue enough. What I ideally want is some small bit of code that I can use to temporally renumber the Chapters when only compiling some of them?
\includeinstead of\inputand compile the file. After that in the main file add in the preamble\includeonly{chapter1}(wherechapter1.texis the chapter you want to include) and compile again. – karlkoeller Jan 05 '15 at 11:22\input. Just to be clearer, I mean so that your main file would read\chapter{Introduction} \input{chapter1-contents.tex} \chapter{State of the Art} \input{chapter2-contents.tex} ...– Federico Poloni Jan 05 '15 at 11:25\includeand\includeonlynot only will that give the correct number it will allow \ref to things in the omitted chapters, something that will not work if you simply comment them out and use\input– David Carlisle Jan 05 '15 at 12:24