You may want to change to BiblaTex
, it is the future since it's much more customizable than BibTex
.
You can do what you asked for using this*:
\defbibenvironment{bibliography}
{\enumerate{}
{\setlength{\leftmargin}{\bibhang}%
\setlength{\itemindent}{-\leftmargin}%
\setlength{\itemsep}{\bibitemsep}%
\setlength{\parsep}{\bibparsep}}}
{\endenumerate}
{\item}
*I took it from this question. When you put this in the preamble, you will get what you need:
If you decide to move to Biblatex, you may want to use Biber
as the backend. Finally, these two questions will help you a lot to change. What to do to switch to biblatex? and How to use biber.
The class has a definition for thebibliography
which really can't be recommended (add a \usepackage{showframe}
to see what I mean), and for some reason it is not getting used. However, if you add the following:
\def\thebibliography#1{%
\ifrawbibliography
\else
\newpage
\thispagestyle{empty}%
\addcontentsline{toc}{chapter}{REFERENCES}%
% Switch singlespace to after the heading gets printed.
\mainheading{REFERENCES}%
\par\removelastskip\singlespace\par\removelastskip% GBG Oct 1993
\fixmainheadingSKIP
\fi
\list{[\arabic{enumi}]}%
{\settowidth\labelwidth{[#1]}\leftmargin%
\labelwidth\advance\leftmargin\labelsep\usecounter{enumi}}%
\def\newblock{\hskip .11em plus .33em minus -.07em}%
\sloppy\clubpenalty4000\widowpenalty4000%
\sfcode`\.=1000\relax
}
to your document, the error about \newblock
not being defined will go away. You can add it to the main file as in the example below, or put the above definition into your own .sty
(called, say, languagebstfix.sty
) and load it with \usepackage
.
\documentclass[11pt,Chicago]{uuthesis}
% to make a self-contained example, we can use this package, which
% lets us create a bibliography file with the same name (except for
% the '.bib' extension) as the main file.
\usepackage{filecontents}
\begin{filecontents}{\jobname.bib}
@article{Levon07,
author = {Levon, Erez},
title = {{Sexuality in context}},
journal = {Language in Society},
year = {2007},
volume = {36},
pages = {533--554},
}
\end{filecontents}
\usepackage{thesis}% required by .cls
\usepackage{natbib}
%%% TAKEN FROM uuthesis2e.cls
\def\thebibliography#1{%
\ifrawbibliography
\else
\newpage
\thispagestyle{empty}%
\addcontentsline{toc}{chapter}{REFERENCES}%
% Switch singlespace to after the heading gets printed.
\mainheading{REFERENCES}%
\par\removelastskip\singlespace\par\removelastskip% GBG Oct 1993
\fixmainheadingSKIP
\fi
\list{[\arabic{enumi}]}%
{\settowidth\labelwidth{[#1]}\leftmargin%
\labelwidth\advance\leftmargin\labelsep\usecounter{enumi}}%
\def\newblock{\hskip .11em plus .33em minus -.07em}%
\sloppy\clubpenalty4000\widowpenalty4000%
\sfcode`\.=1000\relax
}
\begin{document}
A citation: \citep{Levon07}
\bibliographystyle{language}
\bibliography{\jobname}
\end{document}
Note also that there is a similar .cls
called uuthesis2e.cls. The differences seem superficial, but maybe it represents the 'preferred' version..?
As for this: ---
Basically I need to remove the apostrophe comma
after the Author name in the
citation so it doesn't look like APA style and looks like LSA style
(which I think the author of the language.bst) based his code off the
APAcite code and so it still retains the apostrophe. How can I remove
it based on the code?
--- with recent versions of natbib
, and as in the updated answer below, you can simply write:
\setcitestyle{aysep={}}
% with older versions (< version 8), you need to leave
% the 5th argument of `\bibpunct` empty; e.g.,
% \bibpunct{(}{)}{;}{a}{}{;}
Updated answer
Given the very custom spacing the class uses for its environments (all essentially localized versions of \list
with different settings), I think it is better to forgo the class' \def
of \thebibliography
and use one based off of the report
class, but tweaked for use with uuthesis.cls
(still not sure why there is also a uuthesis2e.cls
-- they seem at least mostly the same). So, here's how'd I do it:
\documentclass[11pt,Chicago,twoside]{uuthesis2e}
\usepackage{showframe}
% to make a self-contained example, we can use this package, which
% lets us create a bibliography file with the same name (except for
% the '.bib' extension) as the main file.
\usepackage{filecontents}
\begin{filecontents}{\jobname.bib}
@article{Levon07,
author = {Levon, Erez},
title = {{Sexuality in context context context context context context context context context context context context context context context}},
journal = {Language in Society},
year = {2007},
volume = {36},
pages = {533--554},
}
\end{filecontents}
\usepackage{thesis}% required by .cls
\newenvironment{thebibliography}{}{}% <-- keep natbib happy
\usepackage{natbib}
\setcitestyle{aysep={}}
%%% The following can be put into a .sty file and then loaded normally:
%%% FROM HERE:
% Set the 'hang' for the bibliography; length can be changed...
\newdimen\bibindent
\setlength\bibindent{1.5em}
% Set name for the 'thebibliography' environment
\renewcommand*{\bibname}{References}
\makeatletter % for the '@' in command names (not needed in a .sty file)
\newcommand\uuthesis@bibindent{% = \@openbib@code from natbib.sty
\advance\leftmargin\bibindent
\itemindent -\bibindent
\listparindent \itemindent
\parsep \z@
}%
\def\newblock{\hskip .11em\@plus.33em\@minus.07em}
\renewenvironment{thebibliography}[1]
{%
\thispagestyle{empty}%
\addcontentsline{toc}{chapter}{\bibname}% <-- prefix \MakeUpppercase for 'REFERENCES'
\mainheading{\MakeUppercase\bibname}% <-- uuthesis method
\par\removelastskip\singlespace\par\removelastskip% GBG Oct 1993
\fixmainheadingSKIP
\list{}%
{%
\advance\leftmargin-\leftmargin
\advance\leftmargin\bibindent
}%
\leftmargin\labelwidth
\uuthesis@bibindent
\sloppy
\clubpenalty4000
\@clubpenalty \clubpenalty
\widowpenalty4000%
\sfcode`\.\@m}
{\def\@noitemerr
{\@latex@warning{Empty `thebibliography' environment}}%
\endlist}
\makeatother % make '@' inaccessible again (not needed in a .sty)
%%% TO HERE:
\begin{document}
\noindent
A citation: \citep{Levon07}
\bibliographystyle{language}
\bibliography{\jobname}
\end{document}
One thing you might want to consider, depending on how 'into' the TeX world you become, is creating your own thesis that adheres to your university's regulations. You don't need to make a whole .cls
by any means, and by doing so, you will learn much more about how things fit together. Thesis requirements may often be draconian and typographically questionable, but they are usually quite easy to follow. (The difficulty is often managing to make the thing look nice despite the requirements for double-spacing, and so forth. And the danger is that it can become a sometimes-fun, sometimes-frustrating way to 'waste' time...)
Best Answer
If you are ready to use
biblatex
, the following example has a numbered, alphabetically sorted list of references, with author-year citation style: