BibTeX, biblatex and bibercan not compile the document with Chicago citation format

Information and discussion about BiBTeX - the bibliography tool for LaTeX documents.
Post Reply
harrymatth
Posts: 8
Joined: Sun Dec 19, 2010 11:54 pm

can not compile the document with Chicago citation format

Post by harrymatth »

hi,
I am trying to generate the document using the Chicago citation format. Could anyone let me know how to fix it.
I appreciate it
Harry.

----
in mydocument.tex

...
\usepackage{natbib}
...
\bibliographystyle{chicago}
\bibliography{mybib}
...

----
and here is the error from WindEdt output:

! Undefined control sequence.
<argument> \undefinedpagestyle

l.1 \begin{thebibliography}{}

----
here is the content of bbl file
\begin{thebibliography}{}

\bibitem[\protect\citeauthoryear{Last}{Last}{1900}]{art1}
Last, F. (1900).
\newblock A fictitious journal article.
\newblock {\em Journal of nothingness\/}~{\em 2}, 1--2.

\end{thebibliography}
----
here is the content of mybib.bib
@article{art1,
author="First Last",
title="A fictitious journal article",
year=1900,
journal="Journal of nothingness",
volume=2,
pages="1-2"}

@book{boo1,
author="Respectable Writer",
title="A silly book",
year=2000,
publisher="PublishCo",
address="Somewhere"}

Recommended reading 2024:

LaTeXguide.org • LaTeX-Cookbook.net • TikZ.org

NEW: TikZ book now 40% off at Amazon.com for a short time.

And: Currently, Packt sells ebooks for $4.99 each if you buy 5 of their over 1000 ebooks. If you choose only a single one, $9.99. How about combining 3 LaTeX books with Python, gnuplot, mathplotlib, Matlab, ChatGPT or other AI books? Epub and PDF. Bundle (3 books, add more for higher discount): https://packt.link/MDH5p

frabjous
Posts: 2064
Joined: Fri Mar 06, 2009 12:20 am

can not compile the document with Chicago citation format

Post by frabjous »

Please provide a complete minimal working example which generates the problem, which is complete in the sense that it can be compiled on its own. A bunch of snippets that do not allow us to recreate the problem for ourselves are worthless.
harrymatth
Posts: 8
Joined: Sun Dec 19, 2010 11:54 pm

can not compile the document with Chicago citation format

Post by harrymatth »

Hi,
I am trying to use the mla style for my documentation, but it doesnt seem to work, I am a new latex user and really need your help.
Thanks,
Harry

Here is the source code

Code: Select all

\documentclass[11pt]{article}
\author{John Doe} \title{Sample Document}
\usepackage[american]{babel}
\usepackage{csquotes}
\usepackage[style=mla]{biblatex}
\begin{document}

\maketitle

\section{Introduction}

According to the handbook of van Leunen \cite{vanleunen},
this paragraph---and certainly this
section---should be longer than one sentence.

\section{More references}

Here we see if the reference \cite{Narendra_1990}
to the Narendra article comes out OK, in particular,
with volume, number \& pages.

The necessary information for those who would use BibTeX
is available in the 1988 document of Prof.\ Patashnik \cite{btxdoc}.
Interested readers who can read French may also
want to read Poussin's proof\cite{primes}, though
it has nothing at all to do with BibTeX.

\section{Conclusion}

This is the concluding paragraph.  Here I cite another of
Oren Patashnik's books\cite{btxhak} and, again,
van Leunen's and Poussin's \cite{vanleunen,primes}.

\bibliography{myrefs}		% expects file "myrefs.bib"
\end{document} 
and here is the bib file

Code: Select all

@string{jgr = "J.~Geophys.~Res."}

@MISC{primes,
   author = "Charles Louis Xavier Joseph de la Vall{\'e}e Poussin",
   note = "A strong form of the prime number theorem, 19th century",
   year = 1879
   }

@INBOOK{chicago,
   title = "The Chicago Manual of Style",
   publisher = "University of Chicago Press",
   edition = "Thirteenth",
   year = 1982,
   pages = "400--401",
   key = "Chicago"
   }

@BOOK{texbook,
   author = "Donald E. Knuth",
   title= "The {{\TeX}book}",
   publisher = "Addison-Wesley",
   year = 1984
   }

@BOOK{latexbook,
   author = "Leslie Lamport",
   title = "{\LaTeX \rm:} {A} Document Preparation System",
   publisher = "Addison-Wesley",
   year = 1986
   }

@UNPUBLISHED{btxdoc,
   author = "Oren Patashnik",
   title = "{Using BibTeX}",
   note = "Documentation for general BibTeX users",
   month = jan,
   year = 1988
   }

@UNPUBLISHED{btxhak,
   author = "Oren Patashnik",
   title = "Designing BibTeX Styles",
   note = "The part of BibTeX's documentation
                            that's not meant for general users",
   month = jan,
   year = 1988
   }

@BOOK{strunk,
   author = "Strunk, Jr., William and E. B. White",
   title = "The Elements of Style",
   publisher = "Macmillan",
   edition = "Third",
   year = 1979
   }

@book{vanleunen,
   title = "A Handbook for Scholars",
   author = "Mary-Claire van Leunen",
   publisher = "Knopf",
   year = "1979"
   }

@ARTICLE{Zurek:1993,
   AUTHOR  = {Zurek, R. W. and Martin, L. J.},
   TITLE   = {Interannual Variability of planet-encircling dust activity on {M}ars},
   YEAR    = {1993},
   JOURNAL = jgr,
   VOLUME  = {98},
   NUMBER  = {E2},
   PAGES   = {3247--3259}
}

@Article{Narendra_1990,
  author =       {K.S.Narendra and K.Parthsarathy},
  title =        {Identification and Control of Dynamical System
                  using Neural Networks},
  journal =      "IEENN",
  year =         {1990},
  volume =    {1},
  number =    {1},
  month =     {},
  pages =     {4-27},
  note =      {},
  annote =    {}
}
and here is the error at the output

Code: Select all

! LaTeX Error: \lbx@typeeditor undefined.

See the LaTeX manual or LaTeX Companion for explanation.
Type  H <return>  for immediate help.
 ...                                              
                                                  
l.1072 \renewcommand*{\lbx@typeeditor}
                                      {%
? 

Process has been terminated ...
User avatar
frabjous
Posts: 2064
Joined: Fri Mar 06, 2009 12:20 am

can not compile the document with Chicago citation format

Post by frabjous »

First you seemed to want help with the Chicago style using the natbib package -- which would mean using BibTeX. Now you seem to want help with the MLA style for BibLaTeX. Which is it? What are you actually trying to achieve?

BibLaTeX does things somewhat differently than BibTeX, and if you want to use BibLaTeX, you'll need to make some more changes to your document. The BibLaTeX manual would have details. (In particular, you'd use \printbibliography where your bibliography goes.) However, that doesn't seem to be the cause of your problem. Indeed, I get the same error if I try to use the version of biblatex-mla that's on CTAN. I'm not super-familiar with BibLaTeX personally, but it looks to me like biblatex-mla needs to be updated to be compatible with the newest version of BibLaTeX and hasn't been yet. (BibLaTeX has been in rapid development, and unfortunately the author of biblatex-mla seems to be missing in action for the past several months.) But perhaps someone else will know.

When I personally need to do something with an MLA-esque style, I use BibTeX with the mla-good.bst file you can download from here. (Unzip the .zip file in the same folder as your document; the same website has a version for Chicago style with natbib.) In that case, I'd modify your document into something like this. (You'll need to read the natbib manual for the difference between, e.g., \cite, \citet, \citep, \citeyear, etc.)

Code: Select all


\documentclass[11pt]{article}
\author{John Doe} \title{Sample Document}
\usepackage[american]{babel}
\usepackage{natbib}
\begin{document}

\maketitle

\section{Introduction}

According to the handbook of \citet{vanleunen},
this paragraph---and certainly this
section---should be longer than one sentence.

\section{More references}

Here we see if the reference to \citet{Narendra1990}
comes out OK, in particular,
with volume, number \& pages.

The necessary information for those who would use BibTeX
is available in \citet{btxdoc}.
Interested readers who can read French may also
want to read \citet{primes}, though
it has nothing at all to do with BibTeX.

\section{Conclusion}

This is the concluding paragraph.  Here I cite another of
Oren Patashnik's books\citeyear{btxhak} and, again,
van Leunen's and Poussin's \citep{vanleunen,primes}.

\bibliographystyle{mla-good}
\bibliography{myrefs}
\end{document} 
Note a couple things:
  • I changed Narendra_1990 to Narendra1990 both here -- and in the .bib file too -- I don't think it's a good idea to use underscores in citation keys. Those are normally reserves for math mode in LaTeX, and could cause problems.
  • I changed the way many sentences were worded, since author-date styles like MLA include the author names in the citations, and this needs to be taken into account.
But it may be that long term, you're better off trying to make BibLaTeX work, but I'm afraid I can't help with that or diagnose your problem as is. Maybe someone else can.
harrymatth
Posts: 8
Joined: Sun Dec 19, 2010 11:54 pm

Re: can not compile the document with Chicago citation forma

Post by harrymatth »

Hi,

Thanks a lot for the great answer. I am allowed to choose any style among Chicago/MLA/APA, so sorry for the confusion.

I have another question, as I follow one of the above styles and your edited code, the references are not numbered like [1] [2] [3] or something like [Joh94], [Kim88], .... so when I refer them in the document, it is not very readable. Is there a option to number the reference or label the references?

Thanks
Harry
User avatar
frabjous
Posts: 2064
Joined: Fri Mar 06, 2009 12:20 am

can not compile the document with Chicago citation format

Post by frabjous »

I have another question, as I follow one of the above styles and your edited code, the references are not numbered like [1] [2] [3] or something like [Joh94], [Kim88], .... so when I refer them in the document, it is not very readable. Is there a option to number the reference or label the references?
I'm confused. Chicago/MLA/APA are all author-date style rather than numbered citation styles. If you use Chicago/MLA/APA citation styles, then you cannot use [1], [2], [3], or [Joh94] or [Kim88], because those are not compatible with Chicago/MLA/APA styles. So which is it? What do you actually want? Do you want to use Chicago or MLA bibliography styles but with Math/Science/Engineering style citations? Even that is going to be awkward if the entries don't begin with the keys.

The link I gave you to here may give you some help in deciding what style to actually use, since many different ones are listed here. Again, the natbib documentation may be helpful too.
harrymatth
Posts: 8
Joined: Sun Dec 19, 2010 11:54 pm

can not compile the document with Chicago citation format

Post by harrymatth »

great answer!

Hope you can help me further:

Ultimately I want to write a thesis using the template in my school using MLA style. When I use the mla-good file you recommended, it did not work in my thesis. Here is the school templates:

1)here is the iitthesis.cls file:

Code: Select all

%%%   IITTHESIS DOCUMENT CLASS FiLE --  Version 2 (Updated on 11/11/2003 by Babak Hamidian)
%%%   for LaTeX version 2e - 05/30/2003
%%% =====================================================================
%%% =====================================================================
%%%  WHAT IS NEW IN VERSION 2 ?
%%%
%%% This version of style file contains List of Symbols page. You can easily add symobls/definitions using the
%%% command \SymbolDefinition{}{}. Also the subheadings' style is changed to bold and non-italic format.
%%% For the case when Table of Contents is more than one page, two macro commands \moretoc and \moretox are
%%% provided to add the titles "CHAPTER    PAGE" or "APPENDIX    PAGE" on the top of the 2nd page.
%%%
%%% =====================================================================
%%% =====================================================================
%%%  @LaTeX-class-file{
%%%     filename        = "iitthesis.cls",
%%%     date            = "May 2003",
%%%     writtenby       = "Ozlem KALINLI"
%%%     address         = "Illinois Institute of Technology
%%%                        3300 S. Federal Street
%%%                        Chicago, IL 60616 USA",
%%%     e-mail          = "kaliozl@iit.edu",
%%%     codetable       = "ISO/ASCII",
%%%     keywords        = "LaTeX,IIT,thesis",
%%%     notes           = "This file provides the LaTeX2e style iithesis.cls 
%%%                        for formating graduate thesis at the Illinois 
%%%                        Institute of Technology. It was written by 
%%%                        Ozlem Kalinli. For an example of its use, see the 
%%%                        file: iitsample.tex, and help files given in pdf format".
%%%  }
%%% =====================================================================

\typeout{Document Class `IIT_THESIS' <May 2003>.}

\NeedsTeXFormat{LaTeX2e} 
\ProvidesClass{iitthesis}[2003/05/30,Illinois Institute of Technology Thesis Class]

%   **********************************
%   * Interline Spacing Commands     *
%   **********************************
% \ssp : single-spacing
% \dsp : double-spacing
% \tsp : triple-spacing
\renewcommand{\normalsize}{\@normalsize}
\def\ssp{\def\baselinestretch{1.0}\large\normalsize}
\def\dsp{\def\baselinestretch{1.66}\large\normalsize}
\def\tsp{\def\baselinestretch{2.6}\large\normalsize}


%    ****************************************
%    * Declaration of Options              *
%    ****************************************
%
% Option values are declared first.  
% Defaults are set to: 12 point, onesided, final (i.e., not draft) mode

\newcommand\@ptsize{}
\newcommand{\draftmark}{\dsp}
\DeclareOption{10pt}{\renewcommand\@ptsize{0}}  % can be used later for 10pt font-size
\DeclareOption{11pt}{\renewcommand\@ptsize{1}}
\DeclareOption{12pt}{\renewcommand\@ptsize{2}}
\DeclareOption{oneside}{\@twosidefalse \@mparswitchfalse}
\DeclareOption{twoside}{\@twosidetrue  \@mparswitchtrue}
\DeclareOption{draft}{\renewcommand{\draftmark}{\ssp}}
\DeclareOption{final}{\renewcommand{\draftmark}{\dsp}}
\ExecuteOptions{oneside,final,12pt} 
\ProcessOptions

\def\ds@twoside{\@twosidetrue \@mparswitchtrue}
\def\ds@draft{\overfullrule 5pt}
\@options

% This command inputs the font file that is selected depending on size information. 
\input font1\@ptsize.clo\relax


%    ****************************************
%    *          Page Format                 *
%    ****************************************
%
% See pg. 24 of "A Guide to Latex" by Helmut Kopka and Patrick W Daly
% for details.

\setlength{\textheight}{9in} 
\setlength{\textwidth}{6in}
\setlength{\topmargin}{-0.5in}
\setlength{\oddsidemargin}{0.5in}
\setlength{\evensidemargin}{0.5in}
\setlength{\parskip}{10pt} 
\setlength{\parindent}{0.5in}



%    ****************************************
%    *        Title Page Commands           *
%    ****************************************
%
\renewcommand{\title}[1]{\gdef\@title{\uppercase{#1}}}
\renewcommand{\author}[1]{\gdef\@author{\uppercase{#1}}}
\newcommand{\degree}[1]{\gdef\@degree{#1}}
\newcommand{\dept}[1]{\gdef\@dept{#1}}
\renewcommand{\date}[1]{\gdef\@date{#1}}
\newif\ifcopyrightnotice
\newif\ifcoadvisor
\copyrightnoticefalse   % default is without copyright page
\coadvisorfalse         % default is without co-advisor


% -- Copyright Page Format ---
%
\def\copyrightpage{
\pagestyle{plain}
\pagenumbering{roman}
\setcounter{page}{2}
\dsp           % double space
\vspace*{3in}
\begin{center}
\copyright \ Copyright by \\ \@author \\ \@date
\end{center}
\clearpage
 }

 
% -- No Copyriht Page,  --
% -- It Creates Blank Page --
%
\def\nocopyrightpage{
\hbox{}               %   THEN Produce totally blank page
\thispagestyle{empty}%
\newpage
}


% -- Co-advisor  --
%
\def\coadvisortype{
  \vspace*{1.5em}
  \hfil{Approved \rule{2in}{0.01in}\\}
  \hfil
  \makebox[2in][c]{Co-Advisor} \\
  }


%    ****************************************
%    * Creating Title and Copyright Pages   *
%    ****************************************
%
\def\maketitle{
 \dsp
 \pagestyle{empty}
 \vspace*{0.3in}
 \begin{center}
  {\@title} \\
  \vspace{1.8in}
  {BY} \\
  {\@author} \\
 \end{center}
 \vspace{1.3in}
 \begin{center}
  \ssp{Submitted in partial fulfillment of the \\
   requirements for the degree of \\
   {\@degree} in {\@dept} \\
   in the Graduate College of the \\
   Illinois Institute of Technology\\}
 \end{center}
 \vspace{0.5in}
 \begin{flushright}
 \ssp
 \hfil{Approved \rule{2in}{0.01in}\\}
 \hfil
 \makebox[2in][c]{Advisor} \\
 \ifcoadvisor
 \coadvisortype
 \fi
 \end{flushright}
 \vfill
 \begin{center}
  \ssp
  Chicago, Illinois \\
  \@date
 \end{center}
 \clearpage
 \let\maketitle\relax
 \ifcopyrightnotice
 \copyrightpage
 \else
 \nocopyrightpage
 \fi
}


%    ****************************************
%    *          Acknowledgement             *
%    ****************************************
% 
\newenvironment{acknowledgement}{
 \pagestyle{plain}
 \pagenumbering{roman}
 \setcounter{page}{3}
 \begin{center}
 \tsp{ACKNOWLEDGMENT \\}    % Creates the title of Acknowledgement page
 \vspace{0pt}
 \end{center}
 \addcontentsline{toc}{chapter}{\protect\noindent ACKNOWLEDGEMENT}   % adds Acknowledgement title into Table of Contents
 \dsp }{\clearpage}



%    ****************************************
%    *            Abstract                  *
%    ****************************************
% 
\newenvironment{abstract}{
 \begin{center}
 \tsp{ABSTRACT \\}        % Creates the title of Abstract page
 \vspace{0pt}
 \end{center}
 \addcontentsline{toc}{chapter}{\protect\noindent ABSTRACT}         % adds Abstract title into Table of Contents
 \dsp}{\clearpage}



%    ****************************************
%    *    Preliminary Pages' Format         *
%    ****************************************
%
\def\prelimpages{            % sets page numbering for the preliminary pages
   \pagestyle{plain}         % will be {plain} at start of toc
   \pagenumbering{roman}
   \setcounter{page}{3}
   }



%    ****************************************
%    *        Text Pages' Format            *
%    ****************************************
%
 \def\textpages{
  \addtocontents{toc}{\protect\noindent CHAPTER \vspace{-10pt}}     % adds Chapter word into Table of Contents.
  \draftmark               % if it is draft, it will be single-spaced. if it is final, it will be double-spaced.
  \pagenumbering{arabic}
  \pagestyle{myheadings}
  \setcounter{page}{1}
 }
 
 
%    ****************************************
%    *           List Structures            *
%    ****************************************
%
% See pg. 56 of "The LaTeX Companion" by Goossens, Mittelbach and Samarin
% for details.


%  ENUMERATE
%  Enumeration is done with four counters: enumi, enumii, enumiii
%  and enumiv, where enumN controls the numbering of the Nth level
%  enumeration.  The label is generated by the commands \labelenumi
%  ... \labelenumiv.  The expansion of \p@enumN\theenumN defines the
%  output of a \ref command.
%
\def\labelenumi{\theenumi.}
\def\theenumi{\arabic{enumi}}

\def\labelenumii{(\theenumii)}
\def\theenumii{\alph{enumii}}
\def\p@enumii{\theenumi}

\def\labelenumiii{\theenumiii.}
\def\theenumiii{\roman{enumiii}}
\def\p@enumiii{\theenumi(\theenumii)}

\def\labelenumiv{\theenumiv.}
\def\theenumiv{\Alph{enumiv}}
\def\p@enumiv{\p@enumiii\theenumiii}


% ITEMIZE
% Itemization is controlled by four commands: \labelitemi, \labelitemii,
% \labelitemiii, and \labelitemiv, which define the labels of the
% various itemization levels.

\def\labelitemi{$\bullet$}
\def\labelitemii{\bf --}
\def\labelitemiii{$\ast$}
\def\labelitemiv{$\cdot$}


% DESCRIPTION
% Each item has a label on the left which appears in bold face. 
% It is created by \item[labelname] command.

\def\descriptionlabel#1{\hspace\labelsep \bf #1}
\def\description{\list{}{\labelwidth\z@ \itemindent-\leftmargin
 \let\makelabel\descriptionlabel}}
\let\enddescription\endlist


% VERSE
% For indenting rhymes, poetry, verses, etc.    
% The user types \\ to end of each line.
%
\def\verse{\let\\=\@centercr
 \list{}{\itemsep\z@ \itemindent -1.5em\listparindent \itemindent
 \rightmargin\leftmargin\advance\leftmargin 1.5em}\item[]}
\let\endverse\endlist


% QUOTATION
% Seperated from the text both above and belove it by a triple space 
% and by being single-spaced.
% It is indented in its entirety three spaces from the left margin.

\def\quotation{\list{}{\listparindent 0em \leftmargin 0.3in \rightmargin 0em
 \itemindent\listparindent
\ssp} \vspace{0cm}\item[]}
\let\endquotation=\endlist



%    ****************************************
%    *         OTHER ENVIRONMENTS           *
%    ****************************************


% ARRAY AND TABULAR
%
% These are default values (pg.110 of "The Latex Companieon" )

\arraycolsep 5pt     % Half the width between columns in an array
                     % environment.
\tabcolsep 6pt       % Half the width between columns in a tabular
                     % environment.
\arrayrulewidth .4pt % Width of vertical rules in array and tabular environment.
\doublerulesep 2pt   % Space between adjacent rules in array or tabular
                     % environment.

% We have to redefine array here in order to make it single-spaced.
\def\array{\let\@acol\@arrayacol \let\@classz\@arrayclassz
 \let\@classiv\@arrayclassiv \let\\\@arraycr\let\@halignto\@empty\@tabarray}

% We have to redefine tabular here in order to make it single-spaced.
\def\tabular{\par\ssp\let\@halignto\@empty\@tabular}
\expandafter \def\csname tabular*\endcsname #1%
{\par\ssp\def\@halignto{to#1}\@tabular}


% TABBING
%
\tabbingsep \labelsep   % Space used by the \' command.

% \smallssp is used to produce tabular environments in the small font.
% Font size change is mandatory here, because \baselinestretch requires 
% a change in font size to take effect.
% \scriptsizessp is a smaller version of the \smallssp.

\def\smallssp{\def\baselinestretch{1.0}\large\small}
\def\scriptsizessp{\def\baselinestretch{1.0}\large\scriptsize}
                  
% \smalltabular and \smalltabular* are alternative tabular styles
% in the \small font.  They are required because single-spacing implies a
% change of font to a particular size.

\def\smalltabular{\par\smallssp\let\@halignto\@empty\@tabular}
\def\endsmalltabular{\endtabular}
\expandafter \def\csname smalltabular*\endcsname #1%
{\par\smallssp\def\@halignto{to#1}\@tabular} \expandafter \let
\csname endsmalltabular*\endcsname = \endtabular

% \scriptsizetabular and \scriptsizetabular* use the
% \scriptsize font.

\def\scriptsizetabular{\par\scriptsizessp\let\@halignto\@empty\@tabular}
\def\endscriptsizetabular{\endtabular}
\expandafter \def\csname scriptsizetabular*\endcsname #1%
{\par\scriptsizessp\def\@halignto{to#1}\@tabular} \expandafter
\let \csname endscriptsizetabular*\endcsname = \endtabular


% FRAMEBOX
%
% These are default values (pg.453 of "The Latex Companion" )

\fboxsep = 3pt    % Space left between box and text by \fbox and
                  % \framebox.
\fboxrule = .4pt  % Width of lines comprising the box made by \fbox and \framebox.



%    ****************************************
%    *        CHAPTERS AND SECTIONS         *
%    ****************************************
%
% DEFINE COUNTERS:
%
% \newcounter{NEWCTR}[OLDCTR] : Defines NEWCTR to be a counter, which is
%                               reset to zero when counter OLDCTR is
%                               stepped.
%                               Counter OLDCTR must already be defined.
% See pg. 446 of "The Latex Companion"

\newcounter {chapter}
\newcounter {section}[chapter]
\newcounter {subsection}[section]
\newcounter {subsubsection}[subsection]
\newcounter {appendix}

% For any counter CTR, \theCTR is a macro that defines the printed
% version of counter CTR.  It is defined in terms of the following
% macros:
%
%  \arabic{COUNTER} : The value of COUNTER printed as an arabic numeral.
%  \roman{COUNTER}  : Its value printed as a lower-case roman numberal.
%  \Roman{COUNTER}  : Its value printed as an upper-case roman numberal.
%  \alph{COUNTER}   : Value of COUNTER printed as a lower-case letter:
%                     a, b, c, etc.
%  \Alph{COUNTER}   : Value of COUNTER printed as an upper-case letter:
%                     A, B, C, etc.
%

\def\thechapter       {\arabic{chapter}}
\def\thesection       {\thechapter.\arabic{section}}
\def\thesubsection    {\thesection.\arabic{subsection}}
\def\thesubsubsection {\thesubsection.\arabic{subsubsection}}
\def\theappendix      {\Alph{appendix}}



%    ****************************************
%    *         TABLE OF CONTENTS, ETC.      *
%    ****************************************
%
%  A table of contents is a special list with the titles of the section 
%  units specifying the page numbers where each section starts. Similar lists 
%  for figures and tables, namely, list of figures and list of tables, exist. 
%  Starndard LaTeX can automatically create these three content lists. By default, 
%  LaTeX enters text generated by one of the arguments of the sectioning commands
%  into the .toc file. Similarly, LaTeX maintains two more files, one for the list
%  of figures (.lof) and one for the list of tables (.lot), which contins the text 
%  specified as the argument of the \caption command for figures and tables. 
%  It is always necessary to run LaTeX at leat twice, once to collect the relevant
%  information, and a second time to read back the information and typeset it in 
%  the correct place in the document. 
%
%
% A sectioning command, such as \subsection, writes a
%       \contentsline{subsection}{TITLE}{PAGE}
% command on the .toc file, where TITLE contains the contents of the
% entry and PAGE is the page number.  If subsections are being numbered,
% then TITLE will be of the form
%       \numberline{NUM}{HEADING}
% where NUM is the number produced by \thesubsection.  Other sectioning
% commands work similarly.
%
%
% A \caption command in a 'figure' environment writes
%    \contentsline{figure}{\numberline{NUM}{CAPTION}}{PAGE}
% on the .lof file, where NUM is the number produced by \thefigure and
% CAPTION is the figure caption.  It works similarly for a 'table'
% environment using .lot file. 
%
%
% The command \contentsline{NAME} expands to \l@NAME.  So, to specify
% the table of contents, we must define \l@chapter, \l@section,
% \l@subsection, ... ; to specify the list of figures, we must define
% \l@figure; and so on.  Most of these can be defined with the
% \@dottedtocline command, which works as follows.
%
% \@dottedtocline{LEVEL}{INDENT}{NUMWIDTH}{TITLE}{PAGE}
%    LEVEL    : The nesting level of entry. An entry with a LEVEL greater
%               than the value of counter 'tocdepth' will not appear in the 
%               table of contents. 
%    INDENT   : The indentation from the outer left margin of the start
%               of the contents line.
%    NUMWIDTH : The width of a box in which the section number is to go,
%               if TITLE includes a \numberline command. This is also the 
%               amount of extra indentation added to the second and later
%               lines of a multiple entry.

% Additionaly, the command \@dottedtocline uses the following three formatting 
% parameters, which specify the visual appearance of all entries. These parameters 
% are set with a \def command using em's to make them depend upon the font.
%
%   \@pnumwidth : The width of a box in which the page number is put.
%   \@tocrmarg  : The right margin for all but the last line of the multiple line 
%                 entries.  One wants \@tocrmarg > or = \@pnumwidth
%   \@dotsep    : Separation between dots, in mu units.  Should be
%                 \def'd to a number like 1.7 or 2.

\def\@pnumwidth{2.05em}
\def\@tocrmarg{3em}
\def\@dotsep{5.5}
\setcounter{tocdepth}{4}

\def\l@chapter{\@dottedtocline{1}{0em}{5.1em}}
\def\l@section{\@dottedtocline{2}{0.82in}{2.4em}}
\def\l@subsection{\@dottedtocline{3}{8em}{2.4em}} 
\def\l@subsubsection{\@dottedtocline{4}{7.8em}{5.2em}}

\def\l@figure{\@dottedtocline{1}{2em}{2.5em}}
\def\l@table{\@dottedtocline{1}{1.6em}{2.3em}}



% TABLE OF CONTENTS
% 
% The \tableofcontents command is defined to create table of contents page.
% Also a command called \moretoc is defined to create second, third, etc.,
% pages for table of contents, if it is necessary. 

\def\tableofcontents{
 \begin{center}
 \tsp{TABLE OF CONTENTS\\}
 \end{center}
 \ssp
 \hfill Page\@starttoc{toc}}  


% If "Table of Contents" is more than one page, the following macro commands put headings for the 2nd page
%i.e. \moretoc adds "CHAPTER    PAGE" at the top of the 2nd page and \moretox adds "APPENDIX   PAGE".

\def\moretoc{\addtocontents{toc}{\newpage\protect\noindent CHAPTER\hfill Page\par\protect\vspace*{5pt}}}
\def\moretox{\addtocontents{toc}{\newpage\protect\noindent APPENDIX\hfill Page\par\protect\vspace*{5pt}}}


% LIST OF FIGURES
%
% The \listoffigures command is defined to create list of figures page.
% Also a command called \morelof is defined to create second, third, etc.,
% pages for list of figures, if it is necessary. 
% Single-space list of figures is added to the table of contents.

\def\listoffigures{
 \begin{center}
  \tsp{LIST OF FIGURES\\}
 \end{center}
 \ssp
 \noindent Figure \hfill Page\@starttoc{lof}
 \addcontentsline{toc}{chapter}{\noindent LIST OF FIGURES}
 }

\def\morelof{\addtocontents{lof}{\newpage\protect\noindent Figure\hfill
Page\par}}



% LIST OF TABLES
%
% The \listoftables command is defined to create list of tables page.
% Also a command called \morelot is defined to create second, third, etc.,
% pages for list of tables, if it is necessary. 
% Single-space list of tables is added to the table of contents.

\def\listoftables{
 \begin{center}
  \tsp{LIST OF TABLES\\}
 \end{center}
 \ssp
 \noindent Table \hfill Page\@starttoc{lot}
 \addcontentsline{toc}{chapter}{\noindent LIST OF TABLES}
 }

\def\morelot{\addtocontents{lot}{\newpage\protect\noindent Table\hfill
Page\par}}



% LIST OF SYMBOLS
%
% The following section is optional. Only the list of symbols page can be 
% created using \listofsymbols command, and it is added to the table of contents.

\def\listofsymbols{
 \begin{center}
 \tsp{LIST OF SYMBOLS\\}
 \end{center}
 \ssp
 \hbox{\protect\makebox[1.5cm][c]{Symbol}\hspace{3cm}\makebox[10cm][l]{Definition}}
 \addcontentsline{toc}{chapter}{\noindent LIST OF SYMBOLS}  %OK
}


%    ****************************************
%    *         SYMBOL COMMNAD               *
%    ****************************************

%SymbolDefinition{symbol}{definition} COMMAND is used to add symbols and their relevant definitions. The first argument
%is used for "Symbol" and the second for definition.
% 
\newcommand{\SymbolDefinition}[2]{
  \noindent
% \hbox{\protect\makebox[1.5cm][c]{#1}\hspace{1cm}\makebox[10cm][l]{#2}}
  \protect\makebox[1.5cm][c]{#1}\hspace{1cm}\parbox[t]{11cm}{#2}
  \par\vspace{5pt}
 }

%    ****************************************
%    *         FIGURES AND TABLES           *
%    ****************************************
%
% LaTeX makes it posible to float figures and tables, together with
% their headlines and captions, to an appropriate location without
% interrupting the text. Float placement parameters are set below. 
% See LaTeX manual for their definition.
% Also, it can be found in 'A Quide to Latex' by Helmut Kopka.

\setcounter{topnumber}{2}    % maximum number of floats that may appear at the top of a page.
\def\topfraction{.7}         % decimal number that specifies what fraction of the page may be used for floats at the top.
\setcounter{bottomnumber}{1}
\def\bottomfraction{.3}
\setcounter{totalnumber}{3}  % the maximum number of floats that may appear on any page regardless of position.
\def\textfraction{.2}
\def\floatpagefraction{.5}
\setcounter{dbltopnumber}{2} % the sameas topnumber, but for two-column format. 
\def\dbltopfraction{.7}
\def\dblfloatpagefraction{.5}


% To define a float of type TYPE (e.g., TYPE = figure), the document
% style must define the following.
%
% \fps@TYPE   : The default placement specifier for floats of type
%               TYPE.
%
% \ftype@TYPE : The type number for floats of type TYPE.  Each TYPE
%               has associated a unique positive TYPE NUMBER, which
%               is a power of two.  E.g., figures might have type
%               number 1, tables type number 2, programs type number
%               4, etc.
%
% \ext@TYPE   : The file extension indicating the file on which the
%               contents list for float type TYPE is stored.  For
%               example, \ext@figure = 'lof'.
%
% \fnum@TYPE  : A macro to generate the figure number for a caption.
%               For example, \fnum@TYPE == Figure \thefigure.
%
%  The actual float-making environment commands--e.g., the commands
%  \figure and \endfigure--are defined in terms of the macros \@float
%  and \end@float, which are described below.
%
% \@float{TYPE}[PLACEMENT] : Macro to begin a float environment for a
%     single-column float of type TYPE with PLACEMENT as the placement
%     specifier.  The default value of PLACEMENT is defined by
%     \fps@TYPE.  The environment is ended by \end@float.  E.g.,
%     \figure == \@float{figure}, \endfigure == \end@float.


% FIGURE
%
\newcounter{figure}[chapter]
\def\thefigure{\thechapter.\@arabic\c@figure}  % numbering for figures, they are numbered for each chapters
\def\fps@figure{tbp}                           % default placement for figures
\def\ftype@figure{1}
\def\ext@figure{lof}
\def\fnum@figure{Figure \thefigure}
\def\figure{\@float{figure}}
\let\endfigure\end@float
\@namedef{figure*}{\@dblfloat{figure}}
\@namedef{endfigure*}{\end@dblfloat}


% TABLE
%
\newcounter{table}[chapter]
\def\thetable{\thechapter.\@arabic\c@table}  % numbering for tables, they are numbered for each chapters
\def\fps@table{tbp}                          % default placement for tables
\def\ftype@table{2}
\def\ext@table{lot}
\def\fnum@table{Table \thetable}
\def\table{\@float{table}}
\renewcommand{\arraystretch}{1.3}  % determines the distance between the rows of table
                                   % it is a multiplying factor
\let\endtable\end@float
\@namedef{table*}{\@dblfloat{table}}
\@namedef{endtable*}{\end@dblfloat}



%    ****************************************
%    *               CAPTION                *
%    ****************************************
%
% A figure caption or table title is produced with the \caption command
% inside the figure or table environment. Internally, \caption invokes 
% the \@makecaption{NUMBER}{TEXT} command.
% \@makecaption{NUMBER}{TEXT} : Macro to make a figure or table caption.
%      NUMBER : Figure or table number--e.g., 'Figure 3.2'
%      TEXT   : The caption text.
%
% After an initial skip of 10 pt,the material is typeset in a temporary box
% and its width is compared to the line width. If the material is longer than one line,
% it will be typeset with indentation. If it fits on one line, then the text is centered.
% This is done with the defined \@makecaption command given below.

\newlength\captionindent \captionindent=.18in

\long\def\@makecaption#1#2{% Add space only if something is ...
   \vskip 10pt                     % 10pt vertical space above the caption
   \setbox\@tempboxa\hbox{#1. #2}%
   \ifdim \wd\@tempboxa >\hsize %#1. #2 \par         % IF longer than one line:
     \ssp \hangindent\captionindent\noindent #1. #2\par\vspace{5pt}
    \else                                             %   ELSE  center.
       \hbox to\hsize{\hfil\box\@tempboxa\hfil}\vspace{5pt}    %inserts ssp
    \fi}

% These two command can be activated to leave more spaces above and below captions. 
%\setlength{\abovecaptionskip}{10pt}
%\setlength{\belowcaptionskip}{10pt}



%    ****************************************
%    *             FOOTNOTES                *
%    ****************************************
%
% For IIT style, footnotes are single spaced below the last line of text
% or double-spaced above the top line of the footnote if the page is not full of text.
% Footnotes are numbered within entire thesis. 
% \footnoterule is a macro to draw the rule separating the footnotes
% from the text.  It should take zero vertical space, so it needs a
% negative skip to compensate for any positive space taken by the rule.

\def\footnoterule{\kern-3\p@
 \hrule width 1.5in          % 1.5in footnote rule 
 \kern 2.6\p@}

%   \@makefntext{NOTE} :
%        Must produce the actual footnote, using \@thefnmark as the mark
%        of the footnote and NOTE as the text.  It is called when
%        effectively inside a \parbox of width \columnwidth (i.e., with
%        \hsize = \columnwidth).
%
%        The following macro indents all lines of the footnote 0.5in,     
%        and indents the first line of a new paragraph by 1em.  To
%        change these dimensions, just substitute the desired value for
%        '0.5in' [in both places] or '1em'. A footnote is single-space typed.

\setlength{\footnotesep}{20pt}      % A double-space is inserted between two footnotes.
\long\def\@makefntext#1{\parindent 1em\noindent
           \hbox to 0.5in{\hss$^{\@thefnmark}$}\ssp{#1}}  %0.5in indentation for IIT style.



%    ****************************************
%    *             BIBLIOGRAPHY             *
%    ****************************************
%
% The \thebibliography environment executes the following commands:
%
%  \def\newblock{\hskip .11em plus .33em minus .07em} --
%      Defines the `closed' format, where the blocks (major units of
%      information) of an entry run together.
%
%  \sloppy  -- Used because it's rather hard to do line breaks in
%      bibliographies,
%
%  \sfcode`\.=1000\relax --
%      Causes a `.' (period) not toproduce an end-of-sentence space.

\def\thebibliography#1{
 \addtocontents{toc}{\protect\vspace*{0pt}}
 \addcontentsline{toc}{chapter}{\protect\noindent BIBLIOGRAPHY}
 \clearpage
 \center{BIBLIOGRAPHY\@mkboth{BIBLIOGRAPHY}{BIBLIOGRAPHY}}
 \vspace{10pt}
 \list {[\arabic{enumi}]}{\settowidth\labelwidth{[#1]}
 \leftmargin\labelwidth\advance\leftmargin\labelsep
 %\addtolength{\leftmargin}{0.5in}  % puts the second line indent.
 %\setlength{\itemindent}{-0.5in}   % puts the second line indent (used with previous line).
 \usecounter{enumi}
 \setlength{\baselineskip}{12pt}
 }
 \def\newblock{\hskip .11em plus .33em minus .07em}
 \sloppy\clubpenalty4000\widowpenalty4000
 \sfcode`\.=1000\relax}
\let\endthebibliography=\endlist



%    ****************************************
%    *              EQUATION                *
%    ****************************************
%
% EQUATION and EQNARRAY 
% Equations are in each chapter.
\@addtoreset{equation}{chapter}
\def\theequation{\thechapter.\arabic{equation}}



%    ****************************************
%    *        CHAPTERS AND SECTIONS         *
%    ****************************************

% CHAPTER
% 
\newcommand{\Chapter}[1]{%
  \clearpage
  \noindent
  \refstepcounter{chapter}
  \begin{center}
    \dsp{CHAPTER\space\thechapter\\}
    \vspace{10pt}
     \ssp\uppercase{#1}
     \vspace{-5pt}
     \end{center}
  \addtocontents{toc}{\protect\vspace*{3pt}}     
  \addcontentsline{toc}{chapter}{\protect
     \makebox[0.75in][r]{\thechapter.}\hspace*{3pt} \uppercase{#1}}
  \addtocontents{toc}{\protect\vspace*{10pt}} 
}


% SECTION
%
% Section names are bold face typed using \bf.
\newcommand{\Section}[1]{%
  \refstepcounter{section}
  \noindent
   \setbox\@tempboxa\hbox{\bf\thesection\space\space{#1}}%
   \ifdim \wd\@tempboxa >\hsize         % IF it is longer than one line, use indentation
    \vskip 1pt \noindent\ssp \hangindent 0.36in 
   {\bf\thesection\space\space{#1}\par} \dsp  
     \else                              % ELSE  center.
      {\bf\thesection\space\space{#1}}   
   \fi
  \addtocontents{toc}{\protect\vspace{-10pt}}
  \addcontentsline{toc}{section}{\protect
     \makebox[0.3in][r]{\thesection.} \hspace*{3pt}#1}      
}


% SUBSECTION
% 
% Subsection names are typed italic bold, and they are not included in tha table of contents.
\newcommand{\Subsection}[1]{%
  \refstepcounter{subsection}  
  \noindent
  {{\textbf{\thesubsection\space\space{#1.}}}}
  % \addtocontents{toc}{\protect\vspace{-10pt}}   % activate to put in toc
  % \addcontentsline{toc}{subsection}{\protect    % activate to put in toc
   %    \makebox[0.3in][r]{\thesubsection.} \hspace*{3pt}#1}    % activate to put in toc
    }


% SUBSUBSECTION
% Subsubsection names are typed italic,and they are not included in the table of contents.
\newcommand{\Subsubsection}[1]{%
  \refstepcounter{subsubsection}
  \noindent
   {\textbf{\thesubsubsection\space\space{#1.}}}
 }



%    ****************************************
%    *              APPENDIX                *
%    ****************************************
% \appendix command inserts APPENDIX word into table of contents, 
% and sets the appendix counter. 
% \Appendix{title} command creates individual  Appendices, and puts 
% into table of contents.  

\def\appendix{\par
    \setcounter{chapter}{0} %\refstepcounter{chapter}
    \addcontentsline{toc}{chapter}{\vspace{20pt}\protect\noindent APPENDIX\vspace*{-20pt}}
    \renewcommand{\thechapter}{\Alph{chapter}}
}

\newcommand{\Appendix}[1]{%
  \clearpage
  \vspace*{3in}
  \noindent
  \refstepcounter{chapter}
  \begin{center}
    APPENDIX\space\thechapter \\
    \uppercase{#1} \\
  \end{center}
 \addcontentsline{toc}{chapter}{\protect
 \makebox[0.75in][r]{\thechapter.} \hspace*{3pt}\uppercase{#1}}
  \clearpage
}



%    ****************************************
%    *            PAGE STYLES               *
%    ****************************************
%
% The \ps@... command defines the macros \@oddhead, \@oddfoot,
% \@evenhead, and \@evenfoot to define the running heads and
% feet---e.g., \@oddhead is the macro to produce the contents of the
% heading box for odd-numbered pages.  It is called inside an \hbox of
% width \textwidth.
%
% To make headings determined by the sectioning commands, the page style
% defines the commands \chaptermark, \sectionmark, ... , where
% \chaptermark{TEXT} is called by \chapter to set a mark, and so on.
% The \...mark commands and the \...head macros are defined with the
% help of the following macros.  (All the \...mark commands should be
% initialized to no-ops.)
%
% MARKING CONVENTIONS:
% LaTeX extends TeX's \mark facility by producing two kinds of marks
% a 'left' and a 'right' mark, using the following commands:
%     \markboth{LEFT}{RIGHT} : Adds both marks.
%     \markright{RIGHT}      : Adds a 'right' mark.
%     \leftmark  : Used in the \@oddhead, \@oddfoot, \@evenhead or
%                  \@evenfoot macro, gets the current 'left' mark.
%                  Works like TeX's \botmark command.
%     \rightmark : Used in the \@oddhead, \@oddfoot, \@evenhead or
%                  \@evenfoot macro, gets the current 'right' mark.
%                  Works like TeX's \firstmark command.
% The marking commands work reasonably well for right marks 'numbered
% within' left marks--e.g., the left mark is changed by a \chapter
% command and the right mark is changed by a \section command.  However,
% it does produce somewhat anomalous results if two \bothmark's occur on
% the same page.
%
%
% Commands like \tableofcontents that should set the marks in some
% page styles use a \@mkboth command, which is \let by the pagestyle
% command (\ps@...)  to \markboth for setting the heading or
% \@gobbletwo to do nothing.

\mark{{}{}}   % Initializes TeX's marks

\if@twoside \def\ps@headings{\let\@mkboth\markboth
\def\@oddfoot{}\def\@evenfoot{}\def\@evenhead{\rm \thepage\hfil \sl
\leftmark}\def\@oddhead{\hbox{}\sl \rightmark \hfil
\rm\thepage}\def\chaptermark##1{\markboth {\uppercase{\ifnum
\c@secnumdepth
>\m@ne
 \@chapapp\ \thechapter. \ \fi ##1}}{}}\def\sectionmark##1{\markright
{\uppercase{\ifnum \c@secnumdepth >\z@
 \thesection. \ \fi ##1}}}}
\else \def\ps@headings{\let\@mkboth\markboth
\def\@oddfoot{}\def\@evenfoot{}\def\@oddhead{\hbox {}\sl \rightmark \hfil
\rm\thepage}\def\chaptermark##1{\markright {\uppercase{\ifnum
\c@secnumdepth
>\m@ne
 \@chapapp\ \thechapter. \ \fi ##1}}}}
\fi

% Definition of 'myheadings' page style.
%
\def\ps@myheadings{\let\@mkboth\@gobbletwo
\def\@oddhead{\hbox{}\sl\rightmark \hfil
\rm\thepage}
\def\@oddfoot{}
\def\@evenhead{\rm \thepage\hfil\sl\leftmark\hbox
{}}
\def\@evenfoot{}\def\chaptermark##1{}\def\sectionmark##1{}%
\def\subsectionmark##1{}}

% Definition of 'plain' page style.
%
\def\ps@plain{\let\@mkboth\markboth
\def\@oddfoot{\hfil\rmfamily\thepage\hfil}
\def\@evenfoot{\hfil\rmfamily\thepage\hfil}    
\def\@oddhead{}         % heading (right)
\def\@evenhead{}        % heading (left)
}



%    ****************************************
%    *           INITIALIZATION             *
%    ****************************************
%
% Default initializations

\ps@plain                   % 'plain' page style
\pagenumbering{arabic}      % Arabic page numbers
\onecolumn
\if@twoside\else\raggedbottom\fi % Ragged bottom unless twoside
                                 % option.
2) font12.clo

Code: Select all

% IITHESIS DOCUMENT CLASS OPTION-- font12.clo 05/30/2003
% for LaTeX version 2e
 
 
%  ****************************************
%  *               FONTS                  *
%  ****************************************
%
 
\lineskip 1pt            % \lineskip is 1pt for all font sizes.
\normallineskip 1pt
\def\baselinestretch{1.37}
 

%
% Each size-changing command \SIZE executes the command
%        \fontsize\@FONTSIZE{BASELINESKIP}\selectfont
% where:
%  \@FONTSIZE     = Name of font-size command.  The currently available
%                  (preloaded) font sizes are: \@vpt (5pt), \@vipt (6pt),
%                  \@viipt (etc.), \@viiipt, \@ixpt, \@xpt, \@xipt, \@xiipt,
%                  \@xivpt, \@xviipt, \@xxpt, \@xxvpt.  These are defined
%                  in ltfss.dtx.
%
%   BASELINESKIP = Normal value of \baselineskip for that size. (Actual
%                  value will be \baselinestretch * BASELINESKIP.)
%
\renewcommand{\normalsize}{\fontsize\@xiipt{14.5}\selectfont%
\abovedisplayskip 12\p@ plus3\p@ minus7\p@
\belowdisplayskip \abovedisplayskip
\abovedisplayshortskip  \z@ plus3\p@   
\belowdisplayshortskip  6.5\p@ plus3.5\p@ minus3\p@
\let\@listi\@listI}   
 
\newcommand{\small}{\fontsize\@xipt{13.6}\selectfont%
\abovedisplayskip 11\p@ plus3\p@ minus6\p@
\belowdisplayskip \abovedisplayskip
\abovedisplayshortskip  \z@ plus3\p@   
\belowdisplayshortskip  6.5\p@ plus3.5\p@ minus3\p@
\def\@listi{\leftmargin\leftmargini 
\parsep 4.5\p@ plus2\p@ minus\p@
            \itemsep \parsep
            \topsep 9\p@ plus3\p@ minus5\p@}}
 
\newcommand{\footnotesize}{\fontsize\@xpt{12}\selectfont%
\abovedisplayskip 10\p@ plus2\p@ minus5\p@
\belowdisplayskip \abovedisplayskip
\abovedisplayshortskip  \z@ plus3\p@   
\belowdisplayshortskip  6\p@ plus3\p@ minus3\p@
\def\@listi{\leftmargin\leftmargini 
\topsep 6\p@ plus2\p@ minus2\p@\parsep 3\p@ plus2\p@ minus\p@
\itemsep \parsep}}
 
\newcommand{\scriptsize}{\fontsize\@viiipt{9.5pt}\selectfont}
\newcommand{\tiny}{\fontsize\@vipt{7pt}\selectfont}
\newcommand{\large}{\fontsize\@xivpt{18pt}\selectfont}
\newcommand{\Large}{\fontsize\@xviipt{22pt}\selectfont}
\newcommand{\LARGE}{\fontsize\@xxpt{25pt}\selectfont}
\newcommand{\huge}{\fontsize\@xxvpt{30pt}\selectfont}
\newcommand{\Huge}{\fontsize\@xxvpt{30pt}\selectfont}
 

\DeclareOldFontCommand{\rm}{\normalfont\rmfamily}{\mathrm}
\DeclareOldFontCommand{\sf}{\normalfont\sffamily}{\mathsf}
\DeclareOldFontCommand{\tt}{\normalfont\ttfamily}{\mathtt}
\DeclareOldFontCommand{\bf}{\normalfont\bfseries}{\mathbf}
\DeclareOldFontCommand{\it}{\normalfont\itshape}{\mathit}
\newcommand{\sl}{\slshape}
\newcommand{\sc}{\scshape}

\normalsize  
 

%  ****************************************
%  *            PAGE LAYOUT               *
%  ****************************************
%
% IITTHESIS style is not intended to be used two-sided because the
% Illinois Institute of Technology style requirements explicitly specify 
% single-sided printing.   So the two-sided settings are meaningless.

% SIDE MARGINS:
\if@twoside               %  Values for two-sided printing:
   \oddsidemargin 0.5in   %  Left margin on odd-numbered pages.
   \evensidemargin 0.0in  %  Left margin on even-numbered pages.
   \marginparwidth 0pt    %  Width of marginal notes.
\else                     %  Values for one-sided printing:
   \oddsidemargin 0.5in   %  Note that \oddsidemargin = \evensidemargin
   \evensidemargin 0.5in
   \marginparwidth 0pt
\fi
\marginparsep 10pt        % Horizontal space between outer margin and 
                          % marginal note
 
 
% VERTICAL SPACING:        
                         % Top of page:
\topmargin 0.0in         % Nominal distance from top of page to top
                         % of box containing running head.
\headheight 12pt         % Height of box containing running head.
\headsep 25pt            % Space between running head and text.
\topskip = 12pt          % '\baselineskip' for first line of page.
                         % Bottom of page:
\footskip 30pt           % Distance from baseline of box containing
                         % foot to baseline of last line of text.
 
 
% DIMENSION OF TEXT:

\textheight = 30\baselineskip
\advance\textheight by \topskip
\textwidth 6.0truein     % Width of text line.
                         % For two-column mode: 
\columnsep 10pt          %    Space between columns 
\columnseprule 0pt       %    Width of rule between columns.
 

% FOOTNOTES:
 
\footnotesep 8.4pt    % Height of strut placed at the beginning of every
                      % footnote = height of normal \footnotesize strut,
                      % so no extra space between footnotes.
 
\skip\footins 10.8pt plus 4pt minus 2pt  % Space between last line of
                                         % text and top of first
                                         % footnote.
 
% FLOATS: (a float is something like a figure or table)
%
% FOR FLOATS ON A TEXT PAGE:
%
% ONE-COLUMN MODE OR SINGLE-COLUMN FLOATS IN TWO-COLUMN MODE:
\floatsep 14pt plus 2pt minus 4pt        % Space between adjacent floats
                                         % moved to top or bottom of
                                         % text page.
\textfloatsep 20pt plus 2pt minus 4pt    % Space between main text and
                                         % floats at top or bottom of
                                         % page.
\intextsep 14pt plus 4pt minus 4pt       % Space between in-text figures
                                         % and text.

%TWO-COLUMN FLOATS IN TWO-COLUMN MODE:
\dblfloatsep 14pt plus 2pt minus 4pt     % Same as \floatsep for
                                         % double-column figures in
                                         % two-column mode.
\dbltextfloatsep 20pt plus 2pt minus 4pt % \textfloatsep for
                                         % double-column floats.
 
%  FOR FLOATS ON A SEPARATE FLOAT PAGE OR COLUMN:
%
%  ONE-COLUMN MODE OR SINGLE-COLUMN FLOATS IN TWO-COLUMN MODE:
\@fptop 0pt plus 1fil    % Stretch at top of float page/column. (Must
                         % be 0pt plus ...)
\@fpsep 10pt plus 2fil   % Space between floats on float page/column.
\@fpbot 0pt plus 1fil    % Stretch at bottom of float page/column.
                         % (Must be 0pt plus ... )
 
% DOUBLE-COLUMN FLOATS IN TWO-COLUMN MODE.
\@dblfptop 0pt plus 1fil % Stretch at top of float page. (Must be
                         % 0pt plus ...)
\@dblfpsep 10pt plus 2fil% Space between floats on float page.
\@dblfpbot 0pt plus 1fil % Stretch at bottom of float page. (Must be
                         % 0pt plus ... )
% MARGINAL NOTES:
%
\marginparpush 7pt       % Minimum vertical separation between two
                         % marginal notes.
 

%  ****************************************
%  *           PARAGRAPHING               *
%  ****************************************
%
\parskip 0pt plus 1pt              % Extra vertical space between
                                   % paragraphs.
\parindent 1.5em                   % Width of paragraph indentation.
%\topsep 10pt plus 4pt minus 6pt   % Extra vertical space, in addition
                                   % to \parskip, added above and below
                                   % list and paragraphing environments.
\partopsep 3pt plus 2pt minus 2pt  % Extra vertical space, in addition
                                   % to \parskip and \topsep, added when
                                   % list leaves blank line before
                                   % environment.
%\itemsep 5pt plus 2.5pt minus 1pt % Extra vertical space, in addition
                                   % to \parskip, added between list
                                   % items.
 
% The following page-breaking penalties are defined
 
\@lowpenalty   51      % Produced by \nopagebreak[1] or \nolinebreak[1]
\@medpenalty  151      % Produced by \nopagebreak[2] or \nolinebreak[2]
\@highpenalty 301      % Produced by \nopagebreak[3] or \nolinebreak[3]
 
\@beginparpenalty -\@lowpenalty    % Before a list or paragraph
                                   % environment.
\@endparpenalty   -\@lowpenalty    % After a list or paragraph
                                   % environment.
\@itempenalty     -\@lowpenalty    % Between list items.
 
 

%    ****************************************
%    *        CHAPTERS AND SECTIONS         *
%    ****************************************
%
% \@makechapterhead {TEXT} : Makes the heading for the \chapter
% command.
%
 
\def\@makechapterhead#1{%           % Heading for \chapter command
  \vspace*{50\p@}%                  % Space at top of text page.
  {\parindent \z@ \raggedright 
    \ifnum \c@secnumdepth >\m@ne    % IF secnumdepth > -1 THEN
      \huge\bfseries \@chapapp{} \thechapter %Print '\chaptername' and number.
      \par 
      \vskip 20\p@ \fi              % Space between number and title.
    \Huge \bfseries                       % Title.
    #1\par 
    \nobreak                        % TeX penalty to prevent page break.
    \vskip 40\p@                    % Space between title and text.
  }}
 
% \@makeschapterhead {TEXT} : Makes the heading for the \chapter*
% command.
%
 
\def\@makeschapterhead#1{%          % Heading for \chapter* command
  \vspace*{50\p@}%                  % Space at top of page.
  {\parindent \z@ \raggedright 
    \Huge \bfseries                       % Title.
    #1\par 
    \nobreak                        % TeX penalty to prevent page break.
    \vskip 40\p@                    % Space between title and text.
  }}
 
 
\def\chapter{\clearpage       % Starts new page.
   \thispagestyle{topcenter}  % Page style of chapter page is 'topcenter'
   \global\@topnum\z@         % Prevents figures from going at top of page.
   \@afterindenttrue          %Suppresses indent in first paragraph.
   \secdef\@chapter\@schapter}   % Change to \@afterindentfase for no indent.
 
\def\@chapter[#1]#2{\ifnum \c@secnumdepth >\m@ne
        \refstepcounter{chapter}%
        \typeout{\@chapapp\space\thechapter.}%
        \addcontentsline{toc}{chapter}{\protect
        \numberline{\thechapter}#1}\else
      \addcontentsline{toc}{chapter}{#1}\fi
   \chaptermark{#1}%
   \addtocontents{lof}%
       {\protect\addvspace{10\p@}}% Adds between-chapter space
   \addtocontents{lot}%
       {\protect\addvspace{10\p@}}% to lists of figs & tables.
   \if@twocolumn                  % Tests for two-column mode.  
           \@topnewpage[\@makechapterhead{#2}]%
     \else \@makechapterhead{#2}%
           \@afterheading         % Routine called after chapter and
     \fi}                         % section heading.
 
\def\@schapter#1{\if@twocolumn \@topnewpage[\@makeschapterhead{#1}]%
        \else \@makeschapterhead{#1}%
              \@afterheading\fi}
 
% \@startsection {NAME}{LEVEL}{INDENT}{BEFORESKIP}{AFTERSKIP}{STYLE} 
%            optional * [ALTHEADING]{HEADING}
%    Generic command to start a section.  
%    NAME       : e.g., 'subsection'
%    LEVEL      : a number, denoting depth of section -- e.g.,
%                 chapter=1, section = 2, etc.  A section number will be
%                 printed if and only if LEVEL < or = the value of the
%                 secnumdepth counter.
%    INDENT     : Indentation of heading from left margin
%    BEFORESKIP : Absolute value = skip to leave above the heading.  
%                 If negative, then paragraph indent of text following 
%                 heading is suppressed.
%    AFTERSKIP  : if positive, then skip to leave below heading,
%                       else - skip to leave to right of run-in heading.
%    STYLE      : commands to set style
%  If '*' missing, then increments the counter.  If it is present, then
%  there should be no [ALTHEADING] argument.  A sectioning command
%  is normally defined to \@startsection + its first six arguments.
 
\def\section{\@startsection {section}{1}{\z@}{-3.5ex plus-1ex minus
    -.2ex}{2.3ex plus.2ex}{\reset@font\Large\bfseries}}
\def\subsection{\@startsection{subsection}{2}{\z@}{-3.25ex plus-1ex
    minus-.2ex}{1.5ex plus.2ex}{\reset@font\large\bfseries}}
\def\subsubsection{\@startsection{subsubsection}{3}{\z@}{-3.25ex plus
    -1ex minus-.2ex}{1.5ex plus.2ex}{\reset@font\normalsize\bfseries}}
\def\paragraph{\@startsection
    {paragraph}{4}{\z@}{3.25ex plus1ex minus.2ex}{-1em}{\reset@font
    \normalsize\bfseries}}
\def\subparagraph{\@startsection
    {subparagraph}{4}{\parindent}{3.25ex plus1ex minus
     .2ex}{-1em}{\reset@font\normalsize\bfseries}}
 

\def\chaptermark#1{}
\setcounter{secnumdepth}{2}
 

%    ****************************************
%    *                LISTS                 *
%    ****************************************
%
 
% The following commands are used to set the default values for the list
% environment's parameters. See the LaTeX manual for an explanation of
% the meanings of the parameters.  Defaults for the list environment are
% set as follows.  First, \rightmargin, \listparindent and \itemindent
% are set to 0pt.  Then, for a Kth level list, the command \@listK is
% called, where 'K' denotes 'i', 'ii', ... , 'vi'.  (I.e., \@listiii is
% called for a third-level list.)  By convention, \@listK should set
% \leftmargin to \leftmarginK.
%
% For efficiency, level-one list's values are defined at top level, and
% \@listi is defined to set only \leftmargin.
 
\leftmargini 2.5em
\leftmarginii 2.2em     % > \labelsep + width of '(m)'
\leftmarginiii 1.87em   % > \labelsep + width of 'vii.'
\leftmarginiv 1.7em     % > \labelsep + width of 'M.'
\leftmarginv 1em
\leftmarginvi 1em
 
\leftmargin\leftmargini
\labelsep .5em
\labelwidth\leftmargini\advance\labelwidth-\labelsep

\def\@listI{\leftmargin\leftmargini \parsep 5\p@ plus2.5\p@ minus\p@
\topsep 10\p@ plus4\p@ minus6\p@
\itemsep 5\p@ plus2.5\p@ minus\p@}
 
\let\@listi\@listI
\@listi 
 
\def\@listii{\leftmargin\leftmarginii
   \labelwidth\leftmarginii\advance\labelwidth-\labelsep
   \topsep 5\p@ plus2.5\p@ minus\p@
   \parsep 2.5\p@ plus\p@ minus\p@
   \itemsep \parsep}
 
\def\@listiii{\leftmargin\leftmarginiii
    \labelwidth\leftmarginiii\advance\labelwidth-\labelsep
    \topsep 2.5\p@ plus\p@ minus\p@ 
    \parsep \z@ \partopsep \p@ plus\z@ minus\p@
    \itemsep \topsep}
 
\def\@listiv{\leftmargin\leftmarginiv
     \labelwidth\leftmarginiv\advance\labelwidth-\labelsep}
 
\def\@listv{\leftmargin\leftmarginv
     \labelwidth\leftmarginv\advance\labelwidth-\labelsep}
 
\def\@listvi{\leftmargin\leftmarginvi
     \labelwidth\leftmarginvi\advance\labelwidth-\labelsep}

\endinput
3)here is mybib.bib file

Code: Select all

@BOOK{HK,
   AUTHOR={H. Kopka and P. W. Daly},
   TITLE={A Guide to LaTeX},
   PUBLISHER={Addison-Wesley},
   ADDRESS={Reading, MA},
   YEAR=1999.
 }

@BOOK{MG,
   AUTHOR={M. Goossens and F. Mittelbach and A. Samarin},
   TITLE={A LaTeX Companion},
   PUBLISHER={Addison-Wesley},
   ADDRESS={Reading, MA},
   YEAR=1994.
 }
@ARTICLE{Pan,
    AUTHOR={D. Pan},
    TITLE={A Tutorial on MPEG/Audio Compression},
    JOURNAL={IEEE Multimedia},
    YEAR={1995},
    VOLUME= {2} ,
    PAGES={60-74},
    MONTH={Summer}.

}

@INPROCEEDINGS{Boney96,
AUTHOR={L. Boney and A. H. Tewfik and K. N. Hamdy},
TITLE={Digital Watermarks for Audio Signals},
booktitle={Proceedings of the Third IEEE International Conference on Multimedia},
PAGES={473-480},
MONTH={June},
YEAR={1996}.
}
4) here is the mythesis.tex source code that generates error

Code: Select all

\documentclass{iitthesis}
\usepackage[american]{babel}
\usepackage{natbib}

\begin{document}

%%% Declarations for Title Page %%%
\title{How to Write Theses\\
  With Two Line Titles}
\author{Ozlem Kalinli}
\degree{Master of Science}
\dept{Electrical Engineering}
\date{May 2003}
\copyrightnoticetrue      % crate copyright page or not
\maketitle                % create title and copyright pages
\prelimpages         % Settings of preliminary pages are done with \prelimpages command

%%%  Acknowledgement %%%
\begin{acknowledgement}     % acknowledgement environment, this is optional
\end{acknowledgement}


\clearpage

%%% Abstract %%%
\begin{abstract}           % abstract environment, this is optional
\par Your Abstract goes here!
\end{abstract}


\textpages     % Settings of text-pages are done with \textpages command

\Chapter{INTRODUCTION}

\Section{Basic Models}

\Section{Functional Series Methods in Linear Systems using Impulse
Response Generalization Algorithm}

One can represent a linear system by its impulse response.
Volterra developed a generalization of this representation for
nonlinear systems in which the single impulse response is replaced
with a series of integration kernels. This generalization of the
impulse response, usually called Volterra series, can be used to
approximate a wide variety of systems. For instance, Boyd and Chua
in \cite{HK}\footnote{Corresponding to references in the
Bibliography.} showed that a finite Volterra series can be used to
approximate any nonlinear operator which has fading memory. This
is explained. Now you will see a listing
example:
% An example for enumerate
\begin{enumerate}
  \item Suppression of hepatic glucose production
  \item Stimulation of hepatic glucose uptake
  \item Stimulation of glucose uptake by peripheral tissues,
  mainly muscle
\end{enumerate}

Fading memory concept can be defined as the effect of past inputs
on the present output fades out when time approaches infinity
\cite{Pan}. In general, we can write the input-output relationship
of any causal, discrete-time, time-invariant nonlinear systems by
a series of generalized convolutions \cite{MG}. Now you will see a
quotation example:

% A quotation example
% Every quota must be accompanied by a reference to the source
% in a footnote or in the Bibliography
\begin{quotation}
(This is a test for quotation environment!) In the Minimum
Variance Method, the peaks are sharp. We compare the graphs where
N=512 and p=64 and N=512 and p=128, it can be seen that when the
order p is increased frequency \cite{Boney96}.
\end{quotation}

\Subsection{Least Squares Based Identification} Block oriented
nonlinear systems can be represented by an interconnection of
linear dynamic and static nonlinear blocks. Well known block
oriented nonlinear models are Hammerstein, Wiener, and LNL
(Linear-Nonlinear-Linear) models as shown in the figure.
Hammerstein (NL, Nonlinear-Linear) and Wiener (LN,
Linear-Nonlinear) models are two special cases of the LNL cascade
model.You can see the results.

\Subsubsection{Modified Periodogram} In the Modified Periodogram,
the spectrum is smoother and noise level is a little bit less
comparing to the Peridogram Method, since the data  is multiplied
with Hamming window. In the Bartlett Method, overlapping is not
used and K= 4. In this realization, we can see that frequency
resolution has been decreased (peaks are broader) .On the other
hand,noise level has been also reduced. As we expected, there is a
trade-off between frequency resolution and noise level. Decreasing
noise level is paid off by decreasing frequency resolution. In the
Blackman-Tuckey Method, both frequency resolution and noise level
seems good.

\Subsubsection{Other Useful Methods} There are some other methods
which are more complex for implementation. However, they will give
more efficient results. The figures below illustrate the results
obtained using method XYZ for a fuel metabolism process.

\clearpage


%
% APPENDIX
%
\appendix
\Appendix{Table of Transition Coefficients for the Design of
Linear-Phase FIR Filters}
Your Appendix will go here !

%
% BIBLIOGRAPHY
%

%\bibliographystyle{plain}
\bibliographystyle{mla-good}
\bibliography{mybib}

\end{document}  % end of document
User avatar
frabjous
Posts: 2064
Joined: Fri Mar 06, 2009 12:20 am

can not compile the document with Chicago citation format

Post by frabjous »

A couple things. First, there some errors in mybib.bib -- entries ending in periods rather than commas, and entries without braces around the values. I changed it to this:

Code: Select all

    @BOOK{HK,
       AUTHOR={H. Kopka and P. W. Daly},
       TITLE={A Guide to LaTeX},
       PUBLISHER={Addison-Wesley},
       ADDRESS={Reading, MA},
       YEAR={1999}
    }

    @BOOK{MG,
       AUTHOR={M. Goossens and F. Mittelbach and A. Samarin},
       TITLE={A LaTeX Companion},
       PUBLISHER={Addison-Wesley},
       ADDRESS={Reading, MA},
       YEAR={1994}
    }
    @ARTICLE{Pan,
        AUTHOR={D. Pan},
        TITLE={A Tutorial on MPEG/Audio Compression},
        JOURNAL={IEEE Multimedia},
        YEAR={1995},
        VOLUME= {2},
        PAGES={60--74},
        MONTH={Summer}
    }

    @INPROCEEDINGS{Boney96,
    AUTHOR={L. Boney and A. H. Tewfik and K. N. Hamdy},
    TITLE={Digital Watermarks for Audio Signals},
    booktitle={Proceedings of the Third IEEE International Conference on Multimedia},
    PAGES={473--480},
    MONTH={June},
    YEAR={1996}
    }

I think you meant the errors having to do with \undefinedpagestyle and \newblock being undefined. It would appear that that document class is not fully compatible with natbib. In particular, natbib seems to want to redefine something the documentclass defines in a way that doesn't quite work. However, it seems to work to redefine things back to the way the document class has it right after loading natbib. So right after the \usepackage{natbib} insert the following block of code.

Code: Select all

    \makeatletter
    \def\thebibliography#1{
    \addtocontents{toc}{\protect\vspace*{0pt}}
    \addcontentsline{toc}{chapter}{\protect\noindent BIBLIOGRAPHY}
    \clearpage
    \center{BIBLIOGRAPHY\@mkboth{BIBLIOGRAPHY}{BIBLIOGRAPHY}}
    \vspace{10pt}
    \list {[\arabic{enumi}]}{\settowidth\labelwidth{[#1]}
    \leftmargin\labelwidth\advance\leftmargin\labelsep
    \usecounter{enumi}
    \setlength{\baselineskip}{12pt}
    }
    \def\newblock{\hskip .11em plus .33em minus .07em}
    \sloppy\clubpenalty4000\widowpenalty4000
    \sfcode`\.=1000\relax}
    \let\endthebibliography=\endlist
    \makeatother
That works for me anyway. You may experience problems down the road. You might ask whoever prepared that documentclass what bibliography styles and packages they recommend instead, since there may be one that has been tested with it.
Post Reply