Add strict linked-product upsell controls, improve retrieval consistency, persist full storefront escalation transcripts, and upgrade ticket APIs/UI for complete thread visibility and safer human handoff workflows. Co-authored-by: Cursor <cursoragent@cursor.com>
266 lines
7.6 KiB
TeX
266 lines
7.6 KiB
TeX
%
|
|
% FAST-NUCES BS-FYP Thesis Class v0.3
|
|
% By Omar Usman Khan <omar.khan@nu.edu.pk
|
|
%
|
|
% Version History
|
|
% 0.1 2018-01-29
|
|
% 0.2 2018-02-27 UML support + some house-keeping
|
|
% 0.3 2018-05-21 Fixing header stuff and 3/4 author issues
|
|
|
|
\NeedsTeXFormat{LaTeX2e}
|
|
\ProvidesClass{fast-nuces-bs}[2018/05/21 v0.3 FAST-NUCES-BS FYP Thesis Class]
|
|
|
|
\DeclareOption*{\PassOptionsToClass{\CurrentOption}{book}}
|
|
\ProcessOptions\relax
|
|
\LoadClass[12pt, a4paper]{book}
|
|
|
|
|
|
\RequirePackage{amssymb, amsmath, amsthm, amstext}
|
|
\RequirePackage{tikz}
|
|
\RequirePackage{tocloft}
|
|
\RequirePackage[sort, numbers, authoryear]{natbib}
|
|
\RequirePackage{emptypage}
|
|
\RequirePackage{graphics}
|
|
\RequirePackage{graphicx}
|
|
\RequirePackage{fancyhdr}
|
|
\RequirePackage{eucal}
|
|
\RequirePackage{soul}
|
|
\RequirePackage[english]{babel}
|
|
%\RequirePackage[usenames, dvipsnames]{color}
|
|
\RequirePackage{etoolbox}
|
|
\RequirePackage[perpage]{footmisc}
|
|
\RequirePackage{ifthen}
|
|
\RequirePackage{ifpdf}
|
|
\RequirePackage[utf8]{inputenc}
|
|
\RequirePackage{epsfig}
|
|
\RequirePackage{setspace}
|
|
\RequirePackage[lmargin=3cm,rmargin=3cm,
|
|
tmargin=2.5cm,bmargin=2.5cm,
|
|
includefoot]{geometry}
|
|
\RequirePackage[bookmarks,
|
|
bookmarksopen = true,
|
|
bookmarksnumbered = true,
|
|
breaklinks = true,
|
|
linktocpage,
|
|
pagebackref = false,
|
|
ocgcolorlinks,
|
|
colorlinks = true,
|
|
linkcolor = blue,
|
|
urlcolor = blue,
|
|
citecolor = red,
|
|
anchorcolor = green,
|
|
hyperindex = true,
|
|
hyperfigures
|
|
]{hyperref}
|
|
|
|
|
|
|
|
% DELETE
|
|
%\RequirePackage{showframe}
|
|
% END DELETE
|
|
|
|
%Bibliography
|
|
\renewcommand{\bibname}{References}
|
|
|
|
%%%%%%%%%%%%%%%%%% General Settings
|
|
\linespread{1.15}
|
|
\setlength{\parindent}{0cm}
|
|
\setlength{\parskip}{0.5em}
|
|
\setcounter{secnumdepth}{3} % For TOC
|
|
\setcounter{tocdepth}{3}
|
|
\pdfcompresslevel=9
|
|
\DeclareGraphicsExtensions{.png, .jpg, .jpeg, .pdf, .eps, .ps}
|
|
%%%%%%%%%%%%%%%%%%
|
|
\newcommand{\signedby}[1]{%
|
|
\vspace{2cm}
|
|
\par\noindent\hspace{7.5cm}\hrulefill\par
|
|
\par\noindent\hspace{7.5cm}{\large #1}\par
|
|
\vspace{0cm}
|
|
\par\noindent\hspace{7.5cm}{\large Dated: }\par
|
|
}
|
|
\newcommand{\longsignedby}[1]{%
|
|
\par\hspace{.2cm}\begin{minipage}[t]{.55\columnwidth}
|
|
\noindent#1
|
|
\end{minipage}
|
|
\hfill
|
|
\begin{minipage}[t]{.35\columnwidth}
|
|
Signature: \hrulefill
|
|
\end{minipage}
|
|
}
|
|
%%%%%%%%%%%%%%%%%%
|
|
\newcommand{\yellow}[1]{\hl{#1}}
|
|
\newcommand{\comments}[1]{}
|
|
%%%%%%%%%%%%%%%%%%
|
|
\AfterEndPreamble{\maketitle}
|
|
%%%%%%%%%%%%%%%%%%
|
|
|
|
\pagestyle{fancy}
|
|
\renewcommand{\chaptermark}[1]{\markboth{\thechapter. #1 }{}}
|
|
\renewcommand{\sectionmark}[1]{\markright{\thesection\ #1}}
|
|
\fancyhf{}
|
|
\fancyhead[RO]{\footnotesize\rightmark}
|
|
\fancyhead[LE]{\footnotesize\leftmark}
|
|
\fancyfoot[C]{\thepage}
|
|
\fancypagestyle{plain}{
|
|
\fancyhead{}
|
|
\renewcommand{\headrulewidth}{0pt}
|
|
}
|
|
|
|
\newcommand{\submittedtext}{{A thesis submitted for the degree of}}
|
|
|
|
% Experiment With This:
|
|
\renewcommand{\@makechapterhead}[1]{%
|
|
\vspace*{60\p@}%
|
|
{\parindent \z@ \raggedright \normalfont
|
|
\vspace{5pt}% % add vertical space
|
|
\ifnum \c@secnumdepth >\m@ne
|
|
\Large\bfseries\scshape \@chapapp\space \thechapter % Chapter number
|
|
\par\nobreak
|
|
\vskip 20\p@
|
|
\fi
|
|
\interlinepenalty\@M
|
|
\Huge\bfseries \scshape #1\par % chapter title
|
|
\nobreak
|
|
\vskip 40\p@
|
|
}}
|
|
|
|
% DECLARATIONS
|
|
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
|
|
% The Roll Number of Student
|
|
\def\rollnumber#1{\gdef\@rollnumber{#1}}
|
|
% The year and term the degree will be officially conferred
|
|
\def\degreeyear#1{\gdef\@degreeyear{#1}}
|
|
\def\degreemonth#1{\gdef\@degreemonth{#1}}
|
|
% The full (unabbreviated) name of the degree
|
|
\def\degree#1{\gdef\@degree{#1}}
|
|
% The name of your college or department
|
|
\def\department#1{\gdef\@department{#1}}
|
|
\def\faculty#1{\gdef\@faculty{#1}}
|
|
% The name of your University
|
|
\def\university#1{\gdef\@university{#1}}
|
|
% Defining the crest
|
|
\def\crest#1{\gdef\@crest{#1}}
|
|
% Supervisor Name
|
|
\def\supervisor#1{\gdef\@supervisor{#1}}
|
|
\def\cosupervisor#1{\gdef\@cosupervisor{#1}}
|
|
\def\sessionduration#1{\gdef\@sessionduration{#1}}
|
|
% Author Names
|
|
\def\authorone#1#2{
|
|
\gdef\@authoronename{#1}
|
|
\gdef\@authoroneroll{#2}
|
|
}
|
|
\def\authortwo#1#2{
|
|
\gdef\@authortwoname{#1}
|
|
\gdef\@authortworoll{#2}
|
|
}
|
|
\def\authorthree#1#2{
|
|
\gdef\@authorthreename{#1}
|
|
\gdef\@authorthreeroll{#2}
|
|
}
|
|
\def\authorfour#1#2{
|
|
\gdef\@authorfourname{#1}
|
|
\gdef\@authorfourroll{#2}
|
|
}
|
|
% Degree Name
|
|
\def\degreename#1{\gdef\@degreename{#1}}
|
|
% Campus City
|
|
\def\campuscity#1{\gdef\@campuscity{#1}}
|
|
% Committee Examination Names
|
|
\def\internalexaminer#1{\gdef\@internalexaminer{#1}}
|
|
\def\externalexaminer#1#2{\gdef\@externalexaminer{#1\par\hspace{0cm}#2}}
|
|
% Dean Names
|
|
\def\deanname#1{\gdef\@deanname{#1}}
|
|
% Director Name
|
|
\def\directorname#1{\gdef\@directorname{#1}}
|
|
% HoD Name
|
|
\def\hodname#1{\gdef\@hodname{#1}}
|
|
% GPC Coordinator Name
|
|
\def\fypcoordinatorname#1{\gdef\@fypcoordinatorname{#1}}
|
|
% Acknowledgement Text
|
|
\def\acknowledge#1{\gdef\@acknowledge{#1}}
|
|
|
|
%%%%%%%%%%%%%%%%%%%%%%%%%
|
|
% Some Important Environments
|
|
\newenvironment{alwayssingle}{%
|
|
\@restonecolfalse\if@twocolumn\@restonecoltrue\onecolumn
|
|
\else\newpage\fi}
|
|
{\if@restonecol\twocolumn\else\newpage\fi}
|
|
|
|
\renewcommand{\maketitle}{%
|
|
\begin{alwayssingle}
|
|
\renewcommand{\footnotesize}{\small}
|
|
\renewcommand{\footnoterule}{\relax}
|
|
\thispagestyle{empty}
|
|
|
|
% Title Page
|
|
\begin{center}
|
|
{ \setstretch{1}
|
|
\par{\fontsize{24}{24}\selectfont \textbf{\@title}}\par
|
|
\vspace{1.5cm}
|
|
\par{\fontsize{14}{14}\selectfont Project Team}\\~\\
|
|
{\fontsize{19}{19}\selectfont
|
|
\begin{tabular}{lr}
|
|
\ifx\@authoronename\undefined ~ \else \@authoronename \fi &
|
|
\ifx\@authoroneroll\undefined ~ \else \@authoroneroll \fi \\
|
|
\ifx\@authortwoname\undefined ~ \else \@authortwoname \fi &
|
|
\ifx\@authortworoll\undefined ~ \else \@authortworoll \fi \\
|
|
\ifx\@authorthreename\undefined ~ \else \@authorthreename \fi &
|
|
\ifx\@authorthreeroll\undefined ~ \else \@authorthreeroll \fi \\
|
|
\ifx\@authorfourname\undefined ~ \else \@authorfourname \fi &
|
|
\ifx\@authorfourroll\undefined ~ \else \@authorfourroll \fi
|
|
\end{tabular}
|
|
}\par
|
|
\vspace{0.25cm}
|
|
\par{\fontsize{16}{16}\selectfont Session
|
|
}{\fontsize{16}{16}\selectfont\@sessionduration}\par
|
|
\vspace{0.75cm}
|
|
\ifx\@cosupervisor\undefined
|
|
\vspace{2.5cm}
|
|
\par{\fontsize{14}{14}\selectfont Supervised by}\\~\\
|
|
{\fontsize{19}{19}\selectfont \@supervisor}\par
|
|
\else
|
|
\vspace{0.5cm}
|
|
\par{\fontsize{14}{14}\selectfont Supervised by}\\~\\
|
|
{\fontsize{19}{19}\selectfont \@supervisor}\par
|
|
\vspace{0.5cm}
|
|
\par{\fontsize{14}{14}\selectfont Co-Supervised by}\\~\\
|
|
{\fontsize{19}{19}\selectfont \@cosupervisor}\par
|
|
\fi
|
|
\vspace{.5cm}
|
|
%\par{\fontsize{21}{21}\selectfont \textbf{Bachelors of \@degreename}}\par
|
|
%\vspace{1cm}
|
|
%\par{\fontsize{16}{16}\selectfont A thesis submitted in partial fulfillment\\of the
|
|
% requirements for the degree of \emph{Bachelors of \@degreename}\\at
|
|
% the \emph{National University of Computer and Emerging
|
|
% Sciences}}\par
|
|
%\vspace{1cm}
|
|
\begin{figure}[h]\centering
|
|
\includegraphics[width=.30\columnwidth]{ThesisFigs/FASTLogo}
|
|
\end{figure}
|
|
\vspace{0.5cm}
|
|
\par{\fontsize{17}{17}\selectfont \textbf{\@department}}\par
|
|
\vspace{0.5cm}
|
|
\par{\fontsize{17}{17}\selectfont \textbf{National University of
|
|
Computer and Emerging Sciences\\\@campuscity, Pakistan}}\par
|
|
\vspace{0.5cm}
|
|
\par{\fontsize{17}{17}\selectfont \textbf{\@degreemonth, \@degreeyear}}\par
|
|
}
|
|
\end{center}
|
|
\null\vfill
|
|
\clearpage
|
|
|
|
|
|
|
|
|
|
\tableofcontents
|
|
\clearpage
|
|
\listoffigures
|
|
\clearpage
|
|
\listoftables
|
|
\pagenumbering{arabic}
|
|
\setcounter{page}{0}
|
|
|
|
|
|
|
|
\end{alwayssingle}
|
|
} |