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
1 vote
0 answers
53 views

Teach Me Step-by-Step on How I can Collaborate and Achieve Reproducibility Using Git and TeXstudio for Latex Documents [closed]

I am using TeXstudio with LaTex on Windows I also know about Git. In fact, I use Git to collaborate on RStudio but on TeXstudio I cannot. While typing on TeXstudio on my own without collaboration, I ...
Daniel James's user avatar
0 votes
0 answers
31 views

Produce the same binary PDF file after several compilations [duplicate]

I know this question has been asked before, but I can't find an old reference on this subject, so feel free to point to my duplicate post if you have a link to an older post. Working with LaTeX, PDF ...
projetmbc's user avatar
  • 13.6k
0 votes
1 answer
230 views

Markdown using LaTeX: Quotation marks in PyCharm vs. Github

I'm used to typing typographically correct English quotation marks as follows: ``text goes here" In usual LaTeX documents this will work, no questions asked. When I use Markdown in Jupyter ...
TiMauzi's user avatar
  • 831
0 votes
0 answers
45 views

Project-local texmf directory

I'd like track my LaTeX projects using git, especially when collaborating with other authors. I'd also like to track my texmf directory in a separate git repository. My desire is to add my texmf ...
Wil's user avatar
  • 1
0 votes
1 answer
219 views

LyX and Git for version control

I can’t make LyX work with Git. I followed the guidelines in section 7.2.6 in the "Additional Features" LyX manual, but once the git repo is created for the document, and I try to register ...
Louis's user avatar
  • 303
1 vote
0 answers
68 views

How to check source file into version control on successful processing?

I want to git add file.tex and git commit -m ‘successful compile’ (or similar) every time LatexMk successfully completes building a PDF. I'm guessing I can put something in latexmkrc, but my Perl-foo ...
gaelicWizard's user avatar
1 vote
2 answers
383 views

Icons in ModernCV

I would like to update my CV and add also icons for linking, google schola, email, git and website. I would like to be in the top right place, something like that Name IconWebsite ...
John Angelopoulos's user avatar
3 votes
0 answers
130 views

How do you use Texstudio with github

How do you use texstudio with github now that texstudio have native git support I don't know what are the options as the answers relate to older versions of texstudio without git support. Thank you.
Adrik Ivanov's user avatar
1 vote
0 answers
434 views

Compile Latex with Github Actions

I'm writing my master thesis in latex and I'm using git and github for version control. To compile it on my laptop, I have this Makefile and to compile it I just run make and everything works fine. ....
Z123's user avatar
  • 43
0 votes
0 answers
132 views

How to include images in LaTeX large document, while collaborating on Git

I am currently working with a team to create a large latex report document (over 200 pages) where we need to include many images. We are supposed to use Git as version control to collaborate better. (...
molly's user avatar
  • 1
1 vote
0 answers
924 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 ...
Fukai Mizumi's user avatar
2 votes
1 answer
143 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 ...
MaciekS's user avatar
  • 267
0 votes
0 answers
38 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 ...
user366312's user avatar
0 votes
0 answers
173 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 ...
rrrrr's user avatar
  • 491
0 votes
2 answers
188 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 ...
Colin's user avatar
  • 213
0 votes
0 answers
36 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 ...
ygini's user avatar
  • 11
1 vote
1 answer
229 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 ...
ingli's user avatar
  • 843
1 vote
1 answer
395 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?
Paul's user avatar
  • 534
0 votes
0 answers
294 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 ...
mnagel's user avatar
  • 129
1 vote
1 answer
142 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{...
user244717's user avatar
0 votes
1 answer
230 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 ...
Samusz's user avatar
  • 13
1 vote
2 answers
3k 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 ...
mariusr's user avatar
  • 13
4 votes
1 answer
1k 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 (...
a06e's user avatar
  • 1,068
0 votes
1 answer
375 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 ...
Gunter's user avatar
  • 433
0 votes
2 answers
921 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 ...
Majid's user avatar
  • 203
4 votes
1 answer
337 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 ...
Claudenir Fonseca's user avatar
3 votes
1 answer
469 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 ...
Nikita Rudenko's user avatar
2 votes
0 answers
116 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 ...
Szymon's user avatar
  • 41
6 votes
1 answer
3k 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 ...
el_tenedor's user avatar
1 vote
0 answers
927 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. ...
Richard Herron's user avatar
1 vote
0 answers
245 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?
Atiyah Elsheikh's user avatar
1 vote
2 answers
1k 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 ...
Vipin Verma's user avatar
0 votes
2 answers
265 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 ...
Onur Gürdoğan's user avatar
0 votes
0 answers
55 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 ...
Manuel Schmidt's user avatar
0 votes
0 answers
703 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: ...
Leos313's user avatar
  • 619
4 votes
1 answer
1k 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 ...
Daniel Paleka's user avatar
1 vote
0 answers
241 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, ...
eftshift0's user avatar
  • 165
1 vote
1 answer
125 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 ...
Minh Nghĩa's user avatar
0 votes
0 answers
2k 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 ...
AndiLeni's user avatar
  • 301
1 vote
1 answer
2k 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. ...
C.K.'s user avatar
  • 113
0 votes
0 answers
112 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 ...
Mark van Atten's user avatar
2 votes
0 answers
355 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 ...
Pål Bjartan's user avatar
0 votes
1 answer
365 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, ...
927589452's user avatar
  • 118
10 votes
1 answer
2k 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?
biochemist's 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 ...
Encipher's user avatar
  • 518
22 votes
4 answers
5k 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 ...
CL.'s user avatar
  • 871
2 votes
2 answers
1k 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?
Ybrs's user avatar
  • 65
1 vote
1 answer
497 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) ...
Nero gris's user avatar
  • 155
2 votes
0 answers
196 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 ...
sigvaldm's user avatar
  • 223
1 vote
1 answer
394 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 ...
Dimitrios Desyllas's user avatar