mirror of
https://github.com/vale981/NotesTeX
synced 2025-03-04 17:31:42 -05:00
add date and commit to title
This commit is contained in:
parent
31dfc9a301
commit
62a45fd64a
1 changed files with 15 additions and 0 deletions
|
@ -547,6 +547,17 @@
|
|||
|
||||
\DeclareFixedFont\trfont{OT1}{phv}{b}{sc}{11}
|
||||
|
||||
% get commit and branch
|
||||
\usepackage{xstring}
|
||||
\usepackage{catchfile}
|
||||
|
||||
\CatchFileDef{\headfull}{.git/HEAD}{}
|
||||
\StrGobbleRight{\headfull}{1}[\head]
|
||||
\StrBehind[2]{\head}{/}[\branch]
|
||||
\IfFileExists{.git/refs/heads/\branch}{%
|
||||
\CatchFileDef{\commit}{.git/refs/heads/\branch}{}}{%
|
||||
\newcommand{\commit}{\dots~(in \emph{packed-refs})}}
|
||||
|
||||
%first page
|
||||
\renewcommand\maketitle{
|
||||
%% First page
|
||||
|
@ -604,6 +615,10 @@
|
|||
\PackageWarningNoLine{\jname}{E-mails are missing.\MessageBreak Plese use \protect\emailAdd\space macro to provide e-mails.}
|
||||
\fi
|
||||
\afterEmailSpace
|
||||
{\bfseries\raggedright\sffamily Version\par}
|
||||
\@date\quad
|
||||
\commit on \branch
|
||||
\afterAuthorSpace
|
||||
%Erratum or addendum
|
||||
\if!\@xtum!\else\noindent{\@xtum}\afterXtumSpace\fi
|
||||
% Abstract
|
||||
|
|
Loading…
Add table
Reference in a new issue