A PHP Error was encountered
Severity: 8192
Message: Function create_function() is deprecated
Filename: geshi/geshi.php
Line Number: 4698
Backtrace:
File: /home/httpd/vhosts/scratchbook.ch/geopaste.scratchbook.ch/application/libraries/geshi/geshi.php
Line: 4698
Function: _error_handler
File: /home/httpd/vhosts/scratchbook.ch/geopaste.scratchbook.ch/application/libraries/geshi/geshi.php
Line: 4621
Function: _optimize_regexp_list_tokens_to_string
File: /home/httpd/vhosts/scratchbook.ch/geopaste.scratchbook.ch/application/libraries/geshi/geshi.php
Line: 1655
Function: optimize_regexp_list
File: /home/httpd/vhosts/scratchbook.ch/geopaste.scratchbook.ch/application/libraries/geshi/geshi.php
Line: 2029
Function: optimize_keyword_group
File: /home/httpd/vhosts/scratchbook.ch/geopaste.scratchbook.ch/application/libraries/geshi/geshi.php
Line: 2168
Function: build_parse_cache
File: /home/httpd/vhosts/scratchbook.ch/geopaste.scratchbook.ch/application/libraries/Process.php
Line: 45
Function: parse_code
File: /home/httpd/vhosts/scratchbook.ch/geopaste.scratchbook.ch/application/models/Pastes.php
Line: 517
Function: syntax
File: /home/httpd/vhosts/scratchbook.ch/geopaste.scratchbook.ch/application/controllers/Main.php
Line: 624
Function: getPaste
File: /home/httpd/vhosts/scratchbook.ch/geopaste.scratchbook.ch/index.php
Line: 315
Function: require_once
A PHP Error was encountered
Severity: Warning
Message: Cannot modify header information - headers already sent by (output started at /home/httpd/vhosts/scratchbook.ch/geopaste.scratchbook.ch/system/core/Exceptions.php:271)
Filename: view/download.php
Line Number: 2
Backtrace:
File: /home/httpd/vhosts/scratchbook.ch/geopaste.scratchbook.ch/themes/geocities/views/view/download.php
Line: 2
Function: header
File: /home/httpd/vhosts/scratchbook.ch/geopaste.scratchbook.ch/application/core/MY_Loader.php
Line: 173
Function: include
File: /home/httpd/vhosts/scratchbook.ch/geopaste.scratchbook.ch/application/core/MY_Loader.php
Line: 43
Function: _ci_load
File: /home/httpd/vhosts/scratchbook.ch/geopaste.scratchbook.ch/application/controllers/Main.php
Line: 625
Function: view
File: /home/httpd/vhosts/scratchbook.ch/geopaste.scratchbook.ch/index.php
Line: 315
Function: require_once
A PHP Error was encountered
Severity: Warning
Message: Cannot modify header information - headers already sent by (output started at /home/httpd/vhosts/scratchbook.ch/geopaste.scratchbook.ch/system/core/Exceptions.php:271)
Filename: view/download.php
Line Number: 3
Backtrace:
File: /home/httpd/vhosts/scratchbook.ch/geopaste.scratchbook.ch/themes/geocities/views/view/download.php
Line: 3
Function: header
File: /home/httpd/vhosts/scratchbook.ch/geopaste.scratchbook.ch/application/core/MY_Loader.php
Line: 173
Function: include
File: /home/httpd/vhosts/scratchbook.ch/geopaste.scratchbook.ch/application/core/MY_Loader.php
Line: 43
Function: _ci_load
File: /home/httpd/vhosts/scratchbook.ch/geopaste.scratchbook.ch/application/controllers/Main.php
Line: 625
Function: view
File: /home/httpd/vhosts/scratchbook.ch/geopaste.scratchbook.ch/index.php
Line: 315
Function: require_once
\documentclass[twoside,masters,etd]{BYUPhys}
% The BYUPhys class is for producing theses and dissertations
% in the BYU department of physics and astronomy. You can supply
% the following optional arguments in the square brackets to
% specify the thesis type:
%
% senior : Produces the senior thesis preliminary pages (default)
% honors : Produces the honors thesis preliminary pages
% masters : Produces the masters thesis preliminary pages
% phd : Produces the PhD dissertation preliminary pages
%
% The default format is appropriate for printing, with blank pages
% inserted after the preliminary pages in twoside mode so you can
% send it directly to a two-sided printer. However, for ETD
% submission the blank pages need to be removed from the final output.
% The following option does this for you:
%
% etd : Produces a copy with no blank pages in the preliminary section
%
% The rest of the class options are the same as the regular book class.
% A few to remember:
%
% oneside : Produces single sided print layout (recommended for theses less than 50 pages)
% twoside : Produces single sided print layout (the default if you remove oneside)
%
% The BYUPhys class provides the following macros:
%
% \makepreliminarypages : Makes the preliminary pages
% \clearemptydoublepage : same as \cleardoublepage but doesn't put page numbers
% on blank intervening pages
% \singlespace : switch to single spaced lines
% \doublespace : switch to double spaced lines
%
% --------------------------- Load Packages ---------------------------------
% The graphicx package allows the inclusion of figures. Plain LaTeX and
% pdfLaTeX handle graphics differently. The following code checks which one
% you are compiling with, and switches the graphicx package options accordingly.
\usepackage{ifpdf}
\ifpdf
\usepackage[pdftex]{graphicx}
\else
\usepackage[dvips]{graphicx}
\fi
% The fancyhdr package allows you to easily customize the page header.
% The settings below produce a nice, well separated header.
\usepackage{fancyhdr}
\fancyhead{}
\fancyhead[LO]{\slshape \rightmark}
\fancyhead[RO,LE]{\textbf{\thepage}}
\fancyhead[RE]{\slshape \leftmark}
\fancyfoot{}
\pagestyle{fancy}
\renewcommand{\chaptermark}[1]{\markboth{\chaptername \ \thechapter \ \ #1}{}}
\renewcommand{\sectionmark}[1]{\markright{\thesection \ \ #1}}
% The caption package allows us to change the formatting of figure captions.
% The commands here change to the suggested caption format: single spaced and a bold tag
\usepackage[margin=0.3in,labelfont=bf,labelsep=none]{caption}
\DeclareCaptionFormat{suggested}{\singlespace#1#2 #3\par\doublespace}
\captionsetup{format=suggested}
% The cite package cleans up the way citations are handled. For example, it
% changes the citation [1,2,3,6,7,8,9,10,11] into [1-3,6-11]. If your advisor
% wants superscript citations, use the overcite package instead of the cite package.
\usepackage{cite}
% The makeidx package makes your index for you. To make an index entry,
% go to the place in the book that should be referenced and type
% \index{key}
% An index entry labeled "key" (or whatever you type) will then
% be included and point to the correct page.
\usepackage{makeidx}
\makeindex
% The url package allows for the nice typesetting of URLs. Since URLs are often
% long with no spaces, they mess up line wrapping. The command \url{http://www.physics.byu.edu}
% allows LaTeX to break the url across lines at appropriate places: e.g. http://www.
% physics.byu.edu
\usepackage{url}
\urlstyle{rm}
% The hyperref package provides automatic linking and bookmarking for the table
% of contents, index, equation references, and figure references. It must be
% included for the BYU Physics class to make a properly functioning electronic
% thesis. It should be the last package loaded if possible.
%
% To include a link in your pdf use \href{URL}{Text to be displayed}. If your
% display text is the URL, you probably should use the \url{} command discussed
% above.
%
% To add a bookmark in the pdf you can use \pdfbookmark. You can look up its usage
% in the hyperref package documentation
\usepackage[bookmarksnumbered,pdfpagelabels=true,plainpages=false,colorlinks=true,
linkcolor=black,citecolor=black,urlcolor=blue]{hyperref}
% ------------------------- Fill in these fields for the preliminary pages ----------------------------
%
% For Senior and honors this is the year and month that you submit the thesis
% For Masters and PhD, this is your graduation date
\Year{1905}
\Month{December}
\Author{Type Your Name Here}
% If you have a long title, split it between two lines. The \TitleBottom field defines the second line
% A two line title should be an "inverted pyramid" with the top line longer than the bottom.
\TitleTop{First line of title}
% \TitleBottom{second line}
% Your research advisor
\Advisor{Eric Hintz}
% The department undergraduate research coordinator
\UgradCoord{Eric Hintz}
% The representative of the department who will approve your thesis (usually the chair)
\DepRep{Ross L. Spencer}
% The title of the department representative
\DepRepTitle{Chair}
% For honors theses, enter the name of the honors dean
\HonorsDean{Madison U. Sowell}
% The text of your abstract
\Abstract{
Abstract text goes here.
}
% Acknowledge those who helped and supported you
\Acknowledgments{
Acknowledgment text goes here.
}
% ------------- These remaining fields are only necessary for masters and PhD ----------------------
% The members of your graduate committee (masters only need A and B, PhD need all 4)
\MemberA{Committee Member A}
\MemberB{Committee Member B}
\MemberC{Committee Member C}
\MemberD{Committee Member D}
% The representative of the college who approves masters theses and dissertations
\Dean{Thomas W. Sederberg}
% The title of the department representative
\DeanTitle{Associate Dean}
\begin{document}
% Start page counting in roman numerals
\frontmatter
% This command makes the formal preliminary pages.
% You can comment it out during the drafting process if you want to save paper.
\makepreliminarypages
\singlespace
% Make the table of contents.
\tableofcontents
\clearemptydoublepage
% Make the list of figures
\listoffigures
\clearemptydoublepage
\doublespace
% Start regular page counting at page 1
\mainmatter
% OK. Everything is set up. Type your thesis here.
\chapter{A Sample Chapter}
\section{A Fascinating Section}
\label{sec:meaningfulname}
For a short thesis, you can usually just type the whole body of the
thesis here. For longer documents you might consider typing
chapters in separate files and using the \verb|\include| command.
There is another example on the physics web page
(\href{http://www.physics.byu.edu/undergraduate/latex.aspx}{click
here to go there}) that shows how to do this.
You can create your bibliography right in the main tex document.
Here are references to a book \cite{Jackson1998}, an article
\cite{Peatross2000}, and a web site \cite{intel}. You can also use
BibTeX to keep track of your references. The method for using
BibTeX is shown in the other example on the physics web page.
Making an index is easy. Just use the \verb|\index{Key}| command.
\index{Index!Making} You can include figures too (see
Fig.~\ref{fig:MirrorDiagram}). Usually you need both eps and pdf
versions of each figure.
\begin{figure}
\centerline{\includegraphics{Graphic1}}
\caption[Setup for using counter-propagating light]{\label{fig:MirrorDiagram}
A mirror with a hole is used to extract high-order harmonics generated in
counter-propagating laser beams.}
\end{figure}
% Start labeling chapters with letters and calling them appendices
\appendix
% Make the bibliography.
\cleardoublepage
\phantomsection \addcontentsline{toc}{chapter}{Bibliography}
\begin{thebibliography}{00}
\bibitem{Jackson1998}
J.~D. Jackson, {\em Classical Electrodynamics}, 3rd ed. (Wiley, New
York, 1998), \ p.\ 23.
\bibitem{Peatross2000}
J.~Peatross, S.~A. Glasgow, and M.~Ware, ``Average energy flow of
optical pulses dispersive media,'' Phys.~Rev.~Lett. {\bf 84,} 2370--2373 (2000).
\bibitem{intel}
% notice the \url function that helps text wrapping in the \href
K. David, ``Intel's EUV lithography process line,''
\href{http://www.intel.com/technology/silicon/lithography.htm}
{\url{http://www.intel.com/technology/silicon/lithography.htm}}
(Accessed April 15, 2006).
\end{thebibliography}
\chapter{Appendix Title}
\label{sec:appendixname}
You can put extra content in an appendix.
% Make the index
\cleardoublepage
\singlespace
% NOTE: '\phantomsection' helps get the pdf bookmark to work right. You need
% to put it before every manual addition to the table of contents
\phantomsection
\addcontentsline{toc}{chapter}{Index}
\printindex
\end{document}