Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

datetime2 \DTMsavedate used incorrectly #21

Open
cebamps opened this issue Feb 16, 2016 · 3 comments
Open

datetime2 \DTMsavedate used incorrectly #21

cebamps opened this issue Feb 16, 2016 · 3 comments

Comments

@cebamps
Copy link

cebamps commented Feb 16, 2016

I have to take the blame for this bug. In issue #15, I noted that the datetime package was obsoleted by datetime2 and suggested a way to implement support of datetime2 based on the existing support of datetime.

I just found out that the fix I proposed was incomplete. While it works fine when the Author Date git metadata is set, when it is not, the use of \DTMsavedate is incorrect. The placeholders \THEDAY, \THEMONTH and \THEYEAR have been removed in datetime2. I believe line 203 should now be replaced by

\DTMsavenow{gitdate}

I apologize for my misleading attempt at a solution in issue #15.

@c-alpha
Copy link

c-alpha commented May 30, 2016

I can confirm that using datetime2 causes LaTeX to fail complaining about line 203. I haven't tried cedb12's fix though. It would be great if this could be fixed RSN (really soon now) and an update pushed to TeX Live. I need to use both packages.

Many thanks in advance!

@mojoritty
Copy link

I second this! Making the fix suggested by cedb12 seems to work. The issue is quite annoying, since it causes multiple errors when compiling the LaTeX code without having a a gitHeadInfo.gin or gitHeadLocal.gin file available. Applying the fix proposed by cedb12 fixes the issue, but manually fixing it is not very portable.

If you would be able to make a new release, that would be great! Thanks!

@josephwright
Copy link

This repository is no longer active: please re-report issues at https://github.com/josephwright/gitinfo2/issues

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

4 participants