summaryrefslogtreecommitdiff
path: root/Master/texmf-dist/source/latex/uothesis/uothesis.dtx
blob: b5fc4297b21cf03df75eb5b7d9f196016ad97962 (plain)
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
1001
1002
1003
1004
1005
1006
1007
1008
1009
1010
1011
1012
1013
1014
1015
1016
1017
1018
1019
1020
1021
1022
1023
1024
1025
1026
1027
1028
1029
1030
1031
1032
1033
1034
1035
1036
1037
1038
1039
1040
1041
1042
1043
1044
1045
1046
1047
1048
1049
1050
1051
1052
1053
1054
1055
1056
1057
1058
1059
1060
1061
1062
1063
1064
1065
1066
1067
1068
1069
1070
1071
1072
1073
1074
1075
1076
1077
1078
1079
1080
1081
1082
1083
1084
1085
1086
1087
1088
1089
1090
1091
1092
1093
1094
1095
1096
1097
1098
1099
1100
1101
1102
1103
1104
1105
1106
1107
1108
1109
1110
1111
1112
1113
1114
1115
1116
1117
1118
1119
1120
1121
1122
1123
1124
1125
1126
1127
1128
1129
1130
1131
1132
1133
1134
1135
1136
1137
1138
1139
1140
1141
1142
1143
1144
1145
1146
1147
1148
1149
1150
1151
1152
1153
1154
1155
1156
1157
1158
1159
1160
1161
1162
1163
1164
1165
1166
1167
1168
1169
1170
1171
1172
1173
1174
1175
1176
1177
1178
1179
1180
1181
1182
1183
1184
1185
1186
1187
1188
1189
1190
1191
1192
1193
1194
1195
1196
1197
1198
1199
1200
1201
1202
1203
1204
1205
1206
1207
1208
1209
1210
1211
1212
1213
1214
1215
1216
1217
1218
1219
1220
1221
1222
1223
1224
1225
1226
1227
1228
1229
1230
1231
1232
1233
1234
1235
1236
1237
1238
1239
1240
1241
1242
1243
1244
1245
1246
1247
1248
1249
1250
1251
1252
1253
1254
1255
1256
1257
1258
1259
1260
1261
1262
1263
1264
1265
1266
1267
1268
1269
1270
1271
1272
1273
1274
1275
1276
1277
1278
1279
1280
1281
1282
1283
1284
1285
1286
1287
1288
1289
1290
1291
1292
1293
1294
1295
1296
1297
1298
1299
1300
1301
1302
1303
1304
1305
1306
1307
1308
1309
1310
1311
1312
1313
1314
1315
1316
1317
1318
1319
1320
1321
1322
1323
1324
1325
1326
1327
1328
1329
1330
1331
1332
1333
1334
1335
1336
1337
1338
1339
1340
1341
1342
1343
1344
1345
1346
1347
1348
1349
1350
1351
1352
1353
1354
1355
1356
1357
1358
1359
1360
1361
1362
1363
1364
1365
1366
1367
1368
1369
1370
1371
1372
1373
1374
1375
1376
1377
1378
1379
1380
1381
1382
1383
1384
1385
1386
1387
1388
1389
1390
1391
1392
1393
1394
1395
1396
1397
1398
1399
1400
1401
1402
1403
1404
1405
1406
1407
1408
1409
1410
1411
1412
1413
1414
1415
1416
1417
1418
1419
1420
1421
1422
1423
1424
1425
1426
1427
1428
1429
1430
1431
1432
1433
1434
1435
1436
1437
1438
1439
1440
1441
1442
1443
1444
1445
1446
1447
1448
1449
1450
1451
1452
1453
1454
1455
1456
1457
1458
1459
1460
1461
1462
1463
1464
1465
1466
1467
1468
1469
1470
1471
1472
1473
1474
1475
1476
1477
1478
1479
1480
1481
1482
1483
1484
1485
1486
1487
1488
1489
1490
1491
1492
1493
1494
1495
1496
1497
1498
1499
1500
1501
1502
1503
1504
1505
1506
1507
1508
1509
1510
1511
1512
1513
1514
1515
1516
1517
1518
1519
1520
1521
1522
1523
1524
1525
1526
1527
1528
1529
1530
1531
1532
1533
1534
1535
1536
1537
1538
1539
1540
1541
1542
1543
1544
1545
1546
1547
1548
1549
1550
1551
1552
1553
1554
1555
1556
1557
1558
1559
1560
1561
1562
1563
1564
1565
1566
1567
1568
1569
1570
1571
1572
1573
1574
1575
1576
1577
1578
1579
1580
1581
1582
1583
1584
1585
1586
1587
1588
1589
1590
1591
1592
1593
1594
1595
1596
1597
1598
1599
1600
1601
1602
1603
1604
1605
1606
1607
1608
1609
1610
1611
1612
1613
1614
1615
1616
1617
1618
1619
1620
1621
1622
1623
1624
1625
1626
1627
1628
1629
1630
1631
1632
1633
1634
1635
1636
1637
1638
1639
1640
1641
1642
1643
1644
1645
1646
1647
1648
1649
1650
1651
1652
1653
1654
1655
1656
1657
1658
1659
1660
1661
1662
1663
1664
1665
1666
1667
1668
1669
1670
1671
1672
1673
1674
1675
1676
1677
1678
1679
1680
1681
1682
1683
1684
1685
1686
1687
1688
1689
1690
1691
1692
1693
1694
1695
1696
1697
1698
1699
1700
1701
1702
1703
1704
1705
1706
1707
1708
1709
1710
1711
1712
1713
1714
1715
1716
1717
1718
1719
1720
1721
1722
1723
1724
1725
1726
1727
1728
1729
1730
1731
1732
1733
1734
1735
1736
1737
1738
1739
1740
1741
1742
1743
1744
1745
1746
1747
1748
1749
1750
1751
1752
1753
1754
1755
1756
1757
1758
1759
1760
1761
1762
1763
1764
1765
1766
1767
1768
1769
1770
1771
1772
1773
1774
1775
1776
1777
1778
1779
1780
1781
1782
1783
1784
1785
1786
1787
1788
1789
1790
1791
1792
1793
1794
1795
1796
1797
1798
1799
1800
1801
1802
1803
1804
1805
1806
1807
1808
1809
1810
1811
1812
1813
1814
1815
1816
1817
1818
1819
1820
1821
1822
1823
1824
1825
1826
1827
1828
1829
1830
1831
1832
1833
1834
1835
1836
1837
1838
1839
1840
1841
1842
1843
1844
1845
1846
1847
1848
1849
1850
1851
1852
1853
1854
1855
1856
1857
1858
1859
1860
1861
1862
1863
1864
1865
1866
1867
1868
1869
1870
1871
1872
1873
1874
1875
1876
1877
1878
1879
1880
1881
1882
1883
1884
1885
1886
1887
1888
1889
1890
1891
1892
1893
1894
1895
1896
1897
1898
1899
1900
1901
1902
1903
1904
1905
1906
1907
1908
1909
1910
1911
1912
1913
1914
1915
1916
1917
1918
1919
1920
1921
1922
1923
1924
1925
1926
1927
1928
1929
1930
1931
1932
1933
1934
1935
1936
1937
1938
1939
1940
1941
1942
1943
1944
1945
1946
1947
1948
1949
1950
1951
1952
1953
1954
1955
1956
1957
1958
1959
1960
1961
1962
1963
1964
1965
1966
1967
1968
1969
1970
1971
1972
1973
1974
1975
1976
1977
1978
1979
1980
1981
1982
1983
1984
1985
1986
1987
1988
1989
1990
1991
1992
1993
1994
1995
1996
1997
1998
1999
2000
2001
2002
2003
2004
2005
2006
2007
2008
2009
2010
2011
2012
2013
2014
2015
2016
2017
2018
2019
2020
2021
2022
2023
2024
2025
2026
2027
2028
2029
2030
2031
2032
2033
2034
2035
2036
2037
2038
2039
2040
2041
2042
2043
2044
2045
2046
2047
2048
2049
2050
2051
2052
2053
2054
2055
2056
2057
2058
2059
2060
2061
2062
2063
2064
2065
2066
2067
2068
2069
2070
2071
2072
2073
2074
2075
2076
2077
2078
2079
2080
2081
2082
2083
2084
2085
2086
2087
2088
2089
2090
2091
2092
2093
2094
2095
2096
2097
2098
2099
2100
2101
2102
2103
2104
2105
2106
2107
2108
2109
2110
2111
2112
2113
2114
2115
2116
2117
2118
2119
2120
2121
2122
2123
2124
2125
2126
2127
2128
2129
2130
2131
2132
2133
2134
2135
2136
2137
2138
2139
2140
2141
2142
2143
2144
2145
2146
2147
2148
2149
2150
2151
2152
2153
2154
2155
2156
2157
2158
2159
2160
2161
2162
2163
2164
2165
2166
2167
2168
2169
2170
2171
2172
2173
2174
2175
2176
2177
2178
2179
2180
2181
2182
2183
2184
2185
2186
2187
2188
2189
2190
2191
2192
2193
2194
2195
2196
2197
2198
2199
2200
2201
2202
2203
2204
2205
2206
2207
2208
2209
2210
2211
2212
2213
2214
2215
2216
2217
2218
2219
2220
2221
2222
2223
2224
2225
2226
2227
2228
2229
2230
2231
2232
2233
2234
2235
2236
2237
2238
2239
2240
2241
2242
2243
2244
2245
2246
2247
2248
2249
2250
2251
2252
2253
2254
2255
2256
2257
2258
2259
2260
2261
2262
2263
2264
2265
2266
2267
2268
2269
2270
2271
2272
2273
2274
2275
2276
2277
2278
2279
2280
2281
2282
2283
2284
2285
2286
2287
2288
2289
2290
2291
2292
2293
2294
2295
2296
2297
2298
2299
2300
2301
2302
2303
2304
2305
2306
2307
2308
2309
2310
2311
2312
2313
2314
2315
2316
2317
2318
2319
2320
2321
2322
2323
2324
2325
2326
2327
2328
2329
2330
2331
2332
2333
2334
2335
2336
2337
2338
2339
2340
2341
2342
2343
2344
2345
2346
2347
2348
2349
2350
2351
2352
2353
2354
2355
2356
2357
2358
2359
2360
2361
2362
2363
2364
2365
2366
2367
2368
2369
2370
2371
2372
2373
2374
2375
2376
2377
2378
2379
2380
2381
2382
2383
2384
2385
2386
2387
2388
2389
2390
2391
2392
2393
2394
2395
2396
2397
2398
2399
2400
2401
2402
2403
2404
2405
2406
2407
2408
2409
2410
2411
2412
2413
2414
2415
2416
2417
2418
2419
2420
2421
2422
2423
2424
2425
2426
2427
2428
2429
2430
2431
2432
2433
2434
2435
2436
2437
2438
2439
2440
2441
2442
2443
2444
2445
2446
2447
2448
2449
2450
2451
2452
2453
2454
2455
2456
2457
2458
2459
2460
2461
2462
2463
2464
2465
2466
2467
2468
2469
2470
2471
2472
2473
2474
2475
2476
2477
2478
2479
2480
2481
2482
2483
2484
2485
2486
2487
2488
2489
2490
2491
2492
2493
2494
2495
2496
2497
2498
2499
2500
2501
2502
2503
2504
2505
2506
2507
2508
2509
2510
2511
2512
2513
2514
2515
2516
2517
2518
2519
2520
2521
2522
2523
2524
2525
2526
2527
2528
2529
2530
2531
2532
2533
2534
2535
2536
2537
2538
2539
2540
2541
2542
2543
2544
2545
2546
2547
2548
2549
2550
2551
2552
2553
2554
2555
2556
2557
2558
2559
2560
2561
2562
2563
2564
2565
2566
2567
2568
2569
2570
2571
2572
2573
2574
2575
2576
2577
2578
2579
2580
2581
2582
2583
2584
2585
2586
2587
2588
2589
2590
2591
2592
2593
2594
2595
2596
2597
2598
2599
2600
2601
2602
2603
2604
2605
2606
2607
2608
2609
2610
2611
2612
2613
2614
2615
2616
2617
2618
2619
2620
2621
2622
2623
2624
2625
2626
2627
2628
2629
2630
2631
2632
2633
2634
2635
2636
2637
2638
2639
2640
2641
2642
2643
2644
2645
2646
2647
2648
2649
2650
2651
2652
2653
2654
2655
2656
2657
2658
2659
2660
2661
2662
2663
2664
2665
2666
2667
2668
2669
2670
2671
2672
2673
2674
2675
2676
2677
2678
2679
2680
2681
2682
2683
2684
2685
2686
2687
2688
2689
2690
2691
2692
2693
2694
2695
2696
2697
2698
2699
2700
2701
2702
2703
2704
2705
2706
2707
2708
2709
2710
2711
2712
2713
2714
2715
2716
2717
2718
2719
2720
2721
2722
2723
2724
% \iffalse meta-comment
% !TeX program = pdfLaTeX
%<*internal>
\iffalse
%</internal>
%<*readme>
----------------------------------------------------------------
uothesis --- Support for University of Oregon Graduate School requirements 
for the formatting of doctoral dissertations and and masters theses 
E-mail: mander13@uoregon.edu 
Released under the LaTeX Project Public License v1.3c or later
See http://www.latex-project.org/lppl.txt
----------------------------------------------------------------

The uothesis bundle provides a LaTeX class file and documentation for the class
file.  The class file generates documents that are suitable for submission to the 
Graduate School and conform with the style requirements for dissertations and theses
as laid out in the Fall 2010 UO graduate school student manual.

The basic format for this dtx and the associcated files are shamelessly mooched from 
the achemso package dtx and ins files.  My thanks to their authors for the excellent 
examples.

Installation
------------

The package is supplied in dtx format.  To
unpack the dtx, running 'tex uothesis.dtx' will extract
the package whereas 'latex uothesis.dtx will extract it and also 
typeset the documentation.

Typesetting the documentation requires a number of packages in
addition to those needed to use the package. This is mainly 
because of the number of demonstration items included in the 
text. To compile the documentation without error, you will 
need the packages:
 - array
 - booktabs
 - hypdoc
 - listings
 - lmodern
 - mathpazo
 - microtype
%</readme>
%<*internal>
\fi
\def\nameofplainTeX{plain}
\ifx\fmtname\nameofplainTeX\else
  \expandafter\begingroup
\fi
%</internal>
%<*install>
\input docstrip.tex
\keepsilent
\askforoverwritefalse
\preamble
----------------------------------------------------------------
uothesis --- Support for formatting of documents associated with the 
graduate requirements for the master and doctorate degrees as
defined by the University of Oregon Graduate School in the fall of 2010.
Contact:  All contact regarding this package should be to the UOGS.
Released under the LaTeX Project Public License v1.3c or later
See http://www.latex-project.org/lppl.txt
----------------------------------------------------------------
\endpreamble
\postamble
Originally written by Mark VandeWettering
Modified by Chet Haase, Christian Frank, Lars Hansen, 
J. Paul Walser, Bei Li, Bart Massey, et al.

It may be distributed and/or modified under the conditions of
the LaTeX Project Public License (LPPL), either version 1.3c of
this license or (at your option) any later version.  The latest
version of this license is in the file:

http://www.latex-project.org/lppl.txt

This work is "maintained" (as per LPPL maintenance status) by
Michael D. Anderson

This work consists of the file  uothesis.dtx and the derived files uothesis.cls, 
uothesis.ins, and, uothesis.pdf.
\endpostamble
\usedir{tex/latex/uothesis}
\generate{
  \file{\jobname.cls}{\from{\jobname.dtx}{class}}
}

%</install>
%<install>\endbatchfile
%<*internal>
\usedir{source/latex/uothesis}
\generate{\file{\jobname.ins}{\from{\jobname.dtx}{install}}}

\nopreamble\nopostamble
\usedir{doc/latex/uothesis}
\generate{\file{README.txt}{\from{\jobname.dtx}{readme}}}

\ifx\fmtname\nameofplainTeX
  \expandafter\endbatchfile
\else
  \expandafter\endgroup
\fi
%</internal>
%<*class>
\NeedsTeXFormat{LaTeX2e}
%</class>
%<*driver>
\ProvidesFile{\jobname.dtx}[2011/04/10 v2.5.1 Submission to University of Oregon Graduate School]
\documentclass[a4paper]{ltxdoc}
\usepackage[T1]{fontenc}
\usepackage{achemso,array,booktabs,lmodern}
\usepackage[final]{listings,microtype}
\usepackage[numbered]{hypdoc}
\EnableCrossrefs
\CodelineIndex
\RecordChanges
\begin{document}
  \DocInput{\jobname.dtx}
  \PrintIndex
  \PrintChanges
\end{document}
%</driver>
%\fi
%\makeatletter
%
%^^A \DescribeOption is in l3doc but not ltxdoc
%\newcommand*\DescribeOption{^^A
%  \leavevmode
%  \@bsphack
%  \begingroup
%    \MakePrivateLetters
%    \Describe@Option
%}
%\newcommand*\Describe@Option[1]{^^A
%    \endgroup
%  \marginpar{^^A
%    \raggedleft
%    \PrintDescribeEnv{#1}^^A
%  }%
%  \SpecialOptionIndex{#1}^^A
%  \@esphack
%  \ignorespaces
%}
%\newcommand*\SpecialOptionIndex[1]{^^A
%  \@bsphack
%  \index{^^A
%    #1\actualchar{\protect\ttfamily#1} (option)\encapchar usage^^A
%  }^^A
%  \index{^^A
%    options:\levelchar#1\actualchar{\protect\ttfamily#1}
%    \encapchar usage^^A
%  }^^A
%  \@esphack
%}
%
%^^A For creating examples with nice highlighting of code, and so
%^^A on; based on the system used in the listings source (lstsample).
%\lst@RequireAspects{writefile}
%\newsavebox{\LaTeXdemo@box}
%\lstnewenvironment{LaTeXdemo}[1][code and example]{^^A
%  \global\let\lst@intname\@empty
%  \expandafter\let\expandafter\LaTeXdemo@end
%    \csname LaTeXdemo@#1@end\endcsname
%  \@nameuse{LaTeXdemo@#1}^^A
%}{^^A
%  \LaTeXdemo@end
%}
%\newcommand*\LaTeXdemo@new[3]{^^A
%  \expandafter\newcommand\expandafter*\expandafter
%    {\csname LaTeXdemo@#1\endcsname}{#2}^^A
%  \expandafter\newcommand\expandafter*\expandafter
%    {\csname LaTeXdemo@#1@end\endcsname}{#3}^^A
%}
%\newcommand*\LaTeXdemo@common{^^A
%  \setkeys{lst}{
%    basicstyle   = \small\ttfamily,
%    basewidth    = 0.51em,
%    gobble       = 3,
%    keywordstyle = \color{blue},
%    language     = [LaTeX]{TeX},
%    moretexcs    = {
%      affiliation,
%      alsoaffiliation,
%      altaffiliation,
%      email,
%      fax,
%      natmovechars,
%      phone
%    }
%  }^^A 
%}
%\newcommand*\LaTeXdemo@input{^^A
%  \MakePercentComment
%  \catcode`\^^M=10\relax
%  \small
%  \begingroup
%    \setkeys{lst}{
%      SelectCharTable=\lst@ReplaceInput{\^\^I}{\lst@ProcessTabulator}
%    }^^A
%    \leavevmode 
%      \input{\jobname.tmp}^^A
%  \endgroup
%  \MakePercentIgnore
%}
%\LaTeXdemo@new{code and example}{^^A
%  \setbox\LaTeXdemo@box=\hbox\bgroup
%    \lst@BeginAlsoWriteFile{\jobname.tmp}^^A
%    \LaTeXdemo@common
%}{^^A
%    \lst@EndWriteFile
%  \egroup
%  \begin{center}
%    \ifdim\wd\LaTeXdemo@box>0.48\linewidth\relax
%      \hbox to\linewidth{\box\LaTeXdemo@box\hss}^^A
%        \begin{minipage}{\linewidth}
%          \LaTeXdemo@input
%        \end{minipage}
%    \else
%      \begin{minipage}{0.48\linewidth}
%        \LaTeXdemo@input
%      \end{minipage}
%      \hfill
%      \begin{minipage}{0.48\linewidth}
%        \hbox to\linewidth{\box\LaTeXdemo@box\hss}^^A
%      \end{minipage}
%    \fi
%  \end{center}
%}
%\LaTeXdemo@new{code only}{^^A
%  \LaTeXdemo@common
%}{^^A
%}
%\newcommand*\UOGS{University of Oregon Graduate School}
%\newcommand*\styref{Thesis and Dissertation Style and Policy Manual (v. Fall 2010)}
%\providecommand*\file{\texttt}
%\providecommand*\opt{\texttt}
%\providecommand*\pkg{\texttt}
%\makeatother
%\GetFileInfo{\jobname.dtx}
%\DoNotIndex{\*,\.,\/,\\,\   ,\arabic,\aux@appendices,\baselineskip,\begin,\begingroup,\bf,\Box,\box,\c@@shownumdepth,\c@chapter,\centering,\clearpage,\csname,\cvpars,\DeclareOption,\def,\else,\end,\endcsname,\fi,\gdef,\hship,\hfil,\hbox,\let,\long,\par,\protect,\relax,\vfil,\vfill,\vskip,\vspace,\z@,\@M,\advancefds,\endgroup,\expandafter,\hskip,\hspace,\hrule,\hfill,\ifx,\interlinepenalty,\jobname,\newcommand,\newif,\nobreak,\noindent,\nopagebreak,\@p,\renewcommand,\RequirePackage,\tag,\typeout,\what,\write,\xdef,\uppercase,\thispagestyle,\thechapter}
%\title{^^A
%  \texttt{uothesis} --- A \LaTeX\ package for the generation of theses and dissertations that meet the requirements established by the \UOGS\thanks{^^A
%    This file describes version \fileversion, last revised 
%    \filedate.^^A
%  }^^A
%}
%\author{^^A
%  Michael D. Anderson\thanks{E-mail: mander13@uore\ldots}^^A
%}
%\date{Released \filedate}
%\maketitle
%
%\changes{v1.0}{2009/07/24}{Everything previous to 2009/07/24}
%
%\changes{v2.0a}{2009/07/24}{Initial work started.  Considering all previous versions "1.0."   Cleaning up comments updating out dated package used and added packages to provide new functionality. Removed support for "tech report." Removed \opt{normalspace} command, will use \opt{setspace} options from now on.  Updated the chair and advisor listings to be more general.  Corrected a formatting issue on the signature page}
%
%\changes{v2.0b}{2009/08/01}{Removed outdated caption.cls support. Cleaning up the error codes during the compile.}
%
%\changes{v2.0c}{2009/08/04}{Updated draftcopy option.  Added new features and tuned others.  Added the \opt{ednote} command (mooched from the 1.0 example documents) with some modifications.  Added the \opt{HERE} command (mooched from the 1.0 example documents) with some modifications.  Added the \opt{needref} command.  Added support for draft option in graphics package (figures show bounding boxes rather than figures in draftcopy mode).  \pkg{varioref} support corrected.}
%
%\changes{v2.0d}{2009/08/20}{Refined editing tools to only appear in editing mode and not cause errors during final typesetting.} 
%
%\changes{v2.0e}{2009/08/21}{Created draftimages option, which sets the includegraphics command in graphicx to "draft" mode.}
%
%\changes{v2.0f}{2009/08/22}{Started cleaning up the comments and logic hierarchies. Using Tabs not spaces for nesting.}
%
%\changes{v2.0g}{2009/10/07}{Corrected comments from the UO graduate school.  Title Page: Title double spaced. No hyphenation throughout (using hyphenation penalties).  Suppressed widows and orphans.  CV: Rolled Grants into Awards and Honors . TOC: Set the "Chapter" column heading to appear on extra TOC pages.  Corrected References to be single spaced with 1 line between each entry.  Correct References problem with TOC, spacing, and formatting. (found to be a conflict with chemstyle). \opt{gsmodern} set to be bold sections rather than underlined to prevent obscuring subscripts.}
%				
%\changes{v2.0h}{2010/02/24}{Corrected comments from UO graduate school:  Corrected chapter number spacing in TOC/TOT/TOF.  Corrected fonts to force 12pt on final draft.  Various improvements and new features: Implemented \opt{cleanbreak} command for TOC/TOT/TOF linebreaks. Implemented \opt{smallcaps} option for which allows small caps in the titles for use with subscripts. Refined various modes (Draft, Committee draft, etc.) added red disclaimers to all drafts implemented line numbers on draft modes added ams math files to default loading.  Implemented \opt{final} option to turn all draft modes off for dead sure.}
%
%\changes{v2.0i}{2010/04/09}{Created the option \opt{contnumbering}:  Provides option of having the figure and tables numbered continuously or by chapter.}
%				
%\changes{v2.0j}{2010/04/11}{Fixed numbering issues with appendices. Corrected coding for gsmodern to be the hierarchical level numbering. Implemented overfull hbox marking in all draft modes.} 
%								
%\changes{v2.0k}{2010/04/20}{Corrected conditional appendix formatting to account for the formatting difference between a singular appendix and multiple appendices.  Implemented watermarking on the various draft environments.  Employed \pkg{draftwatermark.cls}: Currently only places watermarks on the first page... may change this in the future.  Implemented Layouts package in draft mode only:  Places a schematic of the page layout after the draft copy cover}
%
%\changes{v2.0l}{2010/04/21}{Added new environments \opt{chem} and \opt{Chem} based on a combination of amsmath equation environments and mhchem calls.  \opt{chem} is for use in short equations and uses amsmath equation environments.  \opt{Chem} is for use in long equations requiring linebreaks and uses amsmath multline environments.  Also added \opt{rxn:} tag for cross referencing.  allow for the use of typical ref commands or \opt{eqref} from amsmath which produced parentheses}
%
%\changes{v2.0m}{2010/04/22}{Reworked the editing markup to use the todonotes package.   Now adds a list of editing marks and the pages before the document in draft mode.}
%
%\changes{v2.0n}{2010/10/06}{Added support for lorem ipsum dummy text through the "lipsum" option in the document header.  Cleaned up psuedocode.}
%
%\changes{v2.0o}{2010/10/07}{Brought abstract and approval pages into compliance with new graduate student formatting guidelines.}
%
%\changes{v2.0p}{2010/10/21}{Fixed comments from graduate student thesis editor.  Corrected Appendix bug (somebody tied the appendix marker to the back flyleaf…).  Got the page number placement sorted out.}
%
%\changes{v2.1}{2010/10/25}{Tweaked gsmodern, numsection, and default numbering schemes for sections, tables and figures.}
%
%\changes{v2.2}{2010/11/01}{Made flush left text the default for the text block.  Added "justified" option for full justified (LaTeX default) text block.  Adjusted the default indent to 24pt as per the GS recommendation.}
%
%\changes{v2.3}{2010/11/15}{added "amstex" and "chemistry" options.  amstex loads the ams packages amsthm, amsmath, and amssymb packages in the appropriate order as indicated by the ams-tex manual.  chemistry loads mhchem and creates new environments for long chemical equations as well as the "reaction" environment.}
%
%\changes{v2.4}{2010/12/21}{added bound option for formatting the document as for printing/binding.  Currently this only handles 1 sided printing based on the previous dissertation class. Also ties the bound mode to the draft mode, allowing the printing and 3 hole punching of documents. A disclaimer is placed on the copyright page indicating that the document is for personal use and is not to be confused with the official formatting (i.e. final with bound off).  First version in .dtx format}
%
%\begin{multicols}{2}
%  \tableofcontents
%\end{multicols}
%
%\section{Introduction}
%The |uothesis| class file provides support for generating properly formatted documents that comply with the \UOGS\ style guidelines for the preparation of dissertations and theses.  The use of this class does not replace the review process by the Thesis Editor or guarantee the document will pass that review perfectly.  Its intention is to simplify the formatting of the document and limit the type of possible corrections to minor fine tuning. This document summarizes the features of the class and provides an example header for the generation of a basic document.  This document is NOT intended as a substitute for the \UOGS\ manual and will not be repeating the specifics of document formatting, as the user is expected to have downloaded, read and understood that manual\footnote{\styref}.
%
%\subsection{New To This Version (2.5)}
%
%There have been a number of changes to this version to deal with a couple of persistent bugs in the code and to make the CV a little easier to write.  The changes to the CV are indicated below in the appropriate section\footnote{Please note that you will have to change your current CV structure to get a clean compile at this point}Second, the package |natbib| is now required by the cls.  Users should  add the |\usepackage| command from their header files as shown in the example header later in this document.  Customization of the citation formatting can be accomplished through the use of a list of options as described in the |natbib| documentation.  The last change is the requiring of the command |\formatbib| to the header file above the bibliography section as demonstrated in the example header later in this document.  
%
%\subsection{New To This Version (2.5.1)}
%
%The package |natbib| is still required by the cls, but now it is loaded directly, no user input is required to load |\natbib| by itself.  Customization of the citation formatting can now be accomplished through the use the options, as described in the |natbib| documentation, included in the options for the class itself.  This change is reflected in the example header in this document.  Last, the problem requiring the |\formatbib| command has been corrected and now is not needed.  Calling the |\formatbib| command will now produce an error.  
%
%\section{Installation}
%
% The package is supplied in \file{dtx} format, running 
% \texttt{tex \jobname.dtx} will extract the package whereas
% \texttt{latex \jobname.dtx} will extract it and also typeset the
% documentation.
% 
% Typesetting the documentation requires a number of packages in
% addition to those needed to use the package. This is mainly 
% because of the number of demonstration items included in the text. To
% compile the documentation without error, you will need the packages:
% \begin{multicols}{4}
% \begin{itemize}
%   \item \pkg{array}
%   \item \pkg{booktabs}
%   \item \pkg{hypdoc}
%   \item \pkg{listings}
%   \item \pkg{lmodern}
%   \item \pkg{microtype}
%\end{itemize}
%\end{multicols}
%
%\section{Requirements}
%
% The |uothesis| class itself minimally requires the following packages:
% \begin{multicols}{3}
%\begin{itemize}
%  \item \pkg{float}
%  \item \pkg{subfig}
%  \item \pkg{xcolor}
%  \item \pkg{graphicx}
%  \item \pkg{setspace}
% \item \pkg{natbib}
%  \item \pkg{lineno}
%  \item \pkg{layouts}
%  \item \pkg{todonotes}
%  \item \pkg{ragged2e}
%  \item \pkg{draftwatermark}
%\end{itemize} 
%\end{multicols}
%Additional features and functionality may require the following packages:
%\begin{multicols}{2}
%\begin{itemize}
%  \item \pkg{mhchem} (for |chemistry|)
%  \item \pkg{amsmath} (for |amstex|)
%  \item \pkg{amsthm} (for |amstex|)
%  \item \pkg{amssymb} (for |amstex|)
%  \item \pkg{lipsum} (for |lipsum|)
%\end{itemize}
%\end{multicols}
% These are normally present in the current major \TeX\ distributions,
% but are also available from \href{http://www.ctan.org}{The 
% Comprehensive TeX Archive Network}.  Note that these packages themselves may have secondary dependencies not expressly listed here.  When in doubt read their documentation.
%
%\section{The Class File}
%|uothesis| is an extended version of the |report| \LaTeX\ primitive class.  It has been heavily extended to comply with the \UOGS\ requirements for the formatting of dissertations and theses.  While every effort has been made to assure that the class generates a document that fully complies with the Graduate School's requirements, every document will be different and use different packages that may cause formatting issues.  Therefore, the use of this package \emph{does not} replace extensive proof reading or the meetings with the thesis editor.
%
%\section{Class Options}
%Class options for |uothesis| should be declared in the usual manner within square brackets during the class declaration in the header:
%\begin{LaTeXdemo}[code only]
%	\documentclass[option1,option2,option3]{uothesis}
%\end{LaTeXdemo} 
%Note that class options should be coma separated.
%
%\subsection{General class options}
%
%\DescribeOption{dissertation}
%Formats the document for a Ph.D. dissertation.
%
%\DescribeOption{msthesis}
%Formats the document for a Master's thesis (still experimental\ldots Graduate School has not approved for theses.)
%
%\DescribeOption{draftimages}
%Graphics included using |\includegraphics| are suppressed to just their bounding boxes and file names.  This option is useful for quick compiles where only the layout of the pages and text are a concern.  This option is suppressed by the option |final|.
%
%\DescribeOption{draftcopy}
%Creates a draft copy of the document.  Dates the document on each page, does not include the preliminary pages, TOC, TOF, or TOT.  A page of notes and omissions is created after the cover page for use with the editorial macros below. This option also uses the bound option, which shifts the text block slightly to one side for three hole punching.  Line numbering is also invoked for this draft mode and the text is shrunk down by one size to reduce paper if the draft is printed.
%
%\DescribeOption{committeedraft}
%Like draftcopy except includes front matter and standard title page. Does not include the texts of the acknowledgement or dedication.  For distribution to committee members.
%
%\DescribeOption{latedraft}
%Useful for last-minute preparations, corrections, and editing before handing the document to the graduate school.  For all purposes, |latedraft| is identical to |final|, with the exception that the dedication and the acknowledgements are suppressed and the inclusion of a disclaimer to clearly mark this as a draft copy.
%
%\DescribeOption{final}
%The final draft for presentation to the graduate school.
%
%
%\subsection{Formatting class options}
%
%\DescribeOption{justified}
%This option turns off the ragged right setting for the large text blocks of the document and returns the text block formatting to the \LaTeX\ default, which is full justification.  The UOGS does not generally approve of full justification, but they will accept it in this case since \LaTeX\ does it properly.
%
%\DescribeOption{copyright}
%Includes the copyright page.
%
%\DescribeOption{numsections}
%Provides the option of numbered sections.
%
%\DescribeOption{gsmodern}
%An alternate formatting scheme to |numsections| that still provides the section numbering.  This has been designed to be closer to technical manuscripts with the numbering hierarchy spanning from the Chapter to the subsubsection level.  
%
%\DescribeOption{contnumbering}
%This changes the figure and table numbering to be continuous throughout the document from start to finish.
%
%\DescribeOption{amstex}
%Loads |amsmath|, |amsthm|, and |amssymb| packages in proper order.
%
%\DescribeOption{chemistry}
%Loads the |amstex| class option, |mhchem|, and |chemstyle| packages. Defines new environments for long and short reactions (|chem| and |Chem|) and a new cross reference type for reactions (|rxn:|) for use with |\eqref{}|. The |rxn:| prefix is paired with a new counter to keep track of the reaction environments.  This counter is reset by chapter by default.
%
%\DescribeOption{smallcaps}
%Allows small caps in titles and TOC.  This option should only be used if there is a need to differentiate between capital and lower case letters in the title, such as with atomic symbols.
%
%\DescribeOption{bound}
%The |bound| option is provided strictly for personal use.  It reformats the margins and text block parameters to allow for printing and binding of finished documents.  A disclaimer is placed at the bottom of the copyright page, and the copyright notation on this page is suppressed.
%
%\section{Manuscript macros}
%\subsection{General macros}
%\DescribeMacro{\cleanbreak}
%Forces a clean linebreak in the TOC, TOT, and TOF.  This macro is provided to correct issues with over-run in the TOC, etc.  It is used so:
%\begin{LaTeXdemo}[code only]
%	\chapter[This is the use of the \linebreak...]{This is the use of
%	 the...}
%\end{LaTeXdemo} 
%The line would break at the point indicated.  This macro does not always work depending on how badly other typesetting rules are violated and should only be used in the square bracketed "short title" area.  Note that to conform to the \UOGS\ style manual the title in the square and curly brackets should be identical.  A second caveat to this command is that it is especially unstable with the use of ragged right text blocks.  The method that is used for the fully justified text block (\LaTeX\ default) is incompatible with the |Ragged2e| package, and so a second method, |\newline|, is used.  This method gives \LaTeX\ the option of allowing a page break in the middle of the TOC entry.
%
%\DescribeMacro{\ie}\DescribeMacro{\etc}\DescribeMacro{\etal}\DescribeMacro{\eg}
%The following commands to provide macro's for common latin phrases.  These commands assume that it is desired for these phrases to be italicized and provide proper punctuation after the latin phase.  The code is taken from the Chemstyle package.  
%
%\subsection[Editing macros]{Editing macros (\opt{draftcopy, committeedraft})}
%\DescribeMacro{\ednote{}} 
%|\ednote{}| is a variation on standard margin notes.  A numbered margin note will be placed in the margin with a place holder in the text body at the location in the text.  A line will connect the place holder with the margin note and the text in the "|{}|"  will appear on the notes page in the draft copy of the document.  The macro is used so:
%\begin{LaTeXdemo}[code only]
%	This is some text that needs a callout\ednote{this is a call out}.
%\end{LaTeXdemo} 
%
%\DescribeMacro{\needref{}}
%|\needref{}| places a diamond in the text body at the command location, and a red margin note at the same line with an arrow and a "citation." The "|{}|" can be left blank, but must be included at the moment.  Text in the braces will also appear on the notes page in the draft copy.
%
%\DescribeMacro{\here}
%|\here| places a square in the text body and a red "here" in the margin.  It is intended to mark incomplete sections and will place an "incomplete section" note in the draft copy notes page.
%
%\subsection[Chemistry macros]{Chemistry macros (\opt{chemistry})}
%These commands use a combination of |mhchem| and |amsmath| calls to create two new environments, |chem| and |Chem|.  These reactions can be cross referenced using the |rxn| prefix in |\eqref{}|.
%\begin{LaTeXdemo}[code only]
%	\eqref{rxn:somerxn}
%\end{LaTeXdemo}
%
%\DescribeMacro{\chem}
%|\chem| is for short equations (no more than 1 column width) and uses |mhchem| and standard AMS |equation| environments.  It is used so:
%\begin{LaTeXdemo}[code only]
%	\chem[rxn:firstrxn]{MT2X4} 
%\end{LaTeXdemo}
%
%\DescribeMacro{\Chem}
%The second environment is |\Chem|, which is for long reactions.  This environment uses |amsmath| |multiline| environments which allow the use of |\\| to indicate where the equation should be broken.  In this reaction, the line will be broken following the reaction arrow (|->| in the code).
%\begin{LaTeXdemo}[code only]
%	\Chem[rxn:secondrxn]{[(\cmath{(2+\delta)}Se \cdot \ce{Cr}
%	 \cdot \ce{Cu} \cdot \ce{Cr} \cdot \ce{\cmath{(2+\delta)}Se})] ->
%	 [\SI{600}{\celsius}][\text{amorphous melt}]\\ CuCr2Se4
%	 \cmath{(\text{Fd3m, } \langle 111\rangle_{SL} )} + Se ^ }
%\end{LaTeXdemo}
%
%\section{Manuscript organization}
%It is suggested that you use some scheme for breaking up your document both for ease of editing and for debugging purposes.  The method that has been suggested in the past is to break up the manuscript into a header or root file and a series of dependent tex files that contain one chapter each contained in a directory folder.  These dependent tex files can then be included or excluded by using |\include{}| commands.  |uothesis| is set up to support this method of working.  The inclusion of the "|\% !TEX root =|\meta{path to root file}" command will aid in this.  The manuscript header example provided demonstrates one possible scheme for splitting of documents.  The different components of the header and will be provided in the next section.
%
%\subsection{Manuscript header example}
%\begin{verbatim}
%\documentclass[dissertation,justified,copyright,draftimages,final,numbers,sort&compress
%gsmodern]{uothesis}
%
%\usepackage[english,UKenglish]{babel}
%\input{custom_cmds.tex}
%
%	THESIS FRONT MATTER
%
%	TITLES.
%\covertitle{Document Title As it will appear on\\ the cover page}
%\abstracttitle{Document Title: As it will appear on the abstract page}
%
%	AUTHOR 
%\author{Your Name Here}
%
%	DEPARTMENT
%\narrowdepartment{Short Dept. Name}
%\department{Full name of department}
%
%	DEGREE INFORMATION
%\degreetype{Doctor of Philosophy}
%\degreemonth{Month}
%\degreeyear{XXXX}
%
%	COMMITTEE INFORMATION
%\advisor{Advisor's name}
%\chair{Chair's name}
%\committee{Member 1 & Inside\\
%	 	 Member 2 & Inside\\
%	 	 Member 3 & Outside\\
%	 	 Member 4 & Honorary\\}
%\graddean{Richard Linton}
%
%	CURRICULUM VITAE
%\include{thesis_cv}
%
%	ACKNOWLEDGEMENTS
%\include{thesis_acknowledgements}
%
%	DEDICATION (optional)
%\include{thesis_dedication}
%
%	ABSTRACT
%\include{thesis_abstract}
%
%	Main Document
%\begin{document}
%\maketitle
%
%	CHAPTERS
%	\include{introduction}
%	\include{chapter_2}	
%
%	APPENDICES 
%\appendix
%	\include{tappendix_1}	
%
%	REFERENCES
%\bibliographystyle{unsrtnat}
%\bibliography{bib}
%\end{document}
%\end{verbatim}
%Note that the various components of the document are kept separate with |\include| commands.  The exception is the |\input| command used for the |custom_cmds.tex|.  The difference comes from the fact that |\input| is treated as part of the header file itself and is processed in line with the rest of the code.  The |\import| command takes the output of the target file and adds that, resulting in pages breaks  after each |\include|.  This is handy, as the style manual requires that each chapter starts on a new page.
%
%\section{Manuscript meta-data}
%Pleas note that in all cases the below macro's are \emph{macro's} and not \emph{environments}.  As an example, most \LaTeX\ classes have a |\begin{abstract}|\ldots|\end{abstract}| environment that is used to handle the abstract text.  This is not the case with this class, the method used for handling the front-matter requires that these elements be passed to \LaTeX as strings in the macro's:  |\abstract{|\ldots|}|.
%\subsection{Main information}
%
%\DescribeMacro{\covertitle{}}
%|\covertitle{}| is the title that will appear on the title page of the document.  It requires hard coding of the line breaks, using "|\\|", to comply with the inverted pyramid style of the graduate school\footnote{\styref, Pg. 22}.
%
%\DescribeMacro{\abstracttitle{}}
%|\abstracttitle{}| is the title form for anywhere the title appears as in line text.  Do NOT use line breaks in the abstract title.
%
%\DescribeMacro{\author{}}
%The full name of the author as it appears on the UO records.
%
%\DescribeMacro{\narrowdepartment{}}
%Some departments have an officially designated "short" name.  If you are in one of these departments, this should go here and will be used in the appropriate locations in  the document.
%
%\DescribeMacro{\department{}}
%This is the official name of the students department.
%
%\DescribeMacro{\degreetype{}}
%Take the abbreviation of the degree that the document is for and expand it to its full name, e.g. Doctor of Philosophy, Master of Arts, Science, etc. 
%
%\DescribeMacro{\degreemonth{}}
%Month of graduation, either December, March, June, or August.
%
%\DescribeMacro{\degreeyear{}}
%The year that the dissertation or thesis will be defended.
%
%\DescribeMacro{\advisor{}}
%Full name of the research advisor
%
%\DescribeMacro{\chair{}}
%Full name of the committee chair
%
%\DescribeMacro{\cochair{}}
%Full name of the committee cochair, if applicable.
%
%\DescribeMacro{\committee{}}
%A list of the examining committee following the form: "\meta{full name}|&|\meta{member type}|\\|" (see example below).   This list can be of arbitrary length and is formatted using a table.
%\begin{LaTeXdemo}[code only]
%	\committee{Dr. Person 1 & Member\\
%	 	Dr. Person 2 & Member\\
%	 	Dr. Person 3 & Outside Member\\
%		Dr. Person 4 & Honorary Member\\}
%\end{LaTeXdemo}		
%
%\DescribeMacro{\graddean{}}
%The full name of the current dean of the \UOGS.
%
%\subsection{Chapter-like meta-data}
%Chapter-like meta-data are large blocks of text.  These can be placed in the header file or they can be replaced with |\include{}| arguments and kept elsewhere to keep the header compact.  The example header uses the latter option.
%
%\DescribeMacro{\abstract{}}
%Fully formatted abstract, as you turned in to the \UOGS.  There are size restrictions placed on this document, 350 words and 150 words for the dissertation and the thesis respectively\footnote{\styref, Pg. 24}
%
%\DescribeMacro{\acknowledge{}}
%Optional, the style guide\footnote{\styref, Pg. 25} indicates that this should be no more that 2 pages. 
%
%\DescribeMacro{\dedication{}}
%Optional,  small text block.
%
%\subsection{The Curriculum Vitae}
%\changes{v2.5}{2011/02/18}{A significant rewrite of the CV handling.}
%\DescribeMacro{\birthplace{}}
%The birth place of the author
%
%\DescribeMacro{\birthday{}}
%author's birthday
%
%\DescribeMacro{\school{}}
%\changes{v2.5}{2011/02/18}{changed the schools command, and turned it into a 1 entry macro.}
%List of the schools attended by the author, with their city and state of location.  Each school is on its own |\school{}| entry:
%\begin{LaTeXdemo}[code only]
%	\school{University of Somewhere, City, State
%	\school{University of Somewhere Else, City, State}
%	\school{A State School, City, State}
%\end{LaTeXdemo}
%
%\DescribeMacro{\degree{}}
%\changes{v2.5}{2011/02/18}{changed the degrees command, and turned it into a 1 entry macro.}
%List of the education of the author.  Each degree has its own |\degree{}| entry. Each entry should be formatted so: \meta{full degree name} in \meta{field}, \meta{year}, \meta{school name}.  An example is below:
%\begin{LaTeXdemo}[code only]
%	\degree{Doctor of Philosophy in submersible basketry, 2010, 
%			University of Somewhere}
%	\degree{Master of Something in something important, 2005,
%			University of Somewhere Else}
%	\degree{Bachelor of Something in something completely different, 2002, 
%			A State School.}
%\end{LaTeXdemo}
%
%\DescribeMacro{\interests{}}
%A comma delimited list of interests.
%
%\DescribeMacro{\position{}}
%\changes{v2.5}{2011/02/18}{changed the experience command, and turned it into a 1 entry macro.}
%Work history related to the authors research, as with |\school{}| and |\degree{}|, one entry per macro call.
%
%\DescribeMacro{\award{}}
%\changes{v2.5}{2011/02/18}{changed the awards command, and turned it into a 1 entry macro.}
%Awards and honors, one per call to the macro as with |\school{}|, |\degree{}|, and |\position{}|.
%
%\DescribeMacro{\publication{}}
%\changes{v2.5}{2011/02/18}{changed the publications command, and turned it into a 1 entry macro.}
%This section should be formatted the same way as |\schools{}|, etc.  The actual entries must be formatted \emph{exactly} the same as the References Cited section of the document.  The easiest way to do this is to take a bibtex file with the authors publications, and create a .bib file for that using the same bibtex style and then copy and pasting it into this section each |\bibitem{}| being placed inside a |\publication{}| macro call\footnote{Yes, this is a little redundant, but it was done this way to avoid any potential conflicts with \BibTeX}. Bibdesk will do this by using one of the optional copy formats under file as should JabRef.  
%
%\section{Trouble Shooting and FAQ's}
%First, every attempt has been made to make this package as general and stable as is possible.  That said, bugs happen so please report them.  \emph{Before} reporting them however, there are somethings that you can do to trouble shoot.  It is suggested that you try to answer each of these questions yourself before you contact the maintainer:
%\begin{itemize}
%\item What does your compile log say? Are there any errors?
%\item Are there any errors in your \BibTeX compile log?
%\item Can you replicate the problem with a minimal example, i.e. A basic code chunk in a chapter with your header?  
%\item Can you typeset just the front-matter (abstract, cv, etc.)?  
%\item Do you have any extra packages installed?  
%\item Have you checked to see if your problem is caused by a specific package or combination of packages?
%\item Are you calling any packages that are already called by the class (section 3 of this document)?
%\end{itemize}
%
%\StopEventually{^^A
%  \PrintChanges
%}
%\clearpage
%\section{Implementation}
%\subsection{Preamble}
%First comes the preliminary declarations, the \LaTeX version that is needed, what the class file provides, etc.
%
%    \begin{macrocode}
%<*class>
\ProvidesClass{uothesis} [2010/04/10 v2.5.1 Submission to
 University of Oregon Graduate School]
%    \end{macrocode}
%
%Next, we print out some identifying text in the output window.
%
%    \begin{macrocode}
\typeout{UO Thesis Class}
\typeout{}
\typeout{Based on the UO Thesis macros by Bart Massey, et al.}
\typeout{Currently maintained by Michael D. Anderson}
\typeout{Accepted by the University of Oregon Graduate School}
\typeout{for general use with Masters Thesis <date goes here>}
\typeout{Accepted by the University of Oregon Graduate School}
\typeout{for general use with PhD Dissertations <date goes here>}
\typeout{}
%    \end{macrocode}
%
%And then list the files being called by the .tex file.
%
%    \begin{macrocode}
\listfiles
%    \end{macrocode}
%
%Here we declare the draft option flags and conditionals for the code.
%
%\changes{v2.5.1}{2010/04/10}{Added natbib if statement}
%    \begin{macrocode}
\newif\ifthesis
\newif\ifdraftcopy
\newif\ifcommitteedraft
\newif\iflatedraft
\newif\ifdraftimage
\newif\ifdraft
\newif\iffinal
\newif\ifsc
\newif\iflipsum
\newif\ifjustified
\newif\ifamstex
\newif\ifchem
\newif\ifbound
\newif\ifnatbib
\newif\if@dissertation
\newif\if@copyright
\newif\if@gsmodern
\newif\if@numsections
\newif\if@contnumb
\newif\if@draftimage
%    \end{macrocode}
% Now we declare the class options and assign the flags for each option. 
%\changes{v2.5.1}{2010/04/10}{Added natbib option}
%    \begin{macrocode}
\DeclareOption{dissertation}{\@dissertationtrue\thesistrue\natbibtrue}
\DeclareOption{msthesis}{\@dissertationfalse\thesistrue}
\DeclareOption{draftimages}{\draftimagetrue\PassOptionsToPackage{draft}{graphicx}}
\DeclareOption{draftcopy}{\drafttrue\draftcopytrue\boundtrue}
\DeclareOption{committeedraft}{\drafttrue\committeedrafttrue}
\DeclareOption{latedraft}{\drafttrue\latedrafttrue}
\DeclareOption{copyright}{\@copyrighttrue}
\DeclareOption{gsmodern}{\@gsmoderntrue}
\DeclareOption{numsections}{\@numsectionstrue}
\DeclareOption{amstex}{\amstextrue}
\DeclareOption{chemistry}{\chemtrue\amstextrue}
\DeclareOption{smallcaps}{\sctrue}
\DeclareOption{justified}{\justifiedtrue}
\DeclareOption{cheqns}{}
\DeclareOption{final}{\draftcopyfalse\draftimagefalse
	\committeedraftfalse\latedraftfalse\finaltrue}
\DeclareOption{lipsum}{\lipsumtrue}
\DeclareOption{bound}{\boundtrue}
\DeclareOption{natbib}{\natbibtrue}
\DeclareOption*{\PassOptionsToPackage{\CurrentOption}{natbib}}
%    \end{macrocode}
%
%  Finally, we process the options.
%
%    \begin{macrocode}
\ProcessOptions
%    \end{macrocode}
%
% Now we check that a document type has been indicated in the .tex file.
%
%    \begin{macrocode}
\ifthesis\else
\typeout{warning: Neither msthesis nor dissertation specified}
\fi
%    \end{macrocode}
%
%If the bound option is indicated in the .tex file, we need to warn the user.
%
%    \begin{macrocode}
\ifbound
\typeout{PAGE FORMAT CHANGED FOR BINDING AND PRINTING}
\typeout{This format DOES NOT COMPLY with University of Oregon Guidelines}
\typeout{For personal use only!}
\fi
%    \end{macrocode}
%
%Now we pass options to the report class primitive based on the options declared in the .tex file.
%
%    \begin{macrocode}
\iflatedraft\PassOptionsToClass{12pt,draft}{report}\fi
\ifcommitteedraft\PassOptionsToClass{12pt,draft}{report}\fi
\ifdraftcopy\PassOptionsToClass{10pt,draft}{report}
	\PassOptionsToClass{draft}{todonotes}\fi
\iffinal
	\ifbound
		\PassOptionsToClass{12pt,twoside}{report}
	\else
		\PassOptionsToClass{12pt}{report}
	\fi\fi
%    \end{macrocode}
%
%Now we load the \LaTeX report class primitive.
%
%    \begin{macrocode}
\LoadClass{report}
%    \end{macrocode}
%\subsection{Required Packages}
%Call the required packages for |uothesis|.
%
%    \begin{macrocode}
\RequirePackage{float}
\RequirePackage{subfig}
\RequirePackage[dvipsnames]{xcolor}
\RequirePackage{graphicx}
\RequirePackage{setspace}
\RequirePackage{xspace}
\RequirePackage[left,pagewise]{lineno}
\RequirePackage{layouts}
\RequirePackage[colorinlistoftodos]{todonotes}
\RequirePackage{ragged2e}
\captionsetup{labelsep=space}
\setlength\RaggedRightRightskip{0pt plus 1cm}
\setlength\RaggedRightParindent{0.4in}
%    \end{macrocode}

%\subsection{Document-wide Macros and Options}
% package options conditionals (document wide)
%\begin{macro}{chem}
%Here we define the result of calling the |chemistry| option.  We call |chemstyle| and |mhchem|.
%    \begin{macrocode}
\ifchem
	\RequirePackage[version=3]{mhchem}
\fi
%    \end{macrocode}
%\end{macro}
%\begin{macro}{amstex}
% call amstex packages if option enabled
%    \begin{macrocode}
\ifamstex
	\RequirePackage{amsmath,amsthm,amssymb}
\fi
%    \end{macrocode}
%\end{macro}
%\begin{macro}{lipsum}
% call lipsum package if option enabled
%    \begin{macrocode}
\iflipsum
	\RequirePackage{lipsum}
\fi
%    \end{macrocode}
%\end{macro}
%\begin{macro}{natbib}
% call natbib package if enabled, which is the default setting
%\changes{v2.5.1}{2010/04/10}{Added natbib optional call here}
%    \begin{macrocode}
\ifnatbib
	\RequirePackage{natbib}
\fi
%    \end{macrocode}
%\end{macro}

%\subsubsection{Draft Only Macros and Options}
%\begin{macro}{draftwatermark}
% create draft watermark
%    \begin{macrocode}
\ifdraft
	\RequirePackage{draftwatermark}
	\newcommand{\watermark}[5]{\SetWatermarkAngle{#1}
		\SetWatermarkLightness{#2}
		\SetWatermarkFontSize{#3}
		\SetWatermarkScale{#4}
		\SetWatermarkText{\uppercase{#5}}}
	\ifdraftcopy\watermark{45}{0.95}{5cm}{2.5}{Draft}\fi
	\ifcommitteedraft\watermark{45}{0.95}{5cm}{2.25}{Committee Draft}\fi
	\iflatedraft\watermark{45}{0.95}{5cm}{2.5}{Review Proof}\fi
\fi
%    \end{macrocode}
%\end{macro}
% Here we create the editing markup commands.  These are based off of the |\todo| command.
%    \begin{macrocode}
\ifdraftcopy
%    \end{macrocode}
%\begin{macro}{\ednote}
%Create |\ednote| command.
%    \begin{macrocode}
  	\newcounter{ednote}
	\@addtoreset{ednote}{chapter}
  	\newcommand{\ednote}[1]{\stepcounter{ednote}\todo[color=blue!40,size=\scriptsize,
		caption={NOTE \arabic{chapter}.\arabic{ednote}: #1},noprepend]%
		{\bf\hfil N.\arabic{chapter}.\arabic{ednote}\hfil}%
		{\textbf{\textcolor{blue}{[N.\arabic{chapter}.\arabic{ednote}]}}}}
%    \end{macrocode}
%\end{macro}
%\begin{macro}{\here}
%Create |\here| command.
%    \begin{macrocode}
	\newcommand{\here}{\textcolor{BrickRed}{$\blacksquare$}\todo[inline,color=red!40,
		size=\small,caption={\uppercase{Incomplete Section: Section \arabic{chapter}.
		\arabic{section}}}]{\hfil\textbf{\uppercase{Incomplete Section}}\hfil}}
%    \end{macrocode}
%\end{macro}
%\begin{macro}{\needref}
% create |\needref| command.
%    \begin{macrocode}
	\newcounter{citation}
	\@addtoreset{citation}{chapter}
   	\newcommand{\needref}[1]{\stepcounter{citation}\todo[color=green!40,
		size=\scriptsize,caption={CITE \arabic{chapter}.\arabic{citation}: #1}]
		{\bf\hfil N.\arabic{chapter}.\arabic{citation}\hfil}
		{\textbf{\textcolor{ForestGreen}{[C.\arabic{chapter}.\arabic{citation}]}}}}
%    \end{macrocode}
%\end{macro}
% If the draft mode is not enabled we need to remove commands so that they don't cause errors.
% This is done by setting them to be empty if |\ifdraft| comes back as false.
%    \begin{macrocode}
\else
   	\newcommand{\ednote}[1]{}
	\newcommand{\here}{}
	\newcommand{\needref}{}
\fi
%    \end{macrocode}

%\subsection{General Macros and Environments}
%\begin{macro}{\cleanbreak}
% A new command for clean line breaks in TOC, TOF, TOT.  The version of the command paired with the RaggedRight option doesn't work particularly well.  It is intended more for using the \LaTeX\ default of having a full justification in the text block.
%\changes{v2.4}{2010/12/21}{Corrected a potential error here when the command is used with the ragged right text block.}
%    \begin{macrocode}
\newcommand{\cleanbreak}{
\ifjustified
	\\\hfil
\else
	\newline
\fi}
%    \end{macrocode}
%\end{macro}
% new chemical equation environments. (modified from mhchem documentation, pg. 10-11)
% create reaction counter
%\begin{macro}{reaction}
% Modify the reaction counter to fit formatting requirements.
%    \begin{macrocode}
\ifchem
\newcounter{reaction}
\renewcommand\thereaction{Formula\ \thechapter.\arabic{reaction}}
\@addtoreset{reaction}{chapter}
%    \end{macrocode}
% create new reaction tag
%    \begin{macrocode}
\newcommand\reactiontag{\refstepcounter{reaction}\tag{\thereaction}}
%    \end{macrocode}
%\end{macro}
%\begin{macro}{\chem}
%Create new chem environment (doesn't use line breaks)
%    \begin{macrocode}
\newcommand{\chem}[2][]{\begin{equation}\cee{#2}%
	\ifx\@empty#1\@empty\else\label{#1}\fi\reactiontag\end{equation}}
%    \end{macrocode}
%\end{macro}
%\begin{macro}{\Chem}
%Create new Chem environment (enables line breaks)
%    \begin{macrocode}
\newcommand{\Chem}[2][]{\begin{multline}\cee{#2}%
	\ifx\@empty#1\@empty\else\label{#1}\fi\reactiontag\end{multline}}
\fi
%    \end{macrocode}
%    \begin{macrocode}
\newcommand*{\cst@xspace}{\expandafter\xspace}
\newcommand*{\cst@latin}{\expandafter\emph}
\newcommand*{\etc}{\@ifnextchar.{\cst@etc}{\cst@etc.\cst@xspace}}
\newcommand*{\invacuo}{\cst@latin{in vacuo}\cst@xspace}
\newcommand*{\etal}{\@ifnextchar.{\cst@etal}{\cst@etal.\cst@xspace}}
\newcommand*{\eg}{\cst@eg.}
\newcommand*{\ie}{\cst@ie.}
\newcommand*{\cst@etal}{\cst@latin{et~al}}
\newcommand*{\cst@etc}{\cst@latin{etc}}
\newcommand*{\cst@ie}{\cst@latin{i.e\spacefactor999\relax}}
\newcommand*{\cst@eg}{\cst@latin{e.g\spacefactor999\relax}}
%    \end{macrocode}
%\end{macro}

%\subsection{Internal Variables and Commands}
%\begin{macro}{\normalspace}
%Define a single spacing environment.
%    \begin{macrocode}
\newenvironment{normalspace}{\begin{singlespacing}}{\end{singlespacing}}
%    \end{macrocode}
%\end{macro}
%\begin{macro}{\@mydouble}
%Define special double space environment.
%    \begin{macrocode}
\def\@mydouble{\endsinglespace\large\normalsize\setstretch{1.7}}
%    \end{macrocode}
%\end{macro}
%\begin{macro}{\@mysinglespace}
%Define second special single space environment.
%    \begin{macrocode}
\def\@mysingle{\singlespace\large\normalsize\setstretch{1.7}}	
%    \end{macrocode}
%\end{macro}
%\begin{macro}{\@mysinglespace}
%Define third special single space environment.
%    \begin{macrocode}
\def\@mybibsingle{\singlespace\large\normalsize\setstretch{1}}	
%    \end{macrocode}
%\end{macro}
%\begin{macro}{\@draftdate}
%Define draftdate: YYYY/MM/DD
%    \begin{macrocode}
\def\@draftdate{{\the\year/\/\two@digits{\the\month}/\/\two@digits{\the\day}}}
%    \end{macrocode}
%\end{macro}
%\begin{macro}{\@longdraftdate}
%Define longdraftdate: Day, Month, YYYY
%    \begin{macrocode}
\def\@longdraftdate{\today}
%    \end{macrocode}
%\end{macro}
%Define thesis and dissertation strings for abstract page
%    \begin{macrocode}
\if@dissertation
  	\ifdraftcopy
    		\gdef\@cappapertype{Dissertation Draft}
  	\else
    		\gdef\@cappapertype{Dissertation}
  	\fi
\else
  	\ifdraftcopy
    		\gdef\@cappapertype{Thesis Draft}
  	\else
    		\gdef\@cappapertype{Thesis}
  	\fi
\fi
\xdef\@upperpapertype{\uppercase{\@cappapertype}}
\xdef\@papertype{\lowercase{\@cappapertype}}
%    \end{macrocode}
%\begin{macro}{\@draftstring}
%Define draft copy header string.
%    \begin{macrocode}
\ifdraftcopy
  	\def\@draftstring{{{\sc Draft of} \@draftdate}}
\else
  	\def\@draftstring{}
\fi
%    \end{macrocode}
%\end{macro}
%\begin{macro}{\@disclaimer}
%Define draft copy disclaimer for title pages.
%    \begin{macrocode}
\def\@disclaimer{	
	\ifcommitteedraft\textcolor{red}{\textbf{\uppercase{committee draft}}}\fi
	\iflatedraft\textcolor{red}{\textbf{\uppercase{review proof}}}\fi
	\ifdraftcopy\textcolor{red}{\textbf{\uppercase{editing draft}}}\fi\\
	\vspace*{0.5in}
	\textcolor{red}{\textbf{\uppercase{This is a draft copy for review
	 and editing purposes only!}}}
	\vspace*{10pt}
	\setlength\fboxsep{10pt} 
	\setlength\fboxrule{2pt}
	\framebox[1\columnwidth]{\parbox{0.95\columnwidth}{\textcolor{black}
		{\textbf{This draft format in no way complies with the University 
		of Oregon Style Graduate School Style Guide for theses or dissertations.  
		This draft may employ 10 point fonts for paper conservation, line numbering 
		for ease of editing, or watermarking and editing notations;  all of which violate 
		the Graduate School Style Guide for final documents.  See the uothesis.cls 
		documentation for instructions on producing a properly formatted document.}}}}}
%    \end{macrocode}
%Define bound disclaimer for copyright page
%    \begin{macrocode}
\def\@bounddisclaimer{% 
	\parbox{0.75\textwidth}{\centering
	\begin{spacing}{0.5}
	{\tiny This document is for the the personal use of the author and does not comply 
		with the University of Oregon Graduate School.  Please contact the University 
		of Oregon Graduate School for information on how to obtain an official copy 
		of this document.}
	\end{spacing}}\\
	\vfill\LaTeX
	}
%    \end{macrocode}
%\end{macro}

%\subsection{User Accessible Variables and Commands}

%\subsubsection{Titles}
%\begin{macro}{\covertitle}
%Define cover title string
%    \begin{macrocode}
\def\covertitle#1{\gdef\@covertitle{#1}\gdef\@uppercovertitle{\begin{doublespace}	\uppercase{#1}	\end{doublespace}}}
%    \end{macrocode}
%\end{macro}
%\begin{macro}{\abstracttitle}
%Define abstract title string
%    \begin{macrocode}
\def\abstracttitle#1{\gdef\@abstracttitle{#1}\gdef\@upperabstracttitle{\uppercase{#1}}}
%    \end{macrocode}
%\end{macro}

%\subsubsection{Author Strings}
%\begin{macro}{\author}
%Define author command
%    \begin{macrocode}
\def\author#1{\gdef\@author{#1}\gdef\@upperauthor{\uppercase{#1}}}
%    \end{macrocode}
%\end{macro}
%\begin{macro}{\narrowauthor}
%Define narrow author
%    \begin{macrocode}
\def\narrowauthor#1{\gdef\@narrowauthor{#1}\gdef\@uppernarrowauthor{\uppercase{#1}}}
%    \end{macrocode}
%\end{macro}	

%\subsubsection{School Information and Examination Committee}
%\begin{macro}{\department}
%Define department
%    \begin{macrocode}
\def\department#1{\gdef\@department{#1}}
%    \end{macrocode}
%\end{macro}
%\begin{macro}{\narrowdepartment}
%Define narrow department
%    \begin{macrocode}
\def\narrowdepartment#1{\gdef\@narrowdepartment{#1}}
%    \end{macrocode}
%\end{macro}
%\begin{macro}{\advisor}
%Define advisor
%    \begin{macrocode}
\def\advisor#1{\gdef\@advisor{#1}}
%    \end{macrocode}
%\end{macro}
%\begin{macro}{\chair}
%Define chair
%    \begin{macrocode}
\def\chair#1{\gdef\@chair{#1}}
%    \end{macrocode}
%\end{macro}
%\begin{macro}{\cochair}
%Define cochair for disseration
%    \begin{macrocode}
\newif\if@cochair
\if@dissertation	
  \def\cochair#1{\gdef\@cochair{#1}\@cochairtrue}
%Define the committee
  \def\committee#1{\gdef\@committee{#1}}
\fi
%    \end{macrocode}
%\end{macro}
%\begin{macro}{\graddean}
%Define the dean
%    \begin{macrocode}
\def\graddean#1{\gdef\@graddean{#1}}
%    \end{macrocode}
%\end{macro}

%\subsubsection{Degree and Graduation}
%\begin{macro}{\degreetype}
%Define degree type
%    \begin{macrocode}
\def\degreetype#1{\gdef\@degree{#1}}
%    \end{macrocode}
%\end{macro}
%\begin{macro}{\degreemonth}
%Define degree month
%    \begin{macrocode}
\def\degreemonth#1{\gdef\@degreemonth{#1}}
%    \end{macrocode}
%\end{macro}
%\begin{macro}{\degreeyear}
%Define degree year
%    \begin{macrocode}
\def\degreeyear#1{\gdef\thedegreeyear{#1}}
%    \end{macrocode}
%\end{macro}

%\subsubsection{Abstract, Dedication, etc\ldots}
%\begin{macro}{\abstract}
%Define abstract
%    \begin{macrocode}
\long\def\abstract#1{\gdef\@abstract{#1}}
%    \end{macrocode}
%\end{macro}
%\begin{macro}{\dedication}
%Define dedication
%    \begin{macrocode}
\newif\if@dedication
\long\def\dedication#1{\gdef\@dedication{#1}\@dedicationtrue}
%    \end{macrocode}
%\end{macro}
%\begin{macro}{\acknowledge}
%Define acknowledgement
%    \begin{macrocode}
\long\def\acknowledge#1{\gdef\@acknowledge{#1}}
%    \end{macrocode}
%\end{macro}

%\subsubsection{Signature Page Internal Commands}
%\begin{macro}{\@optional}
%Define the optional arguement: c.f. David Solomon's ``The Advanced TeXbook'', ISBN: 0-387-94556-3, p. 120-150. This macro is used to expand a name iff it is defined.  Note that it is invoked as |\@optional{foo}| to expand |\foo|.
%    \begin{macrocode}
\def\@optional#1{\let\what=\expandafter\csname #1
	\endcsname\ifx\what\relax\else\what\fi}
%    \end{macrocode}
%\end{macro}
%\begin{macro}{\sigline, \Sigline}
%Define signature line commands
%    \begin{macrocode}
\newcommand{\@sigline}[2]{Approved: \rule{#1}{.4pt}\\*[-0.25\baselineskip]{#2}}
\newcommand{\@Sigline}[1]{Approved: \hrule\vspace*{-\parskip}\vspace*{4pt}{#1}}
%    \end{macrocode}
%\end{macro}

%\subsubsection{CV Internal Commands}
%\changes{2.5}{2011/02/18}{Major restructuring of the CV area to allow for a more LaTeX-like experience.  Borrowing code ideas from alternate physics LaTeX Code.}
%\begin{macro}{\cvoneline}
% Define single line environment for CV
%    \begin{macrocode}
\def\cvoneline#1#2{	\\*[\baselineskip] {#1}: {#2}}
%    \end{macrocode}
%\end{macro}
%\begin{macro}{\cvmultiline}
%Define multiline environment for CV
%    \begin{macrocode}
\def\cvmultiline#1#2{
	\par\vspace{1.5\baselineskip}\noindent
    	{#1}:\\*[\baselineskip]\nopagebreak
    	\indent\parbox[b]{5in}{#2}}
%    \end{macrocode}
%\end{macro}
%\begin{macro}{\@cvhangindent}
% define CV hanging indent
%    \begin{macrocode}
\newlength{\@cvhangindent}
%    \end{macrocode}
% Set the hanging indent length and deal with paragraph alignments within the CV.
%    \begin{macrocode}
\setlength{\@cvhangindent}{\parindent}
\addtolength{\@cvhangindent}{1.5em}
\long\def\cvpars#1{\par #1}
\long\def\cvitem#1#2{\par\vspace{1.5\baselineskip}\noindent{#1}:\nopagebreak\par #2}
%    \end{macrocode}
%\end{macro}

%\subsubsection{CV commands}
%\changes{2.5}{2011/02/18}{Major restructuring of the CV area to allow for a more LaTeX-like experience.  Borrowing code ideas from alternate physics LaTeX Code.}
%\changes{v2.5.1}{2010/04/10}{Added new single space command for the bibliography}
%\begin{macro}{CV Variables}
\gdef\@schools{}
\gdef\@degrees{}
\gdef\@birthplace{}
\gdef\@birthday{}
\gdef\@interests{}
\gdef\@awards{}
\gdef\@experience{}
\gdef\@publications{}
%\begin{macro}{\birthplace}
%Define birthplace
%    \begin{macrocode}
\def\birthplace#1{\gdef\@birthplace{#1}}
%    \end{macrocode}
%\end{macro}
%\begin{macro}{\birthday}
%Define birthday
%    \begin{macrocode}
\def\birthday#1{\gdef\@birthdate{#1}}
%    \end{macrocode}
%\end{macro}
%\begin{macro}{\schools}
%Define educational history
%    \begin{macrocode}
\def\school#1{\expandafter\gdef\expandafter\@schools\expandafter{\@schools\cvpars{#1}}}	
%    \end{macrocode}
%\end{macro}
%\begin{macro}{\degrees}
%Define the degrees received.
%    \begin{macrocode}
\long\def\degree#1{\expandafter\gdef\expandafter\@degrees\expandafter{\@degrees\cvpars{#1}}}
%    \end{macrocode}
%\end{macro}
%\begin{macro}{\interests}
%Define interests
%    \begin{macrocode}
\def\interests#1{\expandafter\gdef\expandafter\@interests\expandafter{\@interests\cvpars{#1}}}
%    \end{macrocode}
%\end{macro}
%\begin{macro}{\experience}
%Define professional experience.
%    \begin{macrocode}
\def\position#1{\expandafter\gdef\expandafter\@experience\expandafter{\@experience\cvpars{#1}}}
%    \end{macrocode}
%\end{macro}
%\begin{macro}{\awards}
%Define awards. (optional)
%    \begin{macrocode}
\def\award#1{\expandafter\gdef\expandafter\@awards\expandafter{\@awards\cvpars{#1}}}
%    \end{macrocode}
%\end{macro}
%\begin{macro}{\publications}
%Define publications. (optional)
%    \begin{macrocode}
\def\publication#1{\expandafter\gdef\expandafter\@publications\expandafter{\@publications\cvpars{#1}}}
%    \end{macrocode}
%\end{macro}
%\end{macro}
%\subsection{Preliminary page formatting, layout, and settings}
%Set the text spacing to a little under double spacing.
%    \begin{macrocode}
\setstretch{1.7} 
%    \end{macrocode}
%Set a standard header size
%    \begin{macrocode}
\newcommand{\@normalheaderdims}{
	\textheight 620pt 
	\headheight 14pt
	\headsep 14pt}
%    \end{macrocode}
%Set standard page margins
%    \begin{macrocode}	
\ifbound
	\oddsidemargin 0.6in
	\evensidemargin 0.6in
	\textwidth 5.8in
	\footskip 0.5in
	\footnotesep 15pt
	\parindent 24pt
	\topmargin 0in
\else
	\oddsidemargin 0.25in
	\evensidemargin 0.25in
	\textwidth 6in
	\footskip 0.5in
	\footnotesep 15pt
	\parindent 24pt
	\topmargin 0in 
\fi
\@normalheaderdims
%    \end{macrocode}
%Set vertical space net (relative to the top of the page).
%    \begin{macrocode}
\def\@fromtopskip#1{
	\@tempdima=#1
  	\advance\@tempdima by-1in
  	\advance\@tempdima by-\topmargin
  	\advance\@tempdima by-\headheight
  	\advance\@tempdima by-\headsep
  	\advance\@tempdima by-\baselineskip
  	\advance\@tempdima by12pt
  	\hbox to0pt{}\nointerlineskip\vskip\@tempdima}

%    \end{macrocode}
%Setting section numbering for numbered and unnumbered sections.
%Include sections in the TOC
%    \begin{macrocode}
\setcounter{tocdepth}{1}
%    \end{macrocode}
%Declare a new counter for section numbers
%    \begin{macrocode}
\newcounter{@shownumdepth}
%    \end{macrocode}
%Show section numbers with gsmodern.
%    \begin{macrocode}
\if@gsmodern
  \setcounter{@shownumdepth}{2}
\else
%    \end{macrocode}
%Show section numbers with numsection
%    \begin{macrocode}
	\if@numsections
  		\setcounter{@shownumdepth}{2}
	\else
%    \end{macrocode}
%Suppress section numbers in TOC and section headings
%    \begin{macrocode}	
  		\setcounter{@shownumdepth}{0}
  		\setcounter{secnumdepth}{1}
	\fi
\fi
%    \end{macrocode}
%Write the appendix count in the main aux file
%    \begin{macrocode}
\def\@emit#1{\if@filesw\immediate\write\@mainaux{#1}\fi}
%    \end{macrocode}
%Increase the hyphenation penalty to prevent hyphenation.
%    \begin{macrocode}
\hyphenpenalty=500000
%    \end{macrocode}
%Increase tolerance of wider word spacing in lines.
%    \begin{macrocode}
\tolerance=5000
%    \end{macrocode}
%Increase the widow penalties. 
%    \begin{macrocode}
\widowpenalty=10000
%    \end{macrocode}
%Increase the orphan penalties
%    \begin{macrocode}
\clubpenalty=10000
%    \end{macrocode}
%Allow ragged bottom pages
%    \begin{macrocode}
\raggedbottom	
%    \end{macrocode}

%\subsection{The Title Page Layout}
%\begin{macro}{\@maketitlepage}
%Define the title page
%    \begin{macrocode}
\def\@maketitlepage{
%    \end{macrocode}
% create a new page
%    \begin{macrocode}
\newpage
%    \end{macrocode}
% make the page empty
%    \begin{macrocode}
\thispagestyle{empty}
%    \end{macrocode}
% if draft mode start numbers here
%    \begin{macrocode}
\ifdraftcopy\linenumbers\fi
%    \end{macrocode}
% begin center justification 
%    \begin{macrocode}
\begin{center}
%    \end{macrocode}
% position title start 0.25 in from top of text block
%    \begin{macrocode}
\vspace*{0.25in}
%    \end{macrocode}
% set line spacing to double spacing for title
%    \begin{macrocode}
\doublespacing	
%    \end{macrocode}
% call uppercovertitle
%    \begin{macrocode}
\@uppercovertitle
%    \end{macrocode}
% set line spacing to single spacing
%    \begin{macrocode}
\singlespacing
%    \end{macrocode}
% fill to by line
%    \begin{macrocode}
\vfill
%    \end{macrocode}
% set by line and start new line
%    \begin{macrocode}
by \\*[\baselineskip]
%    \end{macrocode}
% call upper case author string
%    \begin{macrocode}
\@upperauthor\\
%    \end{macrocode}
%  fill to gs declaration
%    \begin{macrocode}
\vfil
%    \end{macrocode}
% if draft mode set disclaimer
%    \begin{macrocode}
\ifdraft\@disclaimer\\\fi\vfill
%    \end{macrocode}
% declaration to the graduate school.
%    \begin{macrocode}
A \@upperpapertype \\*[\baselineskip]
  	Presented to the  \@narrowdepartment \\*
  	and the Graduate School of the
	University of Oregon \\*
  	in partial fulfillment of the requirements \\*
  	for the degree of \\*	
%    \end{macrocode}
% call degree
%    \begin{macrocode}
\@degree \\*[\baselineskip]
%    \end{macrocode}
% call degree month
%    \begin{macrocode}
\@degreemonth ~\thedegreeyear\\
%    \end{macrocode}
% close center justification
%    \begin{macrocode}
\end{center}}
%    \end{macrocode}
%\end{macro}

%\subsection{The Approval Page}
%Define the approval signature page
%\begin{macro}{\@makeapprovepage}
%    \begin{macrocode}
\def\@makeapprovepage{
%    \end{macrocode}
% create clear page
%    \begin{macrocode}
\clearpage
\thispagestyle{plain}
%    \end{macrocode}
% place the heading.
%    \begin{macrocode}
\@startchapter{\@upperpapertype\ APPROVAL PAGE}
%    \end{macrocode}
% begin single spacing
%    \begin{macrocode}
\begin{spacing}{1}
%    \end{macrocode}
% 3 ex of vertical space
%    \begin{macrocode}
\vspace*{3ex}
%    \end{macrocode}
% suppress indenting in the page
%    \begin{macrocode}
\noindent
%    \end{macrocode}
% call author string.
%    \begin{macrocode}
Student: \@author\\*[\baselineskip]
%    \end{macrocode}
% call the document title.
%    \begin{macrocode}
Title: \@abstracttitle\\*[\baselineskip]
%    \end{macrocode}
% place the GS mandated text
%    \begin{macrocode}
This \@papertype\ has been accepted and approved
 in partial fulfillment of the requirements for the
\@degree\ degree in the \@narrowdepartment\ by:\\*[\baselineskip]
%    \end{macrocode}
% create a table with the names of the examining committee
%    \begin{macrocode}
\begin{tabular}[t]{p{2.25in} p{3.25in}}
%    \end{macrocode}
% call chair string then label
%    \begin{macrocode}
\@chair & Chair\\
%    \end{macrocode}
% call cochair string then label if it exists
%    \begin{macrocode}
\if@cochair
	\@cochair& Co-chair\\
\fi
%    \end{macrocode}
% call advisor
%    \begin{macrocode}
\@advisor & Advisor\\	
%    \end{macrocode}
% call committee string
%    \begin{macrocode}
\@committee\\
and & \\ \\	
\@graddean & Vice President for Research 
and Graduate Studies/ Dean of the Graduate School
%    \end{macrocode}
% end tablular environment
%    \begin{macrocode}
\end{tabular}\\*[\baselineskip]
%    \end{macrocode}
% remainder of the text required by GS
%    \begin{macrocode}
Original approval signatures are on file with the 
University of Oregon Graduate School.\\*[\baselineskip]
%    \end{macrocode}
% degree date
%    \begin{macrocode}
Degree awarded \@degreemonth ~\thedegreeyear
%    \end{macrocode}
% end single spacing
%    \begin{macrocode}
\end{spacing}}	
%    \end{macrocode}
%\end{macro}

%\subsection{The Copyright Page}
%\begin{macro}{\@makecopyrightpage}
%Define the copyright page.
%    \begin{macrocode}
\def\@makecopyrightpage{
%    \end{macrocode}
% begin copyright conditional
%    \begin{macrocode}
\if@copyright
%    \end{macrocode}
% create clear page
%    \begin{macrocode}
	\clearpage
	\thispagestyle{plain}
%    \end{macrocode}
% 4 in vertical space
%    \begin{macrocode}
	\@fromtopskip{5in}
%    \end{macrocode}
% create a centered line with copyright symbol followed by degree year and author string
%    \begin{macrocode}
	\ifbound\else\centerline{\copyright ~\thedegreeyear ~\@author}\fi
%    \end{macrocode}
% vertical fill to bottom of the page
% if draft mode set disclaimer
%    \begin{macrocode}
\ifbound\centering\@bounddisclaimer\\\else\vfill\fi\vfil
%    \end{macrocode}
% end copyright conditional
%    \begin{macrocode}
\fi}
%    \end{macrocode}
%\end{macro}

%\subsection{The Abstract Page}
%\begin{macro}{\@makeabstractpage}
%Define the abstract page.
%    \begin{macrocode}
\def\@makeabstractpage{
%    \end{macrocode}
% create clear page
%    \begin{macrocode}
\clearpage
\pagestyle{plain}
%    \end{macrocode}
% place the heading.
%    \begin{macrocode}
\@startchapter{\@upperpapertype\ ABSTRACT}
%    \end{macrocode}
% begin single spacing
%    \begin{macrocode}
\begin{spacing}{1}
%    \end{macrocode}
% 3 ex of vertical space
%    \begin{macrocode}
\vspace*{3ex}
%    \end{macrocode}
% suppress indenting in the page
%    \begin{macrocode}
\noindent
%    \end{macrocode}
% call author string.
%    \begin{macrocode}
\@author\\*[\baselineskip]
%    \end{macrocode}
% call the degree type.
%    \begin{macrocode}
\@degree\\*[\baselineskip]
%    \end{macrocode}
% call the department name
%    \begin{macrocode}
\@department\\*[\baselineskip]
%    \end{macrocode}
% the date
%    \begin{macrocode}
 \@degreemonth ~\thedegreeyear\\*[\baselineskip]
%    \end{macrocode}
% call the document title.
%    \begin{macrocode}
Title: \@abstracttitle\\*[\baselineskip]
\parbox[t]{5in}{\raggedright
%    \end{macrocode}
% begin co-chair conditional
%    \begin{macrocode}
\if@cochair
%    \end{macrocode}
% signature lines for advisor
%    \begin{macrocode}
\@sigline{3.5in}{\hspace*{1.5in}\@advisor, Co-chair}\\*[\baselineskip]
%    \end{macrocode}
% signature lines for cochair.
%    \begin{macrocode}
\@sigline{3.5in}{\hspace*{1.5in}\@cochair, Co-chair}
%    \end{macrocode}
% if no co-chair
%    \begin{macrocode}
\else
%    \end{macrocode}
% signature line for advisor.
%    \begin{macrocode}
\@sigline{3.5in}{\hspace*{1.5in}\@advisor}
%    \end{macrocode}
% end co-chair conditional
%    \begin{macrocode}
\fi}\\*[2\baselineskip]
\end{spacing}
%    \end{macrocode}
% set text block to full justification if option is called
%\changes{v2.4}{2010/12/19}{Added RaggedRight option to abstract.}
%    \begin{macrocode}
\ifjustified\else\RaggedRight\fi
\@abstract}
%    \end{macrocode}
%\end{macro}

%\subsection{The Acknowledgments Page}
%\begin{macro}{\@makeackpage}
%Define the acknowledgements page
%    \begin{macrocode}
\def\@makeackpage{
%    \end{macrocode}
% create clear page
%    \begin{macrocode}
\clearpage
\thispagestyle{plain}
%    \end{macrocode}
% set the header.
%    \begin{macrocode}
\@startchapter{ACKNOWLEDGEMENTS}
%    \end{macrocode}
% vertical space
%    \begin{macrocode}
\vspace*{\baselineskip}
\par
%    \end{macrocode}
% begin draft conditional statement
%    \begin{macrocode}
\ifcommitteedraft
%    \end{macrocode}
% print disclaimer
%    \begin{macrocode}
	\begin{center}\@disclaimer\end{center}
%    \end{macrocode}
% else
%    \begin{macrocode}
\else	
%    \end{macrocode}
% place acknowledgments
% set text block to full justification if option is called
%\changes{v2.4}{2010/12/19}{Added RaggedRight option to acknowledgements.}
%    \begin{macrocode}
	\ifjustified\else\RaggedRight\fi
	\@acknowledge
%    \end{macrocode}
% begin late draft conditional statement
%    \begin{macrocode}
	\iflatedraft
%    \end{macrocode}
% vertical fill
%    \begin{macrocode}
		\vfill
%    \end{macrocode}
% begin center justification
%    \begin{macrocode}
		\begin{center}
%    \end{macrocode}
% mark as review proof
%    \begin{macrocode}
		\textcolor{red}{\textbf{\uppercase{review proof}}}\\
%    \end{macrocode}
% end centering 
%    \begin{macrocode}
		\end{center}
%    \end{macrocode}
% end late draft conditional
%    \begin{macrocode}
	\fi
%    \end{macrocode}
% end draft conditional
%    \begin{macrocode}
\fi}
%    \end{macrocode}
%\end{macro}

%\subsection{The Dedication Page}
%\begin{macro}{\@makededpage}
%Define the dedication page
%    \begin{macrocode}
\def\@makededpage{
%    \end{macrocode}
% begin dedication conditional
%    \begin{macrocode}
\if@dedication
%    \end{macrocode}
% create clear page
%    \begin{macrocode}
	\clearpage
	\thispagestyle{plain}
%    \end{macrocode}
% set page to width of dedication
%    \begin{macrocode}
	\settowidth{\@tempdima}{\@dedication}
%    \end{macrocode}
% begin short dedication conditional
%    \begin{macrocode}
	\ifcommitteedraft
%    \end{macrocode}
% exclude from the committee draft.
%    \begin{macrocode}
		\setlength{\@tempdima}{0pt}
%    \end{macrocode}
% end short dedication conditional
%    \begin{macrocode}
	\fi
%    \end{macrocode}
% begin long dedication conditional
%    \begin{macrocode}
	\ifdim\@tempdima<\textwidth
%    \end{macrocode}
% 4 in vertical space from top of page
%    \begin{macrocode}
		\@fromtopskip{4in}
%    \end{macrocode}
% set dedication header
%    \begin{macrocode}
		\@chapterline{}
%    \end{macrocode}
% if dedication longer than 1 line of text
%    \begin{macrocode}
	\else	
%    \end{macrocode}
% 3 in vertical space from top of page
%    \begin{macrocode}
		\@fromtopskip{3in}
%    \end{macrocode}
% set dedication header
%    \begin{macrocode}
		\@startchapter{}
%    \end{macrocode}
% end long dedication conditional
%    \begin{macrocode}
	\fi
%    \end{macrocode}
% vertical space
%    \begin{macrocode}
	\vspace*{\baselineskip}
%    \end{macrocode}
%  end of paragraph
%    \begin{macrocode}
	\par
%    \end{macrocode}
% begin draft conditional
%    \begin{macrocode}
	\ifcommitteedraft
%    \end{macrocode}
% print disclaimer
%    \begin{macrocode}
		\begin{center}\@disclaimer\end{center}
%    \end{macrocode}
% else
%    \begin{macrocode}
	\else	
%    \end{macrocode}
% begin center justification
%    \begin{macrocode}
		\begin{center}
%    \end{macrocode}
% place the dedication...
%    \begin{macrocode}
		\@dedication
%    \end{macrocode}
% end center justification
%    \begin{macrocode}
		\end{center}
%    \end{macrocode}
% vertical fill to center on page
%    \begin{macrocode}
		\vfill
%    \end{macrocode}
% begin late draft conditional
%    \begin{macrocode}
			\iflatedraft
%    \end{macrocode}
% begin center justification
%    \begin{macrocode}
				\begin{center}
%    \end{macrocode}
% set review proof notification
%    \begin{macrocode}
				\textcolor{red}{\textbf{\uppercase{review proof}}}\\
%    \end{macrocode}
% end center justification
%    \begin{macrocode}
				\end{center}
%    \end{macrocode}
% end late draft conditional
%    \begin{macrocode}
			\fi
%    \end{macrocode}
% end draft conditional
%    \begin{macrocode}
	\fi
%    \end{macrocode}
% end dedication conditional
%    \begin{macrocode}
\fi}
%    \end{macrocode}
%\end{macro}

%\subsection{The Cirriculum Vitae}
%\begin{macro}{\@makevita}
%Define the CV
%    \begin{macrocode}
\def\@makevita{
%    \end{macrocode}
% create clear page
%    \begin{macrocode}
\clearpage
\thispagestyle{plain}
%    \end{macrocode}
% place the heading.
%    \begin{macrocode}
\@startchapter{CURRICULUM VITAE}
%    \end{macrocode}
% begin single spacing
%    \begin{macrocode}
\begin{singlespacing}
%    \end{macrocode}
% 3 ex of vertical space
%    \begin{macrocode}
\vspace*{3ex}
%    \end{macrocode}
% call author string.
%    \begin{macrocode}
\noindent NAME OF AUTHOR:\quad \@author \vskip\baselineskip
%    \end{macrocode}
% call birthplace string.
%    \begin{macrocode}
\noindent PLACE OF BIRTH:\quad \@birthplace \vskip\baselineskip
%    \end{macrocode}
% call birthday string.
%    \begin{macrocode}
\noindent DATE OF BIRTH:\quad \@birthdate \vskip\baselineskip
\everypar={\hangindent=\@cvhangindent}
%    \end{macrocode}
% call the educational history string.
%    \begin{macrocode}
\noindent GRADUATE AND UNDERGRADUATE SCHOOLS ATTENDED:
\@schools
\vskip \baselineskip
%    \end{macrocode}
% call the degrees string.
%    \begin{macrocode}
\noindent DEGREES AWARDED:
\@degrees
\vskip \baselineskip
%    \end{macrocode}
% call the interests string.
%    \begin{macrocode}
\noindent AREAS OF SPECIAL INTEREST:
\@interests
%    \end{macrocode}
% change the paragraph spacing.
%    \begin{macrocode}
\everypar={\parskip=0.75\baselineskip
		\hangindent=\@cvhangindent
               	\interlinepenalty=\@M}
%    \end{macrocode}
% call the experience string.
%    \begin{macrocode}
\cvitem{PROFESSIONAL EXPERIENCE}{\@experience}
%    \end{macrocode}
% call the awards string.
%    \begin{macrocode}
\cvitem{GRANTS, AWARDS AND HONORS}{\@awards}
%    \end{macrocode}
% call the publications string.
%    \begin{macrocode}
\cvitem{PUBLICATIONS}{\@publications}
%    \end{macrocode}
% end the alternate paragraph spacing.
%    \begin{macrocode}
\par
%    \end{macrocode}
% end single spacing
%    \begin{macrocode}
\end{singlespacing}}
%    \end{macrocode}
%\end{macro}

%\subsection{Full Draft Front Matter}
%\begin{macro}{\@maketitlepages}
%Here we call the previously defined pages in their proper order.
%    \begin{macrocode}
\def\@maketitlepages{
%    \end{macrocode}
% set the page numbering to roman
%    \begin{macrocode}
\pagenumbering{roman}
%    \end{macrocode}
% call the pages
%    \begin{macrocode}
\@maketitlepage
\@makeapprovepage
\@makecopyrightpage
\@makeabstractpage
\@makevita
\@makeackpage
\@makededpage
%    \end{macrocode}
% begin single spacing before TOC, etc\ldots
%    \begin{macrocode}
\begin{singlespacing}
%    \end{macrocode}
% adjust the formatting for the TOC's
%    \begin{macrocode}
\clearpage
%    \end{macrocode}
% set the page style for non-"tocheadings" style TOC, LOF, LOT figures.
%    \begin{macrocode}
\pagestyle{tocextraheadings}
\@tableofcontents
\IfFileExists{\jobname.\ext@figure}{\@listoffigures}{\@starttoc{\ext@figure}}
\IfFileExists{\jobname.\ext@table}{\@listoftables}{\@starttoc{\ext@table}}
%    \end{macrocode}
% create clear page
%    \begin{macrocode}
\clearpage
%    \end{macrocode}
% reset to normal header dimensions
%    \begin{macrocode}
\@normalheaderdims
%    \end{macrocode}
% create clear page
%    \begin{macrocode}
\clearpage
%    \end{macrocode}
% end single spacing
%    \begin{macrocode}
\end{singlespacing}}
%    \end{macrocode}
%\end{macro}

%\subsection{Working Draft Front Matter}
%\begin{macro}{\@makedraftcover}
%Here we call the previously defined pages with the exception of using the draft cover
% instead of the Full cover and the omission of the table of contents.
%    \begin{macrocode}
\def\@makedraftcover{
%    \end{macrocode}
% page break
%    \begin{macrocode}
\clearpage
%    \end{macrocode}
% blank page
%    \begin{macrocode}
\thispagestyle{empty}
%    \end{macrocode}
% start line numbers for drafts
%    \begin{macrocode}
\linenumbers
%    \end{macrocode}
% begin center justification
%    \begin{macrocode}
\begin{center}
%    \end{macrocode}
% 02.5 in vertical space
%    \begin{macrocode}
\vspace*{0.25in}
%    \end{macrocode}
% call document string in large font
%    \begin{macrocode}
{\large \@upperpapertype}\\
%    \end{macrocode}
% begin single spacing
%    \begin{macrocode}
\begin{singlespacing}
%    \end{macrocode}
% call the cover title
%    \begin{macrocode}
{\large \@covertitle}\\
%    \end{macrocode}
% vertical space
%    \begin{macrocode}
\vspace*{\baselineskip}
%    \end{macrocode}
% state the draft date.
%    \begin{macrocode}
Draft of \@longdraftdate\\
%    \end{macrocode}
% call the author string.
%    \begin{macrocode}
\@author
%    \end{macrocode}
% end single spaceing
%    \begin{macrocode}
\end{singlespacing}
%    \end{macrocode}
% end center justification
%    \begin{macrocode}
\end{center}
%    \end{macrocode}
% small font
%    \begin{macrocode}
{\small
%    \end{macrocode}
% begin single spacing
%    \begin{macrocode}
\begin{singlespacing}
%    \end{macrocode}
% place the abstract header
%    \begin{macrocode}
\begin{center}ABSTRACT\end{center}
%    \end{macrocode}
% call the abstract string.
%    \begin{macrocode}
\par\@abstract
%    \end{macrocode}
% vertical fill
%    \begin{macrocode}
\vfill
%    \end{macrocode}
% begin center justification
%    \begin{macrocode}
\begin{center}
%    \end{macrocode}
% suppress indenting
%    \begin{macrocode}
\noindent
%    \end{macrocode}
% call disclaimer
%    \begin{macrocode}
\@disclaimer\\
%    \end{macrocode}
% end center justification
%    \begin{macrocode}
\end{center}
%    \end{macrocode}
% end single spacing
%    \begin{macrocode}
\end{singlespacing}}
%    \end{macrocode}
% clear page
%    \begin{macrocode}
\clearpage}
%    \end{macrocode}
%\end{macro}

%\subsection{Typeset the appropriate frontmatter}
%    \begin{macrocode}
\def\maketitle{
\ifdraftcopy
	\iflatedraft	
		\@maketitlepages
	\else	
		\ifcommitteedraft
			\@maketitlepages
		\else
			\@makedraftcover
			\pagenumbering{roman}
			\listoftodos\clearpage
		\fi
	\fi
\else
\@maketitlepages
\fi
\pagestyle{plain}
\ifjustified\else\RaggedRight\fi
\pagenumbering{arabic}
\setcounter{page}{1}}
%    \end{macrocode}

%\subsection{General Heading Formatting}
% page headings
%    \begin{macrocode}
\def\@footlines#1{\hbox to\textwidth{#1}}
\def\@footer{\ifbound
	\hfill\rm\thepage
	\else
	\hfil\rm\thepage\hfil\fi}
%    \end{macrocode}
%  define the toc chapter and page labels for first page
%    \begin{macrocode}
\def\ps@tocheadings{	
	\def\@oddfoot{\@footlines{\@footer}}
	\def\@oddhead{}
	\let\@evenfoot\@oddfoot
	\let\@evenhead\@oddhead}
%    \end{macrocode}
% define the toc chapter and page labels for additional pgs.
%    \begin{macrocode}
\def\ps@tocextraheadings{
	\def\@oddfoot{\@footlines{\@footer}}
	\def\@oddhead{{\hbox to\textwidth{Chapter\hfil{Page}}}}
	\let\@evenfoot\@oddfoot
	\let\@evenhead\@oddhead
	\textheight 620pt
	\headheight 14pt
	\headsep 14pt}						
%    \end{macrocode}
% redefine the plain page headers and footers for bound option.
%    \begin{macrocode}
\def\ps@plain{
	\def\@oddfoot{\@footlines{\@footer}}
	\def\@oddhead{}
	\let\@evenfoot\@oddfoot
	\let\@evenhead\@oddhead
	\textheight 620pt
	\headheight 14pt
	\headsep 14pt}
%    \end{macrocode}

%\subsubsection{TOC,TOF, etc\ldots Headers}
%    \begin{macrocode}
\def\@contentspages#1#2{
	\clearpage
	\markboth{#1}{#1}
	\thispagestyle{tocheadings}
	\@startchapter{#2}
	\vspace*{14pt}
	\noindent
	\makebox[\textwidth][l]{#1 \hfill Page}
}
\def\@tableofcontents{\@contentspages{Chapter}{TABLE OF CONTENTS}
	\@mysingle\@starttoc{toc}\pagestyle{tocextraheadings}} 
\def\@listoffigures{\@contentspages{Figure}{LIST OF FIGURES}
	\@mydouble\@starttoc{\ext@figure}\pagestyle{tocextraheadings}}
\def\@listoftables{\@contentspages{Table}{LIST OF TABLES}
	\@mydouble\@starttoc{\ext@table}\pagestyle{tocextraheadings}}
%    \end{macrocode}

%\subsection{Table of Contents Formatting}
%Here we set up the formatting for the TOC, TOF, etc\ldots
%    \begin{macrocode}
\if@gsmodern
  	\def\numberline#1{\hbox to\@tempdima{\hskip 0.75em #1\hfil}}
\else	
  	\def\numberline#1{\hbox to\@tempdima{\hfil #1\hskip 0.75em}}
\fi
\def\@dottedtocline#1#2#3#4#5{
  	\ifnum #1>\c@tocdepth
	\else
   		\vskip \z@ \@plus.2\p@
    		{\leftskip=#2\relax \rightskip=\@tocrmarg
		\parfillskip=-\rightskip
     		\parindent=#2\relax \hangindent=1.5em
		\singlespace\@afterindenttrue
     		\interlinepenalty\@M
     		\leavevmode
     		\@tempdima=#3\relax
     		\advance\leftskip by\@tempdima \null\nobreak
		\hskip -\leftskip
     		{#4}\nobreak
    		\leaders\hbox{$\m@th
        			\mkern \@dotsep mu\hbox{.}\mkern
			\@dotsep
        			mu$}\hfill
     		\nobreak
     		\hb@xt@\@pnumwidth{\hfil\normalfont
		\normalcolor #5}
     		\par}
\fi}
\def\@sechack{\relax}
\def\l@chapter#1#2{
  	\pagebreak[3]\par\vskip\baselineskip
  	\@dottedtocline{0}{0in}{0.5in}{#1}{#2}
  	\nopagebreak\par
  	\gdef\@sechack{\vskip\baselineskip\gdef\@sechack{\relax}}}
	\if@gsmodern
  		\def\l@section{\@sechack\@dottedtocline{1}{0.5in}{0.5in}}
	\else	
		\if@numsections
  			\def\l@section{
			\@sechack\@dottedtocline{1}{0.5in}{0.5in}}
		\else
  			\def\l@section{
			\@sechack\@dottedtocline{1}{0.75in}{0.5in}}
		\fi
	\fi
\def\l@figure{\@dottedtocline{0}{0in}{0.5in}}%
\def\l@table{\@dottedtocline{0}{0in}{0.5in}}
%    \end{macrocode}

%\subsection{The Chapter Headings Formatting}
%\begin{macro}{\@chapapp}
%Here we define the chapter heading format and all the conditionals for appendices etc\dots
%    \begin{macrocode}
\def\@chapapp{CHAPTER}
\renewcommand{\thechapter}{\arabic{chapter}}
\def\@makechapterhead#1{{
	\centering
	\ifnum \c@secnumdepth>\m@ne
		\@chapapp{}
			\if@appendices
				\ifnum 1=\aux@appendices
					\ifnum 1=\c@chapter\else
						\typeout{warning:
						extra appendices; rerun LaTeX}
						\thechapter
					\fi
				\else
					\thechapter
				\fi
			\else
				\Roman{chapter}
			\fi
		\par
		\vskip 2ex
	\fi
\ifsc\textsc{#1}\else\uppercase{#1}\fi\par\nopagebreak\vskip 4ex}}
\def\@makeschapterhead#1{{
\@startchapter{\ifsc\textsc{#1}\else\uppercase{#1}\fi}\par
	\nopagebreak\vskip 4ex}}
\def\chapter{
\clearpage\global\@topnum\z@
\@afterindenttrue\secdef\@chapter\@schapter}
\def\@chapter[#1]#2{
\stepcounter{chapter}
\if@appendices	
	\protected@edef\@currentlabel
	{\csname p@chapter\endcsname\Alph{chapter}}
\else
	\protected@edef\@currentlabel
	{\csname p@chapter\endcsname\Roman{chapter}}
\fi
\typeout{[#1]}
\if@appendices	
	\ifnum\c@chapter=1
		\ifnum\aux@appendices=1
			\addtocontents{toc}{
			\protect\pagebreak[3]\protect\vspace{3ex}
			\protect\nopagebreak\protect\noindent
			{}\protect\nopagebreak}
		\else
			\addtocontents{toc}{
			\protect\pagebreak[3]\protect\vspace{3ex}
			\protect\nopagebreak\protect\noindent
			{APPENDICES}\protect\nopagebreak}
		\fi
	\fi
\fi
	\@emit{\string\global\string\aux@appendices=\number\c@chapter}	
\ifnum \c@secnumdepth >\m@ne
	\if@appendices	
		\ifnum\aux@appendices=1
			\addcontentsline{toc}{chapter}
			{APPENDIX:
			\ifsc\textsc{#1}\else\uppercase{#1}\fi}
		\else\ifnum\aux@appendices > 1
			\addcontentsline{toc}{chapter}
			{\protect\number@appendix{\number\c@chapter
			}{\Alph{chapter}.}
			\ifsc\textsc{#1}\else\uppercase{#1}\fi}
		\fi\fi
	\else
		\addcontentsline{toc}{chapter}
		{\protect\numberline{\Roman{chapter}.}\ifsc\textsc{#1}
		\else\uppercase{#1}\fi}
	\fi
\fi
\chaptermark{\ifsc\textsc{#1}\else\uppercase{#1}\fi.}
\if@twocolumn
	\@topnewpage[\@makechapterhead{\ifsc\textsc{#2}
	\else\uppercase{#2}\fi}]
\else
	\@makechapterhead{\ifsc\textsc{#2}\else\uppercase{#2}\fi}
	\@afterheading	
\fi}
\def\@schapter#1{
\if@twocolumn
	\@topnewpage[\@makeschapterhead{\ifsc\textsc{#1}\else
	\uppercase{#1}\fi}]
\else
	\@makeschapterhead{\ifsc\textsc{#1}\else\uppercase{#1}\fi}
	\@afterheading
\fi}
\def\chapter{
\clearpage\global\@topnum\z@
\@afterindenttrue \secdef\@chapter\@schapter}
\def\@chapterline#1{\centerline{#1}}
\def\@startchapter#1{\@chapterline{#1}}
%    \end{macrocode}
%\end{macro}

%\subsection{Section Headings formatting}
%\begin{macro}{\@underbar}
%Here we define the code for a package specific underlining environment.
%    \begin{macrocode}
\def\@underbar#1{{$\setbox0=\hbox{#1}\dp0=0pt\underline{\box0}$}}
%    \end{macrocode}
%\end{macro}
%\begin{macro}{\@startsection}
%Here we define the section command with all its associated conditionals.
%    \begin{macrocode}
\def\@startsection#1#2#3#4#5#6{\if@noskipsec \leavevmode \fi
	\par \@tempskipa #4\relax
   	\@afterindenttrue
   	\ifdim \@tempskipa <\z@ \@tempskipa -\@tempskipa \@afterindentfalse\fi
   	\if@nobreak
		\everypar{}
	\else
     		\addpenalty{\@secpenalty}\addvspace{\@tempskipa}
	\fi
	\@ifstar{\@ssect{#2}{#3}{#4}{#5}{#6}}{\@dblarg{
	\@sect{#1}{#2}{#3}{#4}{#5}{#6}}}}
\def\@sect#1#2#3#4#5#6[#7]#8{
     	\if@gsmodern
       		\refstepcounter{#1}
       		\edef\@svsec{\csname the#1\endcsname~~}
     	\else
		\if@numsections
       			\refstepcounter{#1}
       			\edef\@svsec{\csname the#1\endcsname~~}
     		\else
       			\ifnum #2>\c@@shownumdepth
         			\def\@svsec{}
			\else
         			\edef\@svsec{\csname the#1\endcsname\hskip 1em }
			\fi
       			\ifnum #2>\c@secnumdepth\else\refstepcounter{#1}\fi
     		\fi
	\fi
     	\@tempskipa #5\relax
      	\ifdim \@tempskipa>\z@
        		\if@gsmodern
          		\begingroup
            		\@hangfrom{{\bf#6\relax\hskip #3\relax\@svsec{#8}}}
            		\interlinepenalty \@M
          		\endgroup	
        		\else
			\if@numsections
          			\begingroup #6\relax
	    			\@hangfrom{#6\relax\hskip #3\relax}{
				\ifnum #2=1 \bf\else
				\ifnum #2=3 \it\else\fi\fi
				\interlinepenalty \@M
	      			\ifnum #2=1 \@svsec{#8}\else
				\ifnum #2=2 \@underbar{#8}\else#8\fi\fi
            			\par}
            			\interlinepenalty \@M
          			\endgroup	
        			\else	
	  			\begingroup #6\relax
	    			\@hangfrom{\hskip #3\relax\@svsec}{
				\ifnum #2=1 \bf\else
				\ifnum #2=2 \it\else\fi\fi
				\interlinepenalty \@M
	      			\ifnum #2=3 \@underbar{#8} \else  #8 \fi
	    			\par}
	  			\endgroup
        			\fi
		\fi
       		\csname #1mark\endcsname{#7}\addcontentsline{toc}{#1}{
       			\ifnum #2>\c@@shownumdepth
			\else
				\protect\numberline{\csname the#1\endcsname}
			\fi#7}	
	\else
		\def\@svsechd{#6\hskip #3\@svsec #8
		\csname #1mark\endcsname{#7}\addcontentsline{toc}{#1}{
		\ifnum #2>\c@@shownumdepth
		\else
                             \protect\numberline{\csname the#1\endcsname}
		\fi#7}}
	\fi
\@xsect{#5}}
\def\@ssect#1#2#3#4#5#6{\@tempskipa #4\relax
	\ifdim\@tempskipa>\z@
		\begingroup #5\@hangfrom{\hskip #2}{\interlinepenalty \@M
		\ifodd #1
			\ifnum #1 >3 \@underbar{#6} \hfil
			\else
                      		\@underbar{#6}
			\fi
		\else
                   #6
		\fi \par}\endgroup
   	\else
		\def\@svsechd{#5\hskip #2\relax {#6}}
	\fi
	\@xsect{#4}}
%    \end{macrocode}
%\end{macro}

%\subsubsection{Numbering Hierarchies}
%\begin{macro}{\section}
%Here we define the numbering hierarchy for the various numbering modes.
%    \begin{macrocode}
\if@gsmodern	
%    \end{macrocode}
% gsmodern sets hierarchy to be numbered C.sec.sub.sub.s
%    \begin{macrocode}
	\def\section{\@startsection{section}{1}{\z@}{3ex}{2ex}{}}
	\renewcommand{\thesection}{\thechapter.\arabic{section}.}			
	\def\subsection{\@startsection{subsection}{2}{\z@}{3ex}{2ex}{}}		
	\renewcommand{\thesubsection}{\thesection\arabic{subsection}.}		
	\def\subsubsection{\@startsection{subsubsection}{3}{\z@}{3ex}{2ex}{}}	
	\renewcommand{\thesubsubsection}{\thesubsection\arabic{subsubsection}.}
	\renewcommand{\theequation}{Equation\ \thechapter.\arabic{equation}.}
\else												
	\if@numsections
%    \end{macrocode}
%numsections numbers C.sect.
%    \begin{macrocode}
		\def\section{\@startsection{section}{1}{\z@}{3ex}{2ex}{\centering}}
		\renewcommand{\thesection}{\thechapter.\arabic{section}.}			
		\def\subsection{\@startsection{subsection}{2}{\z@}{3ex}{2ex}{\centering}}		
		\renewcommand{\thesubsection}{}		
		\def\subsubsection{\@startsection{subsubsection}{3}{\z@}{2ex}{2ex}{\centering}}	
		\renewcommand{\thesubsubsection}{}
		\renewcommand{\theequation}{Equation\ \thechapter.\arabic{equation}.}
		
	\else			
		\def\section{\@startsection{section}{1}{\z@}{3ex}{2ex}{\centering}}		
		\def\subsection{\@startsection{subsection}{2}{\z@}{3ex}{2ex}{\centering}}
		\def\subsubsection{\@startsection{subsubsection}{3}{\z@}{2ex}{2ex}{}}
	\fi
\fi															
%    \end{macrocode}
%\end{macro}

%\subsection{Bibliography Formatting}
%\changes{v2.5}{2011/03/05}{Added formatbib}
%\changes{v2.5.1}{2010/04/10}{Removed formatbib command and chaned single space call.}
%\begin{macro}{\@bibsection}
%Here we create the bibsection command from a chapter and add an entry to the TOC.
%    \begin{macrocode}
\newcommand{\@bibsection}[1]{
	\clearpage
	\addcontentsline{toc}{chapter}{#1}
	\@startchapter{#1}
	\singlespacing
	\@mybibsingle
	\vspace*{3ex}}
%    \end{macrocode}
%\end{macro}
%\begin{macro}{\thebibliography}
%Here we build the bibliography using the bibsection command.
%    \begin{macrocode}
\def\thebibliography#1{	
	\@bibsection{REFERENCES CITED}\list
	{[\arabic{enumi}]}{\labelwidth\z@ \itemindent-\parindent
	\leftmargin\parindent
	\interlinepenalty\@M	
	\usecounter{enumi}}
	\def\newblock{\hskip .11em plus .33em minus -.07em}
	\sloppy
	\raggedright
	\sfcode`\.=1000\relax}
	\let\endthebibliography=\endlist
%%\newcommand{\formatbib}{
%%	\addcontentsline{toc}{chapter}{REFERENCES CITED}
%%	\renewcommand\bibname{REFERENCES CITED}}
\AtEndOfClass{\renewcommand\bibname{REFERENCES CITED}}
%    \end{macrocode}
%\end{macro}

%\subsection{Float Labels}
%\begin{macro}{\thefigure}
% Formatting for the the floats.
%    \begin{macrocode}
\def\thefigure{\@arabic\c@figure}
\def\fnum@figure{FIGURE \thefigure}
\def\thetable{\@arabic\c@table}
\def\fnum@table{TABLE \thetable}
%    \end{macrocode}
%Table and figure numbering by chapter or continuous
%    \begin{macrocode}
\if@gsmodern
\else
		\def\cl@chapter{\@elt{section}\@elt{footnote}\@elt{equation}}	
\fi
%    \end{macrocode}
% gsmodern sets figures and tables to be numbered C.Fig. and C.Tab.
%    \begin{macrocode}
\if@gsmodern
	\renewcommand{\thefigure}{\thechapter.\arabic{figure}.}
	\renewcommand{\thetable}{\thechapter.\arabic{table}.}
	\renewcommand{\theequation}{Equation\ \thechapter.\arabic{equation}.}
\fi
%    \end{macrocode}
%\end{macro}

%\subsection{Italicized Description Labels}
%\begin{macro}{\descriptionlabel}
%Setting italics labels 
%    \begin{macrocode}
\renewcommand{\descriptionlabel}[1]{
	\hspace{\labelsep}\textit{#1}}
%    \end{macrocode}
%\end{macro}

%\subsection{Appendix Formatting}
%\begin{macro}{\appendix}
%Define the appendix and set up the formatting for the chapter heading.
%    \begin{macrocode}
\newif\if@appendices
\newcount\aux@appendices
\def\number@appendix#1#2{
	\ifnum 1=\aux@appendices
		\ifnum 1=#1
			{\protect\hspace*{0.5in}}
		\else
			\numberline{#2}
		\fi
	\else
		\numberline{#2}
	\fi}
\def\appendix{
	\par
	\setcounter{chapter}{0}
	\def\@chapapp{\uppercase{appendix}}
	\def\thechapter{\Alph{chapter}}
	\@appendicestrue}
%    \end{macrocode}
%\end{macro}

%\subsection{Correction of Spacing Problems}
%\ldots Not really sure what this code does.  It is legacy form an earlier version.
%\begin{macro}{\@savdim}
%    \begin{macrocode}
\ifx\@savdim\undefined
	\let\@savdim\@savsk
	\newskip\@savsk
\fi
%    \end{macrocode}
%\end{macro}
%\begin{macro}{\@bsphack}
%    \begin{macrocode}
\def\@bsphack{\relax
	\ifmmode
	\else
		\@savsk\lastskip
		\@savsf
			\ifhmode
				\spacefactor
			\else
				\lastpenalty\@savdim\prevdepth\removelastskip%
			\fi
	\fi}
%    \end{macrocode}
%\end{macro}
%\begin{macro}{\@esphack}
%    \begin{macrocode}
\def\@esphack{\relax
   \ifmmode
   \else\ifvmode
           \penalty\if@nobreak\@M
                   \else\if@inlabel\@M
                        \else\if@noskipsec\@M
                             \else\@savsf
                             \fi
                        \fi
                   \fi
           \prevdepth\@savdim\vskip\@savsk
        \else
           \spacefactor\@savsf\relax
           \ifdim\@savsk>\z@\ignorespaces
           \fi
        \fi
   \fi}
%    \end{macrocode}
%\end{macro}

%\subsection{Environment Refinements}
%\begin{macro}{\@@begintheorem}
%    \begin{macrocode}
\def\@@begintheorem#1#2#3{\noindent
	\list{}{\rightmargin=\leftmargin
	\itemindent=\leftmargin}
	\item[\underline{#1\ #2}#3]\hskip
	0pt\par\nobreak\ignorespaces}	
%    \end{macrocode}
%\end{macro}
%\begin{macro}{\@begintheorem}
%    \begin{macrocode}
\def\@begintheorem#1#2{
	\@@begintheorem{#1}{#2}{}}
%    \end{macrocode}
%\end{macro}
%\begin{macro}{\@opargbegintheorem}
%    \begin{macrocode}
\def\@opargbegintheorem#1#2#3{
	\@@begintheorem{#1}{#2}{ (#3)}}
%    \end{macrocode}
%\end{macro}
%\begin{macro}{\@qed}
%    \begin{macrocode}
\def\@qed{{\unskip\nobreak
	\hfil\penalty50\hskip1em\null\nobreak\hfil
	\qedsymbol\parfillskip\z@\finalhyphendemerits0\par}}
%    \end{macrocode}
%\end{macro}
%\begin{macro}{\@endtheorem}
%    \begin{macrocode}
\def\@endtheorem{\expandafter
	\ifx\csname qedsymbol\endcsname\relax
	\else\@qed\fi\endlist}
%    \end{macrocode}
%\end{macro}
%\begin{macro}{qedbox}
%    \begin{macrocode}
\def\qedbox{{\mathsurround\z@$\Box$}}
\let\labelitemi=\labelitemii
\let\labelitemii=\labelitemiii
\let\labelitemiii=\labelitemiv
\catcode`\*=11
\let\itemize*=\enumerate
\let\enditemize*=\endenumerate
\@makeother\*
\let\@itemize=\itemize
%    \end{macrocode}
%\end{macro}
%\begin{macro}{\itemize}
%    \begin{macrocode}
\def\itemize{
	\typeout{Warning: Itemize
	deprecated by Grad. School}
	\global\let\itemize=\@itemize
	\itemize}
%    \end{macrocode}
%\end{macro}
%\begin{environment}{quote*}
%    \begin{macrocode}
\newenvironment{quote*}
	{\list{}{\rightmargin\leftmargin}
	\item\relax}
	{\endlist}
%    \end{macrocode}
%\end{environment}
%\begin{environment}{quote}
%    \begin{macrocode}
\renewenvironment{quote}
	{\begin{quote*}\singlespace\it\footnotesize}
	{\end{quote*}}
%    \end{macrocode}
%\end{environment}

%\subsection{Reference Pages}
%\begin{macro}{\pagesref}
%    \begin{macrocode}
\newif\if@pagesspecial
\newcommand{\pagesref}[5]{{
	\@pagesspecialtrue
	\expandafter\ifx\csname r@#1\endcsname\relax
	\@pagesspecialfalse\else\fi
	\expandafter\ifx\csname r@#2\endcsname\relax
	\@pagesspecialfalse\else\fi
	\if@pagesspecial
		\@tempcnta=\pageref{#1}
		\@tempcntb=\pageref{#2}
		\ifnum\@tempcnta=\@tempcntb\else\@pagesspecialfalse\fi
		\if@pagesspecial
			\ifnum\@tempcnta=\c@page
				{#5}
			\else
				\mbox{{#3}\pageref{#1}}
			\fi
		\fi
	\fi
	\if@pagesspecial
	\else
		\mbox{{#4}\pageref{#1}--\pageref{#2}}
	\fi}}
%    \end{macrocode}
%\end{macro}
%\begin{macro}{\pages}
%    \begin{macrocode}
\newcommand{\pages}[2]{\pagesref{#1}{#2}
	{p.\hspace*{0.2em}}{pp.\hspace*{0.2em}}{this page}}
%    \end{macrocode}
%\end{macro}
%</class>
%\Finale
%