I'm looking into a version control system (Bazaar) for the first time to manage my dissertation writing. I'm writing my diss in separate tex files and bringing them together into a parent (wrap) file with \include{chap1.tex}, \include{chap2.tex}, etc.
I'm having a problem in identifying the proper parent-child folder structure to write the necessary .aux files that works with this version system. I can't figure out a directory structure that blends Tex's requirements to write aux files for the child files and the Bazaar version system. I'm hoping someone else has already figured out how to make these two requirements work together.
First, here are the version system requirements as I understand them. Bazaar essentially works with this folder structure for simple projects: ~/diss/wrap/trunk/wrapfile.tex. It adds a folder named 'trunk' and your working tex file is in this trunk folder. Bazaar's 'project' name is the name of the preceding folder 'wrap' and the working tex file is not in this folder. To keep a tidy version system, I want to keep my chapters as separate versioning 'projects' in different folders. Thus: /chap1/trunk/chap1.tex, /chap2/trunk/chap2.tex, etc. I don't want to put all these chapter tex files in one huge project folder because the folder gets untidy.
Second, to compile a document in LaTeX with parent-child files when these files are in separate directories, I understand Tex requires that the child tex files be in subfolders below the parent to get the \include command in the parent (wrap) file to work properly, which depends on Tex writing aux files for each child in their respective child folders. Thus, we have this folder structure according to Tex's requirements:
/wrap/wrapfile.tex
/wrap/chap1/chap1.tex
/wrap/chap2/chap2.tex
Here's my problem. How do I reconcile Tex's and Bazaar's requirements?
Bazaar needs this folder structure to keep chapters as separate versioning projects:
/wrap/trunk/wrapfile.tex
/chap1/trunk/chap1.tex
How do the child files and their folders fit into this version system?
Logically, I don't believe this will work well in Bazaar:
/wrap/trunk/wrapfile.tex
/wrap/trunk/chap1/trunk/chap1.tex
If you are still reading this message, thank you. As I said, I hope someone has already found a solution to get parent-child files working with versioning systems (Bazaar) and keeping chapters as separate projects. Many thanks.
General ⇒ Folder structure/ version control & parent-child files
NEW: TikZ book now 40% off at Amazon.com for a short time.
Re: Folder structure/ version control & parent-child files
TeX doesn't care where you put your files. If you have your files in /wrap/chapN/chapN.tex, you have to \include{chapN/chapN} in LaTeX....if your files are in /wrap/chapN/trunk/chapN.tex, just \include{chapN/trunk/chapN}, etc.
(but I have to ask...WTF if your revision control system trying to control the layout of your sources??)
(but I have to ask...WTF if your revision control system trying to control the layout of your sources??)
Folder structure/ version control & parent-child files
I had already tried this but Tex stopped compiling my document andTeX doesn't care where you put your files. If you have your files in /wrap/chapN/chapN.tex, you have to \include{chapN/chapN} in LaTeX....if your files are in /wrap/chapN/trunk/chapN.tex, just \include{chapN/trunk/chapN}, etc.
gave me this error:
Code: Select all
ERROR: I can't write on file
`r:/research/chap1/trunk/chap1.aux'
Code: Select all
\include{r:/research/chap1/trunk/chap1}
seems to be related to the aux file. I'm reading online that child
file folders need to be below the parent folder rather than being
independent of
it. http://www.latex-community.org/forum...php?f=5&t=175692
So I'm still looking for a solution.
What I want a revision system to do for me is to easily track mybut I have to ask...WTF if your revision control system
trying to control the layout of your sources??)
revisions to my dissertation and also give me a way to go back to an
earlier version of something I've written if needed.