4

Are there any Linux programs that can open specific versions of a pdf file under revision control with git.

I have been using subversion for version control with my latex documents, but I am giving git a try now. I have been using kdesvn as a gui; in the log history view, selecting a specific revision, one can right click on a pdf file committed and `cat this version'. The corresponding revision of the pdf file is opened in a pdf viewer.

Is there a git revision history viewer for linux which can do the same? I have tried gitk, gitg, qgit, git-cola, git-eye, giggle, smartgit and gitextension with no luck (at least I have not figured out how to do it in any of these). Of the one's that show anything of a pdf file the output is useless. Some can open the pdf with an external application, but only the most recent version. Some have the option to save a specific version of a pdf file; typically I want to look over a file and see how it looked, I don't need to save it.

I know this can be done from the command line, I'm asking specifically about a gui for it. Is there something I missed in the programs mentioned above, or one I missed?

  • 4
    This question appears to be off-topic because it is about manipulation of pdf files (and not TeX/LaTeX manipulation of them) not creation of pdf from Tex sources – Guido Nov 24 '14 at 4:23
  • 1
    I have a shell script that does exactly this. I'll post details when I have time. I think that this question is of sufficient general interest to people using latex so I have voted against closing it. – Andrew Nov 24 '14 at 5:34
  • 2
    @Guido I think that this is actually a latex question. At least the way that I solve this is using latex:) – Andrew Nov 24 '14 at 5:48
  • 2
    A simple git checkout REVISION && latekmk file -pdf && evince file.pdf && git checkout HEAD should do what you want, or not? – Habi Nov 24 '14 at 9:05
  • 2
    A PDF that is generated from a latex file is the same as a class, jar, exe or other file that is compiled from source. It should not be under version control in the first place. Every time you compile the PDF, it will be marked as changed, even if the latex file hasn't, due to time stamps, etc. If you want to see a specific version of the document, checkout that version's revision and compile it. – ThomasH Nov 29 '14 at 11:59

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Browse other questions tagged or ask your own question.