Print/Online Version

This commit is contained in:
Krishna 2013-11-15 17:05:57 +00:00
parent 18f1000dd7
commit a889ceabf2
3 changed files with 32 additions and 24 deletions

View File

@ -50,35 +50,13 @@
% Conditional Statements
\usepackage{ifthen} % Used in LaTeX Class files for conditional statements
\usepackage{ifpdf} % Check for pdfLaTeX
\usepackage{etex}
% Table of Contents and Appendix
\usepackage{tocbibind} % add Bibliography, List of figures and tables to contents
\usepackage{appendix} % add appendix
% Captions and Hyperreferncing / URL
\usepackage[figurename=Fig.,labelsep=space,tableposition=top]{caption} % Caption styling
\newcommand{\PrintVersion}{}
\ifx\PrintVersion\undefined
% For PDF Online version
\usepackage[pdftex, plainpages=false, pdfpagelabels, pdfstartview=FitH, unicode=true, pdftoolbar=true, pdfmenubar=true, pdfpagelayout=useoutlines, bookmarks, bookmarksopen=true, bookmarksnumbered=true, breaklinks=true, linktocpage, pagebackref=false, colorlinks=true, linkcolor=blue, urlcolor=blue, citecolor=blue, anchorcolor=green, hyperindex=false, hyperfigures]{hyperref}
\if@twoside \usepackage[hmarginratio=1:1]{geometry} %Two sided margin
\else \usepackage[hmarginratio=1:1]{geometry} % Single side margin
\fi
\else
% For Print version
\usepackage[pdftex, plainpages=false, pdfpagelabels, pdfstartview=FitH, unicode=true, pdftoolbar=true, pdfmenubar=true, pdfpagelayout=useoutlines, bookmarks, bookmarksopen=true, bookmarksnumbered=true, breaklinks=true, linktocpage, pagebackref=false, colorlinks=true, linkcolor=black, urlcolor=black, citecolor=black, anchorcolor=black, hyperindex=false, hyperfigures]{hyperref}
\if@twoside \usepackage[hmarginratio=3:2]{geometry} %Two sided margin
\else \usepackage[hmarginratio=3:2]{geometry} % Single side margin
\fi
\fi
\usepackage{url}
\def\url@leostyle{%
\@ifundefined{selectfont}{\def\UrlFont{\sf}}{\def\UrlFont{\small\ttfamily}}}
\urlstyle{leo}
% Graphics and Figures
\usepackage[usenames, dvipsnames]{color}
\usepackage{epstopdf} % Convert eps figures to pdf
@ -104,6 +82,15 @@
\usepackage{tabularx}
% Captions and Hyperreferncing / URL
\usepackage[figurename=Fig.,labelsep=space,tableposition=top]{caption} % Caption styling
\usepackage{url}
\def\url@leostyle{%
\@ifundefined{selectfont}{\def\UrlFont{\sf}}{\def\UrlFont{\small\ttfamily}}}
\urlstyle{leo}
% Bibliography and References
\usepackage{cleveref}
\usepackage[square, sort, numbers, authoryear]{natbib}
@ -128,6 +115,9 @@
\pdfgentounicode=1
%******************************************************* %
% Setting PDF Meta-Data

Binary file not shown.

View File

@ -2,7 +2,25 @@
%Enable Print or Online version for appropriate referencing styles and links, and page layout support for both oneside and twoside layout especially for binding (comment line below to use Online version)
\PrintVersion
%\newcommand{\PrintVersion}{}
% *********************** Print/Online Version Layout **************************** %
\ifdefined\PrintVersion
\usepackage{hyperref}
\message{This is the print version}
\hypersetup{plainpages=false, pdfstartview=FitH, unicode=true, pdftoolbar=true, pdfmenubar=true, pdfpagelayout=useoutlines, bookmarksopen=true, bookmarksnumbered=true, breaklinks=true, linktocpage, colorlinks=true, linkcolor=black, urlcolor=black, citecolor=black, anchorcolor=black}
\if@twoside \usepackage[hmarginratio=3:2]{geometry} %Two sided margin
\else \usepackage[hmarginratio=3:2]{geometry} % Single side margin
\fi
\else
\usepackage{hyperref}
\message{This is the online version}
\hypersetup{plainpages=false, pdfstartview=FitH, unicode=true, pdftoolbar=true, pdfmenubar=true, pdfpagelayout=useoutlines, bookmarksopen=true, bookmarksnumbered=true, breaklinks=true, linktocpage, colorlinks=true, linkcolor=blue, urlcolor=blue, citecolor=blue, anchorcolor=green}
\if@twoside \usepackage[hmarginratio=1:1]{geometry} %Two sided margin
\else \usepackage[hmarginratio=1:1]{geometry} % Single side margin
\fi
\fi
% ***************************** Title ******************************************** %
% PhD Thesis Title, Author, Degree, etc