Report class removed

This commit is contained in:
Krishna Kumar 2013-11-23 18:46:46 +00:00
parent 790fbf1b39
commit a923bda278
4 changed files with 48 additions and 43 deletions

View File

@ -19,11 +19,7 @@
% *************************************************************** % ***************************************************************
% ********************** Class Definition *********************** % ********************** Class Definition ***********************
% ***************************************************************
\newif\ifCU@bookmode
\CU@bookmodetrue
\DeclareOption{report}{\CU@bookmodefalse}
\DeclareOption{book}{\CU@bookmodetrue}
% ****************** Define a Print/Online Version ************** % ****************** Define a Print/Online Version **************
\newif\if@print\@printfalse \newif\if@print\@printfalse
@ -57,47 +53,55 @@
\newif\ifCU@custombib\CU@custombibfalse % Custom Bibliography \newif\ifCU@custombib\CU@custombibfalse % Custom Bibliography
\DeclareOption{custombib}{\CU@custombibtrue} \DeclareOption{custombib}{\CU@custombibtrue}
% ****************** Header / Footer Styling ********************
\ProcessOptions\relax%
% ********************* Pre-defined Options **********************
% Font Size
\DeclareOption{10pt}{\PassOptionsToClass{\CurrentOption}{book}}%
\DeclareOption{11pt}{\PassOptionsToClass{\CurrentOption}{book}}%
\DeclareOption{12pt}{\PassOptionsToClass{\CurrentOption}{book}}%
% Page Size
\DeclareOption{a4paper}{\PassOptionsToClass{\CurrentOption}{book}}%
\DeclareOption{a5paper}{\PassOptionsToClass{\CurrentOption}{book}}%
\DeclareOption{letter}{\PassOptionsToClass{\CurrentOption}{book}}%
% Column layout
\DeclareOption{oneside}{\PassOptionsToClass{\CurrentOption}{book}}%
\DeclareOption{twoside}{\PassOptionsToClass{\CurrentOption}{book}}%
% Generates Warning for unknown options
\DeclareOption*{ \DeclareOption*{
\ClassWarning{PhDThesisPSnPDF}{Unknown option '\CurrentOption'} \ClassWarning{PhDThesisPSnPDF}{Unknown or non-standard option '\CurrentOption'. Will see if I can load it from the book class. If you get a warning unused global option(s): `\CurrentOption` then the option is not supported!}
\PassOptionsToClass{\CurrentOption}{book}
} }
\ProcessOptions\relax% \ProcessOptions\relax%
\ifCU@bookmode
\DeclareOption*{\PassOptionsToClass{\CurrentOption}{book}}%
\ProcessOptions\relax%
\ifx\pdfoutput\undefined% \ifx\pdfoutput\undefined%
\LoadClass[dvips,fleqn,openright]{book}% \LoadClass[dvips,fleqn,openright]{book}%
\else%
\LoadClass[pdftex,fleqn,openright]{book}%
\fi%
\else
\DeclareOption*{\PassOptionsToClass{\CurrentOption}{report}}%
\ProcessOptions\relax%
\ifx\pdfoutput\undefined%
\LoadClass[dvips,fleqn,openright]{report}%
\else%
\LoadClass[pdftex,fleqn,openright]{report}%
\fi%
\fi
% ************** Set pdfpage and dvips paper sizes ***************
% if \pdfoutput is undefined or equal to relax, output a dvips special
\@ifundefined{pdfoutput}{ \@ifundefined{pdfoutput}{
\AtBeginDvi{\special{papersize=\paperwidth,\paperheight}} \AtBeginDvi{\special{papersize=\paperwidth,\paperheight}}
} }
\else%
\LoadClass[pdftex,fleqn,openright]{book}%
\AtBeginDvi{\special{papersize=\paperwidth,\paperheight}}%
\fi%
% ************** Set pdfpage and dvips paper sizes ***************
% pdfoutput is defined and not equal to \relax % pdfoutput is defined and not equal to \relax
% check for pdfpageheight existence just in case someone sets pdfoutput % check for pdfpageheight existence just in case someone sets pdfoutput
% under non-pdflatex. If exists, set them regardless of value of \pdfoutput. % under non-pdflatex. If exists, set them regardless of value of \pdfoutput.
\@ifundefined{pdfpageheight}{\relax}{\global\pdfpagewidth\paperwidth \@ifundefined{pdfpageheight}{\relax}{\global\pdfpagewidth\paperwidth
\global\pdfpageheight\paperheight}% \global\pdfpageheight\paperheight}%
% if using \pdfoutput=0 under pdflatex, send dvips papersize special
\ifcase\pdfoutput
\AtBeginDvi{\special{papersize=\paperwidth,\paperheight}}%
\else
\fi
% **************************** Print / Online *************************** % **************************** Print / Online ***************************

View File

@ -42,14 +42,15 @@ __Note__: the `Makefile` itself is take from and maintained at
## Class Options ## Class Options
`PhDThesisPSnPDF` supports all the options of the standard `book` and `report` classes (on which `PhDThesisPSnPDF` is based on the standard `book` class
it is based).
It also supports some custom options: It support the following custom options:
* `book` or `report`: Supports both book and report class. Default is `book`. * `a4paper` or `a5paper` or `letter`: Paper size
* `twoside` or `oneside`: This is especially useful for printing double side (twoside) or single side. * `10pt` or `11pt` or `12pt`: Font Size
* `oneside` or `twoside`: This is especially useful for printing double side (twoside) or single side.
* `print`: Supports Print and Online Version with different page margins and hyperlink styles. * `print`: Supports Print and Online Version with different page margins and hyperlink styles.
Use `print` in the options to activate Print Version with appropriate margins and page layout and view styles. Use `print` in the options to activate Print Version with appropriate margins and page layout and view styles.
@ -155,10 +156,10 @@ logos on [this page](http://www.admin.cam.ac.uk/offices/communications/services/
Download and exchange the new logos with `CUni.eps` and/or `CUni.pdf`. Download and exchange the new logos with `CUni.eps` and/or `CUni.pdf`.
## _Q5_: How can I use my favourite fonts (like Adobe Sabon, Adobe Utopia etc.)? ## _Q5_: How can I use my favourite fonts (like Libertine etc.)?
This template uses Times and Latin Modern (as default) fonts. Libertine Font doesn't support Math (looking for a suitable alternative for Math font in Libertine). This template uses Times and Latin Modern (as default) fonts. Libertine Font doesn't support Math (looking for a suitable alternative for Math font in Libertine).
After you've installed your custom/favourite fonts, add the following command in the preamble section within `\ifFontNotSet \fi`: After you've installed your custom/favourite fonts, add the following command in the preamble section within `\ifsetFont\else \RequirePackage{yourfont} \fi`:
\renewcommand\rmdefault{psb} \renewcommand\rmdefault{psb}
@ -171,7 +172,7 @@ You can run the following command:
# Known Issue(s) / Bugs # Known Issue(s) / Bugs
* No know bug(s) so far. If you find any let me know or even better if you can patch it and contribute to the development of the LaTeX Template * No know bug(s) so far. If you find any let me know or even better, if you can patch it and contribute to the development of the LaTeX Template
-------------------------------------------------------------------------------- --------------------------------------------------------------------------------

Binary file not shown.

View File

@ -39,7 +39,7 @@
\begin{document} \begin{document}
\frontmatter %\frontmatter
\begin{titlepage} \begin{titlepage}
@ -51,7 +51,7 @@
\include{Dedication/dedication} \include{Dedication/dedication}
\include{Declaration/declaration} \include{Declaration/declaration}
\include{Acknowledgement/acknowledgement} \include{Acknowledgement/acknowledgement}
\include{Abstract/abstract} %\include{Abstract/abstract}
% *********************** Adding TOC and List of Figures ************************* % *********************** Adding TOC and List of Figures *************************
@ -65,7 +65,7 @@
% ***********************************Main Matter*********************************** % ***********************************Main Matter***********************************
\mainmatter %\mainmatter
\include{Chapter1/chapter1} \include{Chapter1/chapter1}
\include{Chapter2/chapter2} \include{Chapter2/chapter2}
@ -76,7 +76,7 @@
%\include{Chapter7/chapter7} %\include{Chapter7/chapter7}
% ***********************************Back Matter*********************************** % ***********************************Back Matter***********************************
\backmatter %\backmatter
\appendix \appendix
\include{Appendix1/appendix1} \include{Appendix1/appendix1}
\include{Appendix2/appendix2} \include{Appendix2/appendix2}