A simple LaTeX class/style that mimics the layout of OMG's UML standards in general and the OCL standard in particular.
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

90 lines
2.9 KiB

The \LaTeX{} style \texttt{omg.sty} tries to mimic the layout used by
the OMG for the UML/OCL standard documents. To achieve this, the style
\item sets the paper size to 8.28x11 inch
\item sets the text size to 6.7x8 inch
\item uses the PostScript fonts Times Roman, Helvetica, and Courier
\item formats paragraphs without initial indentation and ragged
right formatting
Note that this style works only in combination with one of the
KomaScript classes, e.g., \texttt{scrbook} (replaces \texttt{book}) or
\texttt{scrreprt} (replaces \texttt{report}). As shorthands, this
package also provides the \texttt{omgrpt} class.
Moreover, \texttt{omg.sty} provides the following \LaTeX-commands:
\item New commands for chapters/sections:
\item \verb|\oclHeadingOne{Examples}| for top-level sections
(chapters), e.g., \autoref{ocl-1:examples} or ``9 Concrete
Syntax''% in~\cite{omg:ocl:2014}.
\item \verb|\oclHeadingTwo{Examples}| for second-level sections,
e.g., \autoref{ocl-2:examples} or ``9.1 Structure of the Concrete
Syntax''% in~\cite{omg:ocl:2014}.
\item \verb|\oclHeadingThree{Examples}| for third-level sections,
e.g., \autoref{ocl-3:examples} or ``9.2.1 Parsing''% in~\cite{omg:ocl:2014}.
\item \verb|\oclHeadingFour{Examples}| for fourth-level sections,
e.g., \autoref{ocl-4:examples} (should be used carefully).
\item \verb|\oclHeadingZero{Examples}| for fourth-level sections
without numbering,
e.g., \autoref{ocl-0:examples} or ``Abstract syntax mapping'' (in
``9.4.1 ExpressionInOclCS'')% in~\cite{omg:ocl:2014}).
\item New environments
% ocl-definition e.g. "ExpressionInOclCS.ast : OclExpression" as in 9.3.1
\item \verb| \begin{oclDefintion} \ldots \end{oclDefinition}| for
OCL definitions, e.g., ``ExpressionInOclCS.ast : OclExpression''
as in 9.3.1% in~\cite{omg:ocl:2014}.
ExpressionInOclCS.ast : OclExpression
\item New styles for emphasizing or highlighting texts
\item \verb|\oclEmph{declaration}| (italics) for declarations and segments of
OCL text, e.g., \oclEmph{declaration}.
\centerline{\Large\textbf{Example Figure}}
\caption{This is an example figure caption}
\centerline{\Large\textbf{Example Table}}
\caption{This is an example table caption}
\oclHeadingTwo{Lore Ipsum}\label{ocl-2:examples}
\oclHeadingThree{Lore Ipsum}\label{ocl-3:examples}
\oclHeadingFour{Lore Ipsum}\label{ocl-4:examples}
\oclHeadingZero{Lore Ipsum}\label{ocl-0:examples}