Stack Exchange Network

Stack Exchange network consists of 175 Q&A communities including Stack Overflow, the largest, most trusted online community for developers to learn, share their knowledge, and build their careers.

Visit Stack Exchange

Questions tagged [revision-control]

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

12
votes
4answers
2k views

Compiling (La)TeX files automatically with GitLab CI

Inspired by this question about compiling LaTeX files with Travis CI: How can GitLab's integrated CI feature be used to build (La)TeX documents?
9
votes
2answers
1k views

How to include the current Git commit ID and branch in my document?

I use Git to track changes on my TEX files. When producing a PDF, it would be nice to include the current branch and commit ID somewhere in the document (e.g. on the title page or in a footer). I ...
2
votes
1answer
30 views

Revision tracking macro causes widow or orphan

In a previous question "Revision tracking on a per subsection basis" I asked about tracking revisions by section. The answer that worked well for me was a macro that user Mike wrote. \...
1
vote
1answer
132 views

How well does Git handle merges? [closed]

Problem I use LaTeX for two different things: My mathematics thesis, and writing a novel (because who isn't an amateur novelist these days?). From my experiance with Vimdiff (diff as a back end) ...
0
votes
1answer
60 views

Changelog from file

I'm trying to get a very nice changelog table in my template and I'm trying to do that using the table of contents way (so writing to a file and reading from that afterwards). This works well, however ...
1
vote
0answers
57 views

Automatically extracting files from archive before compilation

I've got a LaTeX project in a Git repository which is being worked on using both TeX Live (Linux) and MiKTeX (Windows). The project has a very large number of \includegraphics[...]{...} statements for ...
0
votes
1answer
44 views

ShareLaTeX - Nested 'Main'

I'm trying to create the version / revision copies within the ShareLatex structure itself. I would like to know if there is a way to nest 'main' inside each folder and compile that folder alone. If ...
1
vote
0answers
284 views

How do I use latexdiff with MikTex without Perl given repository problem?

The CTAN latexdiff page states that latexdiff is contained within miktex. Trying to install it using MiKTeX Package Manager (Admin) as suggested January 14th, I instead encounter an error (is it a ...
-1
votes
1answer
113 views

red arrow symbol which roles back lyx files to an older version

Does anyone know exactly what these red arrows roll back mean, That is, the 8 red arrows on the RHS of the 7 or 8 repeated lines in pasted picture/screen shot below of my lyx document mean? They ...
7
votes
3answers
378 views

How to deal with cls and sty files, relative paths and different platforms in a multi-user git repository?

To inlcude our self-written class we are currently using relative paths (\documentclass{../ourclass}), which triggers a warning (wrong class provided) and is rather ugly. The solution to this problem ...
8
votes
1answer
733 views

Continuous integration with travis — package.sty not found

I want to use travis-ci on my project on github, a MWE of which is available here. I am using the following .travis.yml file, following the steps given in this Minimal CI LaTeX builder site. ...
13
votes
3answers
1k views

How to include a hash of a source file in the final PDF file?

Suppose I've got a poem.tex source file. Is there a way to include a hash of the source file as text in the final PDF? I usually use pdflatex to generate PDF files. I am looking for something like ...
3
votes
1answer
282 views

Can I suppress Date Created metadata field in output of pdflatex?

The goal is to have version control correctly match revision of output pdf with revision of the source files. For example when I rebuild a document based on, say, the tip revision the resulting PDF ...
2
votes
0answers
35 views

Semantic linefeeds and problem with space before footnote mark [duplicate]

I have started to use semantic linefeeds for the purposes of version control, as suggested by e.g. Brandon Rhodes, which I found through the answer: How to format source to take advantage of VCS? It ...
1
vote
0answers
95 views

Is it worth switching from Dropbox to a “real” versioning system? [duplicate]

I currently use Dropbox for storing my TeX projects, but have been tempted to switch to a "real" revision control system, like Mercurial or Git, lately. If it is worthwhile to switch, what would be ...
2
votes
1answer
2k views

How to produce a pdf with modifications visible with Overleaf?

I know (and appreciate) how to compare two version of the same document by using "versions" and "compare" in Overleaf. But I would like to produce a PDF showing these modifications and their authors, ...
4
votes
2answers
489 views

Include Build Number inside PDF

I need to automatically include a build number in PDF which increases automatically when it is complied again. E.g. Version 1.0.1 for the first build. Then after the second build, it should be 1....
4
votes
2answers
140 views

Strategies for providing packages as version control repositories

I'm working on experimental packages (say my-package-1 and my-package-2). Their changes are tracked thanks to a version control system (git in fact), the corresponding repositories being as follows: ...
3
votes
2answers
189 views

Tex macro needed to display mercurial keywords

I have mercurial keywords in a latex doc which I wish to process. \documentclass[12pt]{article} % This macro is an example based on the UK Tex FAQ: % http://www.tex.ac.uk/cgi-bin/texfaq2html?label=...
4
votes
0answers
173 views

View specific pdf version from git repository with linux application

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 ...
2
votes
1answer
171 views

Insert (and ref) uncompressed PDF literals in Latex document?

I'm having a document whose source files are kept in git, and I'd like something similar to Print subversion repo number on each page ... I've already managed to pull the information I need and show ...
8
votes
2answers
509 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 time ...
10
votes
1answer
332 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 ...
8
votes
3answers
1k 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 ...
9
votes
3answers
291 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 ...
1
vote
0answers
551 views

Texmaker + User Command + Launching graphical editor

I'm trying to customize Texmaker to my needs. I use git to version my documents, so I would like to set a user command to git-commit. An editor should then be invoked to receive my commit message. ...
1
vote
0answers
458 views

Where to put GitInfo hooks on Mac

Where and how does one put the post-checkout and post-commit hooks for using the gitinfo package with latex on a Mac? Example working directory:/Volumes/Boxcryptor Classic/Git/randomproject On ...
3
votes
0answers
347 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 ...
11
votes
1answer
738 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 ...
2
votes
1answer
676 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 (...
14
votes
1answer
1k 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 ...
27
votes
2answers
2k 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 ...
3
votes
1answer
279 views

Can gitHeadInfo.gin be safely added to .gitignore (without interfering with gitinfo's proper functioning)?

Can gitHeadInfo.gin be safely added to .gitignore without interfering with gitinfo's proper functioning ? I'm asking this, cuz currently (using gitinfo) git's working directory is never clean: # ...
4
votes
2answers
68 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 ...
25
votes
4answers
5k 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 ...
50
votes
6answers
19k 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
502 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 ...
13
votes
2answers
314 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 ...
28
votes
4answers
6k 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 ...
2
votes
1answer
319 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 ...
0
votes
0answers
91 views

Tools for editing? Redlining? (TeXShop) [duplicate]

As an editor, instructor, and collaborator, I would like to be able to make changes in TeX documents that are tracked so that the other person sees what changes were made. Word has the capacity to ...
2
votes
0answers
258 views

Is there a version management package/solution for latex? (non SVN etc) [closed]

I'm looking for a nice versioning system for LaTeX. At home I use SVN and it's great, but some of my fellow students have a hard time just coping with LaTeX. Is there a version management package or ...
9
votes
1answer
899 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 ...
26
votes
5answers
3k 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 ...
9
votes
1answer
1k 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 ...
20
votes
2answers
861 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é ...
17
votes
3answers
7k 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 ...
5
votes
3answers
429 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) ...
13
votes
4answers
2k 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 GIT....
3
votes
0answers
210 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 ...