KWARC / LaTeX-proposal

The Proposal package for LaTeX
66 stars 34 forks source link

gitinfo2 support #9

Closed BranchyMcBranchface closed 9 years ago

BranchyMcBranchface commented 10 years ago

How would I go about removing or disabling the native SVN requirement and instead use gitinfo2? Currently, if I simply add \usepackage[pcount,grumpy,mark,markifdirty]{gitinfo2} I get a messy heading on the title page and have duplicate footers with SVN.

BranchyMcBranchface commented 10 years ago

Would you prefer a pull request for modifications? It seems the section near here would require an option to disable the added footer, but I believe that that the SVN requirement is merely for convenience and is not actually needed for proposal documents.

\ifsubmit
\RequirePackage[hide]{ed}
\RequirePackage[final,today]{svninfo}
\else
\RequirePackage[show]{ed}
\RequirePackage[eso-foot,today]{svninfo}
\fi
kohlhase commented 9 years ago

Dear Jake,

yes, pull requests would be great. On 22.10.14 19:45, Jake Hertenstein wrote:

Would you prefer a pull request for modifications? It seems the section near here would require an option to disable the added footer, but I believe that that the SVN requirement is merely for convenience and is not actually needed for proposal documents. that is completely right. I should probably not make this part of the class, but add it to all the examples. And yes, we should probably replace it with a git solution, since the class now moved over to githut anyway.

Would you be so kind and prepare a pull request, then I could deal with that more easily.

Michael

\ifsubmit
\RequirePackage[hide]{ed}
\RequirePackage[final,today]{svninfo}
\else
\RequirePackage[show]{ed}
\RequirePackage[eso-foot,today]{svninfo}
\fi

Reply to this email directly or view it on GitHub: https://github.com/KWARC/LaTeX-proposal/issues/9#issuecomment-60125160


Prof. Dr. Michael Kohlhase, Office: Research 1, Room 168 Professor of Computer Science Campus Ring 1, Jacobs University Bremen D-28759 Bremen, Germany tel/fax: +49 421 200-3140/-493140 skype: m.kohlhase

m.kohlhase@jacobs-university.de http://kwarc.info/kohlhase

kohlhase commented 9 years ago

As no pull request seems to be forthcoming, I sat down and introduced two new options to the proposal classes: svninfo and gitinfo. The first triggers the current behavior (with svninfo.sty) and the second uses gitinfo2.sty, as you requested. closing, please test and reopen if necessary.

highlando commented 6 years ago

I had to source the gitinfo2-hook.sh first, to get the config file, namely gitHeadInfo.gin, in the right place:

cd /path/to/Latex-Proposal
source lib/gitinfo2-hook.sh

Maybe this info saves someone some minutes.