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.
118 questions
0
votes
1
answer
204
views
Using Perl from Git installation for latexdiff
Problem
I am encountering a problem which has already been raised in this site:
Can't locate Algorithm/Diff.pm in @INC (you may need to install the Algorithm::Diff module)
Can't locate Algorithm/Diff....
0
votes
1
answer
54
views
Passing documentclass arguments at compiler level [duplicate]
Say we have a LaTeX document for beamer presentation
\documentclass{beamer}
...
\end{document}
Now if I want to make a handout of it, I have to manually change this file to
\documentclass[handout]{...
2
votes
1
answer
121
views
Linux Git GUI tools for texts (e.g. LaTeX)
I'm looking for a Git GUI to work with diffs of LaTeX texts.
Typically, Git tools are designed for source code, where we don't have long lines of text. This is not the case for LaTeX documents, where ...
0
votes
1
answer
601
views
Overleaf Github Synchronization Error
I get this error when I try to push to or pull from github: "Must supply either tree.sha or tree.content. Request will be rejected if both are present." How could I fix this? There doesn't ...
0
votes
1
answer
110
views
Creating a complete revision table from git for one file
Using gitinfo2 (or another solution), can I loop through the list of git tags to create a full revision table for the one tex file I am compiling ?
(if need be, it can be scripted and then integrated ...
1
vote
0
answers
246
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 ...
0
votes
1
answer
782
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 ...
1
vote
1
answer
644
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 ...
1
vote
0
answers
104
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 ...
2
votes
2
answers
2k
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 ...
4
votes
0
answers
408
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.
2
votes
1
answer
2k
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.
...
1
vote
0
answers
321
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. (...
1
vote
0
answers
2k
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 ...
2
votes
1
answer
416
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 ...
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 ...
0
votes
0
answers
286
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 ...
0
votes
2
answers
314
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 ...
0
votes
0
answers
44
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
1
answer
328
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
1
answer
741
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
0
answers
501
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
1
answer
218
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
1
answer
336
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
2
answers
4k
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 ...
4
votes
1
answer
3k
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
1
answer
582
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
2
answers
2k
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 ...
5
votes
1
answer
710
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 ...
3
votes
1
answer
689
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
0
answers
166
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 ...
9
votes
1
answer
5k
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 ...
1
vote
0
answers
1k
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
0
answers
298
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?
1
vote
2
answers
2k
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
2
answers
366
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
0
answers
62
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
0
answers
1k
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: ...
5
votes
1
answer
2k
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 ...
1
vote
0
answers
347
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
1
answer
191
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
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 ...
1
vote
1
answer
3k
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
0
answers
170
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 ...
3
votes
0
answers
453
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
1
answer
472
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, ...
11
votes
1
answer
3k
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
1
answer
17k
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 ...
23
votes
4
answers
6k
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
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?