Take the 2-minute tour ×
TeX - LaTeX Stack Exchange is a question and answer site for users of TeX, LaTeX, ConTeXt, and related typesetting systems. It's 100% free, no registration required.

I'm fairly new to TeX and I've been looking around for ways to mark revisions as in this document. Each page has a footer showing when it was last changed (either by the text changing or being moved) and the most recent revision(s) on any page are highlighted with a bar to the left.

I expect much of this would have to be done manually, but is there a way to mark a paragraph as "updated July 2011" and have (La)TeX somehow pick out the most recent for a page?

I'm probably being too optimistic, but perhaps someone will have a solution which works!

share|improve this question
    
Welcome to TeX.sx! I've removed the thanks. This is just the style here. Thanks is best expressed by upvoting helpful comments and answers. –  qubyte May 9 '12 at 11:14
add comment

3 Answers 3

up vote 6 down vote accepted

This is exactly what my svn-multi package is for. It provides you with the dates and revision etc. of the last change both on a per-file base and for the while document (i.e. the latest change for any input file). This of course requires that you are using Subversion for your documents. There is a fork for RCS as well rcs-multi.

share|improve this answer
1  
There's also the vc bundle which can work for git as well. –  Seamus May 9 '12 at 11:24
1  
Would it take a lot effort to port this to, say, git? I'd be interested in doing that. –  qubyte May 9 '12 at 11:24
    
@MarkS.Everitt: it is based on the SVN keywords i.e. $Id$. AFAIK VCs like git or hg don't have these by default. There is a hg extension which allows you to do it. If you produce the same keywords than there is no need to change the package. –  Martin Scharrer May 9 '12 at 11:30
    
Cool. I may take a look at this the next time I've got a couple of hours free. –  qubyte May 9 '12 at 11:31
2  
@MarkS.Everitt: I made a hg interface for rcs-multi (which is basically svn-multi v1.x with a slightly different format), because I couldn't make hg produce the date in the correct format. Something similar can be done for git. –  Martin Scharrer May 9 '12 at 11:35
show 2 more comments

Have you considered using a proper version control system (like SVN or GiT)? This way your working copy is always updated, and what you actually typeset is the latest version. If you need to rollback to earlier revisions, you simply checkout the version you need. This is not a TeX solution, but as the source code is plain text, you can utilize the power of the various version control systems available.

share|improve this answer
    
I was planning on using something like that (was leaning towards git because I'm familiar from programming). It's getting revisions into the footers that I was less certain about. –  Martin May 9 '12 at 11:38
add comment

For completeness one should also add the nice gitinfo package for the usage together with git. It provides several git-related macros which you can combine, put into the footer with fancyheaders or somewhere else. It has a good description how the info is generated, most easily by some Makefile like process.

share|improve this answer
add comment

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.