Skip to content

Commit

Permalink
DVI page size
Browse files Browse the repository at this point in the history
  • Loading branch information
kks32 committed Dec 8, 2013
1 parent 7a15cb3 commit d951988
Show file tree
Hide file tree
Showing 5 changed files with 31 additions and 17 deletions.
43 changes: 29 additions & 14 deletions Appendix1/appendix1.tex
Original file line number Diff line number Diff line change
Expand Up @@ -20,28 +20,32 @@ \subsection*{TeXLive package - full version}

\subsection*{Basic MikTeX - TeX distribution}
\begin{enumerate}
\item Download Basic-MiK\TeX (32bit or 64bit) from \href{http://miktex.org/download}{http://miktex.org/download}
\item Download Basic-MiK\TeX (32bit or 64bit) from\\
\href{http://miktex.org/download}{http://miktex.org/download}
\item Run the installer
\item To add a new package go to Start >> All Programs >> MikTex >> Maintenance (Admin) and choose Package Manager
\item Select or search for packages to install
\end{enumerate}

\subsection*{TexStudio - Tex Editor}
\begin{enumerate}
\item Download TexStudio from \href{http://texstudio.sourceforge.net/\#downloads}{http://texstudio.sourceforge.net/\#downloads}
\item Download TexStudio from\\
\href{http://texstudio.sourceforge.net/\#downloads}{http://texstudio.sourceforge.net/\#downloads}
\item Run the installer
\end{enumerate}

\section*{Mac OS X}
\subsection*{MacTeX - TeX distribution}
\begin{enumerate}
\item Download the file from \href{http://mirror.ctan.org/systems/mac/mactex/MacTeX.pkg}{http://mirror.ctan.org/systems/mac/mactex/MacTeX.pkg}
\item Download the file from\\
\href{https://www.tug.org/mactex/}{https://www.tug.org/mactex/}
\item Extract and double click to run the installer. It does the entire configuration, sit back and relax.
\end{enumerate}

\subsection*{TexStudio - Tex Editor}
\begin{enumerate}
\item Download TexStudio from \href{http://texstudio.sourceforge.net/\#downloads}{http://texstudio.sourceforge.net/\#downloads}
\item Download TexStudio from\\
\href{http://texstudio.sourceforge.net/\#downloads}{http://texstudio.sourceforge.net/\#downloads}
\item Extract and Start
\end{enumerate}

Expand All @@ -50,8 +54,8 @@ \section*{Unix/Linux}
\subsection*{TeXLive - TeX distribution}
\subsubsection*{Getting the distribution:}
\begin{enumerate}
\item TexLive can be downloaded from \href{http://www.tug.org/texlive/acquire-netinstall.html}{http://www.tug.org/texlive/acquire-netinstall.html}. You might require wget to download through proxies.
\item TexLive DVD is also available in the Grad Suite
\item TexLive can be downloaded from\\
\href{http://www.tug.org/texlive/acquire-netinstall.html}{http://www.tug.org/texlive/acquire-netinstall.html}.
\item TexLive is provided by most operating system you can use (rpm,apt-get or yum) to get TexLive distributions
\end{enumerate}

Expand All @@ -70,9 +74,12 @@ \subsubsection*{Installation}
\end{verbatim}
\item Enter command `i' for installation

\item Post-Installation configuration:\\ \href{http://www.tug.org/texlive/doc/texlive-en/texlive-en.html\#x1-320003.4.1}{http://www.tug.org/texlive/doc/texlive-en/texlive-en.html\#x1-320003.4.1}
\item Set the path for the directory of TexLive binaries in your .bashrc file\\
\textbf{For 32Bit OS}\\
\item Post-Installation configuration:\\
\href{http://www.tug.org/texlive/doc/texlive-en/texlive-en.html\#x1-320003.4.1}{http://www.tug.org/texlive/doc/texlive-en/texlive-en.html\#x1-320003.4.1}
\item Set the path for the directory of TexLive binaries in your .bashrc file
\end{enumerate}

\subsubsection*{For 32Bit OS}
For Bourne-compatible shells such as bash, and using Intel x86 GNU/Linux and a default directory setup as an example, the file to edit might be \begin{verbatim}
edit $~/.bashrc file and add following lines
PATH=/usr/local/texlive/2011/bin/i386-linux:$PATH;
Expand All @@ -82,7 +89,7 @@ \subsubsection*{Installation}
INFOPATH=/usr/local/texlive/2011/texmf/doc/info:$INFOPATH;
export INFOPATH
\end{verbatim}
\textbf{For 64Bit}
\subsubsection*{For 64Bit}
\begin{verbatim}
edit $~/.bashrc file and add following lines
PATH=/usr/local/texlive/2011/bin/x86_64-linux:$PATH;
Expand All @@ -94,16 +101,24 @@ \subsubsection*{Installation}
\end{verbatim}

\end{enumerate}


%\subsection{Installing directly using Linux packages}
\subsubsection*{Fedora/RedHat/CENTOS:}
\begin{verbatim} sudo yum install texlive \end{verbatim}
\begin{verbatim}
sudo yum install texlive
sudo yum install psutils
\end{verbatim}


\subsubsection*{SUSE:}
\begin{verbatim} sudo zypper install texlive \end{verbatim}
\begin{verbatim}
sudo zypper install texlive
\end{verbatim}


\subsubsection*{Debian/Ubuntu:}
\begin{verbatim} sudo apt-get install texlive \end{verbatim}
\begin{verbatim}
sudo apt-get install texlive texlive-latex-extra
sudo apt-get install psutils
\end{verbatim}
5 changes: 2 additions & 3 deletions Classes/PhDThesisPSnPDF.cls
Original file line number Diff line number Diff line change
Expand Up @@ -130,9 +130,8 @@ supported!}
\newif\ifsetDVI\setDVIfalse
\ifx\pdfoutput\undefined
% we are not running PDFLaTeX
\LoadClass[dvips,fleqn,openright]{book}%
\AtBeginDvi{\special{papersize=\paperwidth,\paperheight}}
\setDVItrue
\LoadClass[dvips,fleqn,openright]{book}%
\else % we are running PDFLaTeX
\ifnum \pdfoutput>0
%PDF-Output
Expand All @@ -142,13 +141,13 @@ supported!}
%DVI-output
\setDVItrue
\LoadClass[fleqn,openright]{book}%
\AtBeginDvi{\special{papersize=\paperwidth,\paperheight}}
\fi
\fi

%* ***************************** Print / Online ********************************
% Defines a print / online version to define page-layout and hyperrefering
\ifsetDVI
\special{papersize=\paperwidth,\paperheight}
\RequirePackage[dvips]{hyperref}
\else
\RequirePackage[unicode]{hyperref}
Expand Down
Binary file added thesis.dvi
Binary file not shown.
Binary file modified thesis.pdf
Binary file not shown.
Binary file added thesis.ps
Binary file not shown.

0 comments on commit d951988

Please sign in to comment.