summaryrefslogtreecommitdiff
path: root/Master/texmf-dist/tex/latex/stex/omtext/omtext.sty
diff options
context:
space:
mode:
Diffstat (limited to 'Master/texmf-dist/tex/latex/stex/omtext/omtext.sty')
-rw-r--r--Master/texmf-dist/tex/latex/stex/omtext/omtext.sty35
1 files changed, 18 insertions, 17 deletions
diff --git a/Master/texmf-dist/tex/latex/stex/omtext/omtext.sty b/Master/texmf-dist/tex/latex/stex/omtext/omtext.sty
index ccb306c2d0a..6896df9177b 100644
--- a/Master/texmf-dist/tex/latex/stex/omtext/omtext.sty
+++ b/Master/texmf-dist/tex/latex/stex/omtext/omtext.sty
@@ -8,6 +8,7 @@
%%
\NeedsTeXFormat{LaTeX2e}[1999/12/01]
\ProvidesPackage{omtext}[2010/06/25 v1.0 OMDoc Text Fragments]
+\DeclareOption{showmeta}{\PassOptionsToPackage{\CurrentOption}{metakeys}}
\newif\ifindex\indextrue
\DeclareOption{noindex}{\indexfalse}
\ProcessOptions
@@ -15,31 +16,32 @@
\RequirePackage{sref}
\RequirePackage{comment}
\srefaddidkey{omtext}
-\omdaddkey[]{omtext}{functions}
-\omdaddkey{omtext}{display}
-\omdaddkey{omtext}{for}
-\omdaddkey{omtext}{from}
-\omdaddkey{omtext}{type}
-\omdaddkey{omtext}{title}
-\omdaddkey{omtext}{theory}
-\omdaddkey{omtext}{continues}
-\omdaddkey{omtext}{verbalizes}
+\addmetakey[]{omtext}{functions}
+\addmetakey*{omtext}{display}
+\addmetakey{omtext}{for}
+\addmetakey{omtext}{from}
+\addmetakey{omtext}{type}
+\addmetakey*{omtext}{title}
+\addmetakey*{omtext}{start}
+\addmetakey{omtext}{theory}
+\addmetakey{omtext}{continues}
+\addmetakey{omtext}{verbalizes}
\def\st@flow{flow}
\def\omtext@pre@skip{\smallskip}
\def\omtext@post@skip{}
\providecommand{\stDMemph}[1]{\textbf{#1}}
-\newenvironment{omtext}[1][]{\bgroup\omdsetkeys{omtext}{#1}\sref@label@id{this paragraph}%
+\newenvironment{omtext}[1][]{\bgroup\metasetkeys{omtext}{#1}\sref@label@id{this paragraph}%
\def\lec##1{\@lec{##1}}
\ifx\omtext@display\st@flow\else\omtext@pre@skip\par\noindent%
\ifx\omtext@title\@empty\else\stDMemph{\omtext@title}: \fi\fi\ignorespaces}
{\egroup\omtext@post@skip}
\srefaddidkey{phrase}
-\omdaddkey{phrase}{style}
-\omdaddkey{phrase}{class}
-\omdaddkey{phrase}{index}
-\omdaddkey{phrase}{verbalizes}
-\omdaddkey{phrase}{type}
-\newenvironment{phrase}[1][]{\omdsetkeys{phrase}{#1}}{}
+\addmetakey{phrase}{style}
+\addmetakey{phrase}{class}
+\addmetakey{phrase}{index}
+\addmetakey{phrase}{verbalizes}
+\addmetakey{phrase}{type}
+\newenvironment{phrase}[1][]{\metasetkeys{phrase}{#1}}{}
\def\nlex#1{\green{\sl{#1}}}
\def\nlcex#1{*\green{\sl{#1}}}
\def\@sinlinequote#1{``{\sl{#1}}''}
@@ -71,7 +73,6 @@
\ifindex\ifx\@test\@empty\index{#2!#3!#4}\else\index{#1@#2!#3!#4}\fi\index{#3!#2 (#1)}\fi}
\newcommand{\atwinalt}[5][]{#2\@atwin[#1]{#3}{#4}{#4}}
\newcommand{\atwintoo}[4][]{{#2 #3 #4}\@atwin[#1]{#2}{#3}{#4}} % and use it too
-\def\printindex{\IfFileExists{\jobname.ind}{\input{\jobname.ind}}{}}
\def\omspace#1{\hspace*{#1}}
\endinput
%%