{revision-control} is about using revision-control software together with (La)TeX documents.

learn more… | top users | synonyms (1)

91
votes
12answers
6k views

LaTeX packages for use with revision control

I use revision control (Subversion, to be exact) to keep track of the edits to my LaTeX documents. Is there a LaTeX package that interfaces with revision control? Specifically, it would be nice to see ...
69
votes
6answers
8k views

Using latexdiff with git

I'd like to be able to use latexdiff with git. At the moment I have an alias in my .gitconfig file for a word-based diff: [alias] wdiff = diff --color-words but is it possible to make an alias ...
68
votes
10answers
5k views

How can you use LaTeX to write a document with other people?

I imagine that many users are or were [PhD] students, so I would like to know: how do you use LaTeX to write a document (like the final dissertation) that requires many revisions from other people. ...
66
votes
12answers
10k views

What are the advantages of using version control (git, CVS etc) in LaTeX documents

Why would I need to use version control with my LaTeX documents? I know people who do it, and I've seen questions about it on here and on SO, but I haven't understood what value there is to doing ...
56
votes
4answers
3k views

Which auxiliary LaTeX files should be ignored by Version Control Software?

I'm about to start version controlling my LaTeX documents with Git but I haven't used either very much. I would like to version only the files needed to compile the document but I use different OS's ...
26
votes
2answers
731 views

Create a “List of Effective Pages”

I am considering learning Latex in order to more easily maintain a bunch of manuals for my company. One of the requirements is to have a "List of Effective Pages" towards the beginning of the ...
24
votes
2answers
1k views

What are good working practices for VCS with LaTeX documents?

I am interested in using a VCS to track changes as I write short LaTeX documents in my daily research. Essentially, I use LaTeX as a whiteboard for developing ideas, and then I have documents to ...
20
votes
4answers
1k views

texdiff for multi-file documents in subversion

I've been looking for a convenient way to highlight changes between subversion revisions of my Latex document in the generated PDF. I am working on a reasonably complex document that pulls together ...
19
votes
4answers
2k views

git LaTeX and branches workflow

I'm getting more and more comfortable with git, and I'm learning how to use it with my LaTeX documents. However, I'm not at all a git wizard and thus I'm looking for further advices. One can find many ...
18
votes
5answers
1k views

How to manage LaTeX files in a directory?

I use LaTeX to generate all of the documents for my courses and as a result I have a lot of small documents in a given directory, which can then be hard to navigate due to all of the files generated ...
17
votes
12answers
3k views

Is there a LaTeX editor supporting Subversion out of the box?

Actually I am new to Subversion. Shortly speaking, Subversion is a tool to manage versioning of documents, especially for software developers. You can find the details here. I have a team to write a ...
17
votes
2answers
704 views

Inserting git commit date without hooks

Is there a way to insert the last git commit date into a document without having to add git hooks (like the gitinfo package does it)? I'm not 100% sure how LaTeX packages work, but if they can access ...
16
votes
1answer
4k views

What version control system should I use for my LaTeX documents? [closed]

The answers to this question have convinced me I want to start using some kind of version control system. The question is, which should I use? First this is mainly just for myself, not for ...
15
votes
2answers
484 views

How to format source to take advantage of VCS?

Building on What are good working practices for VCS with LaTeX documents?, are there best practices for formatting (La)TeX source files to take advantage of version-control systems? I keep my résumé ...
15
votes
1answer
1k views

On-line LaTeX editor with Git or CVS support

Before I sign up to one of on-line LaTeX editors (writeLaTeX, ShareLaTeX, LaTeXLab) I was wondering if any of those support a real version control (CVS, SVN, Git, Mercurial etc). I saw that ShareLaTeX ...
14
votes
6answers
805 views

How to backup TeX documents efficiently?

Currently I'm finishing my master thesis. During time I was systematically copying entire file (TeX, bibitex etc.) on external drive. Are there any better ways than that? What ways of backup you ...
13
votes
5answers
1k views

Including parts of a LaTeX document in another document WITHOUT splitting up original document

I'm working on a paper with some collaborators. At the same time, I'm writing my dissertation for my defense next month. I need to include the paper in the dissertation, but it doesn't just become a ...
13
votes
2answers
182 views

“!Missing $ inserted.” when using svn $Id$ keyword substitution

I'd like to to surface subversion revision numbers for use in the contents of my document. svninfo and svn packages rely on svn keyword substitution to accomplish this, but I get this error when I ...
12
votes
2answers
2k views

Best LaTeX-aware diff and merge tools for subversion

What's a good (or preferably, in your opinion the best) way to make subversion diff'ing and merging LaTeX-aware? I know latexdiff and latexrevision exist, but it's not clear to me how to make those ...
11
votes
4answers
1k views

Version Control with GIT for Tex / Latex Files in One repository or split to sep. repos

I am looking up at setting up version control for my latex documents. I was wondering people's typical setup for this. Do they set it up in there top folder or individual projects. I will be using ...
10
votes
1answer
88 views

`\input`ting contents of a file into a `hyperref`'s `pdfkeywords`

I use git to manage the development of my LaTeX documents, and I have a makefile I use to build a PDF from the LaTeX source. For the sake of provenance, I would like to embed the most recent git ...
10
votes
2answers
3k views

TexStudio / TexMaker and Github

I was wondering if anyone has used Github as a version control system, when writing a large document via TexStudio or TexMaker? Rstudio for example has a plugin that allows R projects to be pushed ...
9
votes
2answers
175 views

Put all package options into one command

The title might not be perfect, but what I want to achieve is: Inside my own package mypackage.sty, I would like to have a command, say \allpackageoptions, which should have stored the entire package ...
8
votes
4answers
516 views

Subversion keyword string inside LaTeX document

I put a subversion keyword string inside my LaTeX document. It looks like: $LastChangedDate: 2011-01-16 18:09:33 +0100 (nie) $ and it gets replaced (simple textual substitution) every time I make a ...
8
votes
3answers
93 views

Maintaining two similar versions without duplication

I have a long paper which I currently keep in two versions: one version for submission to a journal and another version for publication as a working paper. The working paper version is slightly longer ...
8
votes
3answers
326 views

How can I add version control info (to footers say?)

I'd like to keep track of revisions to a document and I use version control software for basically everything (SVN by the way, monotonically increasing revision numbers are their own reward). I want ...
8
votes
1answer
294 views

Can you put git revision information in a multifile document?

I have my PhD thesis under revision control (git), with a master file (~/Thesis/thesis.tex) using the \include command to include the chapters (~/Thesis/tex/chapter1.tex, etc). Is there a way to ...
8
votes
1answer
313 views

How to collaborate on a TeX project using VCS with a collaborator who is not using VCS?

Pretty self-explanatory; I'm thinking of @AndrewStacey's answer, in particular the part about working with collaborators who do not use VCS. I'm hoping for a more detailed explanation / step-by-step ...
8
votes
1answer
2k views

latexdiff + svn not working with multiple files (flatten)

Short question Seems like --flatten doesn't work properly with latexdiff-vc. How can I get this working, without reverting to my elaborated workflow described below? Context I track the history of ...
8
votes
1answer
176 views

Managing TDS Trees for Multiple Manuals In GIT Source Controlled Environment

We use LaTeX for our all of our documentation, which includes multiple product lines with multiple manuals. These manuals are built right along with our installers using our automated build server. ...
8
votes
0answers
351 views

As a professional LaTeX community, how can we promote proper version control? [closed]

This is a tricky question and I'm not sure how to go about being a proponent of forward thinking/change in a system that is a little over 30 years old (to most middle aged/older scientists). How can ...
7
votes
2answers
194 views

How can I automate “regression testing” for LaTeX documents, when updating packages?

I recently asked a related question about how often one should update LaTeX packages. Supposing that I update a bunch of packages in one go, or regularly update with only a few packages changing, how ...
7
votes
3answers
281 views

Avoid inputting a file multiple times

I have a revision string automatically saved to a file VERSION (it is the output of git describe and usually looks like v2.2-19-g0a51c27), and define a command ...
7
votes
1answer
393 views

Automatic branching for versions and git

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 ...
7
votes
2answers
392 views

svn for multiple files

Can someone explain how to use svn-multi in order to typeset the current revision (i.e., not the current file version)? I had to split a document into several .tex files. One file is the main, and ...
7
votes
1answer
121 views

Is it safe to place part of texmf-local under git?

Are there any problems with placing parts (or all) of texmf-local under Git source control? Git places a hidden directory in the folders it manages. Are there issues caused by doing this; would doing ...
6
votes
1answer
359 views

configure git to work with latex (i.e. use dots instead of lines as reference points)

Normally git is great, but if I use it for a written type of document (report/novel) and do a correction reading, it has to rewrite almost the entire document, because most paragraphs are likely to ...
6
votes
1answer
69 views

Put the last date of the file versioned with Git

I have many TeX files for to get their PDFs versions and I put a date in each of them like as last updated data. \usepackage[yyyymmdd]{datetime} updated \today But this is tricky, because every ...
5
votes
1answer
401 views

svn-multi: committed PDF always has an offset in revision number?

I'm using the svn-multi package to keep track of different versions of my PhD thesis. One problem (I did not find anything about it in the manual or in the web, but maybe I overlooked it): I have ...
5
votes
2answers
328 views

Format the date from vc bundle as \today

I'm using the vc bundle to feed \date with the date from the latest git commit. Is there a way to format this date in the same format as the output from \today? I know of the different date formats in ...
5
votes
1answer
505 views

adding vc to restricted write18 list

I want to use the vc bundle to add version information to my files. I'd like to go the "write18" route, rather than the makefile route, for now at least. I believe to make it work, I need to allow the ...
5
votes
1answer
327 views

How do I use git submodules to keep one preamble template for all my documents?

I’ve read this which outlines the advantages of using submodules in git to use one centralized preamble .tex to be used for all future LaTeX document. When the preamble is changed, all documents ...
4
votes
2answers
53 views

Individually importing a common set of equations into multiple unique documents

Suppose I have a large mathematical model with many equations and equation descriptions in many sections. This model, in various forms, is used in other documents. For example, one document may just ...
4
votes
3answers
282 views

Revision Control - Footers and markings

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) ...
4
votes
0answers
124 views

Different line endings in JabRef on Windows and Linux [closed]

I'm working on a bib file using JabRef on Windows and Linux. The bib file is synchronized via a version control program. Unfortunately, JabRef seems to save the bib file with Windows line endings (CR ...
4
votes
0answers
79 views

How to include part of an external git hash as text inside a document?

This is my first time asking a question on a site like this. Please tell me if I should do something differently, thanks! I want to include a short version of the latest commit hash from git as a ...
3
votes
1answer
2k views

How to work with SVN version control in Lyx?

In Lyx versions 1.6.8 and higher there is a version control toolbar. I successfully got RCS working but I cannot find any information on how to use SVN. However, there always is an "use SVN" button ...
3
votes
0answers
182 views

Generate revision history with rcs-multi [closed]

Is it possible to generate a page that collates all the revisions logs in multiple tex files with rcs-multi? And while trying to understand the example file, the line \rcsid{$Id: example.tex,v 1.2 ...
2
votes
1answer
115 views

Using latexdiff to highlight changes: alternatives for soul?

I am using latexdiff to create a pdf that highlights changes between two .tex along with hg diff latex, so as to use with Mercurial. However, the problem is that the the strikethrough formatting ...
2
votes
1answer
186 views

Time stamping my TeX documents

I use Texmaker as my LaTeX editor. I prefer to split my input into multiple files and I would like to have a way where on top/bottom of each (tex) file there is an automatic time stamp, saying when ...