From 8731cc5ad70723b9a155917df509d857579c355d Mon Sep 17 00:00:00 2001 From: Norbert Preining Date: Tue, 21 Apr 2020 03:02:38 +0000 Subject: CTAN sync 202004210302 --- macros/latex/contrib/latexgit/README.md | 2 +- macros/latex/contrib/latexgit/latexgit.dtx | 23 +++++++++++++++++++---- macros/latex/contrib/latexgit/latexgit.ins | 4 ++-- macros/latex/contrib/latexgit/latexgit.pdf | Bin 435404 -> 435125 bytes 4 files changed, 22 insertions(+), 7 deletions(-) (limited to 'macros/latex/contrib/latexgit') diff --git a/macros/latex/contrib/latexgit/README.md b/macros/latex/contrib/latexgit/README.md index 3cd85a0da0..7fe43a90bc 100644 --- a/macros/latex/contrib/latexgit/README.md +++ b/macros/latex/contrib/latexgit/README.md @@ -7,7 +7,7 @@ Several macros are defined to fetch git information and typeset it. The macros defined by LaTeXgit can be helpful to documentation authors and others to whom clear document versioning is important. -Copyright © 2016 [Camil Staps][camilstaps]. Licensed under +Copyright © 2016&ndsah;2020 [Camil Staps][camilstaps]. Licensed under GPL v3, see the LICENSE file for more details. [ctan]: http://www.ctan.org/pkg/latexgit diff --git a/macros/latex/contrib/latexgit/latexgit.dtx b/macros/latex/contrib/latexgit/latexgit.dtx index 100d1d16a8..2d8435fc7b 100644 --- a/macros/latex/contrib/latexgit/latexgit.dtx +++ b/macros/latex/contrib/latexgit/latexgit.dtx @@ -16,7 +16,7 @@ latexgit Author: Camil Staps \endpreamble \postamble -Copyright (c) 2016 Camil Staps +Copyright (c) 2016-2020 Camil Staps Licensed under GPL v3. \endpostamble \usedir{tex/latex/latexgit} @@ -226,11 +226,15 @@ Licensed under GPL v3. % %\DescribeMacro{\gitcommitdate} % This macro displays the \git{} commit date. -% The following example shows a usage example and shows the results of the -% options +% The following example shows the effect of the options % \gitopt{formatDate}, \gitopt{formatTime} and \gitopt{showTimeZone}. % \LTXinputExample[pos=b,numbers=none]{exmp/gitcommitdate.tex} % +%\DescribeMacro{\gitcommand} +% This macro executes an arbitrary \git{} command and directly typesets the +% result. It only accepts the option \gitopt{directory}. +% \LTXinputExample[pos=b,numbers=none]{exmp/gitcommand.tex} +% %\section{Implementation} %\label{sec:implementation} %Define the package and load required packages. @@ -240,7 +244,7 @@ Licensed under GPL v3. % \end{comment} % \begin{macrocode} \NeedsTeXFormat{LaTeX2e} -\ProvidesPackage{latexgit}[2020/03/18] +\ProvidesPackage{latexgit}[2020/04/20] \RequirePackage{pgfkeys} \RequirePackage{datetime} @@ -319,6 +323,17 @@ Licensed under GPL v3. % \end{macrocode} %\end{macro} % +%\begin{macro}{\gitcommand} +% A wrapper around \cs{git@command} and \cs{git@result}, to directly typeset the +% result of arbitrary commands. +% \begin{macrocode} +\newcommand{\gitcommand}[2][]{% + \pgfkeys{/git,default,#1}% + \git@command{git #2}% + \git@result} +% \end{macrocode} +%\end{macro} +% %In what follows, \verb$%$ may be used in calls to \git{}. Therefore we use %\verb$&$ as comment character. % \begin{macrocode} diff --git a/macros/latex/contrib/latexgit/latexgit.ins b/macros/latex/contrib/latexgit/latexgit.ins index 532ab7ac2d..e73c6f02b2 100644 --- a/macros/latex/contrib/latexgit/latexgit.ins +++ b/macros/latex/contrib/latexgit/latexgit.ins @@ -15,7 +15,7 @@ latexgit Author: Camil Staps \endpreamble \postamble -Copyright (c) 2016 Camil Staps +Copyright (c) 2016-2020 Camil Staps Licensed under GPL v3. \endpostamble \usedir{tex/latex/latexgit} @@ -23,7 +23,7 @@ Licensed under GPL v3. \file{\jobname.sty}{\from{\jobname.dtx}{package}} } \endbatchfile -%% Copyright (c) 2016 Camil Staps +%% Copyright (c) 2016-2020 Camil Staps %% Licensed under GPL v3. %% %% End of file `latexgit.ins'. diff --git a/macros/latex/contrib/latexgit/latexgit.pdf b/macros/latex/contrib/latexgit/latexgit.pdf index a6dd138f0c..d72670d9b5 100644 Binary files a/macros/latex/contrib/latexgit/latexgit.pdf and b/macros/latex/contrib/latexgit/latexgit.pdf differ -- cgit v1.2.3