Skip to content

Commit

Permalink
Removed dependencies on obsolete packages
Browse files Browse the repository at this point in the history
  • Loading branch information
Krishna Kumar committed Mar 24, 2014
1 parent a7f123b commit 4b709fe
Show file tree
Hide file tree
Showing 9 changed files with 77 additions and 64 deletions.
6 changes: 3 additions & 3 deletions Chapter1/chapter1.tex
Original file line number Diff line number Diff line change
Expand Up @@ -20,9 +20,9 @@ \section{What is Loren Ipsum? Title with Math \texorpdfstring{$\sigma$}{[sigma]}

A {\em \LaTeX{} class file}\index{\LaTeX{} class file@LaTeX class file} is a file, which holds style information for a particular \LaTeX{}.

\begin{eqnarray}
CIF: \hspace*{5mm}F_0^j(a) &=& \frac{1}{2\pi \iota} \oint_{\gamma} \frac{F_0^j(z)}{z - a} dz
\end{eqnarray}
\begin{align}
CIF: \hspace*{5mm}F_0^j(a) = \frac{1}{2\pi \iota} \oint_{\gamma} \frac{F_0^j(z)}{z - a} dz
\end{align}

\nomenclature[z-cif]{$CIF$}{Cauchy's Integral Formula} % first letter Z is for Acronyms
\nomenclature[a-F]{$F$}{complex function} % first letter A is for Roman symbols
Expand Down
8 changes: 4 additions & 4 deletions Chapter2/chapter2.tex
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ \chapter{My Second Chapter}
I'm going to randomly include a picture Figure~\ref{fig:minion}.


If you have trouble viewing this document contact Krishna \href{mailto:[email protected]}{[email protected]}.
If you have trouble viewing this document contact Krishna at: \href{mailto:[email protected]}{[email protected]} or raise an issue at \url{https://github.com/kks32/phd-thesis-template/}


\begin{figure}[htbp!]
Expand All @@ -37,7 +37,7 @@ \section*{Enumeration}
\item The first subtopic is silly
\item The second subtopic is stupid
\end{enumerate}
\item The third topic is dullest
\item The third topic is the dullest
\end{enumerate}

\section*{itemize}
Expand All @@ -48,7 +48,7 @@ \section*{itemize}
\item The first subtopic is silly
\item The second subtopic is stupid
\end{itemize}
\item The third topic is dullest
\item The third topic is the dullest
\end{itemize}

\section*{description}
Expand All @@ -59,7 +59,7 @@ \section*{description}
\item[The first subtopic] is silly
\item[The second subtopic] is stupid
\end{description}
\item[The third topic] is dullest
\item[The third topic] is the dullest
\end{description}


Expand Down
33 changes: 20 additions & 13 deletions Classes/PhDThesisPSnPDF.cls
Original file line number Diff line number Diff line change
Expand Up @@ -245,7 +245,7 @@ supported!}


% ************************** Layout and Formatting *****************************
\def\pdfshellescape{1}
\renewcommand\pdfshellescape{1}
\RequirePackage{lscape} % Supports Landscape Layout
\RequirePackage{setspace} % Define line spacing in paragraph
\RequirePackage{calc} % To calculate vertical spacing
Expand Down Expand Up @@ -277,14 +277,6 @@ supported!}
\fi


% ************************ URL Package and Definition **************************
\RequirePackage{url}
% Redefining urlstyle to use smaller fontsize in References with URLs
\newcommand{\url@leostyle}{%
\@ifundefined{selectfont}{\renewcommand{\UrlFont}{\sf}}
{\renewcommand{\UrlFont}{\small\ttfamily}}}
\urlstyle{leo}

% ******************************* Bibliography *********************************
\ifPHD@authoryear
\ifPHD@biblatex
Expand Down Expand Up @@ -326,7 +318,6 @@ and define the natbib package or biblatex package with required style in the Pre
\fi



% *********************** To copy ligatures and Fonts **************************
\RequirePackage{textcomp}

Expand Down Expand Up @@ -363,6 +354,22 @@ font in the preamble.tex file by specifying `customfont' in the class options}
\pdfglyphtounicode{f_f_l}{FB04}
\pdfgentounicode=1


% ************************ URL Package and Definition **************************
\RequirePackage{url}
% Redefining urlstyle to use smaller fontsize in References with URLs
\newcommand{\url@leostyle}{%
\@ifundefined{selectfont}{\renewcommand{\UrlFont}{\sffamily}}
{\renewcommand{\UrlFont}{\normalsize}}}
\urlstyle{leo}

% option to split urls over multiple lines for latex >> DVIPS >> PDF option
% PDFLaTeX does it automatically.

\ifsetDVI
\RequirePackage{breakurl} % to split the url over multiple lines
\fi

% ******************************************************************************
% **************************** Pre-defined Settings ****************************
% ******************************************************************************
Expand Down Expand Up @@ -570,7 +577,7 @@ font in the preamble.tex file by specifying `customfont' in the class options}
% Submission Text
{\large \submissiontext \par}
\vspace*{1ex}
{\large \it {\@degree} \par}
{\large \textit {\@degree} \par}


\end{center}
Expand Down Expand Up @@ -633,7 +640,7 @@ font in the preamble.tex file by specifying `customfont' in the class options}


% ******************************* Nomenclature *********************************
\usepackage{nomencl}
\RequirePackage{nomencl}
\makenomenclature
\renewcommand{\nomgroup}[1]{%
\ifthenelse{\equal{#1}{A}}{\item[\textbf{Roman Symbols}]}{%
Expand Down Expand Up @@ -782,7 +789,7 @@ font in the preamble.tex file by specifying `customfont' in the class options}
\begin{center}
\large \submissiontext \par
\vspace*{1ex}
\large \it {\@degree} \par
\large \textit {\@degree} \par
\end{center}
\end{minipage}
\end{lrbox}
Expand Down
86 changes: 43 additions & 43 deletions Preamble/preamble.tex
Original file line number Diff line number Diff line change
Expand Up @@ -24,49 +24,8 @@
\RequirePackage{libertine}
\fi

% *****************************************************************************
% *************************** Bibliography and References ********************

%\usepackage{cleveref} %Referencing without need to explicitly state fig /table

% Add `custombib' in the document class option to use this section
\ifsetBib % True, Bibliography option is chosen in class options
\else % If custom bibliography style chosen then load bibstyle here

\RequirePackage[square, sort, numbers, authoryear]{natbib} % CustomBib

% If you would like to use biblatex for your reference management, as opposed to the default `natbibpackage` pass the option `custombib` in the document class. Comment out the previous line to make sure you don't load the natbib package. Uncomment the following lines and specify the location of references.bib file

% \RequirePackage[backend=biber, style=numeric-comp, citestyle=numeric, sorting=nty, natbib=true]{biblatex}
% \bibliography{References/references} %Location of references.bib only for biblatex

\fi


% changes the default name `Bibliography` -> `References'
\renewcommand{\bibname}{References}


% *****************************************************************************
% *************** Changing the Visual Style of Chapter Headings ***************
% Uncomment the section below. Requires titlesec package.

%\RequirePackage{titlesec}
%\newcommand{\PreContentTitleFormat}{\titleformat{\chapter}[display]{\scshape\Large}
%{\Large\filleft{\chaptertitlename} \Huge\thechapter}
%{1ex}{}
%[\vspace{1ex}\titlerule]}
%\newcommand{\ContentTitleFormat}{\titleformat{\chapter}[display]{\scshape\huge}
%{\Large\filleft{\chaptertitlename} \Huge\thechapter}{1ex}
%{\titlerule\vspace{1ex}\filright}
%[\vspace{1ex}\titlerule]}
%\newcommand{\PostContentTitleFormat}{\PreContentTitleFormat}
%\PreContentTitleFormat


% *****************************************************************************
% **************************** Custom Packages ********************************
% *****************************************************************************


% ************************* Algorithms and Pseudocode **************************
Expand All @@ -92,15 +51,15 @@
%\RequirePackage{lineno}
%\linenumbers

% ************************** Graphics and figures *****************************
% *************************** Graphics and figures *****************************

%\usepackage{rotating}
%\usepackage{wrapfig}
%\usepackage{float}
\usepackage{subfig} %note: subfig must be included after the `caption` package.


% ********************************* Table **************************************
% ********************************** Table *************************************

%\usepackage{longtable}
%\usepackage{multicol}
Expand All @@ -116,6 +75,47 @@
%\usepackage{siunitx} % use this package module for SI units


% *****************************************************************************
% *************************** Bibliography and References ********************

%\usepackage{cleveref} %Referencing without need to explicitly state fig /table

% Add `custombib' in the document class option to use this section
\ifsetBib % True, Bibliography option is chosen in class options
\else % If custom bibliography style chosen then load bibstyle here

\RequirePackage[square, sort, numbers, authoryear]{natbib} % CustomBib

% If you would like to use biblatex for your reference management, as opposed to the default `natbibpackage` pass the option `custombib` in the document class. Comment out the previous line to make sure you don't load the natbib package. Uncomment the following lines and specify the location of references.bib file

% \RequirePackage[backend=biber, style=numeric-comp, citestyle=numeric, sorting=nty, natbib=true]{biblatex}
% \bibliography{References/references} %Location of references.bib only for biblatex

\fi


% changes the default name `Bibliography` -> `References'
\renewcommand{\bibname}{References}


% *****************************************************************************
% *************** Changing the Visual Style of Chapter Headings ***************

% Uncomment the section below. Requires titlesec package.

%\RequirePackage{titlesec}
%\newcommand{\PreContentTitleFormat}{\titleformat{\chapter}[display]{\scshape\Large}
%{\Large\filleft{\chaptertitlename} \Huge\thechapter}
%{1ex}{}
%[\vspace{1ex}\titlerule]}
%\newcommand{\ContentTitleFormat}{\titleformat{\chapter}[display]{\scshape\huge}
%{\Large\filleft{\chaptertitlename} \Huge\thechapter}{1ex}
%{\titlerule\vspace{1ex}\filright}
%[\vspace{1ex}\titlerule]}
%\newcommand{\PostContentTitleFormat}{\PreContentTitleFormat}
%\PreContentTitleFormat


% ******************************************************************************
% ************************* User Defined Commands ******************************
% ******************************************************************************
Expand Down
6 changes: 6 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -400,6 +400,12 @@ If you are generating a separate abstract for your thesis submission, ignore thi
--------------------------------------------------------------------------------
## ChangeLog

### 2014/03/24 - Version 1.2
> Commit
* Rearranged package order in preamble to support equation numbering using cref
* Removed dependencies on obsolete packages
* Restyled the URL fonts to use the same font as text

### 2014/02/10 - Version 1.1.1
> Commit e7f34cfd71cbe1b590d615a00d99b8d05513e5ba
* Biblatex handled as a custombib option
Expand Down
Binary file modified thesis.dvi
Binary file not shown.
Binary file modified thesis.pdf
Binary file not shown.
Binary file modified thesis.ps
Binary file not shown.
2 changes: 1 addition & 1 deletion thesis.tex
Original file line number Diff line number Diff line change
Expand Up @@ -153,7 +153,7 @@
% Bibliography style previews: http://nodonn.tipido.net/bibstyle.php

\bibliographystyle{apalike}
%%\bibliographystyle{plainnat} % use this to have URLs listed in References
%\bibliographystyle{plainnat} % use this to have URLs listed in References
\cleardoublepage
\bibliography{References/references} % Path to your References.bib file

Expand Down

0 comments on commit 4b709fe

Please sign in to comment.