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
0answers
27 views

Automatic change tracking and version with git? [duplicate]

Is there a integration between LaTeX and git to handle proper documentation versioning? My goal would be to track changes and revision of a document in git. And when the document is built the goal ...
1
vote
1answer
48 views

TeXStudio 4.0: git commit encounters GIT_DISCOVERY_ACROSS_FILESYSTEM

For the last few years I have successfully used A TeXstudio script on a Fedora Linux system, inspired by https://ritm.knu.ua/general/how-to-use-git-with-texstudio/ that allowed me to commit changes to ...
1
vote
1answer
56 views

Getting git-latexdiff and texcount to work together nicely

What is the best way to get git-latexdiff to work nicely with texcount to view changed and deleted word counts between two commits?
0
votes
0answers
33 views

influence git commit intervals on Overleaf

I use the git feature in Overleaf to mirror the repo containing the document to my own server. We have a code review system where every commit has to be confirmed by another team member. Overleaf ...
1
vote
1answer
40 views

\makeglossaries not working because of Github?

Completely new to LaTeX environment. So I'm using TexMaker for my Masters thesis. I thought I set it up correctly but this issue keeps cropping up. First, there is one instance if when I use \gls{...
0
votes
1answer
74 views

Does anyone use Madoko to write LaTeX documents or this is an "evolutionary" impass

I've stumbled upon Madoko that merges markdown and LaTeX features into a kind of markdown syntax beefed up with $\LaTeX$ superpowers for maths, structuring, x-references, bibliography, etc. I am ...
1
vote
2answers
465 views

Git changes line endings from "LF" to "CRLF". Can this cause any problems?

I am using GitHub to manage my Latex project. When I want to commit my .tex files, git will change the line endings from "LF" to "CRLF". Can this cause any kind of problems? I use ...
0
votes
0answers
142 views

git push force to Overleaf

I am writing a project on Overleaf and have a local copy via git. I did some local changes and now my local version is out of sync with the Overleaf one. I tried to git push --force my local changes (...
0
votes
1answer
81 views

Parse git commit date e.g. for datetime

I am working on a LaTeX document with LuaLaTeX and try to include git information in the document to make it easier to find the correct version once I stumble over a printed copy. With the help of ...
0
votes
2answers
108 views

Collaborate on same .tex in Texstudio?

My friend and I, are going to work on a paper. I'm using overleaf right now. However, due to some limitation, we prefer to switch to Texstudio. The problem is how to sync the .tex file in my computer ...
1
vote
0answers
54 views

Will I lose comments in Overleaf if I use git as well?

I am collaborating in an Overleaf project where I use git to work locally while my colleagues work directly on the browser. On top of editing, they also use Overleaf's comments (see url) to talk to ...
2
votes
0answers
101 views

LaTeX build system similar to CMake

Suppose I have a LaTeX repo, which contains main file and lots of image files, also in LaTeX format (with tikz inside). I would like to achieve multiple goals: Separate compilation. All images can be ...
2
votes
0answers
73 views

latexdiff sed: can`t read

I am running latexdiff on a file in a git repository with the following command latexdiff-vc --git --force -r Versioning.tex --pdf it starts but then the following message appears Generated difference ...
2
votes
1answer
357 views

pdfcreator vs. pdfproducer - PDF Metadata in Hyperref Hypersetup

I came across a comment under this answer https://tex.stackexchange.com/a/26530/133604 : What's the difference between pdfproducer and pdfcreator? Now, a lot of examples regarding the usage of ...
0
votes
0answers
187 views

How should I pass latexdiff options to latexdiff-vc?

I use latexdiff-vc -r paper\paper.tex to diff my current .tex file relative to the version most recently committed to a Git repo. If citations do not change between versions, this command works great. ...
1
vote
0answers
53 views

An online latex editor synchronizing with a github account?

Which online latex editor is capable of synchronizing with a github repository containing latex sources?
0
votes
1answer
282 views

How to use git status, reset, revert with overleaf git project?

Is there a way to use git commands with an overleaf project? Currently, I see an option to push and pull from github, but nothing more. I have workaround (listed below) for some commands, but I was ...
0
votes
2answers
70 views

LaTeX Import Command Error while Nesting

I am facing this issue while I am trying to use \import command from latex. I have nested document which is compiling on GitLab pipeline. My configuration uses sub-modules also. Please see the error ...
0
votes
0answers
50 views

Versioned dependencies

I created my own class and style files and have them in my $HOME/texmf/tex/latex/local/ directory. They form the basis for all my documents. The problem is, these style files are changing often, as I ...
0
votes
0answers
159 views

Has TexStudio an integration with git for control version?

Has TexStudio a kind of integration with git or any other software for control version? Wanted Feature: I would like to select a specific commit and then compile the code. I normally do this manually: ...
3
votes
1answer
510 views

How to write LaTeX on a static blog smoothly?

I want to write some of my notes in blog format. I want to use my own domain with an github.io-provided static website. I don't know whether I can setup Wordpress there, so Trevisan's latex2wp is ...
0
votes
0answers
99 views

git highlighting style for listings

Is there a predefined highlighting style that I could use with package listings so that output from git commands like git diff, git log can be highlighted as they show up on the terminal (added lines, ...
1
vote
1answer
61 views

.gitignore for svg-inkscape

I managed to get SVG to work with LuaTeX. However, in my working folder, there's a new folder named svg-inkscape. Is this a mandatory folder? Can I ignore it, and if so, is there a proper .gitignore ...
0
votes
0answers
653 views

TexStudio git integration

I tried to add some basic git commands to my TexStudio build step. Unfortunately, this does not seem to be as straightforward as I thought. As you can see in the picture, I tried adding my custom ...
1
vote
1answer
635 views

What's the best strategy of saving Tex files on GitHub? [closed]

I don't know if this is a stupid question. Since now GitHub allows unlimited private repositories and I often write reports with LaTeX, I'd like to push my local repositories to GitHub as backups. ...
0
votes
0answers
74 views

How to work with luatex from git

I have TL2019 installed. Is it possible to clone and build the latest luatex from git, rebuild the lualatex format, and then work with that instead of TL2019's own lualatex? I'm specifically ...
2
votes
0answers
212 views

Need help with TexStudio macro for calling a shell script

So, I made this shell script that can be called from TexStudio, The scripts calls git to add and commit files with the current date, and then push them to GitHub. I want to improve it's functionality ...
0
votes
1answer
185 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, ...
7
votes
1answer
836 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?
10
votes
1answer
15k 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 ...
19
votes
4answers
3k 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
799 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
314 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
163 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
177 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
571 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
2k 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
185 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
2k 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
50 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[...
8
votes
3answers
1k 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
912 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. ...
33
votes
5answers
7k 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
124 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 ...
6
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
113 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
2k 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 ...
7
votes
2answers
466 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
6k 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
254 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? ...