Episode #125 of the Stack Overflow podcast is here. We talk Tilde Club and mechanical keyboards. Listen now

Questions tagged [git]

{git} is an extremely fast, efficient, distributed version control system ideal for the collaborative development of TeX documents. However, please consider that questions unrelated to the TeX use itself may be off-topic here.

Filter by
Sorted by
Tagged with
0
votes
1answer
44 views

Using listinputlisting to include a specific (git) commit

I am discussing code which is in version control and would like to specify which version of the code to include. I did some research and found packages like gitlatex and gitinfo, but though useful, ...
0
votes
1answer
111 views

Change GitHub repository on Overleaf? [closed]

I linked an Overleaf project to GitHub. Then I changed the name of the repository on GitHub. How does one change or unlink an Overleaf project from GitHub once it's been linked?
5
votes
1answer
5k views

Write down latex equation in github page [closed]

I have a github page. I have a school project that I want to display in my Github page. There are several equations and figures related to this project. How could I write down this equation and draw ...
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
2answers
364 views

Image files in git-repository [closed]

I write my PhD thesises in LaTeX. Now I try to use git to track my project. Can somebody advice me good workflow of this process? Is it good idea to track image files and resulting .pdf by git?
1
vote
1answer
152 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) ...
2
votes
0answers
124 views

“not a valid pathspec” wit git-latexdiff

Do anyone know what's wrong here? $ git-latexdiff --main main.tex master other-branch /usr/bin/latexpand fatal: empty string is not a valid pathspec. please use . instead if you meant to match all ...
1
vote
1answer
72 views

LaTex, XeTex, PdfTex and git: remove anything that is regenerated during build when git version control used

Over my text I apply version control via git and I use the .gitignore file to place any file that is autogenerated on "compile" from tex to pdf. Sometimes is nessasary to wipe out all theese file and ...
3
votes
1answer
394 views

How to tell input command to ignore the special characters (as in verb. mode)?

I use the following line to write into the PDF the name of the git repository with source code of the document: \input|"git config --get remote.origin.url | xargs basename" I am facing a problem ...
1
vote
2answers
1k views

How to check successful compilation in PDFLaTeX?

I want to develop a pre-commit hook for my LaTeX Git repository. I need the hook to suppress the commit in case the compilation finishes unsuccessfully (missing packages OR missing source files OR ...
2
votes
1answer
146 views

gitinfo2 Only display branch when not on master

I am currently using the gitinfo2 package in my document to display the current git revision, branch, and date. However, I would only like to display the branch if I am not on the master branch. This ...
0
votes
1answer
1k views

TeXstudio and GitHub [closed]

I've seen this link: TeXstudio / TeXmaker and GitHub which is exactly what I want but I do have an issue: When I use the scripts they always fail because I cannot put my username and password from ...
0
votes
1answer
43 views

Absolute labels for notes — collaborative tex writing git

The context is collaborative latex writing using GIT and some online repository. I have a simple macro that uses a counter to index notes in a pdf, which puts a number in the margin: \documentclass[...
6
votes
3answers
509 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
768 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. ...
29
votes
4answers
4k views

Best practices for source file line lengths?

Are there any best practices for how long to make your lines in your source file? I'm also interested if there are best practices for it if there aren't any LaTeX-specific best practices. I ...
1
vote
0answers
102 views

Are there any public and opensource TeX/LaTeX related projects hosted on GitHub? [closed]

Today I read on GitHub's website that membership and using GitHub for public and opensource projects is free. Are there any opensource and public TeX/LaTeX related projects available on GitHub in ...
4
votes
1answer
1k views

Alternatives to git for sharing latex projects?

I am trying to set up a collaborative LaTeX project - something better than sending emails back and forth. Some sort of version control system: git or mercurial - seems popular, but it means learning ...
1
vote
0answers
101 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 ...
6
votes
2answers
1k views

LaTeX + Git: Bibliography

Let's say I have one and only one bibliography file on my computer, in which I write every piece of literature I read and that I import in every paper I write or on what my PhD thesis will be at the ...
6
votes
2answers
364 views

Is there a clean way to create offset branches in gitdags?

Julien Cretel created the elegant gitdags package for easily generating educational git graphs, which I'm currently using to create educational and reference materials for my team. When discussing ...
8
votes
3answers
3k views

Embed Github readme.md in Latex

During my thesis I have created multiple Git-Repositories which are documented using the readme.md which GitHub uses as repository explanation. Now I would like to include those documentations into ...
6
votes
1answer
238 views

Setup: Versions of a draft and git

I'm using git to store my project files including the tex files. Now I'm thinking about starting to write up a first draft. What's a good project structure for combining latex and the git technology? ...
9
votes
2answers
692 views

How can a Git tag be aligned with the formatted PDF using gitinfo2?

I think I do not understand the workflow of the gitinfo2 package correctly. The documentation says (shortend): Edit and format abc.tex until ready for release Commit the release version of abc.tex ...
3
votes
1answer
552 views

How to display Git console logs(==colored text) beautifully in LaTeX?

I basically want a similar output in a direct LaTeX format, like the picture below. The Background color is not important, but e.g. the different colors of the commit hashs, the commit message and the ...
0
votes
2answers
880 views

compiled pdf +git : Check and update generated pdf on a git repository

(SOLVED) Good morning, I browsed the web in order to search if there is a way to check and commit an updated version of .pdf file compiled through LaTeX. But I don't find any solution. This seems ...
0
votes
1answer
160 views

get git metadata (using gitinfo2) of input file directory rather than current directory

I have one git repository that I'm calling my book directory. Within that I have a tex file that calls a bunch of chapters or sections that are in their own git directories. My goal is to the get ...
4
votes
1answer
281 views

accessing bash to get git information in TeX macro

I'm not sure if this is possible, but my goal is to include some information about the current point of my LaTex file in its git source history in the PDF output of my file. What I want to be able ...
4
votes
2answers
157 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: ...
35
votes
4answers
3k views

LaTeX + GIT - mark differences since specific commit

I store LaTeX document in local GIT repository. Once I accomplish appropriate part of document I compile it to PDF and send it to my supervisor who is not familiar with LaTeX nor GIT. However, he ...
10
votes
2answers
11k views

Using TeXstudio and git to automatically commit using the current date

Following up on Easy LaTeX Editor with SVN or GIT connection and auto-update, I am trying to set up a way to automatically commit my latest changes with the current date and time (e.g. -m "autosave on ...
1
vote
0answers
83 views

Texlipse and git - two repositories [closed]

I'd like to use texlipse and git. I managed to create a project (/data/workspace/proj) and and a repository (/data/git/proj). Texlipse or git moved all files from workspace/git to git/proj which seems ...
8
votes
1answer
600 views

Reference manager and version control

Let us assume you are working on a document with a small group. Each member uses his/her favorite reference manager. You share the document and the bibtex file with a version control system (say git). ...
2
votes
1answer
939 views

How expensive is it to add pdfs in git? [closed]

I'm thinking to use git for my latex projects, and I'm wondering whether I should add the pdf output to the repositories, or leave it out. It would be sort of convenient to have it in there, but I'm ...
4
votes
2answers
8k views

Install Fira Sans Font using Texlive 2012

I would like to create slides using this theme for Beamer but am having trouble getting it to work. I just copied the .sty files into /home/gthomson/texmf/tex/latex/mtheme. However the theme ...
4
votes
0answers
181 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 ...
4
votes
1answer
1k views

How do I share a style file which is used by multiple git repositories?

I am working with multiple LaTeX projects at any given point in time, each of which is stored in a separate git repository. I have also accumulated a set of commands and environments which I am ...
5
votes
1answer
1k views

diff against the working directory with git-latexdiff

I use git for my latex document and I want to diff against the working directory. MWE: \documentclass{article} \begin{document} a \end{document} add git-latexdiff to $PATH in .bashrc PATH=$PATH:~/...
6
votes
1answer
216 views

LaTeX3's \GetIdInfo: how is its argument automatically populated?

The l3bootstrap's documentation says \GetIdInfo extracts all information from a SVN field. But I have no idea where this field comes from. So I'd like to know how \GetIdInfo does work and if it is ...
15
votes
1answer
646 views

How often do you commit when you use a version control system for your own LaTeX documents? Why? [closed]

I'd like learn about your practices and why you commit the way you do. Whether the practice is just "good" or "better" than another one is of course debatable but this topic could be really helpful ...
8
votes
2answers
533 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 ...
11
votes
1answer
354 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 ...
1
vote
1answer
283 views

gitinfo (xstring): tag info does not work because of “tag:” before version number

I'm making the switch from subversion to git, and I'm quite happy with the gitinfo package. The only thing I cannot get to work is to show a version number from the tag. I have identified the ...
1
vote
2answers
203 views

How to manage bibliography files with a VCS while they're used by an external program?

I use Mendeley to organise citations. It exports a .bib file automatically to a folder on my Mac. I also have another .bib file that I use for other citations not stored in Mendeley (websites mostly)....
5
votes
1answer
4k views

Should one Share their Latex Documents on GitHub [closed]

I am not sure if this question exactly fits here, but this is the best to my judgement. I understand GitHub is mainly for posting hobby (or commercial) programming projects . I was wondering, does it ...
13
votes
1answer
796 views

How do you perform version control on TeX-related files that are used in multiple projects?

I'm an avid TeX user for quite some time now. I use LaTeX for most of my lecture notes and my assignments. That's why I'm usually working on about half a dozen LaTeX projects at a time. Over the time ...
10
votes
2answers
10k views

Easy LaTeX Editor with SVN or GIT connection and auto-update

I've had problems with my current LaTeX editor( Texmaker). It hasn't got an autosave option and overwrites the file every time I save them manually . Is there an editor which has an auto update/save ...
1
vote
0answers
461 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 ...
11
votes
1answer
824 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 ...
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 ...