src.dualinventive.com/tools/template-latex/di/attribute.sty

30 lines
976 B
TeX

\ProvidesPackage{di/attribute}
\RequirePackage{datetime}
\newcommand*\thedocumenttype{<Document Type>}
\newcommand*\documenttype[1]{\renewcommand*\thedocumenttype{#1}}
\newcommand*\thedocumentversion{<Document Version>}
\newcommand* \documentversion[1]{\renewcommand* \thedocumentversion{#1}}
\newcommand*\theauthor{<Author>}
\renewcommand* \author[1]{\renewcommand* \theauthor{#1}}
\newcommand*\thedocumenttitle{<Document Title>}
\renewcommand* \title[1]{\renewcommand* \thedocumenttitle{#1}}
\newcommand*\theproductowner{<Product owner name>}
\newcommand* \productowner[1]{\renewcommand* \theproductowner{#1}}
\newcommand*\thereleasedate{<Release date>}
\newcommand*\releasedate[1]{\renewcommand* \thereleasedate{#1}}
\newcommand*\thedocumentstatus{<Document status>}
\newcommand*\documentstatus[1]{\renewcommand* \thedocumentstatus{#1}}
\newcommand*\thedocumentbasename{\jobname}
% Format date
\renewcommand{\dateseparator}{-}
\newcommand*{\DIdate}{\ddmmyyyydate}