gitinfo2 hinzugefügt, versioninfo per gitinfo-Option an ahilbig-script bzw ahilbig-presentation aufrufbar

This commit is contained in:
André Hilbig 2015-04-01 00:38:45 +02:00
parent 5c6a8d52c7
commit 2c905f0fd7
3 changed files with 38 additions and 21 deletions

View File

@ -38,7 +38,7 @@
\RequirePackage{staves}
\RequirePackage{rotating}
\RequirePackage{scalerel}
\RequirePackage{longtable}
\RequirePackage{longtable,booktabs}
\RequirePackage[official]{eurosym}
\RequirePackage{fancybox}
\RequirePackage{tabularx}
@ -99,7 +99,6 @@
\def\UrlFont{}
%%\ifcd\else
%\RequirePackage{futura}
%% \RequirePackage{utopia}

View File

@ -31,6 +31,8 @@
\DeclareOption{cmmath}{\cmmathtrue}
\newif\ifonelecture
\DeclareOption{onelecture}{\onelecturetrue}
\newif\ifgitinfo
\DeclareOption{gitinfo}{\gitinfotrue}
\ProcessOptions
%\RequirePackage[draft]{ddi-common}
@ -61,16 +63,22 @@
\providecommand\insertlecture{Vortrag}
\providecommand\lecturename{Vortragtitel}
\providecommand\versionsinfo{%
% \textcolor{blue!50}{%
% \begin{tabular}{ll}
% Version: &\svnfilerev \\ %\hline
% Stand: &\svnfiletoday, \svnfilehour:\svnfileminute ~Uhr\\ %\hline
% Zuletzt bearbeitet von:&\svnFullAuthor{\svnfileauthor}
% \end{tabular}
% }
}
\ifgitinfo
\RequirePackage{gitinfo2}
\providecommand\versionsinfo{%
%Gitinfo -- \gitAbbrevHash in \gitBranch von (\gitAuthorEmail) am \gitAuthorDate
Versionsinformationen:
\begin{tabular}{ll}
\textcolor{blue!70}{Hash:} & \textcolor{blue!45}{\gitAbbrevHash} \\
\textcolor{blue!70}{Branch:} & \textcolor{blue!45}{\gitBranch} \\
\textcolor{blue!70}{Stand:} & \textcolor{blue!45}{\gitAuthorIsoDate} \\
\textcolor{blue!70}{Zuletzt bearbeitet von:} & \textcolor{blue!45}{\gitAuthorName\ (\gitAuthorEmail)}\\
\end{tabular}
}
\else
\providecomman\versionsinfo{}
\fi
% Common packages
%

View File

@ -31,6 +31,8 @@
\DeclareOption{cmmath}{\cmmathtrue}
\newif\ifonelecture
\DeclareOption{onelecture}{\onelecturetrue}
\newif\ifgitinfo
\DeclareOption{gitinfo}{\gitinfotrue}
\ProcessOptions
%\RequirePackage{caption}
@ -38,7 +40,7 @@
%\RequirePackage[draft]{ddi-common}
%\RequirePackage[blackandwhite]{ddi-common}
%\RequirePackage[cd]{ddi-common}
\RequirePackage{ahilbig-common}
\RequirePackage{ahilbig-common}
\RequirePackage{ahilbig-semester}
@ -55,6 +57,7 @@
\RequirePackage{pdflscape}
\RequirePackage{placeins}
\RequirePackage{varsfromjobname} % Element[e] aus \jobname extrahieren
%\RequirePackage{qrcode} % Wird in maintitle genutzt - auskommentiert
@ -65,15 +68,22 @@
\providecommand\insertlecture{Vortrag}
\providecommand\lecturename{Vortragtitel}
\providecommand\versionsinfo{%
%\textcolor{blue!50}{%
% \begin{tabular}{ll}
% Version: &\svnfilerev \\ %\hline
% Stand: &\svnfiletoday, \svnfilehour:\svnfileminute ~Uhr\\ %\hline
% Zuletzt bearbeitet von:&\svnFullAuthor{\svnfileauthor}
% \end{tabular}
%}
}
\ifgitinfo
\RequirePackage{gitinfo2}
\providecommand\versionsinfo{%
%Gitinfo -- \gitAbbrevHash in \gitBranch von (\gitAuthorEmail) am \gitAuthorDate
Versionsinformationen:
\begin{tabular}{ll}
\textcolor{blue!70}{Hash:} & \textcolor{blue!45}{\gitAbbrevHash} \\
\textcolor{blue!70}{Branch:} & \textcolor{blue!45}{\gitBranch} \\
\textcolor{blue!70}{Stand:} & \textcolor{blue!45}{\gitAuthorIsoDate} \\
\textcolor{blue!70}{Zuletzt bearbeitet von:} & \textcolor{blue!45}{\gitAuthorName\ (\gitAuthorEmail)}\\
\end{tabular}
}
\else
\providecomman\versionsinfo{}
\fi
\ifonelecture