I am writing my PhD thesis and as I am not the least chaotic guy I also add notes for future reference. Surely, this means it is not production grade, or how you would like to call it.
There is a nice package called versions which takes care of the versions. We also have the helpful answers in Using latexdiff with git to use git. My goal now is to have something similar to versions but that the content is removed when for example it is in between \advisorcannotsee and \allokay and this would be checked out in the advisorbranch. Preferably, only the main version should be compiled (or the one marked as to be compiled).
Would such a thing already exist, or are there better solutions for this problem?
Per request:
Example workflow:
- I have a git repository working on the working directory of my thesis which includes all my remarks using
\inputor whatever. - I have several branches other than the main branch, say
paper1andadvisorwhich contains the same as the main branch (which contains it all) but then pieces cut out. - I modify my document and I add things which are for my eyes only (main) and some which are for my advisor. I would like to use something like the versions package to mark parts which belong to where.
- When done editing I commit my changes. As my modification has parts which belong to a different branch I would like to have that the version which is okay for the advisor gets "built" (pieces cut out) and commited to
advisorand the whole thing to main.
\advisorcannotseeto disable all the macro that you don't want to produce any output, and\allokayto re-enable the macros? That is pretty easy to do in LaTeX. – Peter Grill Oct 09 '12 at 07:48.texshould not contain the stuff which does not satisfy the conditional. Those different ones could be put in another branch. – JT_NL Oct 09 '12 at 12:49Org-modeis the way to go... – JT_NL Oct 09 '12 at 13:02