-
Notifications
You must be signed in to change notification settings - Fork 3
/
Copy pathcsm-thesis.dtx
2157 lines (2081 loc) · 115 KB
/
csm-thesis.dtx
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
444
445
446
447
448
449
450
451
452
453
454
455
456
457
458
459
460
461
462
463
464
465
466
467
468
469
470
471
472
473
474
475
476
477
478
479
480
481
482
483
484
485
486
487
488
489
490
491
492
493
494
495
496
497
498
499
500
501
502
503
504
505
506
507
508
509
510
511
512
513
514
515
516
517
518
519
520
521
522
523
524
525
526
527
528
529
530
531
532
533
534
535
536
537
538
539
540
541
542
543
544
545
546
547
548
549
550
551
552
553
554
555
556
557
558
559
560
561
562
563
564
565
566
567
568
569
570
571
572
573
574
575
576
577
578
579
580
581
582
583
584
585
586
587
588
589
590
591
592
593
594
595
596
597
598
599
600
601
602
603
604
605
606
607
608
609
610
611
612
613
614
615
616
617
618
619
620
621
622
623
624
625
626
627
628
629
630
631
632
633
634
635
636
637
638
639
640
641
642
643
644
645
646
647
648
649
650
651
652
653
654
655
656
657
658
659
660
661
662
663
664
665
666
667
668
669
670
671
672
673
674
675
676
677
678
679
680
681
682
683
684
685
686
687
688
689
690
691
692
693
694
695
696
697
698
699
700
701
702
703
704
705
706
707
708
709
710
711
712
713
714
715
716
717
718
719
720
721
722
723
724
725
726
727
728
729
730
731
732
733
734
735
736
737
738
739
740
741
742
743
744
745
746
747
748
749
750
751
752
753
754
755
756
757
758
759
760
761
762
763
764
765
766
767
768
769
770
771
772
773
774
775
776
777
778
779
780
781
782
783
784
785
786
787
788
789
790
791
792
793
794
795
796
797
798
799
800
801
802
803
804
805
806
807
808
809
810
811
812
813
814
815
816
817
818
819
820
821
822
823
824
825
826
827
828
829
830
831
832
833
834
835
836
837
838
839
840
841
842
843
844
845
846
847
848
849
850
851
852
853
854
855
856
857
858
859
860
861
862
863
864
865
866
867
868
869
870
871
872
873
874
875
876
877
878
879
880
881
882
883
884
885
886
887
888
889
890
891
892
893
894
895
896
897
898
899
900
901
902
903
904
905
906
907
908
909
910
911
912
913
914
915
916
917
918
919
920
921
922
923
924
925
926
927
928
929
930
931
932
933
934
935
936
937
938
939
940
941
942
943
944
945
946
947
948
949
950
951
952
953
954
955
956
957
958
959
960
961
962
963
964
965
966
967
968
969
970
971
972
973
974
975
976
977
978
979
980
981
982
983
984
985
986
987
988
989
990
991
992
993
994
995
996
997
998
999
1000
% \iffalse meta-comment
%
% Copyright (C) 2008-2012 by Erich E. Hoover
%
% This file may be distributed and/or modified under the
% conditions of the LaTeX Project Public License, either
% version 1.2 of this license or (at your option) any later
% version. The latest version of this license is in:
%
% http://www.latex-project.org/lppl.txt
%
% and version 1.2 or later is part of all distributions of
% LaTeX version 1999/12/01 or later.
%
% \fi
%
% ^^A things to look for and replace: ’ “ ½
%
% \iffalse
%<package>\NeedsTeXFormat{LaTeX2e}[1999/12/01]
%<package>\ProvidesPackage{csm-thesis}
%<package> [2011/11/12 v1.0 .dtx csm-thesis file]
%<*driver>
\documentclass{ltxdoc}
\DisableCrossrefs
%\OnlyDescription
\DoNotIndex{\RequirePackage}
\usepackage[cm]{fullpage}
\usepackage[breaklinks=true,pdfborder={0 0 0},colorlinks=true,urlcolor=blue]{hyperref}
\usepackage{wrapfig}
\usepackage{graphics}
\usepackage{textcomp}
\usepackage{tabularx}
\usepackage{wasysym}
\usepackage{pdfpages}
\usepackage{color}
\usepackage{units}
\usepackage{makeidx}
% Use ``pretty'' fractions for 1/2 and 1/4
\renewcommand{\textonehalf}{\nicefrac{1}{2}}
\renewcommand{\textonequarter}{\nicefrac{1}{4}}
% Make the documentation look pretty:
\hyphenpenalty=1000
\tolerance=1000
% Do not display section numbers
\setcounter{secnumdepth}{-1}
% Create a special ``note'' type paragraph
\newcommand{\note}[1]{%
\textbf{Note:} #1%
}
% Create a special ``important'' paragraph (with a lightbulb)
\makeatletter
\newcommand{\important}[1]{%
\ifnum\@itemdepth=0\relax%
\begin{wrapfigure}{r}{2cm}%
\vspace{-\baselineskip}%
\resizebox{\linewidth}{!}{\includegraphics{doc-figures/lightbulb}}%
\end{wrapfigure}%
#1%
\else%
\par\noindent\begin{minipage}{\linewidth}%
% Permit easier hyphenation in the ``important'' box
\hyphenpenalty=1000%
\tolerance=1000%
\begin{wrapfigure}{r}{2cm}%
%\vspace{-\baselineskip}%
\resizebox{\linewidth}{!}{\includegraphics{doc-figures/lightbulb}}%
\end{wrapfigure}%
\indent\par %
#1%
\end{minipage}%
\vspace{0.25\baselineskip}%
\fi%
}
\makeatother
% Make a pretty looking ``first''
\newcommand{\first}{%
1$^{\textrm{\scriptsize st}}$%
}
\makeatletter
\global\let\orig@paragraph=\paragraph
\renewcommand{\paragraph}[1]{%
\orig@paragraph{#1}\hfill\par%
}
\global\let\orig@appendix=\appendix
\renewcommand{\appendix}{
\orig@appendix
\renewcommand{\thesection}{Appendix~\Alph{section}}
\renewcommand{\theHsection}{Appendix~\Alph{section}}
\global\let\@currentlabel\thesection
\global\let\orig@section=\section
\gdef\section##1{%
\stepcounter{section}%
\orig@section{{\thesection} - ##1}%
}
}
\definecolor{SectionColor}{RGB}{128,0,0}
\renewcommand\section{\@startsection {section}{1}{\z@}%
{-3.5ex \@plus -1ex \@minus -.2ex}%
{2.3ex \@plus.2ex}%
{\normalfont\Large\bfseries\color{SectionColor}}}
% Make the whole ``Table <X>'' text a link:
\renewcommand{\thetable}{Table~\arabic{table}}
\def\fnum@table{\thetable}
\makeatother
% Allow index creation (and add it to the Table of Contents)
\IndexPrologue{\section{Index}\indent\setcounter{unbalance}{1000}}
\def\IndexParms{}
\setcounter{IndexColumns}{2}
\setlength{\IndexMin}{0pt}
\makeindex
% Make a convenient command to output text and also add it to the index in one go
\newcommand{\addtoindex}[1]{\index{#1}#1}
\begin{document}
\DocInput{csm-thesis.dtx}
\end{document}
%</driver>
% \fi
%
%\iffalse
%% Define convenient ``true'' and ``false'' variables
\gdef\@true{1}
\gdef\@false{0}
%% <Package Options>
%% Turn off sanity checks: \usepackage[insanity]{csm-thesis}
\global\let\csm@thesis@nochecks=\@false
\DeclareOption{insane}{\global\let\csm@thesis@nochecks=\@true}
%% Enable bold chapter headings: \usepackage[chapterbold]{csm-thesis}
\global\let\csm@thesis@chapterbold=\@false
\DeclareOption{chapterbold}{\global\let\csm@thesis@chapterbold=\@true}
%% Turn off automatic Figure/Table labeling: \usepackage[nolabel]{csm-thesis}
\global\let\csm@thesis@nolabel=\@false
\DeclareOption{nolabel}{\global\let\csm@thesis@nolabel=\@true}
\ProcessOptions
%% </Package Options>
%% <Global Convenience Routines>
%% Hook for adding outputpage functionality
\global\let\csm@outputpage@hook\@empty
%% Hook for adding code to occur at the \backmatter command
\global\let\csm@backmatter@hook\@empty
%% Hook for adding code to occur at the \chapter command
\global\let\csm@chapter@hook\@empty
%% <<NOTE:>> The following ``for loop'' command is a convenience function for looping a counter over a variable
%% This is used for generating the inverted pyramid title and for sorting lists (among other things).
\newcommand{\csm@ForLoop}[5][1]{%
\setcounter{#2}{#3}%
\ifnum#4\relax%
#5%
\addtocounter{#2}{#1}%
\csm@ForLoop[#1]{#2}{\value{#2}}{#4}{#5}%
\fi%
}%
%% </Global Convenience Routines>
%% <Internal Packages>
%% Allow fancy sanity checking
\RequirePackage{csm-thesis-sanity}
%% Use custom environments for additional error checking
\RequirePackage{csm-thesis-environments}
%% Title shape handling
\RequirePackage{csm-thesis-title}
%% Lists of tables, figures, symbols, etc.
\RequirePackage{csm-thesis-lists}
%% The CSM Thesis uses special section types
\RequirePackage{csm-thesis-sections}
%% </Internal Packages>
\if@twoside
\csm@thesis@error{The OGS guidelines no longer permitted double-sided documents (disable ``twoside'' option).}
\fi
%% Detect hyperref when document loads (do not use \csm@hyperref before document beginning)
\gdef\csm@hyperref{\csm@thesis@error{This command is only valid within the document, sorry!}{}}
\AtBeginDocument{%
\@ifpackageloaded{hyperref}{%
\global\let\csm@hyperref=\@true%
}{%
\global\let\csm@hyperref=\@false%
}%
}
%% Handle labeling pages for both old and new hyperref (and users without hyperref)
\def\csm@page@label#1{%
\@ifundefined{thispdfpagelabel}{%
\gdef\thepage{#1}%
}{%
\ifx&%
% #1 is empty
\thispdfpagelabel{#1}%
\gdef\thepage{emptypage-\@arabic\c@emptypage}%
\else%
% #1 is nonempty
\gdef\thepage{#1}%
\fi
}%
}
%% Allow redefining the page number
\newcounter{csmpage}
\newcounter{truepage}
\newcounter{emptypage}
\setcounter{emptypage}{0}
\setcounter{csmpage}{\value{page}}
\setcounter{truepage}{\value{page}}
\def\pagenumbering#1{\global\c@csmpage\@ne \csm@page@label{\csname @#1\endcsname \c@csmpage}}
%% Align pages to the top without warnings
\raggedbottom
%\fi
%
% \title{The \textsf{csm-thesis} package}
% \author{Erich E. Hoover \\ \texttt{ehoover@mines.edu}}
%
% \maketitle
%
% Based upon the \textit{Thesis and Dissertation Writer's Guide} provided by the Colorado School of Mines Office of Graduate Studies, Fifth Edition (Revised Spring 2009). This documentation includes the contents of the guide and additional formatting guidelines that have not yet been included within the guide. Please note that this document should not be considered to supersede the guide, the Office of Graduate Studies has final say on all theses. An additional advantage to using this document is that references to different sections of the text are all hyperlinked, allowing for easy traversal of the document.
%
% \twocolumn
%
% \phantomsection
% \renewcommand{\contentsname}{Table of Contents}
% \pdfbookmark[1]{\contentsname}{toc}
% \tableofcontents
%
% \cleardoublepage
% \section{About This Guide}
%
% The Colorado School of Mines Office of Graduate Studies (OGS) publishes this guide for graduate students in all departments who must prepare a master's thesis or doctor of philosophy dissertation as part of the requirements for a CSM graduate degree. In this guide, the word ``thesis'' refers to both the thesis and the dissertation, unless otherwise noted.
%
% Every CSM thesis is deposited with the Arthur Lakes Library as part of its permanent collection and for long-term preservation. To produce a final manuscript of high quality, consistent adherence to the University's standards of organization and formatting is crucial. This guide is meant as a set of minimum guidelines for producing the final copies of your thesis.
%
% Before submission to the Library, each completed thesis must receive final format approval from OGS. If you follow the formatting guidelines defined in this document, your thesis format will be accepted.
%
% Some variations in thesis format may be accepted for the main body and references; however, every thesis must include the required parts of the front matter. In addition, every thesis must follow the conventions for page numbering and margins described in this document.
%
% If you choose an alternative format, OGS retains the right to accept or reject this formatting at its discretion. Therefore, prior to submitting your thesis to the OGS for final format review, it is in your best interest to verify with the OGS staff that your format is acceptable. You will find examples of recommended and required page formats for various parts of the thesis in \ref{apx:examples}.
%
% Unless stated differently, required forms referred to in this guide may be found online at the OGS website under Graduate School Forms,\newline
% \url{http://gradschool.mines.edu/GS-Forms}.
%
% Included in \ref{apx:checklists} of this guide are procedure check lists for 1) writing and defending your thesis; 2) submitting required forms; 3) formatting your thesis, and 4) printing and submitting your thesis.
%
% \section{Helpful Resources}
%
% Although this guide contains some writing tips, it is not a handbook for technical writing. Students who want to learn more about technical writing style, punctuation, and grammar may find information on campus at the LAIS Writing Center,\newline
% \url{http://writing.mines.edu/}.
%
% The LAIS Writing Center is a free tutorial service available to all CSM students. Tutors in the Writing Center work \emph{with} students to improve their writing; however, the Center is not a proofreading and editing service.
%
% There are numerous manuals available to help students who are writing a thesis. Before purchasing a text or downloading information, you should consult with the OGS and/or your faculty advisor for suggestions of the best reference tools specific to your discipline. A partial list of such style manuals appears in \ref{apx:resources}.
%
% \section{Before Writing Your Thesis}
%
% You should begin your thesis process by the second semester of classes as a master's student or at least one year before you plan to receive your degree, as a Ph.D. student. Below are some items to consider as you begin the thesis process.
%
% \subsection{Review OGS requirements}
%
% As a thesis writer, you are encouraged to communicate with the OGS staff to verify that you are following the necessary guidelines for producing the thesis. You should also be certain that you understand the process of registering for research credits.
%
% \subsection{Review department requirements}
%
% CSM academic departments may have additional requirements specific to their discipline. It is your responsibility to know the deadlines specific to your department and whether or not special organization and formatting are required. If special department or committee requirements contradict the information in this guide, you must resolve the conflict before writing the thesis.
%
% \subsection{Request thesis advisor and committee}
%
% At both the master's and Ph.D. levels, the student is responsible for choosing a thesis advisor. The Dean of Graduate Studies appoints the thesis committee, based on the recommendations of the student, thesis advisor, and department head. A signed Advisor/Thesis Committee form must be filed with the OGS.
%
% \subsection{Present research proposal}
%
% After a thesis topic has been selected, a research proposal is written. The research proposal is a description of the research the student intends to undertake, which will be reported in a more detailed and comprehensive fashion in the thesis. The proposal is your opportunity to convince the advisory committee of your ability to pursue the project to a successful conclusion. After the thesis proposal has been formally approved by the committee, the Admission to Candidacy form is submitted to OGS. The thesis proposal itself does not need to be approved by the OGS.
%
% \section{Writing Your Thesis}
%
% The work described in a CSM thesis must be conducted under the supervision of a candidate's advisory committee, and the thesis must state in detail all results obtained and all methods and processes used in the research. Descriptions of method must be made in such a way that they may be duplicated by any competent researcher. Below are some other points to consider.
%
% \subsection{Including proprietary research}
%
% Under special circumstances, CSM may agree to include proprietary research in a graduate student's thesis. The nature and extent of the proprietary research reported in the thesis must be agreed upon in writing by the principal investigator, student, and Dean of Graduate Studies (Proprietary Research Agreement form). In some cases, the proprietary nature of the underlying research may require the school to delay public access to the completed thesis for a limited period of time. In no case will public access to the thesis be denied for more than 12 months from the date the Statement of Work Completion form is submitted to the OGS.
%
% \subsection{Following required guidelines}
%
% As you write your thesis, consult with your advisor and committee as necessary. Edit all drafts for correct sentence structure and grammar, paragraphing, punctuation and spelling. Specific OGS requirements for thesis organization, style and formatting are found in this guidebook.
%
% \subsection{Registering for copyright}
%
% Students own the copyright to their thesis and you may wish to register your work with the Library of Congress. Typically, the holder of the copyright is required to submit two copies of the copyrighted work, a registration fee, and a completed application form (Form TX). To order forms, call the Copyright Office Form Hotline at 202-707-9100. Additional information is found at the Copyright Office website:\newline
% \url{http://www.copyright.gov/}.
%
% \subsection{Obtaining publisher permissions}
%
% If you wish to include material in your thesis that has been previously published, permission from the publisher may be required. In addition, academic department policies vary regarding the inclusion of such material, and therefore the approval of your advisory committee is required.
%
% \section{Completing Your Thesis}
%
% Once you have finished writing your thesis, there are required steps to perform before the process is complete and your degree is awarded. Those steps are described below and are summarized in a checklist in \ref{apx:checklists}.
%
% \subsection{Application to Graduate}
%
% Within five weeks of the beginning of the semester in which you expect to graduate, submit an Application to Graduate form to OGS.
%
% \subsection{Schedule the thesis defense}
%
% The student must orally defend the written thesis in front of the advisor and advisory committee before the thesis submittal deadline that is set by the OGS each semester. Upon finishing the writing of your thesis, schedule the thesis defense, allowing enough time (roughly two weeks) for committee members to thoroughly examine the thesis. Keep in mind that several students may be arranging defenses for essentially the same time, with the same faculty members. You should also be aware of your department's deadlines for defending.
%
% \note{The thesis defense is open to the public.}
%
% \subsection{Submit Thesis Defense Request form}
%
% At least one week before the thesis defense, submit the Thesis Defense Request form to your home department.
%
% \subsection{Defend and revise the thesis}
%
% Your committee may require you to make additional revisions following your thesis defense. Be certain that you allow enough time between your defense date and the thesis submittal deadline to complete these revisions.
%
% \note{Your department may have a maximum time allowed for the completion of revisions following the thesis defense; you should become aware of any such requirement.}
%
% \subsection{Obtain required signatures}
%
% Once your advisor and advisory committee have approved the defended and revised thesis, you must sign and date the submittal sheet (ii). Your thesis advisor (and coadvisor, if applicable) and department head must also sign and date the submittal sheet. Black ink is preferred for signatures.
%
% \note{You must obtain all signatures prior to submitting the thesis to the OGS for final format evaluation.}
%
% \subsection{Obtain final format approval}
%
% \important{After your department head and advisor have approved the defended and revised thesis and have signed the submittal sheet, submit the final draft to the OGS for format evaluation.}
%
% The format evaluation is a general review of the document to check for consistency, proper chapter sequence, correct font and margins, and proper table and figure placement. To receive approval, the draft you submit for evaluation by OGS must exactly duplicate the final submission you will present to the library for preservation, including any labeled and folded plates, maps, and CD/DVDs.
%
% \note{The OGS reviewer does not edit the thesis during format evaluation. You should plan to leave your thesis with the OGS for 24 hours.}
%
% \subsection{Print required copies}
%
% You are responsible for printing the final copies of the thesis that are submitted to the Arthur Lakes Library for binding and preservation. Details on printing requirements are found in the section \hyperref[sec:printing-thesis]{Printing Your Thesis}, page~\pageref{sec:printing-thesis}.
%
% \subsection{Obtain virus scan for CD/DVDs}
%
% To submit any part of your thesis on CD/DVD, you must first have your disk certified by the AC\&N department as virus free. To learn more about this requirement, see \hyperref[sec:computer-disks]{Computer disks}, page~\pageref{sec:computer-disks}.
%
% \subsection{Pay fees}
%
% You must pay graduation and all other outstanding fees to the CSM cashier before submitting your thesis copies to the library for binding.
%
% \subsection{Submit copies to Arthur Lakes Library}
%
% The award of a thesis-based graduate degree is conditioned on the student's submittal of the completed thesis to the campus library, ensuring its availability to the public. Although the student retains the copyright of the thesis, by depositing the thesis with the library, the student assigns a perpetual, nonexclusive, royalty-free license to CSM and permits CSM to copy the thesis and allow the public reasonable access to it. Detailed information on how to submit your thesis to Arthur Lakes Library is found on page~\pageref{sec:submitting-your-thesis}.
%
% \subsection{Check Out}
%
% You can obtain the required checkout card either at the OGS, Guggenheim Hall, or at the Graduation Salute, which is held each semester. Part of the checkout procedure is also the submission of the Statement of Work Completion form that may be found online at \url{http://gradschool.mines.edu/GS-Forms}. For your convenience, you will also find Graduation Information and Deadlines in this same location.
%
% \StopEventually{}
% \section{Organizing Your Thesis}
%
% A thesis has three main parts: 1) front matter, 2) body, and 3) back matter. The elements of each main part listed here are further explained in separate sections, but they should appear in the sequence shown here.
%
% \subsection{Parts of a Thesis}
%
% \subsubsection{Front Matter (preliminary pages)}
% \begin{enumerate}
% \item Title page\dotfill (required)
% \item Copyright page\dotfill (if applicable)
% \item Submittal sheet or signature page\dotfill (required)
% \item Abstract\index{abstract}\dotfill (required)
% \item Table of Contents\dotfill (required)
% \item List of Figures\dotfill (if applicable)
% \item List of Tables\dotfill (if applicable)
% \item List of Plates\dotfill (if applicable)
% \item Acknowledgments\index{acknowledgments}\dotfill (optional)
% \item Dedication\dotfill (optional)
% \end{enumerate}
%
% \subsubsection{Body}
% \begin{enumerate}
% \item Introduction\dotfill (optional)
% \item All chapters and sections of text\dotfill (required)
% \end{enumerate}
%
% \subsubsection{Back Matter (supplementaries)}
% \begin{enumerate}
% \item References Cited\dotfill (required)
% \item Selected Bibliography\dotfill (optional)
% \item Appendices\index{appendices}\dotfill (if applicable)
% \end{enumerate}
%
% A thesis might also include a \textbf{glossary}, a \textbf{list of symbols}, or a \textbf{list of \addtoindex{abbreviations}}. Any of these lists may either follow the last list in the front matter or precede the References Cited section in the back matter.
%
% \subsection{Alternative Organization}
%
% In addition to the thesis organization described above, there may be cases where an alternative organization is appropriate.
%
% \subsubsection{Multi-part thesis}
%
% With the approval of the faculty advisor, a student may combine research in related areas into a single thesis that includes published or unpublished papers and/or multiple projects. In a multi-part thesis, the research is arranged in a coherent order with consecutive page numbering throughout the body and back matter. A multi-part thesis has a single table of contents and other front matter as well as a single list of references and other back matter.
%
% Please be aware that a multi-part thesis containing previously published material may be subject to copyright permission issues. Copyright policies are discussed on page~\pageref{sec:using-copyrighted-material}, \hyperref[sec:using-copyrighted-material]{Using Copyrighted Material}.
%
% \section{Formatting Your Thesis}
%
% \important{Producing text that is visually and stylistically \emph{consistent}, gives a professional look and feel to your thesis. Though some thesis format elements are strictly required by the OGS, many formatting decisions are left to your discretion. However, once you have made those choices, you must apply them throughout the entire thesis. OGS requirements are marked with the light bulb symbol for quick identification.}
%
% \subsection{Using format templates}
%
% Microsoft and {\LaTeX} both offer software for formatting a thesis. {\LaTeX} may be downloaded from\newline \url{http://www.Latex-project.org/}.
%
% Software packages are also available for formatting references. One such application is EndNote.
%
% \note{CSM does not provide technical support for these templates.}
%
% \paragraph{Using student models}
%
% You should be cautious if you use a previous student's thesis as a model for your own. OGS changed certain format requirements beginning with the Spring 2007 Fifth Edition of this guidebook, and what was previously acceptable may no longer be so.
%
% \subsection{Thesis Length}
%
% There is no upper page limit for a thesis; however, a bound volume is limited to the thickness of two inches, including folded maps, plates and CDs.
%
% \subsubsection{Single-volume thesis}
%
% In order to stay within the two-inch limit for a single volume, we suggest the following practices:
% \begin{itemize}
% \item Write as concisely as possible.
% \item Use 1{\textonehalf} line spacing rather than 2 in running text.
% \item Print the thesis on two sides of the paper, instead of printing single sided.
%% \important{\textbf{Exceptions:} The pages of the front matter must be printed single sided. The first page of each new chapter in the thesis body must begin on an oddnumbered (right-handed) page, leaving the opposing page blank if necessary.}
%\iffalse
%% The built-in \cleardoublepage prints a page number, this special version does not
% \renewcommand{\cleardoublepage}{
% \@ifstar{\null}{}
% \clearpage %% Dump all floats before making our new page
% \newpage
% \thispagestyle{empty} %% There is no page number for blank pages
% %% If we are doing a two-sided document then the next page MUST be an odd-numbered page
% \if@twoside
% \ifodd\c@truepage \else
% %% Use \hbox{} instead of \null?
% \null\newpage
% \if@twocolumn
% \null\newpage
% \fi
% \fi
% \fi
% \thispagestyle{plain} %% Go back to page numbers for normal pages
% }
\newcommand{\newoddpage}{\cleardoublepage}
%\fi
% \item Store large appendices as well as maps, plates, figures, tables, and other over-sized material on CD/DVD. This option is further described on page \pageref{sec:computer-disks}, \hyperref[sec:computer-disks]{Computer disks}.
% \end{itemize}
%
% \subsubsection{Multi-volume thesis}
% \label{sec:multi-volume-thesis}
%
% A thesis thicker than two inches (including any supplementary elements such as folded plates or CD's), must be bound in more than one volume, and the writer must pay an additional binding fee for each volume. Each volume of the multi-volume thesis must have a title page that includes the volume number and a table of contents. You are encouraged to obtain advice from the Arthur Lakes Library Preservation Unit or the OGS about where to split thesis material into two volumes.
%
% \subsection{Page Margins}
%
%% The required thesis page size is 8{\textonehalf} by 11 inches (letter size). The page margins given here are required and not optional.
%% \begin{itemize}
%% \item Top and bottom text margins: 1 inch wide.
%% \item Inside text margin (binding side): 1{\textonehalf} inch wide.
%% \item Outside text margin: no less than 1 inch wide.
%% \item Two-sided printing: the inside and outside margin widths should alternate pages. (Most word processing programs will automatically alternate margins on odd and even pages for documents that are copied on two sides).
%% \item Page-number margin: {\textonehalf} inch from either the top or the bottom edge of the page.
%% \end{itemize}
%\iffalse
\RequirePackage[left=1in,top=1in,right=1in,bottom=1in,bindingoffset=0.0in,nohead,foot=0.5in]{geometry}
%\fi
%
% \note{Photocopying may enlarge an image, in which case, you should be certain that your margin widths stay within these requirements. For the same reason, when printing an electronic file or converting a file to PDF format, be certain to turn off the Scale to Page feature.}
%
% \subsection{Aligning Text}\index{alignment}
%
%% OGS prefers left-margin justification of paragraph text with ``ragged right'' edges. Right margin justification is accepted \emph{only} if the word spacing is proportional, with no extra white space between words.
%\iffalse
%% <<NOTE: LaTeX has no ragged edges, on either side, by default>>
%\fi
%
% \subsection{Centering Text}
%
%% When this guide directs that text and graphics be centered on the page between the left and right text margins, please note that is not the same as centering between the left and right edges of the paper. Keep in mind that the left and right margins on a page are not equal in width.
%\iffalse
%% <<NOTE: There is no easy way to make this mistake in LaTeX, it knows how to center properly>>
%\fi
%
% \subsection{Page Numbers}
%
% \important{Requirements for the font style and location of page numbers in the thesis front matter differ from requirements for page numbers in the body and back matter of the thesis.}
%
% \subsubsection{Front matter page numbers}
%
%% Roman numerals are used for page numbering of the front matter. Page numbers on the title page and copyright page are not displayed. Displayed page numbering begins on the submittal sheet, and is always roman numeral two (ii), regardless of whether or not a copyright page is included. The first page of the \addtoindex{abstract} is roman numeral three (iii), and so forth for the rest of the front matter.
%%
%% Page numbers in the front matter are placed centered between the left and right text margins and {\textonehalf} inch from the bottom edge of the paper.
%\iffalse
\let\@frontmatter@exists\@empty
\let\@frontmatter@active\@false
\let\@csm@newpage@call\@false
\newcommand{\frontmatter}{
\global\let\@frontmatter@active\@true
\global\let\@frontmatter@exists\@true
\pagenumbering{roman}
\pagestyle{plain}
}
\newcommand{\backmatter}{%
\csm@backmatter@hook%
}
%\fi
%
% \subsubsection{Main body and back matter page numbers}
%
%% Arabic numerals are used for the page numbering of the main body and of the back matter. The page number on the first page of the body (Introduction or Chapter 1) is arabic numeral one (1). The arabic numbering continues consecutively throughout the rest of the thesis, including the back matter.
%%
%% Page numbers in the body and back matter are placed at any appropriate place on the page. However, the placement of the page numbers must remain consistent throughout the body and back matter. Page numbers are usually placed at the top right text margin, {\textonehalf} inch from the top edge of the page.
%\iffalse
%% <<NOTE: Leaving page number at bottom, page numbers look funny at the top>>
\let\@bodymatter@exists\@empty
\newcommand{\bodymatter}{
\global\let\@frontmatter@active\@false
\global\let\@bodymatter@exists\@true
% Return to normal pages
\gdef\c@csmpage{\c@page}
\gdef\c@truepage{\c@page}
\pagenumbering{arabic}
}
%\fi
%
% \subsection{Line Spacing and Indenting}
%
%% \important{The space between lines of all running text is 1{\textonehalf} or 2 lines (unless otherwise noted), and the first line of each paragraph is indented. Appropriate white space must separate text before and after short tables and figures that are included in text.}
%%
%% \note{Line spacing for figure or table captions is single spaced, as is that for multiple-line entries in lists (e.g., Reference Cited).}
%\iffalse
%% <<NOTE: Using 2 line spacing for now, may require 1.5 lines (\onehalfspacing)>>
\RequirePackage{setspace}
\doublespacing
% <<EXTRA:>> Fix a bug in setspace (or possibly longtable?) that screws up hyperref footnotes
\AtBeginDocument{
\@ifpackageloaded{hyperref}{%
\global\let\orig@footnotetext=\footnotetext
\gdef\footnotetext[#1]{\orig@footnotetext}
}{}
}
%\fi
%
% \subsection{Font or Typeface}
%
% Font or typeface affects the readability of your thesis more than any other style element; and as with other elements of the thesis, the font must be consistent throughout.
%
% \subsubsection{Font style}
%
%% \important{If you prefer to use a serif font, you may choose either Times or Times New Roman. If you prefer a sans serif font, you may use either Arial or Helvetica. You must use the same font style throughout the thesis; including, e.g., lists, page numbers, headings and subheadings, chapter and appendix\index{appendices} titles, and figure and table captions.}
%\iffalse
\AtBeginDocument{
% Since the font needs to match for the whole document we need to make sure that the ``familydefault'' font is used for math mode as well.
\long\def\csm@cmp@string@{\sfdefault}
\ifx\familydefault\csm@cmp@string@\relax
% Change math mode to use the sans serif font
\usepackage{sfmath}
\fi
}
%\fi
%
% \subsubsection{Font size}
%
%% All running text must use a professional-looking type size; OGS recommends using between 10- and 12-point type.
%\iffalse
%% <<NOTE: This is handled in the document itself>>
%% <<TODO: Check the value of \@ptsize to make sure a sane size was chosen.>>
%\fi
%
% \subsubsection{Symbols}
%
% All symbols in the text, figures and tables must be typed or lettered, not handwritten.
%
% \section{About the Front Matter}
%
% \important{Front matter is the preliminary material that precedes the thesis Introduction or Chapter One, if the thesis has no introduction.}
%
%% \note{All pages of front matter are copied single sided. That is, each page is blank on the back. See \ref{apx:examples} for page examples. Roman numerals are used for page numbering of the front matter.}
%
%\iffalse
\let\recursive@output\@false
\let\latex@outputpage\@outputpage
% <<NOTE: You must be EXTREMELY careful in redefining the \@outputpage primitive, certain mistakes will cause LaTeX to hang indefinitely>>
\def\@outputpage{
\csm@outputpage@hook%
\latex@outputpage%
\begingroup
% Only the front matter has blank back pages
\ifx\@frontmatter@active\@true
\addtocounter{csmpage}{1}
\addtocounter{truepage}{1}
\setcounter{page}{\value{csmpage}} %% for proper numbering with hyperref
\fi
\endgroup
%% When the ``insane'' option is enabled and the \makesubmittal command does not exist we need to reset the numbering properly
\ifx\csm@customnumber@output\@true
\pagenumbering{roman}
\setcounter{csmpage}{2}
\setcounter{page}{2}
\global\let\csm@customnumber@output\@false
\fi
}
%\fi
%
% \subsection{Page Sequence}
%
% The sequence of the front matter is very important, and is as follows:
% \begin{enumerate}
% \item Title page\dotfill (required)
% \item Copyright page\dotfill (if applicable)
% \item Submittal sheet (page ii)\dotfill (required)
% \item Abstract\index{abstract} (page iii)\dotfill (required)
% \item Table of Contents\dotfill (required)
% \item List of Figures\dotfill (if applicable)
% \item List of Tables\dotfill (if applicable)
% \item List of Plates\dotfill (if applicable)
% \item Acknowledgments\dotfill (optional)
% \item Dedication\dotfill (optional)
% \end{enumerate}
%
% If a thesis has not been formally copyrighted, and/or contains no figures, tables, plates, \addtoindex{acknowledgments} or dedication; then those items are not included. All other parts of the front matter are required.
%
% \subsection{Title Page}
%
%\iffalse
%% Below is a convenience command for entering atoms in the title of a thesis.
%% Please note that the Thesis Writer's Guide DOES NOT provide a prescription for having atoms/molecules in the title and may no-longer allow them through format review.
%% Usage: \atom{mass number}{proton number}{symbol}{ionization}{# atoms}
\@ifpackageloaded{hyperref}{}{\let\texorpdfstring\@empty} %% Make \texorpdfstring empty, but do not redefine it if hyperref is already loaded.
\gdef\csm@texorpdfstring#1#2{%
\ifx \texorpdfstring \@empty%
#1%
\else%
\texorpdfstring{#1}{#2}%
\fi%
}
\newcommand{\atom}[5]{%
\csm@texorpdfstring{$^{#1}_{#2}$}{}%
\protect\NoCaseChange{#3}%
\csm@texorpdfstring{$^{#4}_{#5}$}{#5}%
}
%\fi
% The title page shows the thesis title and the author's name.
%
%% The thesis title, in ALL CAPITAL letters, is centered on the page between the left and right text margins, and between the top and bottom text margins. Long titles may be broken logically into more than one line, arranged in an inverted pyramid, 1{\textonehalf}- or double-spaced between lines.
%
%% The author's name, in upper- and lower case letters, is centered between the right and left text margins, and appears flush with the lower oneinch text margin. The word ``by'' in lower case letters, is centered one blank line (e.g., 1{\textonehalf}- or double-space) above the author's name.
%
%% The title page is unnumbered and blank on its back side.
%
%% \note{A title should be brief and descriptive, avoiding introductory phrases like ``A Study to Determine\ldots'' or ``An Investigation and Evaluation of\ldots .''}
%\iffalse
%%\global\let\maketitle\relax % NOTE: Some TeX distributions define ``maketitle'' funny, clear that definition before starting
\let\@title\@empty
\let\@maketitle@exists\@empty
\global\let\csm@customnumber@output\@false
\newbox\csm@titletext
\renewcommand{\maketitle}{
\global\let\@maketitle@exists\@true
%% BEGIN LaTeX Sanity Checks
\sanitize{\@title}{title}
%% END LaTeX Sanity Checks
\leavevmode%% Switch to horizontal mode so the ``\vfill'' will perfectly vertically center the title
\vfill
\begin{center}
\makeatletter
{\begingroup
%% Check for returns in the title
\global\let\csm@returnexists\@false
{\begingroup
\def\\{\global\let\csm@returnexists\@true}
\setbox\csm@titletext=\vbox{\@title}
\endgroup}
%% If there are returns in the title then use the user-generated title,
%% otherwise attempt to automatically generate the inverted pyramid
\ifx\csm@returnexists\@true
\ManualTrapezoidTitle
\else
\AutoTrapezoidTitle
\fi
\endgroup}
\makeatother
\end{center}
\vfill
\begin{center}
by\linebreak
\makeatletter
\@author
\makeatother
\end{center}
\thispagestyle{empty} %% no page number for the title page
\csm@page@label{title} %% use a special hyperref ``page seek'' for the copyright page
\global\let\csm@customnumber@output\@true %% needs to be turned off after page is output
}
%\fi
%
% \subsection{Copyright Page}
%
% Although the student owns the copyright to the thesis, you may wish to register the thesis with the Library of Congress (see Registering for Copyright).
%
% If an official copyright is obtained, the copyright page is the second page in the thesis, but numbering is suppressed, just as it is in the title page. The copyright page is always blank on the back side.
%
%% The thesis copyright page contains the 1) author's name, 2) the date, and 3) the statement, ``All Rights Reserved,'' centered on the page. See the example in \ref{apx:examples}.
%\iffalse
\newcommand{\makecopyright}[1]{
\vspace*{\fill}
\begin{center}
\textbf{{\textcopyright} Copyright by {\@author}, {#1}} \\
All Rights Reserved
\end{center}
\vspace*{\fill}
\thispagestyle{empty} % no page number for the copyright page
\csm@page@label{copyright} % use a special hyperref ``page seek'' for the copyright page
\global\let\csm@customnumber@output\@true % needs to be turned off after page is output
}
%\fi
%
% \subsection{Submittal Sheet}
%
%% \important{The submittal sheet contains the 1) submittal statement; 2) the signatures of the author, thesis advisor, co-advisor (if applicable), and department head; as well as 3) signature dates. To find the required submittal sheet format, see the example in \ref{apx:examples}.}
%
% \subsubsection{The submittal statement}
%
%% The submittal statement is typed in paragraph form beginning at the top text margin, double-spaced, with the first line indented.
%
% \subsubsection{Signature dates}
%
%% The city, state and signature date are flush with the left text margin.
%
% \subsubsection{Signatures}
%
%% The lines for signatures are flush with the right margin.
%
%% \note{The page must be signed by all parties in black ink before the thesis is submitted to the OGS for final format review.}
%
% \subsubsection{Submittal sheet page number}
%
%% Displayed page numbering in the thesis begins on the submittal sheet, and should be roman numeral two (ii), centered between the right and left text margins, {\textonehalf} inch from the bottom edge of the paper. The submittal sheet is always blank on its back side.
%
%\iffalse
\let\@author\@empty
\let\@advisor\@empty
\let\@coadvisor\@empty
\let\@degree\@empty
\let\@department\@empty
\let\@discipline\@empty
\let\@dpthead\@empty
\let\@dptheadtitle\@empty
\newcommand{\degreetitle}[1]{\def\@degree{#1}}
\global\let\degree\degreetitle
\newcommand{\advisor}[1]{\def\@advisor{#1}}
\newcommand{\coadvisor}[1]{\def\@coadvisor{#1}}
\newcommand{\discipline}[1]{\def\@discipline{#1}}
\newcommand{\department}[1]{\def\@department{#1}}
\newcommand{\dpthead}[2]{\def\@dpthead{#1}\def\@dptheadtitle{#2}}
%% For LyX we break out the \dpthead command into two pieces:
\newcommand{\dptheadname}[1]{\def\@dpthead{#1}}
\newcommand{\dptheadtitle}[1]{\def\@dptheadtitle{#1}}
\let\@makesubmittal@exists\@empty
\newcommand{\makesubmittal}{
%% Displayed page numbering in the thesis begins on the submittal sheet, and should be roman numeral two (ii), centered between the right and left text margins, {\textonehalf} inch from the bottom edge of the paper. The submittal sheet is always blank on its back side.
\pagenumbering{roman}
\setcounter{csmpage}{2}
\setcounter{page}{2}
\let\@makesubmittal@exists\@true
%% BEGIN LaTeX Sanity Checks
\sanitize{\@author}{author}
\sanitize{\@degree}{degree}
\sanitize{\@advisor}{advisor}
%% Note: Co-advisor is optional
\sanitize{\@discipline}{discipline}
\sanitize{\@department}{department}
\sanitize{\@dpthead}{dpthead}
\sanitize{\@dptheadtitle}{dpthead} % (also controlled by dpthead command)
%% END BEGIN LaTeX Sanity Checks
%% The submittal statement is typed in paragraph form beginning at the top text margin, double-spaced, with the first line indented.
A thesis submitted to the Faculty and the Board of Trustees of the Colorado School of Mines in partial fulfillment of the requirements for the degree of {\@degree} ({\@discipline}).
%% The city, state and signature date are flush with the left text margin.
\vspace*{3\baselineskip}
\begin{raggedright}
\noindent
Golden, Colorado\newline
Date \makebox[2in]{\hrulefill}
\vspace*{\baselineskip}
\end{raggedright}
%% The lines for signatures are flush with the right margin
\begin{raggedleft}
\begin{singlespace}
\noindent
Signed: \makebox[2in]{\hrulefill} \linebreak
\makeatletter\@author\makeatother
\end{singlespace}
\vspace*{\baselineskip}
\begin{singlespace}
\noindent
Signed: \makebox[2in]{\hrulefill} \linebreak
\makeatletter\@advisor\makeatother \linebreak
Thesis Advisor
\end{singlespace}
\ifx\@coadvisor\@empty
\relax
\else
\vspace*{\baselineskip}
\begin{singlespace}
\noindent
Signed: \makebox[2in]{\hrulefill} \linebreak
\makeatletter\@coadvisor\makeatother \linebreak
Thesis Advisor
\end{singlespace}
\fi
\end{raggedleft}
%% The city, state and signature date are flush with the left text margin.
\vspace*{3\baselineskip}
\begin{raggedright}
\noindent
Golden, Colorado\newline
Date \makebox[2in]{\hrulefill}
\vspace*{\baselineskip}
\end{raggedright}
%% The lines for signatures are flush with the right margin
\begin{raggedleft}
\begin{singlespace}
\noindent
Signed: \makebox[2in]{\hrulefill} \linebreak
\makeatletter\@dpthead\makeatother \linebreak
\makeatletter\@dptheadtitle\makeatother \linebreak
Department of {\@department}
\end{singlespace}
\end{raggedleft}
}
%\fi
%
% \subsection{Abstract}
%
% The \addtoindex{abstract}, sometimes called the summary abstract, includes a concise statement of the thesis problem, a brief description of the research method or design, and a report of the major findings and conclusions.
%
% \subsubsection{Abstract length}\index{abstract!length restriction}
%
% \important{The \addtoindex{abstract} in a master's thesis has no length restriction. However, in a Ph.D. dissertation, the \addtoindex{abstract} limit is 350 words, or approximately 1{\textonehalf} pages of text. This limit is set by the publishers of the Dissertation Abstracts International. Dissertation abstracts are submitted by OGS to this publication for indexing.}
%
% As an alternative, you may include a longer \addtoindex{abstract} in the thesis and also separately submit a shorter summary to OGS that adheres to the 350-word limit. The submission of the shorter summary is part of the graduation checkout requirement.
%
% \subsubsection{Abstract format}\index{abstract!format}
%
%% \important{Beginning with the \addtoindex{abstract}, the title for each part of the front matter is typed in all capital letters (e.g., ABSTRACT) and is centered between the left and right text margins, on the line one keyboard return below the top page margin. The text of the \addtoindex{abstract} begins two keyboard returns below the title.}
%\iffalse
\AtBeginDocument{\renewcommand{\abstractname}{Abstract}}
%\fi
%
% \index{abstract!page numbering}
% The \addtoindex{abstract} page number is a roman numeral three (iii), centered between the left and right text margins, {\textonehalf} inch from the bottom edge of the paper. The thesis title is not included on the \addtoindex{abstract} page, and the \addtoindex{abstract} page should always be blank on its back side.
%
% \subsection{Table of Contents and Other Lists}
%
%% \important{It is \textbf{required} to include a table of contents in the front matter of the thesis. All chapters and sections in the thesis and their page numbers are listed in the Table of Contents. Pages that are not listed in the table of contents are the title page, the submittal sheet page, the copyright page, and the table of contents itself. Electronic material is included in the table of contents.}
%
%% The table of contents and all other lists included in the front matter are single sided and begin on a separate page. In cases where a list of figures, tables or plates has only one or two entries, they may all be placed on one page with a suitable title such as LIST OF FIGURES AND TABLES. If included in the front matter, a glossary, a list of \index{abbreviations}, or a list of symbols is placed as the last list. If these lists are included in the back matter, they are placed immediately before the REFERENCES CITED.
%
%\iffalse
%% IMPORTANT NOTE: ``babel'' scews up \contentsname, so we use our own special \csm@contentsname
\newcommand{\csm@contentsname}{\MakeUppercase{Table of Contents}}
\let\@tableofcontents@exists\@empty
\AtBeginDocument{
\renewcommand{\tableofcontents}{
\global\let\@tableofcontents@exists\@true
\ifx \csm@hyperref\@true
\pdfbookmark[1]{Table of Contents}{toc}
\fi
\let\@chapter@call\@true
\section*{\csm@contentsname
\@mkboth{\MakeUppercase\csm@contentsname}{\MakeUppercase\csm@contentsname}
}
\let\@chapter@call\@empty
\@starttoc{toc}
}
}
\newtoks\csm@saved@contents
\csm@saved@contents{}
\long\def\csm@addtocontents@#1#2{%
\global\csm@saved@contents\expandafter{%
\the\csm@saved@contents%
{%
\let\protect\@unexpandable@protect%
\immediate\write\@auxout{\string\@writefile{#1}{#2}}%
}%
}%
}
\AtEndDocument{%
\clearpage%
\the\csm@saved@contents%
}%
\newcommand{\csm@addtocontents}[4]{%
\ifx\csm@hyperref\@true%
\csm@addtocontents@{#1}{\protect\contentsline{#2}{#3}{#4}{\@currentHref}}%
\else%
\csm@addtocontents@{#1}{\protect\contentsline{#2}{#3}{#4}}%
\fi%
}
%\fi
%
% \subsubsection{List format}
%
% The title of the list, e.g., TABLE OF CONTENTS, appears only on the first page of the list. The title is centered between the left and right text margins and one keyboard return from the top margin. The list begins one keyboard return below the title. The listed titles and headings are 1{\textonehalf}- or doublespaced. Longer entries that are multiple lines are single-spaced, and the second and subsequent lines are indented. The table of contents and other list pages included in the front matter, are numbered with roman numerals.
%
% \subsubsection{List content}
%
%% Each list entry must have exactly the same wording, capitalization and punctuation as the titles and headings in the text. In the case of long figure captions, the text in the list may be abbreviated (while retaining the sense of the whole caption). Figure subtitles may be omitted unless those subtitles distinguish several items within the same title.
%\iffalse
%% <<NOTE:>> Interpretted to read: subfigure captions are not required.
\newcommand{\abbrvcaption}[2]{\caption[#1]{#1#2}}
%% TODO: Is the following note still true? It appears to be ok now....
%% IMPORTANT NOTE: ``subfig'' must be included AFTER \thefigure is redefined.
%% Include subfig, but do not format the subfigure label, we'll do it manually:
\CSM@AtEndPreamble{
\@ifpackageloaded{subfigure}{
\csm@thesis@error{The subfigure package is deprecated, disable it to continue.}
}{
\def\csm@subfig@format{%
labelsep=space,%
font=footnotesize,%
labelformat=simple,%
listofformat=subsimple,%
subrefformat=subsimple%
}
\@ifpackageloaded{subfig}{
%% \captionsetup[subfloat]{\csm@subfig@format}
\captionsetup[subfloat]{%
labelsep=space,%
font=footnotesize,%
labelformat=simple,%
listofformat=subsimple,%
subrefformat=subsimple%
}
}{
\RequirePackage[\csm@subfig@format]{subfig}
}
%% Make \ref{} reference the subfigure more sensically (with parentheses around the subfigure):
\renewcommand{\thesubfigure}{(\alph{subfigure})}
%% Redefine the subfigure/subtable calls to be backward-compatible with old documents:
\@ifundefined{c@subfigure}{\newsubfloat{figure}}{}
\def\subfigure{\subfloat}
\@ifundefined{c@subtable}{\newsubfloat{table}}{}
\def\subtable{\subfloat}
}
}
%\fi
%
% For each list item, leader dots (spaced periods . . .) extend from the entry on the left side of the page to the page number that is flush with the right margin. The dots are aligned vertically.
%\iffalse
\newcommand{\addpocketcontents}[1]{%
\csm@ogs@error{\string\addpocketcontents\space no-longer supported, use a ``Supplemental Electronic Files'' appendix instead.}