diff options
Diffstat (limited to 'Master/texmf-dist/tex/latex/stex/dcm/dcm.sty')
-rw-r--r-- | Master/texmf-dist/tex/latex/stex/dcm/dcm.sty | 47 |
1 files changed, 25 insertions, 22 deletions
diff --git a/Master/texmf-dist/tex/latex/stex/dcm/dcm.sty b/Master/texmf-dist/tex/latex/stex/dcm/dcm.sty index a7cf322fcaf..0f92fe09309 100644 --- a/Master/texmf-dist/tex/latex/stex/dcm/dcm.sty +++ b/Master/texmf-dist/tex/latex/stex/dcm/dcm.sty @@ -8,27 +8,29 @@ %% \NeedsTeXFormat{LaTeX2e}[1999/12/01] \ProvidesPackage{dcm}[2010/06/25 v0.3 Dublin Core Metadata] +\DeclareOption{showmeta}{\PassOptionsToPackage{\CurrentOption}{metakeys}} +\ProcessOptions \RequirePackage{sref} -\omdaddkey{dcm@person}{id} -\omdaddkey{dcm@person}{birthdate} -\omdaddkey{dcm@person}{email} -\omdaddkey{dcm@person}{url} -\omdaddkey{dcm@person}{affiliation} -\omdaddkey{dcm@person}{personaltitle} -\omdaddkey{dcm@person}{academictitle} -\omdaddkey{dcm@person}{department} -\omdaddkey{dcm@person}{workaddress} -\omdaddkey{dcm@person}{privaddress} -\omdaddkey{dcm@person}{worktel} -\omdaddkey{dcm@person}{privtel} -\omdaddkey{dcm@person}{workfax} -\omdaddkey{dcm@person}{privfax} -\omdaddkey{dcm@person}{worktelfax} -\omdaddkey{dcm@person}{privtelfax} +\addmetakey{dcm@person}{id} +\addmetakey{dcm@person}{birthdate} +\addmetakey{dcm@person}{email} +\addmetakey{dcm@person}{url} +\addmetakey{dcm@person}{affiliation} +\addmetakey{dcm@person}{personaltitle} +\addmetakey{dcm@person}{academictitle} +\addmetakey{dcm@person}{department} +\addmetakey{dcm@person}{workaddress} +\addmetakey{dcm@person}{privaddress} +\addmetakey{dcm@person}{worktel} +\addmetakey{dcm@person}{privtel} +\addmetakey{dcm@person}{workfax} +\addmetakey{dcm@person}{privfax} +\addmetakey{dcm@person}{worktelfax} +\addmetakey{dcm@person}{privtelfax} \def\dcm@pers@def#1#2{\expandafter\xdef\csname dcm@person@\dcm@person@id @#1\endcsname{#2}} \def\dcm@pers@ref#1#2{\csname dcm@person@#1@#2\endcsname} \let\dcm@persons=\relax -\newcommand{\DCMperson}[2][]{\omdsetkeys{dcm@person}{#1} +\newcommand{\DCMperson}[2][]{\metasetkeys{dcm@person}{#1} \ifx\dcm@person@id\@empty\@latex@warning{key 'id' undefined in DCMperson}\else \dcm@pers@def{name}{#2} \dcm@pers@def{email}{\dcm@person@email} @@ -53,7 +55,7 @@ \newenvironment{DCmetadata}[1][]% {\def\@style{#1}} % to set the way things are presented. {\@ifundefined{dcm@\@style @block}{\message{style {\@style} not defined}}{\csname dcm@\@style @block\endcsname}} -\def\dc@mtabline#1#2{\xdef\tab@line{}% +\def\dcm@tabline#1#2{\xdef\tab@line{}% \@for\@p:={#1}\do{\xdef\tab@line{\tab@line&\dcm@pers@ref\@p{#2}}} \tab@line} \def\dcm@atabline#1#2#3{\xdef\tab@line{}% @@ -132,10 +134,10 @@ via the macro \protect\DCMperson, before you can use it in \protect\DCMcontribut \def\dcm@maketitle@block{\def\@title{\dcm@title\ifx\dcm@subtitle\empty\else\newline\dcm@subtitle\fi} \def\@author{\dcm@authorblock}\def\@date{\dcm@date}\maketitle} \srefaddidkey{dcm@sect} -\omdaddkey{dcm@sect}{short} -\omdaddkey{dcm@sect}{creators} -\omdaddkey{dcm@sect}{contributors} -\def\dcm@section#1#2#3{\def\dcm@sect@type{#1}\omdsetkeys{dcm@sect}{#3}\sref@target% +\addmetakey{dcm@sect}{short} +\addmetakey{dcm@sect}{creators} +\addmetakey{dcm@sect}{contributors} +\def\dcm@section#1#2#3{\def\dcm@sect@type{#1}\metasetkeys{dcm@sect}{#3}\sref@target% \ifx\dcm@sect@short\@empty\csname #1\endcsname{#2}% \else\csname #1\endcsname[\dcm@sect@short]{#2}\fi~% \@ifundefined{sect@style} % @@ -170,6 +172,7 @@ T\ifnum\count1>9\else0\fi\the\count1:\ifnum\count3>9\else0\fi\the\count3:00Z} \def\dcm@section@heading{Section} \def\dcm@subsection@heading{Subsection} \def\dcm@subsubsection@heading{Subsubsection} +\def\dcm@paragraph@heading{Paragraph} \endinput %% %% End of file `dcm.sty'. |