summaryrefslogtreecommitdiff
path: root/Master/texmf-dist/tex/latex/unswthesis/mythesis.sty
diff options
context:
space:
mode:
Diffstat (limited to 'Master/texmf-dist/tex/latex/unswthesis/mythesis.sty')
-rw-r--r--Master/texmf-dist/tex/latex/unswthesis/mythesis.sty95
1 files changed, 95 insertions, 0 deletions
diff --git a/Master/texmf-dist/tex/latex/unswthesis/mythesis.sty b/Master/texmf-dist/tex/latex/unswthesis/mythesis.sty
new file mode 100644
index 00000000000..6e453ae2563
--- /dev/null
+++ b/Master/texmf-dist/tex/latex/unswthesis/mythesis.sty
@@ -0,0 +1,95 @@
+\usepackage{xspace}
+\usepackage{fancybox}
+\usepackage[dvips]{graphics}
+%\usepackage{float}
+
+%%%% Keywords
+\newcommand{\Elan}{\'Elan\xspace}
+\newcommand{\EPC}{\protect{\Elan Portable Computer}\xspace}
+\newcommand{\AmSC}{\mbox{Am386SC300}\xspace}
+\newcommand{\SCATsx}{\mbox{SCATsx}\xspace}
+\newcommand{\High}{\mbox{\textsc{High}}\xspace}
+\newcommand{\Low}{\mbox{\textsc{Low}}\xspace}
+\newcommand{\PCMCIA}{\mbox{PCMCIA}\xspace}
+\newcommand{\JEIDA}{\mbox{JEIDA}\xspace}
+
+%%%% Thesis details
+\thesistitle{The \Elan \AmSC \\ Portable Computer}
+\thesisauthor{John Zaitseff (2120715)}
+\thesisdegree{Bachelor of Engineering (Computer Engineering)}
+\thesisdate{October 1995}
+\thesissupervisor{A/Prof.\ Branko Celler}
+\thesisassessor{Dr.\ Tim Hesketh}
+
+%%%% Hyphenation exceptions
+\hyphenation{elec-tro-car-dio-gram elec-tro-car-dio-grams}
+
+%%%% Style definitions
+\newcommand{\pn}[1]{\mbox{\textsf{#1}}} % Pin name
+\newcommand{\pnob}[1]{\ensuremath{\overline{\pn{#1}}}} % Pin name, overline
+\newcommand{\pnm}[3]{\mbox{\pn{#1[#2:#3]}}} % Pin name (multiple)
+\newcommand{\pnmob}[3]{\pnob{\pnm{#1}{#2}{#3}}} % PN, mult, overline
+\newcommand{\pnt}[2]{\mbox{\pn{#1/}\pnob{#2}}} % Pin name (two)
+\newcommand{\vp}[1]{\normalfont\textit{#1}} % variable param.
+\newcommand{\sub}[2]{\mbox{#1\ensuremath% % subscripts
+ {{}_\mathrm{#2}}}}
+\newcommand{\addr}[1]{\mbox{#1h}} % Hex address
+\newcommand{\book}[1]{\textit{#1}} % Ref. to book
+\newcommand{\cdes}[1]{\mbox{#1}} % Comp. designator
+
+\DeclareTextFontCommand{\emph}{\em} % Emphasis
+\DeclareTextFontCommand{\so}{\bfseries} % Stand-out
+\DeclareTextFontCommand{\exemph}{\bfseries\em} % Extra emphasis
+
+%%%% Custom environments
+\newenvironment{pindescr}% % Pin description env.
+ {\begin{description}}%
+ {\end{description}}
+\newcommand{\iopin}[3]% % I/O Pin (item)
+ {\item [{#1}] \textbf{#2} (#3)\nopagebreak\par\nopagebreak}
+\newcommand{\pin}[2]%
+ {\item [{#1}] \textbf{#2}\nopagebreak\par\nopagebreak}
+\newcommand{\iopind}[6]% % Dual-definition I/O pin
+ {\item [{#1}] \textbf{#2} (#3)\nopagebreak%
+ \hspace{-\parsep}\hspace{-\itemsep}%
+ \item [{#4}] \textbf{#5} (#6)\nopagebreak\par\nopagebreak}
+
+
+\newenvironment{ctabular}[1]% % Centered tabular
+ {\par\begin{sspacing}\begin{center}\begin{tabular}{#1}}%
+ {\end{tabular}\end{center}\end{sspacing}}
+
+\newenvironment{indented}% % Indented on both margins
+ {\begin{list}{}{%
+ \setlength{\rightmargin}{\leftmargin}}%
+ \item[]\ignorespaces}%
+ {\unskip\end{list}}
+
+\newenvironment{boxedminipage}% % Boxed minipage
+ {\begin{Sbox}\begin{minipage}}%
+ {\end{minipage}\end{Sbox}\fbox{\TheSbox}}
+
+\newenvironment{ourfigure}%
+ {\begin{figure}[!htbp]\begin{center}}%
+ {\end{center}\end{figure}}
+
+\newenvironment{ourtable}%
+ {\begin{table}[!htpb]\begin{minipage}{\linewidth}\begin{center}}%
+ {\end{center}\end{minipage}\end{table}}
+
+%%%% Shortcuts
+\newcommand{\num}[2]{\mbox{#1\,#2}} % num with units
+\newcommand{\res}[2]{\mbox{#1\,#2\ensuremath{\Omega}}} % #1 #2 ohms resistance
+\newcommand{\bit}[1]{\mbox{#1-bit}} % #1-bit
+\newcommand{\threevolt}{\num{3.3}{V}\xspace} % 3.3 V
+\newcommand{\fivevolt}{\num{5}{V}\xspace} % 5 V
+\newcommand{\pll}[1]{\mbox{#1-PLL}} % xxx-PLL
+\newcommand{\vpx}{\_\vp{x}} % _x
+
+%%%% Symbols
+\newcommand{\yes}{\ensuremath{\surd}\xspace} % Tick mark
+\newcommand{\no}{\ensuremath{\times}\xspace} % Cross mark
+\newcommand{\by}{\ensuremath{\times}\xspace} % XXX x XXX
+\newcommand{\bAND}{\ensuremath{\wedge}\xspace} % Bool. /\
+\newcommand{\bOR}{\ensuremath{\vee}\xspace} % Bool. \/
+\newcommand{\becomes}{\ensuremath{\rightarrow}\xspace} % -->