jcalov / jgitinfo Goto Github PK
View Code? Open in Web Editor NEWUse git repository metadata in LaTeX documents.
Use git repository metadata in LaTeX documents.
The package only can know if the repo is dirty if one of the installed git hooks was invoked. So you have to ensure that you invoke one of them before compiling your latex document.
One possibility is to checkout a file that is in every branch of every repo and changes extremely rarely. Normally that file is .gitignore
, so you can run git checkout .gitignore
before every compile.
How you configure this in TexStudio ist described in section 1.3 of the TeXstudio user manual.
When using git-latexdiff and not using the silent option of the jgitinfo package, the pdf output of the diff has the prominent watermark that git hooks are not installed which is very annoying.
Integrate an additional flag silent-not-installed
that makes no watermark if git hooks are not installed, but that shows the prominent notice if repo is dirty.
Provide the git hook files from gitinfo2 package in repo. But check license before!
Provide information for installation, like:
git_hooks
into your local repository folder .git/hooks/
chmod 755 .git/hooks/post-*
For more information see the package documentation for the gitinfo2 package.
In watermark text, everything is written in lower case, but in silent mode, the dirty flag in watermark begins with an upper case D.
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.