summaryrefslogtreecommitdiff
path: root/Master/texmf-dist/tex/latex/stex/cnx/cnx.cls
diff options
context:
space:
mode:
Diffstat (limited to 'Master/texmf-dist/tex/latex/stex/cnx/cnx.cls')
-rw-r--r--Master/texmf-dist/tex/latex/stex/cnx/cnx.cls98
1 files changed, 49 insertions, 49 deletions
diff --git a/Master/texmf-dist/tex/latex/stex/cnx/cnx.cls b/Master/texmf-dist/tex/latex/stex/cnx/cnx.cls
index d2035808d0b..3908c72b577 100644
--- a/Master/texmf-dist/tex/latex/stex/cnx/cnx.cls
+++ b/Master/texmf-dist/tex/latex/stex/cnx/cnx.cls
@@ -18,103 +18,103 @@
\ProcessOptions
\input{size10.clo}
\pagenumbering{roman}
-\omdaddkey{cnxmodule}{name}
+\addmetakey{cnxmodule}{name}
\srefaddidkey{cnxmodule}{id}
-\newenvironment{cnxmodule}[1][]{\omdsetkeys{cnxmodule}{#1}}{}
+\newenvironment{cnxmodule}[1][]{\metasetkeys{cnxmodule}{#1}}{}
\newenvironment{ccontent}{}{}
\newcounter{section}
\srefaddidkey{sectioning}{id}
\newenvironment{csection}[2][]%
{\stepcounter{section}\strut\\[1.5ex]\noindent%
{\Large\bfseries\arabic{section}.~{#2}}\\[1.5ex]
-\omdsetkeys{sectioning}{#1}}
+\metasetkeys{sectioning}{#1}}
{}
\newcounter{subsection}[section]
\newenvironment{csubsection}[2][]
{\refstepcounter{subsection}\strut\\[1ex]\noindent%
{\large\bfseries{\arabic{section}.\arabic{subsection}.~#2\\[1ex]}}%
-\omdsetkeys{sectioning}{#1}}%
+\metasetkeys{sectioning}{#1}}%
{}
\newcounter{subsubsection}[subsection]
\newenvironment{csubsubsection}[2][]
{\refstepcounter{subsubsection}\strut\\[.5ex]\noindent
{\bfseries\arabic{section}.\arabic{subsection}.\arabic{subsubsecction}~#2\\[.5ex]}%
-\omdsetkeys{sectioning}{#1}}{}
+\metasetkeys{sectioning}{#1}}{}
\srefaddidkey{para}{id}
-\newenvironment{cpara}[1][]{\omdsetkeys{para}{#1}}{\par}
+\newenvironment{cpara}[1][]{\metasetkeys{para}{#1}}{\par}
\srefaddidkey{note}
-\omdaddkey{note}{type}
+\addmetakey{note}{type}
\newenvironment{cnote}[1][]%
-{\omdsetkeys{note}{#1}\par\noindent\strut\hfill\begin{minipage}{10cm}{\bfseries\note@type}:~}%
+{\metasetkeys{note}{#1}\par\noindent\strut\hfill\begin{minipage}{10cm}{\bfseries\note@type}:~}%
{\end{minipage}\hfill\strut\par}
\srefaddidkey{equation}{id}
\newenvironment{cequation}[1][]%
-{\omdsetkeys{equation}{#1}\begin{displaymath}}
+{\metasetkeys{equation}{#1}\begin{displaymath}}
{\end{displaymath}}
\srefaddidkey{cquote}
-\omdaddkey{cquote}{type}
-\omdaddkey{cquote}{src}
+\addmetakey{cquote}{type}
+\addmetakey{cquote}{src}
\newenvironment{cquote}[1][]{%
-\omdsetkeys{cquote}{#1}\begin{center}\begin{minipage}{.8\textwidth}}{\end{minipage}\end{center}}
+\metasetkeys{cquote}{#1}\begin{center}\begin{minipage}{.8\textwidth}}{\end{minipage}\end{center}}
\newcommand{\litem}[2][]{\item[#1]\label{#2}}
\srefaddidkey{example}
-\omdaddkey{example}{name}
-\newenvironment{cexample}[1][]{\omdsetkeys{example}{#1}
+\addmetakey{example}{name}
+\newenvironment{cexample}[1][]{\metasetkeys{example}{#1}
{\ifx\example@name\@empty\else\noindent\bfseries{\example@name}\fi}}
{}
\newcounter{cexercise}
\srefaddidkey{cexercise}
-\omdaddkey{cexercise}{name}
-\newenvironment{cexercise}[1][]{\omdsetkeys{cexercise}{#1}
+\addmetakey{cexercise}{name}
+\newenvironment{cexercise}[1][]{\metasetkeys{cexercise}{#1}
{\ifx\cexercise@name\@empty\else\stepcounter{cexercise}\noindent\bfseries{\cexercise@name~\arabic{cexercise}}\fi}}
{}
\srefaddidkey{cproblem}
-\newenvironment{cproblem}[1][]{\omdsetkeys{cproblem}{#1}}{}{}
+\newenvironment{cproblem}[1][]{\metasetkeys{cproblem}{#1}}{}{}
\srefaddidkey{csolution}
-\newenvironment{csolution}[1][]{\omdsetkeys{csolution}{#1}}{\par\noindent\bfseries{Solution}}{}
+\newenvironment{csolution}[1][]{\metasetkeys{csolution}{#1}}{\par\noindent\bfseries{Solution}}{}
\srefaddidkey{rule}
-\omdaddkey{rule}{name}
-\omdaddkey{rule}{type}
-\newenvironment{crule}[1][]{\omdsetkeys{rule}{#1}%
+\addmetakey{rule}{name}
+\addmetakey{rule}{type}
+\newenvironment{crule}[1][]{\metasetkeys{rule}{#1}%
{\noindent\bfseries{\rule@type:}\ifx\rule@name\@empty\else~(\rule@name)\fi}}%
{}
\srefaddidkey{statement}
-\newenvironment{statement}[1][]{\omdsetkeys{statement}{#1}}{}
+\newenvironment{statement}[1][]{\metasetkeys{statement}{#1}}{}
\srefaddidkey{proof}
-\newenvironment{proof}[1][]{\omdsetkeys{proof}{#1}}{}
+\newenvironment{proof}[1][]{\metasetkeys{proof}{#1}}{}
\srefaddidkey{definition}
-\omdaddkey{definition}{term}
-\omdaddkey{definition}{seealso}
-\newenvironment{definition}[1][]{\omdsetkeys{definition}{#1}{\noindent\bfseries{Definition:}}}{}
+\addmetakey{definition}{term}
+\addmetakey{definition}{seealso}
+\newenvironment{definition}[1][]{\metasetkeys{definition}{#1}{\noindent\bfseries{Definition:}}}{}
\srefaddidkey{meaning}
-\newenvironment{cmeaning}[1][]{\omdsetkeys{meaning}{#1}}{}
-\omdaddkey{cnxn}{document}
-\omdaddkey{cnxn}{target}
-\omdaddkey{cnxn}{strength}
+\newenvironment{cmeaning}[1][]{\metasetkeys{meaning}{#1}}{}
+\addmetakey{cnxn}{document}
+\addmetakey{cnxn}{target}
+\addmetakey{cnxn}{strength}
\newcommand{\cnxn}[2][]% keys, link text
-{\omdsetkeys{cnxn}{#1}{\underline{#2}}\footnote{{\ttfamily\@ifx\cnxn@document\@empty\cnxn@document\fi\#\cnxn@target}}}
+{\metasetkeys{cnxn}{#1}{\underline{#2}}\footnote{{\ttfamily\@ifx\cnxn@document\@empty\cnxn@document\fi\#\cnxn@target}}}
\newcommand\@makefntext[1]{\parindent 1em\noindent\hb@xt@1.8em{\hss\@makefnmark}#1}
-\omdaddkey{link}{src}
-\newcommand{\link}[2][]{\omdsetkeys{link}{#1}\underline{#2}}
+\addmetakey{link}{src}
+\newcommand{\link}[2][]{\metasetkeys{link}{#1}\underline{#2}}
\srefaddidkey{cfigure}
-\omdaddkey{cfigure}{type}
-\omdaddkey{cfigure}{caption}
+\addmetakey{cfigure}{type}
+\addmetakey{cfigure}{caption}
\newcounter{figure}
\newcommand{\cfigure}[3][]{% cnx_keys, graphicx_keys, path
\begin{center}%
\includegraphics[#2]{#3}%
-\omdsetkeys{cfigure}{#1}\sref@target%
+\metasetkeys{cfigure}{#1}\sref@target%
\ifx\cfigure@caption\@empty\else
\par\noindent Figure\refstepcounter{figure} {\arabic{figure}}: \cfigure@caption%
\protected@edef\@currentlabel{\arabic{figure}}%
\sref@label@id{Figure \thefigure}\fi
\end{center}}
-\omdaddkey{ccite}{src}
-\newcommand{\ccite}[2][]{\omdsetkeys{ccite}{#1}\emph{#2}}
+\addmetakey{ccite}{src}
+\newcommand{\ccite}[2][]{\metasetkeys{ccite}{#1}\emph{#2}}
\newcommand{\term}[1]{{\bfseries\underline{#1}}}
-\omdaddkey{metadata}{version}
-\omdaddkey{metadata}{created}
-\omdaddkey{metadata}{revised}
+\addmetakey{metadata}{version}
+\addmetakey{metadata}{created}
+\addmetakey{metadata}{revised}
\newsavebox{\metadatabox}
\newenvironment{metadata}[1][]%
{\noindent\hfill\begin{lrbox}{\metadatabox}
@@ -124,14 +124,14 @@
\newenvironment{authorlist}{{\bfseries{Authors}:~}}{\\[1ex]}
\newenvironment{maintainerlist}{{\bfseries{Maintainers}:~}}{\\[1ex]}
\srefaddidkey{auth}
-\omdaddkey{auth}{honorific}
-\omdaddkey{auth}{firstname}
-\omdaddkey{auth}{other}
-\omdaddkey{auth}{surname}
-\omdaddkey{auth}{lineage}
-\omdaddkey{auth}{email}
-\newcommand{\cnxauthor}[1][]{\omdsetkeys{auth}{#1}\auth@first~\auth@sur,}
-\newcommand{\maintainer}[1][]{\omdsetkeys{auth}{#1}\auth@first~\auth@sur,}
+\addmetakey{auth}{honorific}
+\addmetakey{auth}{firstname}
+\addmetakey{auth}{other}
+\addmetakey{auth}{surname}
+\addmetakey{auth}{lineage}
+\addmetakey{auth}{email}
+\newcommand{\cnxauthor}[1][]{\metasetkeys{auth}{#1}\auth@first~\auth@sur,}
+\newcommand{\maintainer}[1][]{\metasetkeys{auth}{#1}\auth@first~\auth@sur,}
\newenvironment{keywordlist}{\bfseries{Keywords}:~}{\\[1ex]}
\newcommand{\keyword}[1]{#1,}
\newenvironment{cnxabstract}%