Added a memo argument option

This commit is contained in:
Joost van den Born committed 2021-05-18 17:44:12 +02:00
1 parent 87e62b6808
commit a691d6ac51
3 files changed
+40 -12

No files matched your search

+31 -8
View File
@@ -162,6 +162,7 @@
\newif\if@dmdexternal
\newif\if@openright
\newif\if@technote
\newif\if@memo
\DeclareOption{draft}{\@dmddrafttrue}
@@ -170,6 +171,7 @@
\DeclareOption{openright}{\@openrighttrue}
\DeclareOption{openany}{\@openrightfalse}
\DeclareOption{technote}{\@technotetrue}
\DeclareOption{memo}{\@memotrue}
\ProcessOptions
\newlength\LogoWidth
@@ -230,6 +232,10 @@
\if@technote
\def\dmdHeaderTitle{Technical Note - \@dmdTitle}
\fi
\if@memo
\def\dmdHeaderTitle{Memo - \@dmdTitle}
\fi
%%%%%%%%%%%%%%%%%%%%%%%%%%%% End experimentation
\fancyhead{}
@@ -246,14 +252,25 @@
\multirow{4}{7cm}{%
\centering{\large \dmdHeaderTitle}
% \centering{\large \@dmdTitle}
} & \small Doc:\rule[1ex]{0pt}{1.1ex} &
\hspace*{\fill}\small \@dmdDocId \\ %\cline{3-4}
& & \small Issue:\rule[1ex]{0pt}{1.1ex} &
\hspace*{\fill}\small \@dmdIssue \\ %\cline{3-4}
& & \small Date:\rule[1ex]{0pt}{1.1ex} &
\hspace*{\fill}\small \@dmdDate \\ %\cline{3-4}
& & \small Page: \rule[1ex]{0pt}{1.1ex} &
\hspace*{\fill}\small \thepage\ of \pageref{LastPage}\\
} &
\if@memo
& \\
& & \small Date:\rule[1ex]{0pt}{1.1ex} &
\hspace*{\fill}\small \@dmdDate \\ %\cline{3-4}
& & \small Page: \rule[1ex]{0pt}{1.1ex} &
\hspace*{\fill}\small \thepage\ of \pageref{LastPage}\\
& & & \\
% \hspace*{\fill}\small Hello there! \\ %\cline{3-4}
\else
\small Doc:\rule[1ex]{0pt}{1.1ex} &
\hspace*{\fill}\small \@dmdDocId \\ %\cline{3-4}
& & \small Issue:\rule[1ex]{0pt}{1.1ex} &
\hspace*{\fill}\small \@dmdIssue \\ %\cline{3-4}
& & \small Date:\rule[1ex]{0pt}{1.1ex} &
\hspace*{\fill}\small \@dmdDate \\ %\cline{3-4}
& & \small Page: \rule[1ex]{0pt}{1.1ex} &
\hspace*{\fill}\small \thepage\ of \pageref{LastPage}\\
\fi
\hline
\end{tabular}
}
@@ -422,3 +439,9 @@
\end{ChangeRecordTable}
}
\fi
% A memo does not require a cover page or change record table. Neither does it have a document number
\if@memo
\renewcommand{\dmdmaketitle}{
}
\fi