Add
\usepackage{setspace}
\doublespacing
to the preamble. The whole document will be double-spaced including bibliography.
Footnotes,
figures, and tables will still be single-spaced. If you want a part of the text
still be single-spaced, include the part in the environment:
\begin{singlespace}
\end{singlespace}
If you want to have other spacing effect for a part of the text, you can use the environment:
\begin{spacing}{space}...\end{spacing}. For example, to reduce the linespacing
in the bibliography and table of contents, you can use the following command
\begin{spacing}{0.9}
\tableofcontents
\end{spacing}
...
\begin{spacing}{0.9}
\bibliographystyle{plain}
\bibliography{refs}
\end{spacing}
The other two commands provided by the setspace package are \singlespacing
and \onehalfspacing
You can also change the other spacing by using the \setstretch command, e.g. \setstretch{1.8}. To get single-spaced, one-and-half-spaced, and doublespaced effects, you can also use \setstretch{1}, \setstretch{1.5} and \setstretch{2} respectively.
UBC has its own recommended LaTeX style for theses. You can download the style file: ubc-thesis.sty and a template file of how to use it. It's a style file, not a class, so the way to include it into your own thesis is as follows:
\documentclass[11pt]{report}
\usepackage{ubc-thesis}
..............
see the template file for more details.
Note: When runnig latex, don't forget to
make sure the style file is foundable by LaTeX on your local
system.
Note2: There are also two files calc.sty and chicago.sty
that come with the ubcthesis package but I'm not sure what they are
for at the moment (Mike D, 2006-03-26).
Example:
...$\bm{y_{ij}}$ is the response...
The \bm macro is different from the \mathbf command in that it emboldens everything including symbols.
\begin{boldequation}
formula
\end{boldequation}
\begin{boldequation*}
formula
\end{boldequation*}
The unstarred form has automatic referencing and is numbered, while the starred form has no automatic referencing and numbering.
Use \vspace command in the \author command. Example:
\leftheader{\textsc{Presentation using \textsc{pdf}\LaTeX\, and \FoilTeX\, class}}
%make a left header
%\rightheader{\textsf{\thepage}} %make a right header
\MyLogo{Eugenia and Weiliang, UBC Stats} %make a left footer
%\rightfooter{} %make a right footer
\title{\shadowbox{Presentation using \textsc{pdf}\LaTeX\, and \FoilTeX\, class}} % the document title
% the author
\author{\vspace{2cm}\\
Latex Smart \\
6356 Agricultural Road\\
University of British Columbia\\
Vancouver BC \\
V6T 1Z2}
% the date
\date{\today}
\begin{document}
\thispagestyle{empty}
\setcounter{page}{0}
\maketitle
A1) Method 1:
a) first include "\usepackage{fancybox}"
b) then use
\slideframe{shadow} or
\slideframe{double} or
\slideframe{oval} or
\slideframe{Oval}
to change frame style or use
\slideframe{none}
to create slides without frame
note: put these commands in the preamble will cause all slides have
the same frame unless you use another \slideframe command to change it.
The above commands can be used within any \begin{slide}...\end{slide}.
Method 2:
a) first include "\usepackage{semcolor}"
b) then use
\slideframe{scplain} or
\slideframe{scshadow} or
\slideframe{scdouble} or
\slideframe{none}
You can use either floatflt package or wrapfig package.
For example:
\begin{floatingfigure}[r]{0.4\textwidth}
\centering
\includegraphics[width=0.4\textwidth]{lake1}
\caption{Text wrap around figure}
\noindent \hrulefill
\label{test}
\end{floatingfigure}
and
\begin{wrapfigure}{r}{0.4\textwidth}
\centering
\includegraphics[width=0.4\textwidth]{lake1}
\caption{Text wrap around figure}
\noindent \hrulefill
\label{test}
\end{wrapfigure}
The difference between floatingfigure and wrapfigure is that the text typed after \end{floatingfigure} will be forced to be a new paragraph.
For more information, please refer to floatflt manual and a webpage about wrapfig.
You can use the package "natbib". The following is an example:
\documentclass[12pt]{article}
\usepackage[super, sort]{natbib}
\bibpunct{(}{)}{;}{a}{,}{,} % required for natbib
\begin{document}
Use the natbib package with options \texttt{super} and \texttt{sort},
and use \verb+\citep+ or \verb+\citet+
instead of the command \verb+\cite+. In detail, we need to include the
natbib package
and include the line
\begin{verbatim}
\bibliographystyle[super, sort]{natbib}
\bibpunct{(}{)}{;}{a}{,}{,}
\end{verbatim}
in the preamble.
And use the bibliographstyle \texttt{plainnat}, i.e.
\verb+\bibliographystyle{plainnat}+.
The command
\verb+\citet+ is for ``last name (year)'' and \verb+\citep+ for
``(last name, year)'' which will be shown in the text.
The result of \verb+\citep{GoossensEtAl:1999}+ is \citep{GoossensEtAl:1999}.
The result of \verb+\citet\citet{GoossensEtAl:1999}+ is \citet{GoossensEtAl:1999}.
\bibliographystyle{plainnat} % required for natbib
\bibliography{workshop}
\end{document}
The content of the file "workshop.bib" is below:
@book{GoossensEtAl:1999,
author="{Goossens, M.} and {Rahtz, S.} with {Gurari, E., M.} and {Moore, R.} and {Sutor, R. S.}",
title="The \LaTeX\, Web Companion",
publisher="Addison-Wesley",
year="1999"
}
You can copy the above two files to your computer and compile them to see the result.
Here . Rated as "very useful" by Weiliang. Problem is that some journals require bibliographic references in one's paper to be exactly as they want. This collection can help you to solve this problem much faster.
Go to Top