1. Michael Forbes
  2. latex-ubcthesis_new

Commits

Michael Forbes  committed dc71edf

Make ubcsample.tex work on its own (without mmfclassdoc.sty)
- No longer support of use .eps.
- Still need to work on this document.

  • Participants
  • Parent commits 7c2594e
  • Branches default

Comments (0)

Files changed (4)

File koma/fig.eps

  • Ignore whitespace
-../fig.eps

File koma/fig.pdf

  • Ignore whitespace
Binary file added.

File koma/ubcsample.tex

View file
  • Ignore whitespace
 %% - Show how to make a nice un-numbered dedication a la Bringhurst.
 %%
 %% This is file `ubcsample.tex',
-%% generated with the docstrip utility.
-%
-% The original source files were:
-%
-% ubcthesis.dtx  (with options: `ubcsampletex')
-%% 
-%% This file was generated from the ubcthesis package.
 %% --------------------------------------------------------------
 %% 
 %% Copyright (C) 2001
 %% This file may only be distributed together with a copy of this
 %% program. You may, however, distribute this program without generated
 %% files such as this one.
-%% 
 
 % This Sample thesis requires \LaTeX2e
 \NeedsTeXFormat{LaTeX2e}[1995/12/01]
 % optional arguments (in []) specify options that affect how the
 % thesis is displayed.  Please see the ubcthesis documentation for
 % details about the options.
-%\documentclass[msc,twoside,classdocs]{ubcthesis_new}
-\RequirePackage{mmfclassdocs}
+%\documentclass[msc,twoside]{ubcthesis_new}
 \documentclass[phd,
                twoside,
-               classdocs,       % For these docs: Not needed for a thesis.
                final,
                marginnote,      % For marginal notes
                ]{ubcthesis_new}
 
-% Pick your style here:
-%\usepackage{styles/ct}
-%\usepackage{styles/mmf}
-%\usepackage[outdenttoc=false]{styles/ctmmf}
-%\usepackage{ubcconform}
-\usepackage[dottedtoc=false]{styles/ctmmf}
+\usepackage{styles/ctmmf}
 \usepackage{styles/ctmmf_heads}
 \usepackage{styles/ctmmf_toc_titletoc}
-%\usepackage[pdfspacing]{classicthesis}
+\usepackage{styles/ubcconform}
 
 % To compile this sample thesis, issue the following commands:
 % latex ubcsample
 
 %\KOMAoption{float}{false}
 \usepackage{float}
-\exclude{
-\floatstyle{ruled}
-\newfloat{Program}{htbp}{lop}[chapter]
-\newcommand\listofPrograms{\listof{Program}{List of Programs}}
-\makeatletter
-\show\l@Program
-%\KOMAoption{float}{true}
-\show\l@Program
-\renewcommand{\cftProgrampresnum}{\scshape\MakeTextLowercase}% 
-\renewcommand{\cftProgramfont}{\normalfont}%                 
-\ifthenelse{\boolean{@dottedtoc}}{\relax}%
-{%
-  \renewcommand{\cftProgramleader}{\hspace{1.5em}}% 
-  \renewcommand{\cftProgramafterpnum}{\cftparfillskip}%
-}
-\renewcommand{\cftProgrampresnum}{\Programname~}
-\newlength{\Programlabelwidth}
-\settowidth{\Programlabelwidth}{\cftProgrampresnum~99}
-\addtolength{\Programlabelwidth}{2.5em}
-\cftsetindents{Program}{0em}{\Programlabelwidth}
-\makeatother
 
-\makeatletter
-\show\l@Program
-\let\c@Program=\relax
-\newcommand{\c@lopdepth}{2}
-\newlistentry{Program}{lop}{0}
-\show\l@Program
-\renewcommand{\cftProgrampresnum}{\scshape\MakeTextLowercase}% 
-\renewcommand{\cftProgramfont}{\normalfont}%                 
-\ifthenelse{\boolean{@dottedtoc}}{\relax}%
-{%
-  \renewcommand{\cftProgramleader}{\hspace{1.5em}}% 
-  \renewcommand{\cftProgramafterpnum}{\cftparfillskip}%
-}
-\renewcommand{\cftProgrampresnum}{\Programname~}
-\newlength{\Programlabelwidth}
-\settowidth{\Programlabelwidth}{\cftProgrampresnum~99}
-\addtolength{\Programlabelwidth}{2.5em}
-\cftsetindents{Program}{0em}{\Programlabelwidth}
-\makeatother
-} %\exclude
 %\usepackage{ccaption}
 %\newcommand{\listprogramname}{List of Programs}
 %\newlistof[chapter]{Program}{lop}{\listprogramname}
 % of the various sections.  If you suppress the numbers, you will need to
 % provide for additional visual stimulus.
 
+%%%%%%%% Delete when done
+% These are only needed here because we describe the documentation.  You do not
+% need them in your thesis but it is a good idea to use similar commands for
+% specialize markup that you need in your thesis.  Delete these when you replace
+% the content with your own.
+\IfFileExists{mmfclassdocs.sty}
+{\usepackage{mmfclassdocs}}
+{
+  \providecommand{\cls}[1]{\texttt{##1}}
+  \providecommand{\cls}[1]{\texttt{##1}}
+  \providecommand{\cmd}[1]{\texttt{##1}}
+  \providecommand{\prog}[1]{\texttt{##1}}
+  \providecommand{\env}[1]{\texttt{##1}}
+  \providecommand{\fnt}[1]{\texttt{##1}}
+  \providecommand{\file}[1]{\texttt{##1}}
+  \providecommand{\pkg}[1]{\texttt{##1}}
+  \providecommand{\opt}[1]{\textbf{##1}}
+  \usepackage{lipsum}             % Generates dummy text... don't use:-)
+}
+%%%%%%%%
+
 % Here is the start of the document.
 \begin{document}
 
 \label{sec:margin-notes}
 Another use of the margins is to include margin notes with useful information
 and commentary about the main text.  This is enabled by default with the
-\cls{ubcthesis} class option pair \opt[no]{marginnote}.  If you disable this
-with the \opt*{nomarginnote} option, then the layout will be slightly more
-centered. (You can still use the \cmd{marginpar} command, but you are in charge
-of the formatting!)
+\cls{ubcthesis} class option pair \opt{marginnote}/\opt{nomarginnote}.  If you
+disable this with the \opt{nomarginnote} option, then the layout will be
+slightly more centered. (You can still use the \cmd{marginpar} command, but you
+are in charge of the formatting!)
 
 \marginnote[Here is a margin note on the right.]{Here is a margin note on the
   left.}  This line has a margin note typeset with the command
 optional argument is used if that happens to be on the left (only one
 of the two notes will be typeset).
 
-There are two class options for using marginnotes: \opt[no]{usemarginnote}.
-Passing the \opt*{nousemarginnote} option to the \cls{ubcthesis} class will
-define a custom \cmd{marginnote} command based on the standard \cmd{marginpar}
-command that will typeset the margin notes as floats.  This has the advantage
-that they will reorganize themselves to not collide, but has several
-disadvantages, especially prohibiting the use of fragile commands (such as
-footnotes).  The complementary option invoked by passing the \opt*{marginnote}
-option to the \cls{ubcthesis} will load the \pkg{marginnote} package.  This
-typesets the notes exactly on the line where the command appears, and allows for
-complicated material to be included.  You must be responsible, however, for
-shifting these as needed to prevent collisions.\marginnote{Note: You may need to
-  run \LaTeX\ a couple of times for the notes to be properly positioned.}
+There are two class options for using marginnotes:
+\opt{usemarginnote}/\opt{nousemarginnote}.  Passing the \opt{nousemarginnote}
+option to the \cls{ubcthesis} class will define a custom \cmd{marginnote}
+command based on the standard \cmd{marginpar} command that will typeset the
+margin notes as floats.  This has the advantage that they will reorganize
+themselves to not collide, but has several disadvantages, especially prohibiting
+the use of fragile commands (such as footnotes).  The complementary option
+invoked by passing the \opt{marginnote} option to the \cls{ubcthesis} will load
+the \pkg{marginnote} package.  This typesets the notes exactly on the line where
+the command appears, and allows for complicated material to be included.  You
+must be responsible, however, for shifting these as needed to prevent
+collisions.\marginnote{Note: You may need to run \LaTeX\ a couple of times for
+  the notes to be properly positioned.}
 
 If you decide to use margin notes, make sure that the notes do not extend into
 the forbidden region required by the authorities (needed to ensure that binding
 %
 command with a factor different that 1.5 in order to obtain satisfactory
 results. See the \gls{KOMA} script documentation and search for the
-\opt*{mpinclude} option for details.  Bringhurst~\cite{Bringhurst:2008} makes
+\opt{mpinclude} option for details.  Bringhurst~\cite{Bringhurst:2008} makes
 good use of margin notes.
 
 One final note: Do not use a \cmd{marginnote} command at the start of
 \subsubsection{This is a Subsubsection}
 \index{subsubsection}
 Here are some more citations \cite{LL3:1977,Peccei:1989,Turner:1999}.  If you
-use the \opt*{sort\&compress} option with the \pkg{natbib} package, then the
+use the \opt{sort\&compress} option with the \pkg{natbib} package, then the
 following citation will look the same as the first citation in this section:
 \cite{Turner:1999,Peccei:1989,LL3:1977}.
 
   Contents}
 \begin{figure}[ht]
   \centering
-%% psfrag: comment the following line if not using the psfrag package
-  \psfrag{pie makes me happy!}{$\pi$ makes me happy!}
 %% includegraphics: comment the following if not using the graphicx package
-  \includegraphics[width=0.4\textwidth]{fig.eps}
-  \caption[Happy Face: figure example.]{This is a figure of a happy face with
-    a \pkg{psfrag} replacement.  The original figure (drawn in xfig and
-    exported to a .eps file) has the text ``pie makes me happy!''.  The
-    \pkg{psfrag} package replaces this with ``$\pi$ makes me happy!''.  Note
-    that we have used the optional argument for the caption command so that
-    only a short version of this caption occurs in the list of
-    figures.\label{fig:happy}}
+  \includegraphics[width=0.4\textwidth]{fig.pdf}
+  \caption[Happy Face: figure example.]{This is a figure of a happy face.  The
+    original version of the thesis class demonstrated the use of the
+    \texttt{psfrag} package, but this does not work with \texttt{pdflatex} which
+    has many other benefits, so we no-longer demonstrate this.  I recommend
+    using \texttt{matplotlib} for generating figures: it allows you to use latex
+    to typeset all the text within.
+    \label{fig:happy}}
 \end{figure}
 \afterpage{\clearpage}
 Here is an example of a figure environment.

File koma/ubcthesis_doc.tex

View file
  • Ignore whitespace
     \newacronym{BF}{bf}{big file}
     ...
   \end{lstlisting}
-  \marginnote{Hi}
-  \begin{adjustbox}{outer}
-    \fbox{outer\hspace{1.2\textwidth}}
-  \end{adjustbox}
-  \begin{adjustbox}{inner}
-    \fbox{inner\hspace{1.2\textwidth}}
-  \end{adjustbox}
-
   I can then use the acronym in the text of my document using one of the
   commands like \cmd{gls} show in table~\ref{tab:gls}.  The \cmd{glsreset}
   command is also useful to ensure that the following use will expand to the