diff options
author | Matt Strapp <matt@mattstrapp.net> | 2022-01-11 10:18:56 -0600 |
---|---|---|
committer | Matt Strapp <matt@mattstrapp.net> | 2022-01-11 10:18:56 -0600 |
commit | 6c9b79537f03115c5e2d4883fd407a6ac870bffd (patch) | |
tree | a26cecd37bb254795e8a847ca7235d5e7236ff54 /OLD/csci5801/usecases.sty | |
parent | finish 3606 (diff) | |
download | homework-6c9b79537f03115c5e2d4883fd407a6ac870bffd.tar homework-6c9b79537f03115c5e2d4883fd407a6ac870bffd.tar.gz homework-6c9b79537f03115c5e2d4883fd407a6ac870bffd.tar.bz2 homework-6c9b79537f03115c5e2d4883fd407a6ac870bffd.tar.lz homework-6c9b79537f03115c5e2d4883fd407a6ac870bffd.tar.xz homework-6c9b79537f03115c5e2d4883fd407a6ac870bffd.tar.zst homework-6c9b79537f03115c5e2d4883fd407a6ac870bffd.zip |
Resume and rearrange
Signed-off-by: Matt Strapp <matt@mattstrapp.net>
Diffstat (limited to 'OLD/csci5801/usecases.sty')
-rw-r--r-- | OLD/csci5801/usecases.sty | 64 |
1 files changed, 64 insertions, 0 deletions
diff --git a/OLD/csci5801/usecases.sty b/OLD/csci5801/usecases.sty new file mode 100644 index 0000000..c31fd51 --- /dev/null +++ b/OLD/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} \\ [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}} |