\ProvidesPackage{ecg} % (c) Benus Becker (benusb@gmail.com). % please drop me a mail if you do any enhancements. % % Example % \schema{Into}{ % \subcaseof{Trajector-Landmark} \\ % \evokesas{Source-Path-Goal} s \\ % \roles{ % \typed {trajector} {Entity} \\ % \typed {landmark} {Container} % } % \constraints{ % \identconstr {trajector} {s.trajector} \\ % \identconstr {s.source} {landmark.exterior} \\ % \identconstr {s.goal} {landmark.interior} % } % } \usepackage{indent} \usepackage{xifthen} \newcommand\inoptionalindention[1]{ \ifthenelse{\isempty{#1}}{}{ \begin{indentation}{1em}{0em} #1 \end{indentation}} } \newcommand\entry[2]{ \textbf{#1} \inoptionalindention{#2} } \newcommand\entrytype[3]{ \textbf{#1} : #2 \inoptionalindention{#3} } \newcommand\entrynamed[3]{ \textbf{#1} #2 \inoptionalindention{#3} } \newcommand\construction[2]{ \tiny \vspace{0.5em} \noindent\hrulefill \\ \noindent\entrynamed{construction}{#1}{#2} \hrulefill \vspace{0.5em} } \newcommand\schema[2]{ \tiny \vspace{0.5em} \noindent\hrulefill \\ \noindent\entrynamed{schema}{#1}{#2} \hrulefill \vspace{0.5em} } \newcommand\constructional[1]{\entry {constructional} {#1}} \newcommand\roles[1]{\entry{roles}{#1} } \newcommand\constraints[1]{\entry{constraints}{#1} } \newcommand\formpole[1]{\entry{form}{#1}} \newcommand\formpoletype[2]{\entrytype{form}{#1}{#2}} \newcommand\meaningpole[1]{\entry{meaning}{#1}} \newcommand\meaningpoletype[2]{\entrytype{meaning}{#1}{#2}} \newcommand\typed[2]{#1 : #2} \newcommand\subcaseof[1]{\textbf{subcase of} #1 } \newcommand\evokesas[2]{\textbf{evokes} #1 \textbf{as} #2 } \newcommand\evokes[1]{\entry {evokes} {#1}} \newcommand\schemaas[2]{#1 \textbf{as} #2} \newcommand\fillerconstr[2]{#1 $\leftarrow$ #2 } \newcommand\identconstr[2]{#1 $\leftrightarrow$ #2 } \newcommand\mean{$_m$} \newcommand\form{$_f$} \newcommand\self{\textbf{self}} \newcommand\formrel[3]{#1 \texttt{#2} #3}