aboutsummaryrefslogtreecommitdiffstats
path: root/csci5801/usecases.sty
diff options
context:
space:
mode:
authorMatt Strapp <matt@mattstrapp.net>2021-10-06 16:46:28 -0500
committerMatt Strapp <matt@mattstrapp.net>2021-10-06 16:46:28 -0500
commit6cf8184cf6b8296bf66be59fa33fc868f4e6d0c2 (patch)
tree1aab0381e12bcf43bf32df39418fb58d76d8ba2b /csci5801/usecases.sty
parentadd templates (diff)
downloadhomework-6cf8184cf6b8296bf66be59fa33fc868f4e6d0c2.tar
homework-6cf8184cf6b8296bf66be59fa33fc868f4e6d0c2.tar.gz
homework-6cf8184cf6b8296bf66be59fa33fc868f4e6d0c2.tar.bz2
homework-6cf8184cf6b8296bf66be59fa33fc868f4e6d0c2.tar.lz
homework-6cf8184cf6b8296bf66be59fa33fc868f4e6d0c2.tar.xz
homework-6cf8184cf6b8296bf66be59fa33fc868f4e6d0c2.tar.zst
homework-6cf8184cf6b8296bf66be59fa33fc868f4e6d0c2.zip
Start 5801a1
Diffstat (limited to 'csci5801/usecases.sty')
-rw-r--r--csci5801/usecases.sty64
1 files changed, 64 insertions, 0 deletions
diff --git a/csci5801/usecases.sty b/csci5801/usecases.sty
new file mode 100644
index 0000000..c31fd51
--- /dev/null
+++ b/csci5801/usecases.sty
@@ -0,0 +1,64 @@
+%% Use Cases Style File
+%% Created by Tom Desair (http://www.tomdesair.com)
+%% Downloadable at: http://www.tomdesair.com/downloads/use-case-latex-template.zip
+%% Date Modified: 03/04/2012
+%
+% This work may be distributed and/or modified under the
+% conditions of the LaTeX Project Public License, either version 1.3
+% of this license or (at your option) any later version.
+% The latest version of this license is in
+% http://www.latex-project.org/lppl.txt
+% and version 1.3 or later is part of all distributions of LaTeX
+% version 2005/12/01 or later.
+
+%-------------------------------------------------------------------------------
+% Required Packages
+%-------------------------------------------------------------------------------
+\usepackage{booktabs}
+\usepackage{multirow}
+\usepackage{longtable}
+
+%-------------------------------------------------------------------------------
+% \addtitle command: add the title of the use case
+%-------------------------------------------------------------------------------
+\newcommand\addtitle[2]{\hline \\ [-1.5ex] \textbf{#1} &\textbf{#2}\\ [1ex] \hline \\ [-1.5ex]}
+\newcommand\tabularhead{\begin{longtable}{lp{8.9cm}}
+}
+
+%-------------------------------------------------------------------------------
+% \addfield command: add a property of the use case
+%-------------------------------------------------------------------------------
+\newcommand\addfield[2]{\textit{#1} &#2\\ [1ex] \hline \\ [-1.3ex] }
+
+%-------------------------------------------------------------------------------
+% \addscenario command: add the main (or alternative) scenario
+% of the use case
+%-------------------------------------------------------------------------------
+\newcommand\addscenario[2]{
+\multicolumn{2}{l}{\textit{#1}} \\
+\multicolumn{2}{l}{
+\begin{minipage}[t]{13.2cm}
+ \begin{enumerate} #2 \end{enumerate}
+ \vspace{1.3ex}
+\end{minipage}
+} \\ [1ex] \hline \\ [-1.5ex] }
+
+%-------------------------------------------------------------------------------
+% \additemizedfield command: add a field with an item list
+%-------------------------------------------------------------------------------
+\newcommand\additemizedfield[2]{
+ \begin{minipage}[t][][t]{3.5cm}
+ \textit{#1}
+ \vspace{1.3ex}
+ \end{minipage}%
+ &
+ \begin{minipage}[t][][t]{8.9cm}
+ \begin{itemize} #2 \end{itemize}
+ \vspace{1.5ex}
+ \end{minipage}\\ [1ex] \hline \\ [-1.5ex] }
+
+%-------------------------------------------------------------------------------
+% Definition of the use case environment
+%-------------------------------------------------------------------------------
+\newenvironment{usecase}{\tabularhead}
+{\end{longtable}}