blob: 38d365517dc542d206093c71c3c3a2b9ceb1585e (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
|
%%
%% This is file `omdoc.sty',
%% generated with the docstrip utility.
%%
%% The original source files were:
%%
%% omdoc.dtx (with options: `package')
%%
\NeedsTeXFormat{LaTeX2e}[1999/12/01]
\ProvidesPackage{omdoc}[2007/09/09 v0.3 OMDoc document Structure]
\RequirePackage{keyval}[1997/11/10]
\define@key{omgroup}{id}{\label{#1}}
\define@key{omgroup}{type}{\def\omgroup@type{#1}}
\define@key{omgroup}{display}{\def\omgroup@display{#1}}
\def\omgroup@flow{flow}
\newcount\section@level\section@level=1
\newenvironment{omgroup}[2][]% title
{\setkeys{omgroup}{#1}
\ifx\omgroup@display\omgroup@flow{#2}\else
\ifnum\section@level=1\section{#2}\fi
\ifnum\section@level=2\subsection{#2}\fi
\ifnum\section@level=3\subsubsection{#2}\fi
\ifnum\section@level=4\paragraph{#2}\fi
\advance\section@level by 1\fi}{}
\def\tgroup{\omgroup}\def\endtgroup{\endomgroup}
\define@key{stat}{id}{\def\st@id{#1}}
\define@key{stat}{display}{\def\st@display{#1}}
\define@key{stat}{for}{\def\stat@for{#1}}
\define@key{stat}{from}{\def\stat@from{#1}}
\define@key{stat}{type}{\def\stat@type{#1}}
\define@key{stat}{title}{\def\stat@title{#1}}
\define@key{stat}{continues}{\def\stat@continues{#1}}
\def\show@st@keys@aux{%
\@ifundefined{st@id}{}{\ifst@id{id=\st@id},\fi}%
\@ifundefined{st@display}{}{\ifst@display{display=\st@display}\fi}}
\def\clear@st@keys{\let\st@id=\relax\let\st@display=\relax}
\def\show@stat@keys@aux{%
\@ifundefined{st@for}{}{\ifstat@for{for=\stat@for},\fi}%
\@ifundefined{st@from}{}{\ifstat@from{from=\stat@from},\fi}%
\@ifundefined{st@type}{}{\ifstat@type{type=\stat@type},\fi}%
\@ifundefined{st@title}{}{\ifstat@title{title=\stat@title},\fi}%
\@ifundefined{st@continues}{}{\ifstat@continues{continues=\stat@continues}\fi}}
\def\show@stat@keys#1{\footnote{#1[\show@st@keys@aux\show@stat@keys@aux]}%
\clear@st@keys\clear@stat@keys}
\def\clear@stat@keys{\let\stat@for=\relax\let\stat@from=\relax%
\let\stat@type=\relax\let\stat@title=\relax\let\stat@continues=\relax}
\def\st@flow{flow}
\def\omtext@pre@skip{\smallskip}
\def\omtext@post@skip{}
\newenvironment{omtext}[1][]{\setkeys{stat}{#1}{% keyval args
\def\lec#1{\@lec{#1}}% so the trailing \par does not get into the way
\omtext@pre@skip\par\noindent
\@ifundefined{stat@title}{}{\ifx\st@display\st@flow\else\stDMemph{\stat@title}:\fi}}
\ifst@env\show@stat@keys{omtext:\stat@title}\fi
\omtext@post@skip}{}
\long\def\STRlabel#1#2{\STRlabeldef{#1}{#2}{#2}}
\def\STRcopy#1{\expandafter\ifx\csname STR@#1\endcsname\relax
\message{STR warning: reference #1 undefined!}
\else\csname STR@#1\endcsname\fi}
\long\def\@semantics[#1]#2#3{#2\STRlabeldef{#1}{#2}}
\def\STRlabeldef#1{\expandafter\gdef\csname STR@#1\endcsname}
\def\STRsemantics{\@ifnextchar[\@semantics{\@semantics[]}}
\define@key{phrase}{id}{}
\define@key{phrase}{style}{}
\define@key{phrase}{class}{}
\define@key{phrase}{index}{}
\define@key{phrase}{verbalizes}{}
\define@key{phrase}{type}{}
\newenvironment{phrase}[1][]{\setkeys{phrase}{#1}}{}
\def\nlex#1{\green{\sl{#1}}}
\def\nlcex#1{*\green{\sl{#1}}}
\def\inlinequote#1{``{\sl{#1}}''}
\def\blue#1{\textcolor{blue}{#1}}
\def\red#1{\textcolor{red}{#1}}
\def\green#1{\textcolor{green}{#1}}
\def\cyan#1{\textcolor{cyan}{#1}}
\def\magenta#1{\textcolor{magenta}{#1}}
\def\brown#1{\textcolor{brown}{#1}}
\def\yellow#1{\textcolor{yellow}{#1}}
\def\omspace#1{\hspace*{#1}}
\endinput
%%
%% End of file `omdoc.sty'.
|