blob: 5579f98dd25f01929d5dbcd4ac608d912c997702 (
plain) (
tree)
|
|
\DTMnewdatestyle{margindate}{
\renewcommand*\DTMdisplaydate[4]{
\MakeLowercase{\DTMshortweekdayname{##4}}\space
\number##3\relax\space
\MakeLowercase{\DTMshortmonthname{##2}}\space
\DTMtwodigits{\DTMtwodigits{##1}}
}
\renewcommand*\DTMDisplaydate[4]{
\DTMshortweekdayname{##4}\space
##3\space
\DTMshortmonthname{##2}\space
\DTMtwodigits{\DTMtwodigits{##1}}
}
}
\NewDocumentCommand\MarginContent{m}{
\marginpar{
\small\textsf{\mbox{#1}}
}\relax
}
\NewDocumentCommand\MarginDate{m}{
{
\DTMsetdatestyle{margindate}
\MarginContent{\DTMDate{#1}}
}
}
\NewDocumentCommand\AnnotatedSection{m m}{
\section{#1}
\MarginContent{#2}
}
\NewDocumentCommand\DatedSection{m m}{
\section{#1}
\MarginDate{#2}
}
|