I used WinEdt 5, LaTeX2e, Bibmaker 1.1.5, GSView32 2.9 and Acrobat Reader 5.0 while writing my Masters thesis in the Department of Mechanical Engineering. If you are already psyched or about to return to your MS Wor(l)d, STOP! You are no different from my state when i started using LaTeX. Read how to make a quick-start and install the necessary software. And dont forget to read the disclaimer if you harbor any evil intentions for suing me etc..(even otherwise). If you find any errors or would like to submit a question/suggestion/more elegant solution, i would be glad to have them included here. Please send an email to bbalasub@uiuc.edu.
\usepackage[dvips]{graphicx} \usepackage[dvips]{epsfig}b) Include the figure(fig1.eps) inside the tex file (results.tex, chapter1.tex etc) with
\begin{figure}[htbp] \centering \includegraphics[width=15cm]{Type_location_of_fig1.eps_here..for example, Images/fig1..dont include .eps} \caption{Picture of the experimental setup or whatever} \label{Type_label_for_figure_here} \end{figure}
\usepackage[dvips]{graphicx} \usepackage[dvips]{epsfig} \usepackage{rotating}b) Insert the figure(fig2.eps) sideways inside the tex file with
\begin{sidewaysfigure}[htbp] \centering \includegraphics[scale=0.85,angle=-90,viewport=10 10 550 580,clip]{fig2} \caption{Type_out_your_caption_here} \label{put_the_label_used_for_referencing_here} \end{sidewaysfigure}The "angle=-90" option is used to rotatate the figure, while "viewport =x,y,a,b,clip" displays a portion of the image and clips the rest. "scale=x" preserves the aspect ratio and scales the image. Use "height=xxcm" to scale according to height or "width=xxcm" to scale the width.
\usepackage[dvips]{graphicx} \usepackage[dvips]{epsfig} \usepackage{subfigure}b) Insert the sub-figures(figA.eps,figB.eps..FigD.eps) as a single figure inside the tex file with
\begin{figure}[htbp] \centering \subfigure[Type_Caption1_here]{ \label{Type_label1_here} \centering \includegraphics[width=xxcm]{Location_of_Figure A}} \subfigure[Type_Caption2_here]{ \label{Type_label2_here} \centering \includegraphics[width=xxcm]{Location_of_Figure B}} \subfigure[Type_Caption3_here]{ \label{Type_label3_here} \centering \includegraphics[width=xxcm]{Location_of_Figure C}} \subfigure[Type_Caption4_here]{ \label{Type_label4_here} \centering \includegraphics[width=xxcm]{Location_of_Figure D}} \caption{Type_Caption_for_whole_figure_here} \label{Type_label_for_whole_figure_here} \end{figure}
%the following lines are to change the : after a figure to a space \makeatletter % Allow the use of @ in command names \long\def\@makecaption#1#2{% \vskip\abovecaptionskip \sbox\@tempboxa{#1 #2}% % replace : by . (in your case: space) \ifdim \wd\@tempboxa >\hsize #1 #2\par % hier habe ich : durch . ersetzt \else \global \@minipagefalse \hb@xt@\hsize{\hfil\box\@tempboxa\hfil}% \fi \vskip\belowcaptionskip} \makeatother % Cancel the effect of \makeatletter(credits:Sören Kahl)
\begin{figure}[htbp]try typing
\begin{figure}[!htbp]If this does not work, redefine the parameters which determine the figure placements, number of figures to be placed and so on. Choose to modify any one or more of the following lines (lines to be added to the start of the thesis.tex document before the \begin but after \usepackage)
\renewcommand{\topfraction}{.85} \renewcommand{\bottomfraction}{.7} \renewcommand{\textfraction}{.15} \renewcommand{\floatpagefraction}{.66} \renewcommand{\dbltopfraction}{.66} \renewcommand{\dblfloatpagefraction}{.66} \setcounter{topnumber}{9} \setcounter{bottomnumber}{9} \setcounter{totalnumber}{20} \setcounter{dbltopnumber}{9}Even if this does not help, when all the figures accumulate and show up at the end, there is one more thing that you can do. Add a
/clearpagecommand to the tex file. When LaTeX encounters this command, it starts dumping all the tables and figures that were carried over from previous instances. This is a very poor technique for formatting and should be used only very rarely.
\addtocontents{toc}{\hfill Page\endgraf}% \addtocontents{lof}{\ Figure\hfill Page\endgraf}% \addtocontents{lot}{\ Table\hfill Page\endgraf}%
![]() |
![]() |
\appendix \chapter{Illustrative Vector Fields} . . . . \chapter{Program Listings} . . . . \label{app}After creating this file, add the following file to your thesis.tex file:
\include{appendix}
\usepackage{listings}to the thesis.tex file. You might have to download the listings.sty file off the web. You might also need to update the filename database of LaTeX. Read about it here. After you install the listings package, use the following piece of code to list your file:
\lstinputlisting[% showstringspaces=false,% frame={tb},% lineskip=-1pt,% extendedchars=true,% basicstyle=\footnotesize\ttfamily,% numbers=left,% stepnumber=1,% numberstyle=\tiny,% xleftmargin=2em,% language=C++,% breaklines]{cppcode/v2frms/v2frms.cpp}There is another way of doing this (although not half as elegant and more space consuming). This method simply dumps the text file onto the output file verbatim. Add \usepackage{verbatim} to thesis.tex and use \verbatiminput{cppcode/v2frms/readme.txt} to list the file cppcode/v2frms/readme.txt.
\backmatter %\addcontentsline{toc}{chapter}{References} \nocite{*} \bibliographystyle{unsrt} \bibliography{bibthesis}Now run "latex thesis" once, then run "bibtex thesis" from a command prompt and then run "latex thesis" twice again to get the references listed at the end of your thesis. The unsrt option is used to sort the references according to the order in which they were referenced.
\documentclass[11pt,oneside]{book} \usepackage[fullpage]{uiucthesis} \usepackage[dvips]{epsfig} %\usepackage{textcomp} \usepackage{latexsym} \usepackage[dvips]{graphicx} \usepackage{subfigure} \usepackage{rotating} \usepackage{listings} \usepackage{verbatim} \usepackage{ifthen} %The following lines were added by Balakumar BJ \renewcommand{\topfraction}{.85} \renewcommand{\bottomfraction}{.7} \renewcommand{\textfraction}{.15} \renewcommand{\floatpagefraction}{.66} \renewcommand{\dbltopfraction}{.66} \renewcommand{\dblfloatpagefraction}{.66} \setcounter{topnumber}{9} \setcounter{bottomnumber}{9} \setcounter{totalnumber}{20} \setcounter{dbltopnumber}{9} %the following lines are to change the : after a figure to a space \makeatletter % Allow the use of @ in command names \long\def\@makecaption#1#2{% \vskip\abovecaptionskip \sbox\@tempboxa{#1 #2}% % replace : by . (in your case: space) \ifdim \wd\@tempboxa >\hsize #1 #2\par % hier habe ich : durch . ersetzt \else \global \@minipagefalse \hb@xt@\hsize{\hfil\box\@tempboxa\hfil}% \fi \vskip\belowcaptionskip} \makeatother % Cancel the effect of \makeatletter \addtocontents{toc}{\hfill Page\endgraf}% \addtocontents{lof}{\ Figure\hfill Page\endgraf}% \addtocontents{lot}{\ Table\hfill Page\endgraf}% %\nofiles %End of BJB additions \begin{document} \title{PIV Measurements in a Solid Rocket Motor Exhaust Plume} \author{Balakumar Jothimohan Balasubramaniam} \department{Mechanical Engineering} \schools{B.S., Indian Institute of Technology, Madras, 2000} \msthesis \degreeyear{2002} \maketitle \frontmatter \newpage \leavevmode \vfill \begin{center} \vspace{-3cm} To my parents, Santha and Jothimohan for their infinite patience and great love. \end{center} \vfill \include{Acknowledgements} \tableofcontents \listoftables \listoffigures \mainmatter \include{Chapter1} \include{Chapter2} \include{Chapter3} \include{Chapter4} \include{Chapter5} \include{appendix} \backmatter %\addcontentsline{toc}{chapter}{References} \nocite{*} \bibliographystyle{unsrt} \bibliography{bibthesis} % calls plain style bib from file rocketrefs.bib \end {document}
After downloading and installing all the above softwares, download the necessary UIUC thesis files from the website at physics department and follow their instructions. You are all set to write your thesis now.