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

By default, is the .tex file treated as a normal text file in git? [closed]

I have a question asked in stackoverflow site, see here: git commit shows a commit(a tex file) has 3054 lines added and 2996 lines removed, but use GUI tools showns only 60 lines added - Stack ...
user avatar
  • 1,168
0 votes
0 answers
14 views

Why latexdiff-vc cannot reach git repository?

I cannot make latexdiff-vc command works under Windows 11. Let's say that I have file called Evaluation.tex under Git source control. I call the function from the directory where the file is: ...
user avatar
  • 121
0 votes
0 answers
50 views

How Do I Connect TeXstudio with GitHub [duplicate]

I have been thinking of a lazy way of connecting TeXstudio to GitHub such that I can commit and push TeX codes and output from TeXstudio. Today I came across a GitHub account that has what I am ...
user avatar
1 vote
0 answers
132 views

Overleaf: automatic backup to Github?

I have installed Overleaf in the free version on my server. Everything works fine. Is it anyhow possible to connect Overleaf with my Github and hence store my paper there as well? Just in case my ...
user avatar
2 votes
1 answer
60 views

How to escape percent sign in shell command

I am working on a macro which will build revision history table in my document using Git tags. Each published version of my document has a tag with short description. I want to use them to ...
user avatar
  • 227
0 votes
0 answers
36 views

Latex editor with Git integration [duplicate]

I am looking for a LaTeX IDE for Windows 10. I see that only TexStudio has an SVN/Git option in the menu. However, it is unable to checkout from BitBucket. Which LaTeX IDE is freeware, has a built-in ...
user avatar
0 votes
0 answers
76 views

link texlive to github repository

I have a package of commands commands.sty on github. Is there a way that I can point TexLive to this github repository so that I can use \includepackage{commands} in any local document? So far, I've ...
user avatar
  • 377
0 votes
2 answers
90 views

usepackage, absolute path, and github development

I've forked the github repo for a package that is on CTAN and distributed with TeXLive. I'd like to do some development on it, and use it locally before committing back. This seems a pretty standard ...
user avatar
  • 173
0 votes
0 answers
33 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 ...
user avatar
  • 11
1 vote
1 answer
110 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 ...
user avatar
  • 799
1 vote
1 answer
141 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?
user avatar
  • 458
0 votes
0 answers
103 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 ...
user avatar
  • 129
1 vote
1 answer
79 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{...
user avatar
0 votes
1 answer
125 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 ...
user avatar
  • 11
1 vote
2 answers
1k 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 ...
user avatar
  • 13
1 vote
1 answer
430 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 (...
user avatar
  • 921
0 votes
1 answer
173 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 ...
user avatar
  • 413
0 votes
2 answers
311 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 ...
user avatar
  • 203
2 votes
0 answers
137 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 ...
user avatar
2 votes
0 answers
210 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 ...
user avatar
2 votes
0 answers
89 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 ...
user avatar
  • 41
3 votes
1 answer
953 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 ...
user avatar
1 vote
0 answers
435 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. ...
user avatar
1 vote
0 answers
120 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?
user avatar
0 votes
1 answer
643 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 ...
user avatar
0 votes
2 answers
127 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 ...
user avatar
0 votes
0 answers
51 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 ...
user avatar
0 votes
0 answers
288 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: ...
user avatar
  • 559
4 votes
1 answer
873 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 ...
user avatar
0 votes
0 answers
131 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, ...
user avatar
  • 155
1 vote
1 answer
84 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 ...
user avatar
0 votes
0 answers
1k 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 ...
user avatar
  • 281
1 vote
1 answer
1k 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. ...
user avatar
  • 113
0 votes
0 answers
88 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 ...
user avatar
2 votes
0 answers
264 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 ...
user avatar
0 votes
1 answer
256 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, ...
user avatar
9 votes
1 answer
1k 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?
user avatar
10 votes
1 answer
16k 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 ...
user avatar
  • 518
20 votes
4 answers
4k 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 ...
user avatar
  • 791
2 votes
2 answers
907 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?
user avatar
  • 55
1 vote
1 answer
356 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) ...
user avatar
  • 145
2 votes
0 answers
174 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 ...
user avatar
  • 213
1 vote
1 answer
262 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 ...
user avatar
3 votes
1 answer
601 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 ...
user avatar
  • 227
1 vote
2 answers
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 ...
user avatar
  • 227
2 votes
1 answer
191 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 ...
user avatar
0 votes
1 answer
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 ...
user avatar
0 votes
1 answer
52 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[...
user avatar
  • 256
8 votes
3 answers
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 ...
user avatar
  • 12.6k
8 votes
1 answer
924 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. ...
user avatar
  • 2,284