summaryrefslogtreecommitdiff
path: root/Master/texmf-dist/source/latex/hpsdiss/hpsdiss.dtx
blob: 40daa19bb9ea7cf08b08f245313f8b74bebb3a71 (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
% \iffalse meta-comment
%
% Copyright 2000 by Hanspeter Schmid
%
% This file may be distributed under the terms of the
% GNU General Public License.  The latest version of this license
% can be found at http://www.gnu.org/copyleft/gpl.html
% 
% \fi
% \iffalse
%
%<*driver>
% \fi
\ProvidesFile{hpsdiss.dtx}[2000/10/26 v1.0 Hanspeter's dissertation style]
% \iffalse
\documentclass{ltxdoc}
\GetFileInfo{hpsdiss.dtx}
\title{hpsdiss: Dissertation class for ETH Z\"urich}
\date{\filedate}
\author{%
  Hanspeter Schmid, hanspi@computer.org}
\begin{document}
\maketitle
\DocInput{\filename}
\end{document}
%</driver>
% \fi
%
% \CheckSum{1517}
%
% \section{Please \ldots}
%
%  rename this class when you make \emph{any} changes.  I absolutely
%  don't want different versions floating around.  I will not give
%  any support to anybody who breaks this rule.
%  Questions?  Use e-mail, my address is |hanspi@computer.org|.
%
% \section{Introduction}
%  
%  I developed this \LaTeX\ class to typeset my own dissertation at the
%  ETH Z\"urich.  I was never satisfied with the conventional layout,
%  which was to fill an A5 page with a font size of 10pt.  Then the lines
%  become too long, in my opinion.
%  
%  The class |hpsdiss.cls| produces shorter lines, has wide outer
%  margins, and prints section numbers, figure and table numbers, and of
%  course margin notes into these wide margins.  In my dissertation,
%  I used the command |\Abstract| (see
%  below) to give every single paragraph its little abstract in the
%  margin, as an aid for the reader who browses through the book and also
%  to communicate what the main idea behind every paragraph is.
%  
%  Other features of this class are:
%  \begin{itemize}
%  \item It can typeset everything with a ragged right margin (that's how I
%    prefer it).
%  \item It redefines the environments |sidewaysfigure| and
%    |sidewaystable| such that they produce sensible captions.
%  \item It provides several commands to let material extend into the
%    margins (figures, tables \ldots).
%  \item It provides a special chapter title page that contains the
%    title, a quote, and a chapter abstract.
%  \item It provides a special environment |bkgnd| for historical and
%    personal information, which uses a different font to differ it
%    optically from the purely scientific part of the dissertation.
%  \item It has an option |specialfonts| that switches to a nice font
%    combination: Times for main text, Gill Sans for headings, and Codex
%    for the background information.  Unfortunately, this option is
%    useless for most users, since it relies on fonts that are not in the
%    public domain.
%  \item It generates the official title page of the dissertation
%    ``Series in Signal and Information Processing,'' and also the back
%    of the book.
%  \end{itemize}
%  
%  Many things in this class are configurable by class options, and it
%  also provides several commands.  The commands and environments that
%  are interesting for the users of this class are marked in the margin
%  and are described there.
%
% \StopEventually{}
%
% \changes{v1.0}{2000/10/26}{Generated from my old hpsdiss.cls}
%
%    \begin{macrocode}
\NeedsTeXFormat{LaTeX2e}[1995/12/01]
\ProvidesClass{hpsdiss}[2000/10/26 PhD thesis class by Hanspeter Schmid]
%    \end{macrocode}
%
% \section{Class Options}
%
%  This class bases on book.cls, and almost all options that it does not
%  understand itself are passed on to |book.cls|.  Only the option
%  |twocolumn| is rejected, because it does not make sense.  Font size
%  options like |11pt| \ldots should not be used, since the font sizes
%  are hard-wired.
%  
%  |hpsdiss| has quite a few options of its own.  |raggedright| lets all
%  text appear with a ragged right margin, using the macro |\RaggedRight|
%  from the package |ragged2e|.  |specialfonts| is described above.
%  
%  Most options are there to determine what the title page looks like.
%  The options belong to three sets: language, gender, and degree.  The
%  default language is English, other languages can be used with the
%  options |deutsch|, |italiano|, and |francais|.  The default gender of
%  the author is male, use the option |female| if you're a woman.  This
%  plays a role in conjunction with the options |deutsch| and |francais|.
%  The default doctoral degree is ``Doctor of Technical Sciences,'' use
%  the option |scnat| for ``Natural Sciences'' and |scmath| for
%  ``Mathematics.''
%
%    \begin{macrocode}
\DeclareOption{twocolumn}{%
  \@latex@warning{hpsdiss.cls does not accept the option `twocolumn'.}%
  \OptionNotUsed}
\DeclareOption{raggedright}{\newcommand{\TextAlignment}{\RaggedRight}}
\DeclareOption{specialfonts}{\newcommand{\SpecialFonts}{\relax}}
\DeclareOption{deutsch}{\newcommand{\DT@deutsch}{\relax}}
\DeclareOption{francais}{\newcommand{\DT@francais}{\relax}}
\DeclareOption{italiano}{\newcommand{\DT@italiano}{\relax}}
\DeclareOption{scnat}{\newcommand{\DT@scnat}{\relax}}
\DeclareOption{scmath}{\newcommand{\DT@scmath}{\relax}}
\DeclareOption{female}{\newcommand{\DT@female}{\relax}}
\DeclareOption*{\PassOptionsToClass{\CurrentOption}{book}}
\PassOptionsToClass{twoside}{book}
\ProcessOptions
\LoadClass{book}
%    \end{macrocode}
%
%  This packages requires several other packages that we now
%  load: |geometry| to set the page
%  layout, |calc| for arithemtics within arguments, |ragged2e| for
%  producing ragged-right text, |rotating| for tables and figures
%  that are turned sideways, and |mparhack| such that the margin
%  paragraphs work (more) properly.  Finally, |graphicx| and 
%  |colordvi| are required for the title page.
%
%    \begin{macrocode}
\RequirePackage{geometry}
\RequirePackage{calc}
\RequirePackage{ragged2e}
\RequirePackage{rotating}
\RequirePackage{mparhack}
\RequirePackage{graphicx}
\RequirePackage{colordvi}
%    \end{macrocode}
%
% \section{Page Layout}
%  
% \begin{macro}{\MarginParWidth}
% \begin{macro}{\MarginParSep}
% \begin{macro}{\TotalWidth}
%
%  The page is laid out as a main text block with a 26-mm outer margin
%  to be printed on A5 paper.  These dimensions can be changed by modifying
%  |\MarginParWidth|, |\MarginParSep|, and |\TotalWidth|, but please don't
%  change this unless you are prepared to find out what else you need to
%  change as well.
%
%    \begin{macrocode}
\newcommand{\MarginParWidth}{26mm}
\newcommand{\MarginParSep}{4mm}
\newcommand{\TotalWidth}{118.5mm}
\geometry{paper=a5paper,dvips=true,twoside=true}
\geometry{width=\TotalWidth,height=192mm,top=7mm,twosideshift=7mm}
\geometry{headheight=4mm,headsep=9mm}
\geometry{nofoot}
\geometry{marginparsep=\MarginParSep,marginparwidth=\MarginParWidth}
%    \end{macrocode}
% \end{macro}
% \end{macro}
% \end{macro}
%  
% \begin{macro}{\CapFont}
% \begin{macro}{\CapNumFont}
% \begin{macro}{\SecFont}
% \begin{macro}{\SecNumFont}
% \begin{macro}{\ChapFont}
% \begin{macro}{\TitleFont}
% \begin{macro}{\HeaderFont}
% \begin{macro}{\BackgroundFont}
%
%  The following macros define, in this order, the fonts used for
%  captions, caption lables, section titles, section numbers, chapter
%  titles, the document title, the page headings, and the |background|
%  environment, and the fonts used on the official title page.
%  There is a conventional version and a version called by
%  the option |specialfonts|.
%  
%    \begin{macrocode}
\ifx\SpecialFonts\undefined
  \newcommand{\CapFont}{\em}
  \newcommand{\CapNumFont}{\sf\bfseries}
  \newcommand{\SecFont}{\sf\bfseries}
  \newcommand{\SecNumFont}{\sf\bfseries}
  \newcommand{\ChapFont}{\sf\bfseries}
  \newcommand{\TitleFont}{\sf\bfseries}
  \newcommand{\HeaderFont}{\sf\small}
  \newcommand{\BackgroundFont}{\em}
  \newcommand{\DTfont@author}{\sf\bfseries}
  \newcommand{\DTfont@normal}{\sf}
  \newcommand{\DTfont@series}{\sf\bfseries}
  \newcommand{\DTfont@title}{\sf\bfseries}
\else
  \newcommand{\CapFont}{\em}
  \newcommand{\CapNumFont}{\usefont{T1}{bgs}{b}{r}\selectfont}
  \newcommand{\SecFont}{\usefont{T1}{bgs}{b}{r}\selectfont}
  \newcommand{\SecNumFont}{\usefont{T1}{bgs}{b}{r}\selectfont}
  \newcommand{\ChapFont}{\usefont{T1}{bgs}{b}{r}\selectfont}
  \newcommand{\TitleFont}{\usefont{T1}{bgs}{b}{r}\selectfont}
  \newcommand{\HeaderFont}{\usefont{T1}{bgs}{r}{r}\selectfont}
  \newcommand{\BackgroundFont}{%
    \usefont{T1}{bc9}{r}{r}\selectfont%
    \renewcommand{\emph}[1]{{##1}}}
  \newcommand{\DTfont@author}{\usefont{T1}{bgs}{b}{r}\selectfont}
  \newcommand{\DTfont@normal}{\usefont{T1}{bgs}{r}{r}\selectfont}
  \newcommand{\DTfont@series}{\usefont{T1}{bgs}{b}{r}\selectfont}
  \newcommand{\DTfont@title}{\usefont{T1}{bgs}{b}{r}\selectfont}
\fi
%    \end{macrocode}
% \end{macro}
% \end{macro}
% \end{macro}
% \end{macro}
% \end{macro}
% \end{macro}
% \end{macro}
% \end{macro}
%
% \begin{macro}{\noparskip}
%
%  This class uses the European book layout, i.e., a layout that has
%  no paragraph identations, but some paragraph skip.  This is sometimes
%  not wanted in tables of contents, so we provide a macro that makes
%  it possible to produce tables of contents with tight vertical spacing
%  by writing something like |{\noparskip \tableofcontents}|.
%
%    \begin{macrocode}
\newcommand{\noparskip}{\parskip=\z@ \@plus\z@ \@minus\z@}
%    \end{macrocode}
%
% \end{macro}
%
%  Now come the details of the paragraph layout.  If |raggedright| is not
%  used, |\TextAlignment| must be set anyway, and |\parindent| must be
%  set to zero.  (The command |\RaggedRight| does that too).  The text
%  alignement command is issued at the begin of the document, and the
%  parskip is also set to a reasonable, non-zero value.  Finally, clubs
%  and widows are punished hard.
%    \begin{macrocode}
\ifx\TextAlignment\undefined
  \newcommand{\TextAlignment}{\relax}
  \parindent=0pt
\else\fi
\AtBeginDocument{\TextAlignment}
\parskip=2ex \@plus 0.5ex \@minus 0.5ex
\widowpenalty 10000
\clubpenalty 10000
\@clubpenalty 10000
%    \end{macrocode}
%  Lists are generally defined with tighter vertical spacing, the
%  following was adapted from |book.cls|.
%    \begin{macrocode}
\def\@listi{\leftmargin\leftmargini
  \parsep \z@ \@plus2\p@ \@minus\z@
  \topsep \z@ \@plus2\p@ \@minus\z@
  \itemsep\z@ \@plus2\p@ \@minus\z@}
\let\@listI\@listi
\@listi
\def\@listii{\leftmargin\leftmarginii
  \labelwidth\leftmarginii
  \advance\labelwidth-\labelsep
  \topsep \z@ \@plus2\p@  \@minus\z@
  \parsep \z@ \@plus\p@ \@minus\z@
  \itemsep \parsep}
\def\@listiii{\leftmargin\leftmarginiii
  \labelwidth\leftmarginiii
  \advance\labelwidth-\labelsep
  \topsep \z@ \@plus\p@ \@minus\z@
  \parsep \z@ \@minus\z@
  \partopsep \z@ \plus\z@ \@minus\z@
  \itemsep \topsep}
\def\@listiv {\leftmargin\leftmarginiv
  \labelwidth\leftmarginiv
  \advance\labelwidth-\labelsep}
\def\@listv  {\leftmargin\leftmarginv
  \labelwidth\leftmarginv
  \advance\labelwidth-\labelsep}
\def\@listvi {\leftmargin\leftmarginvi
  \labelwidth\leftmarginvi
  \advance\labelwidth-\labelsep}
%    \end{macrocode}
%  I use font size 10pt, and noything else, thus it is hard-wired.
%  The following is adapted from |bk10.clo|.
%    \begin{macrocode}
\renewcommand\normalsize{%
   \@setfontsize\normalsize\@xpt\@xiipt
   \abovedisplayskip 10\p@ \@plus2\p@ \@minus\z@
   \abovedisplayshortskip \z@ \@plus3\p@ \@minus\z@
   \belowdisplayshortskip 6\p@ \@plus3\p@ \@minus3\p@
   \belowdisplayskip \abovedisplayskip
   \let\@listi\@listI}
\normalsize
\renewcommand\small{%
   \@setfontsize\small\@ixpt{11}%
   \abovedisplayskip 8.5\p@ \@plus3\p@ \@minus\z@
   \abovedisplayshortskip \z@ \@plus2\p@
   \belowdisplayshortskip 4\p@ \@plus2\p@ \@minus2\p@
   \def\@listi{\leftmargin\leftmargini
               \topsep \z@ \@plus2\p@ \@minus\z@
               \parsep \z@ \@plus\p@ \@minus\z@
               \itemsep \parsep}%
   \belowdisplayskip \abovedisplayskip
   }
\renewcommand\footnotesize{%
   \@setfontsize\footnotesize\@viiipt{9.5}%
   \abovedisplayskip 6\p@ \@plus2\p@ \@minus\z@
   \abovedisplayshortskip \z@ \@plus\p@
   \belowdisplayshortskip 3\p@ \@plus\p@ \@minus2\p@
   \def\@listi{\leftmargin\leftmargini
               \topsep \z@ \@plus\p@ \@minus\z@
               \parsep \z@ \@plus\p@ \@minus\z@
               \itemsep \parsep}%
   \belowdisplayskip \abovedisplayskip
}
%    \end{macrocode}
%
% \section{Page Headings}
%
%  The running feet are empty in this page style.
%    \begin{macrocode}
\def\ps@headings{%
  \let\@oddfoot\@empty\let\@evenfoot\@empty
%    \end{macrocode}
%  On left pages: skip to the left of the margin, typeset the page
%  number, and then typeset the heading text above the normal text.
%    \begin{macrocode}
  \def\@evenhead{%
    \hskip-\marginparsep\hskip-\marginparwidth%
    \makebox[\marginparsep+\marginparwidth][l]{\HeaderFont\thepage}%
    {\makebox[\textwidth][l]{\HeaderFont\vphantom{g}\leftmark}}}
%    \end{macrocode}
%  Right pages: Typeset the heading text above the normal text,
%  and then typeset the page number at the right edge of the
%  margin.  The trailing |\hskip|s prevent overfull hboxes.
%    \begin{macrocode}
  \def\@oddhead{% 
    {\makebox[\textwidth][r]{\HeaderFont\vphantom{g}\rightmark}}%
    \makebox[\marginparsep+\marginparwidth][r]{\HeaderFont\thepage}%
    \hskip-\marginparsep\hskip-\marginparwidth}
%    \end{macrocode}
%  When using this page style, the content of the running heading is
%  determined by the chapter and section titles.
%    \begin{macrocode}
  \let\@mkboth\markboth
%    \end{macrocode}
%  |book.cls| uses the |\chaptermark| and |\sectionmark| macros to fill 
%  the running heads.  In contrast to the standard |book.cls|,
%  I don't want headings to appear in capital letters, so I had
%  to remove all the |\makeuppercase| commands.
%    \begin{macrocode}
  \def\chaptermark##1{%
    \markboth {%
      \ifnum \c@secnumdepth >\m@ne %
        \if@mainmatter \@chapapp\ \thechapter. \ \fi %
      \fi %
      ##1}{}}%
  \def\sectionmark##1{%
    \markright {%
      \ifnum \c@secnumdepth >\z@ %
      \thesection. \ %
      \fi %
      ##1}}}
%    \end{macrocode}
%  And now execute |\ps@headings|.
%    \begin{macrocode}
\pagestyle{headings}
%    \end{macrocode}
%  Unfortunatley, the original |book.cls| makes all headings in
%  Tables of Contents, Lists of Figures, Lists of Tables, and
%  in the Bibliography section appear in capital letters too.
%  I don't want this, and remove all the |\makeuppercase| commands
%  from the definitions made in |book.cls|.
%    \begin{macrocode}
\renewcommand\tableofcontents{%
  \chapter*{\contentsname\@mkboth{\contentsname}{\contentsname}}%
  \@starttoc{toc}}
\renewcommand\listoffigures{% 
  \chapter*{\listfigurename\@mkboth{\listfigurename}{\listfigurename}}%
  \@starttoc{lof}}
\renewcommand\listoftables{%
  \chapter*{\listtablename\@mkboth{\listtablename}{\listtablename}}%
  \@starttoc{lot}}
%    \end{macrocode}
%
% \section{Bibliography}
%
%  In addition to the headings problem, I want the bibliography
%  to show the reference fields in the margin.
%  I use a global variable |\ThePage| that will contain the
%  page number of the page on which a particular bibliography
%  entry is printed.  Unfortunatley, this can only be determined
%  when the box containing the entry is shipped out.  So I have
%  to use the |.aux| file to store and retrieve this information.
%  First, define a counter that is used to generate the
%  internally used labels.
%    \begin{macrocode}
\newcounter{autolabels}%
\renewenvironment{thebibliography}[1]
{\chapter*{\bibname\@mkboth{\bibname}{\bibname}}%
  \small %
  \addcontentsline{toc}{chapter}{\bibname}
%    \end{macrocode}
%  Now re-define the command that makes the bibliography labels.
%  I'll comment that in detail, the same trick is used below with
%  fewer comments for all sorts of other things.
%    \begin{macrocode}
  \renewcommand{\@mklab}[1]{%
%    \end{macrocode}
%  Increase the counter and automatically generate a label.
%    \begin{macrocode}
    \refstepcounter{autolabels}%
    \label{autolabel:\theautolabels}%
%    \end{macrocode}
%  In the first run of \LaTeX, the label does not exists yet
%  (it has to be read back from an |.aux| file).  To prevent
%  an error, assume that the page on which
%  this bibliography entry starts is page number 1.
%    \begin{macrocode}
    \expandafter\ifx\csname r@autolabel:\theautolabels \endcsname\relax %
      \edef\ThePage{1}%
    \else %
      \edef\ThePage{\pageref{autolabel:\theautolabels}}%
    \fi %
%    \end{macrocode}
%  Now typeset the lable into \emph{both} margins and align it to
%  the right if it is in the right margin.  Display it only on the
%  side where it is needed.  Doinf this is very important, if the
%  boxes are not precisely identical, \LaTeX might typeset it at
%  the bottom of page~130 in the first run, then flip the label to
%  the other side in the second run, but find out that the whole
%  thing should better be placed at the top of page~131.  Then it
%  would go back again in the run after, and oscillate for ever.
%  I really don't whant this!
%    \begin{macrocode}
    \makebox[0pt][l]{\hbox{}\hskip\textwidth \hskip\marginparsep %
      \ifodd\ThePage {##1}\else \phantom{##1}\fi}%
    \makebox[0pt][l]{\hbox{}\hskip-\marginparsep \makebox[0pt][r]{%
        \ifodd\ThePage \phantom{##1}\else{##1}\fi }}%
    \hfil\hbox{}}
  \list{\@biblabel{\@arabic\c@enumiv}}%
%    \end{macrocode}
%  Since the labels are now in the margin, I have to remove the
%  space that is normally assigned to the labels.
%    \begin{macrocode}
  {\labelwidth=0pt%
    \leftmargin=0pt%
    \labelsep=0pt%
    \itemsep=1ex%
    \@openbib@code
    \usecounter{enumiv}%
    \let\p@enumiv\@empty
    \renewcommand\theenumiv{\@arabic\c@enumiv}}%
  \sloppy
  \clubpenalty4000
  \@clubpenalty \clubpenalty
  \widowpenalty4000%
  \sfcode`\.\@m}
{%
  \normalsize %
  \def\@noitemerr
  {\@latex@warning{Empty `thebibliography' environment}}%
  \endlist}
%    \end{macrocode}
%
% \section{Captions}
%
%  Rotated figures need a conventional caption style, so I generate
%  a flag saying whether we are inside a rotated float
%  (adapted from |rotating.sty|).
%    \begin{macrocode}
\renewcommand\sidewaysfigure{\let\inside@rotated@float=\relax %
  \@rotfloat{figure}}
\renewcommand\sidewaystable{\let\inside@rotated@float=\relax %
  \@rotfloat{table}}
%    \end{macrocode}
%  The command |\caption| generates the automatic label.
%    \begin{macrocode}
\def\caption{%
  \ifx\@captype\@undefined
    \@latex@error{\noexpand\caption outside float}\@ehd
    \expandafter\@gobble
  \else
    \stepcounter{autolabels}%
    \refstepcounter\@captype
    \label{autolabel:\theautolabels}%
    \expandafter\@firstofone
  \fi
  {\@dblarg{\@caption\@captype}}%
  }
%    \end{macrocode}
%  The definition of the following macro is |\long| in order to allow more
%  than one paragraph in the argument of |\caption|.
%    \begin{macrocode}
\long\def\@makecaption#1#2{%
  \vskip\abovecaptionskip
  \expandafter\ifx\csname r@autolabel:\theautolabels \endcsname\relax %
    \edef\ThePage{1}%
  \else %
    \edef\ThePage{\pageref{autolabel:\theautolabels}}%
  \fi
%    \end{macrocode}
%  Captions of normal floats:
%  Place a zero-width box that puts its contents
%  right-aligned.  The contents are a zero-width box that
%  places a left-aligned label, and two horizontal spaces.
%  Then typeset the caption text |\raggedright| (without
%  hyphenation) and |\raggedleft| into full-width parboxes.
%  Finally, append a zero-width
%  box.  Inside, move to the right edge of the margin, and
%  put another zero-width box that places a right-aligned
%  caption label.  (Note how the trick against oscillations
%  is used again.)
%    \begin{macrocode}
  \ifx\inside@rotated@float\undefined
      \makebox[0pt][r]{\makebox[0pt][l]{\CapNumFont %
          \ifodd\ThePage \phantom{#1}\else {#1}\fi}%
        \hskip\marginparsep \hskip\marginparwidth \hbox{}}%
      \makebox[0pt][l]{%
        \ifodd\ThePage %
        \parbox[t]{\TotalWidth-\MarginParWidth-\MarginParSep}%
        {\raggedleft \CapFont #2}%
        \else %
        \phantom{\parbox[t]{\TotalWidth-\MarginParWidth-\MarginParSep}%
          {\raggedleft \CapFont #2}}%
        \fi}%
      \makebox[0pt][l]{%
        \ifodd\ThePage %
        \phantom{\parbox[t]{\TotalWidth-\MarginParWidth-\MarginParSep}%
          {\raggedright \CapFont #2}}%
        \else %
        \parbox[t]{\TotalWidth-\MarginParWidth-\MarginParSep}%
        {\raggedright \CapFont #2}%
        \fi}%
      \hfill %
      \makebox[0pt][l]{\hbox{}\hskip\marginparsep \hskip\marginparwidth %
        \makebox[0pt][r]{\CapNumFont %
          \ifodd\ThePage {#1}\else \phantom{#1}\fi}}%
    \vskip\belowcaptionskip %
%    \end{macrocode}
%  Captions of rotated floats are treated as in |books.cls|.
%    \begin{macrocode}
  \else
    \sbox\@tempboxa{{\CapNumFont #1:} \CapFont #2}%
    \ifdim \wd\@tempboxa >\hsize
      {\CapNumFont #1:} \CapFont #2\par
    \else
      \global \@minipagefalse
      \hb@xt@\hsize{\hfil\box\@tempboxa\hfil}%
    \fi %
  \fi}
%    \end{macrocode}
%  Finally, set the vertical spacing of captions.
%    \begin{macrocode}
\setlength\abovecaptionskip{6\p@}
\setlength\belowcaptionskip{10\p@}
%    \end{macrocode}
%
% \section{Parts, Chapters, Sections, \ldots}
%
%  No headings on the page where a part begins.
%    \begin{macrocode}
\renewcommand\part{%
  \if@openright \cleardoublepage \else \clearpage \fi
  \thispagestyle{empty}%
%    \end{macrocode}
%  Never ever swap to twocolumn-mode afterwards!
%    \begin{macrocode}
  \@tempswafalse
%    \end{macrocode}
%  I need an empty box to prevent the fil glue from disappearing.
%    \begin{macrocode}
  \null\vfil
%    \end{macrocode}
%  Use |\secdef| to indicate which commands to use to make
%  the actual heading.
%    \begin{macrocode}
  \secdef\@part\@spart}
\def\@part[#1]#2{%
    \ifnum \c@secnumdepth >-2\relax
      \refstepcounter{part}%
      \addcontentsline{toc}{part}{\thepart\hspace{1em}#1}%
    \else
      \addcontentsline{toc}{part}{#1}%
    \fi
%    \end{macrocode}
%  Clear the mark registers and center the title on the page.
%  Also prevent breaking between
%  lines, and reset the font.  Finally, use a box that spans the full
%  width of the page (defined below).
%    \begin{macrocode}
    \markboth{}{}%
    \fullwidthbox{%
      \centering
      \interlinepenalty \@M
      \normalfont
      \ifnum \c@secnumdepth >-2\relax
        \huge\ChapFont \partname~\thepart
        \par
        \vskip 20\p@
      \fi
      \Huge \ChapFont #2\par%
    }
    \@endpart}
%    \end{macrocode}
%  The following macro does the actual formatting of the title of
%  the part when the star form of the user command was used.
%  In this case never print a number. Otherwise the formatting
%  is the same.
%    \begin{macrocode}
\def\@spart#1{%
    \fullwidthbox{
      \centering
      \interlinepenalty \@M
      \normalfont
      \Huge \ChapFont #1\par%
    }
    \@endpart}
%    \end{macrocode}
%
%  The chapter start page gets a special layout:
%    \begin{macrocode}
\renewcommand\chapter{%
  \if@openright \cleardoublepage \else \clearpage \fi
  \thispagestyle{empty}%
  \@tempswafalse
%    \end{macrocode}
%  Prevent floats from appearing at the top of this page
%  because it looks weird to see a floating object above a chapter
%  title.
%    \begin{macrocode}
  \global\@topnum\z@
%    \end{macrocode}
%  Supress the indentation of the first paragraph by
%  setting the switch |\@afterindent| to false.  Use |\secdef|
%  to specify the macros to use for actually setting the chapter
%  title.
%    \begin{macrocode}
  \@afterindentfalse
  \secdef\@chapter\@schapter}
%    \end{macrocode}
%  The chapter always starts on an odd page, so playing with
%  spaces is not difficult here.  First normal chapters,
%  then the ones where the star form was used.
%  Note that the |\vskip| after the numbered version of the
%  chapter head is only |12\p@|, since a |\chapquote| is 
%  expected afterwards that gives the remaining |40\p@|. 
%    \begin{macrocode}
\def\@makechapterhead#1{%
  {\parindent \z@ \raggedleft \normalfont
    \ifnum \c@secnumdepth >\m@ne
      \if@mainmatter
        \huge \ChapFont \@chapapp\space \thechapter
        \par\nobreak
        \vskip 12\p@
      \fi
    \fi
    \interlinepenalty\@M
    \Huge \ChapFont #1\par\nobreak
    \vskip 12\p@
  }}
\def\@makeschapterhead#1{%
  {\parindent \z@ \raggedleft
    \normalfont
    \interlinepenalty\@M
    \Huge \ChapFont  #1\par\nobreak
    \vskip 40\p@
  }}
%    \end{macrocode}
%
% \begin{macro}{\chapquote}
% \begin{macro}{\chapnoquote}
%  And here comes the macro for quotations, use as
%  |\chapquote{Quotation}{Author}|.  If you don't want
%  quotes after chapter titles, use |\chapnoquote| 
%  to correct the vertical spacing.
%    \begin{macrocode}
\newcommand{\chapquote}[2]{%
  {\ChapFont
    \RaggedLeft #1
    
    (#2)
    \vskip 40\p@
    }}
\newcommand{\chapnoquote}{\null\vskip 28\p@}
%    \end{macrocode}
% \end{macro}
% \end{macro}
%
% \begin{environment}{chapabstract}
%  In my dissertation, I used raggedright, but this looks ugly on
%  the chapter title page.  So I wrote the following environment
%  that switches |\RaggedRight| off and used it for writing
%  the abstracts of the chapters.
%    \begin{macrocode}
\newenvironment{chapabstract}{%
  \setlength{\leftskip}   {\z@skip}%
  \setlength{\@rightskip} {\z@skip}%
  \setlength{\rightskip}  {\@rightskip}%
  \parfillskip=0pt plus 1fil %
  }{\par}
%    \end{macrocode}
% \end{environment}
%
%  Use a different font for sections:
%  The following  gives a normal heading with white space above
%  and below the section heading, the title set in |\SecFont\Large|,
%  and no indentation on the first paragraph.
%    \begin{macrocode}
\renewcommand{\section}{%
  \@startsection {section}{1}{\z@}%
  {-3.5ex \@plus -1ex \@minus -.2ex}%
  {2.3ex \@plus.2ex}%
  {\SecFont\Large}}
\renewcommand{\subsection}{%
  \@startsection{subsection}{2}{\z@}%
  {-3.25ex\@plus -1ex \@minus -.2ex}%
  {1.5ex \@plus .2ex}%
  {\SecFont\large}}
\renewcommand{\subsubsection}{%
  \@startsection{subsubsection}{3}{\z@}%
  {-3.25ex\@plus -1ex \@minus -.2ex}%
  {1.5ex \@plus .2ex}%
  {\SecFont\normalsize}}
%    \end{macrocode}
%  Paragraphs are never numbered; they just make their
%  Argument bold.
%    \begin{macrocode}
\renewcommand{\paragraph}[1]{\noindent\textbf{#1}}
%    \end{macrocode}
%  No trailing period in the section number
%    \begin{macrocode}
\def\@seccntformat#1{\csname the#1\endcsname}
\def\@sect#1#2#3#4#5#6[#7]#8{%
  \ifnum #2>\c@secnumdepth
    \let\@svsec\@empty
%    \end{macrocode}
%  If the present section is not numbered, assume that
%  it is on an odd page.  This does not matter since
%  no section number will be typeset (see below).
%    \begin{macrocode}
    \edef\ThePage{1}
  \else
    \stepcounter{autolabels}
    \refstepcounter{#1}%
    \expandafter\ifx\csname r@autolabel:\theautolabels \endcsname\relax %
      \edef\ThePage{1}%
    \else %
      \edef\ThePage{\pageref{autolabel:\theautolabels}}%
    \fi
%    \end{macrocode}
%  Since |\@seccntformat| might end with an improper |\hskip| which
%  is scanning forward for plus or minus, we end the definition
%  of |\@svsec| with |\relax| as a precaution.
%    \begin{macrocode}
    \protected@edef\@svsec{\@seccntformat{#1}\relax}%
  \fi
  \@tempskipa #5\relax
  \ifdim \@tempskipa>\z@
    \begingroup
%    \end{macrocode}
%  To prevent oscillation as well as possible, always typeset
%  the section number on both sides of the section heading, but
%  one will always be invisible.
%    \begin{macrocode}
      {%
%    \end{macrocode}
%  Label in the right margin: typeset a zero-width box whose
%  argument is left-aligned.  The argument contains spaces to move
%  the inner zero-width box to the right edge of the margin.  
%    \begin{macrocode}
        \makebox[0pt][l]{%
          \hbox{}\hskip\textwidth \hskip\marginparsep %
          \hskip\marginparwidth \makebox[0pt][r]{#6\SecNumFont %
            \ifodd \ThePage \@svsec \else \phantom{\@svsec}\fi %
            }}%
%    \end{macrocode}
%  Label in the left margin: analogous.
%    \begin{macrocode}
        \makebox[0pt][r]{%
          \makebox[0pt][l]{#6\SecNumFont %
            \ifodd \ThePage \phantom{\@svsec}\else \@svsec \fi }%
          \hskip\marginparwidth \hskip\marginparsep}%
%    \end{macrocode}
%  And now comes the section title itself.
%    \begin{macrocode}
        #6{\interlinepenalty \@M #8\@@par}}%
    \endgroup
    \csname #1mark\endcsname{#7}%
    \addcontentsline{toc}{#1}{%
      \ifnum #2>\c@secnumdepth \else
        \protect\numberline{\csname the#1\endcsname}%
      \fi
      #7}%
  \else
%    \end{macrocode}
%  Unnumbered sections
%    \begin{macrocode}
    \def\@svsechd{%
      #6{\hskip #3\relax
      \@svsec #8}%
      \csname #1mark\endcsname{#7}%
      \addcontentsline{toc}{#1}{%
        \ifnum #2>\c@secnumdepth \else
          \protect\numberline{\csname the#1\endcsname}%
        \fi
        #7}}%
  \fi
  \@xsect{#5}%
  \ifnum #2>\c@secnumdepth %
%    \end{macrocode}
%  Don't generate an automatic label for unnumbered sections.
%    \begin{macrocode}
  \else %
  \label{autolabel:\theautolabels}%
  \fi %
  }
%    \end{macrocode}
%
% \section{Boxes extending into the margin}
%
% \begin{macro}{\fullwidthbox}
%  Macro that can typeset things into the margin and uses
%  the full available width of the document
%    \begin{macrocode}
\long\def\fullwidthbox#1{%
  \stepcounter{autolabels}%
%    \end{macrocode}
%  Save the label of this box for later, in case
%  the counter |autolabels| is changed within the argument.
%    \begin{macrocode}
  \def\@fullwidthboxlabel{autolabel:\theautolabels}%
  \expandafter\ifx\csname r@autolabel:\theautolabels \endcsname\relax %
    \edef\ThePage{1}%
  \else %
    \edef\ThePage{\pageref{autolabel:\theautolabels}}%
  \fi %
  \ifodd\ThePage %
%    \end{macrocode}
%  No shift on odd pages.
%    \begin{macrocode}
  \else %
%    \end{macrocode}
%  Shift to the left edge of the margin on even pages.
%    \begin{macrocode}
    \hbox{}\hskip-\marginparwidth \hskip-\marginparsep %
  \fi %
  \makebox[0pt][l]{%
    \begin{minipage}{\linewidth+\marginparwidth+\marginparsep}%
      #1%
    \end{minipage}%
    }%
%    \end{macrocode}
%  The following line is adapted from the definition of
%  |\refstepcounter| in |latex.ltx| (actually |ltxref.dtx|).  It
%  forces |\label| on the line after to write down the correct
%  page number.
%    \begin{macrocode}
      \protected@edef\@currentlabel{\relax}%
      \label{\@fullwidthboxlabel}%
  }
%    \end{macrocode}
% \end{macro}
%
% \begin{macro}{\fullwidthinfloat}
%  The same again for use in Figures and other floats that already
%  have a label.  Arguments: |#1| is the label, |#2| contains whatever
%  goes into the box.
%    \begin{macrocode}
\long\def\fullwidthinfloat#1#2{%
  \expandafter\ifx\csname r@#1\endcsname\relax %
    \edef\ThePage{1}%
  \else %
    \edef\ThePage{\pageref{#1}}%
  \fi %
  \ifodd\ThePage %
  \else %
    \hbox{}\hskip-\marginparwidth \hskip-\marginparsep %
  \fi %
  \makebox[0pt][l]{%
    \parbox{\linewidth+\marginparwidth+\marginparsep}{%
      \ifodd\ThePage %
      \else %
      \null \hfill %
      \fi %
      \ifodd\ThePage \raggedright \else \raggedleft \fi %
      #2%
      }%
    }%
  }%
%    \end{macrocode}
% \end{macro}
%
% \begin{macro}{\Abstract}
% \begin{macro}{\MarginPar}
% \begin{macro}{\MarginParVar}
%  Margin Paragraphs whose contents are aligned differently on even and odd
%  pages.  |\Abstract| makes a margin paragraph in |\foortnotesize|
%  that is left-aligned on even pages and right-aligned on odd pages.
%  |\MarginPar| does the same without changing the font size.
%  |\MarginParVar| is right-aligned on even pages and left-aligned
%  on odd pages.
%    \begin{macrocode}
\newcommand{\Abstract}[1]{%
  {\footnotesize %
  \marginpar[\footnotesize\raggedright\hspace{0pt}{#1}]%
  {\footnotesize\raggedleft\hspace{0pt}{#1}}}}
\newcommand{\MarginPar}[1]{%
  \marginpar[\RaggedRight\hspace{0pt}{#1}]{\RaggedLeft\hspace{0pt}{#1}}}
\newcommand{\MarginParVar}[1]{%
  \marginpar[\RaggedLeft\hspace{0pt}{#1}]{\RaggedRight\hspace{0pt}{#1}}}
%    \end{macrocode}
% \end{macro}
% \end{macro}
% \end{macro}
%
% \section{Background environment}
%
% \begin{environment}{background}
%  Described in the introduction.  It just changes the font.
%    \begin{macrocode}
\newenvironment{bkgnd}{\begingroup \BackgroundFont}{\endgroup}
%    \end{macrocode}
% \end{environment}
%
% \clearpage
% \section{Title Page \ldots}
%
% \begin{macro}{\DTauthor}
% \begin{macro}{\DTborn}
% \begin{macro}{\DTcitizen}
% \begin{macro}{\DTdate}
% \begin{macro}{\DTdegree}
% \begin{macro}{\DTexaminers}
% \begin{macro}{\DTnumber}
% \begin{macro}{\DTtitle}
% \begin{macro}{\DTvolume}
% \begin{macro}{\DTissn}
% \begin{macro}{\DTisbn}
% \begin{macro}{\DTprice}
% \begin{macro}{\DTimage}
%  These thirteen macros contain the information to be typeset on the
%  title page.  |\DTimage| may contain the file name of image,
%  which must be in EPS and have aspect ratio 32x202\@. The image
%  should be comparatively dark, since the writing on top of it is white.
%  If no image file is given, a black rectangle is used.
%    \begin{macrocode}
\newcommand{\DTauthor}{Hanspeter Schmid}
\newcommand{\DTborn}{February 8, 1969}
\newcommand{\DTcitizen}{H\"arkingen SO}
\newcommand{\DTdate}{November 2000}
\newcommand{\DTdegree}{dipl.\ El.-Ing.\ ETH}
\newcommand{\DTexaminers}{Prof.\ Dr.\ George S. Moschytz, examiner\\
  Prof.\ Dr.\ Qiuting Huang, co-examiner}
\newcommand{\DTnumber}{13878}
\newcommand{\DTtitle}{Single-Amplifier\\ Biquadratic\\ MOSFET--C Filters}
\newcommand{\DTvolume}{1}
\newcommand{\DTissn}{1616-671X}
\newcommand{\DTisbn}{3-89649-616-6}
\newcommand{\DTprice}{98,--}
%\newcommand{\DTimage}{test1g.eps}
%    \end{macrocode}
% \end{macro}
% \end{macro}
% \end{macro}
% \end{macro}
% \end{macro}
% \end{macro}
% \end{macro}
% \end{macro}
% \end{macro}
% \end{macro}
% \end{macro}
% \end{macro}
% \end{macro}
%
%  The following code defines the text for the title page
%  according to the options passed to |hpsdiss.cls|.
%    \begin{macrocode}
\newcommand{\DT@accepted}{accepted on the recommendation of}
\newcommand{\DT@born}{born on}
\newcommand{\DT@citizen}{citizen of}
\newcommand{\DT@dissertation}{A dissertation submitted to the\\
  Swiss Federal Institute of Technology, Z\"urich\\
  for the degree of}
\newcommand{\DT@dissertationB}{}
\newcommand{\DT@doctor}{Doctor of Technical Sciences}
\ifx\DT@scnat\undefined\else
  \renewcommand{\DT@doctor}{Doctor of Natural Sciences}
\fi
\ifx\DT@scmath\undefined\else
  \renewcommand{\DT@doctor}{Doctor of Mathematics}
\fi
\newcommand{\DT@number}{Diss.~ETH No~}
\newcommand{\DT@presented}{presented by}
\ifx\DT@deutsch\undefined\else
  \renewcommand{\DT@accepted}{Angenommen auf Antrag von}
  \renewcommand{\DT@born}{geboren am}
  \renewcommand{\DT@citizen}{von}
  \renewcommand{\DT@dissertation}{Abhandlung\\
    zur Erlangung des Titels}
  \renewcommand{\DT@dissertationB}{\\der Eidgen\"ossischen 
    Technischen Hochschule Z\"urich}
  \ifx\DT@female\undefdined
    \newcommand{\DT@@doctor}{Doktor}
  \else
    \newcommand{\DT@@doctor}{Doktorin}
  \fi
  \renewcommand{\DT@doctor}{\DT@@doctor\ der technischen 
    Wissenschaften}
  \ifx\DT@scnat\undefined\else
    \renewcommand{\DT@doctor}{\DT@@doctor\ der Naturwissenschaften}
  \fi
  \ifx\DT@scmath\undefined\else
    \renewcommand{\DT@doctor}{\DT@@doctor\ der Mathematik}
  \fi
  \renewcommand{\DT@number}{Diss.~ETH Nr.~}
  \renewcommand{\DT@presented}{vorgelegt von}
\fi
\ifx\DT@italiano\undefined\else
  \renewcommand{\DT@accepted}{accettata su proposta di}
  \renewcommand{\DT@born}{nato il}
  \renewcommand{\DT@citizen}{attinente di}
  \renewcommand{\DT@dissertation}{Dissertatzione presentata al\\
    Politecnico Federale di Zurigo\\
    per il conseguimento del titolo di}
  \renewcommand{\DT@doctor}{Dottore in scienze techniche}
  \ifx\DT@scnat\undefined\else
    \renewcommand{\DT@doctor}{Dottore in scienze naturali}
  \fi
  \ifx\DT@scmath\undefined\else
    \renewcommand{\DT@doctor}{Dottore in matematica}
  \fi
  \renewcommand{\DT@number}{Diss.~ETH no~}
  \renewcommand{\DT@presented}{da}
\fi
\ifx\DT@francais\undefined\else
  \renewcommand{\DT@accepted}{accept\'ee sur proposition du}
  \ifx\female\undefined
    \renewcommand{\DT@born}{n\'e le}
  \else
    \renewcommand{\DT@born}{n\'ee le}
  \fi
  \renewcommand{\DT@citizen}{originaire de}
  \renewcommand{\DT@dissertation}{pr\'esent\'ee \`a\\
    L'\'Ecole Polytechnique F\'ed\'erale Z\"urich\\
    pour l'obtention du titre de}
  \renewcommand{\DT@doctor}{Docteur d\'es sciences techniques}
  \ifx\DT@scnat\undefined\else
    \renewcommand{\DT@doctor}{Docteur d\'es sciences naturelles}
  \fi
  \ifx\DT@scmath\undefined\else
    \renewcommand{\DT@doctor}{Docteur d\'es sciences math\'ematiques}
  \fi
  \renewcommand{\DT@number}{Th\`ese~EPFZ No~}
  \renewcommand{\DT@presented}{par}
\fi
%    \end{macrocode}
%
% \begin{macro}{\disstitle}
% \begin{macro}{\dissinnertitle}
% \begin{macro}{\dissback}
%  These macros print the title page, the internal title page
%  (without the image or black rectangle, but with the name
%  of the publisher in front of the date),
%  and the back side of the book.
%
%  The correct numbers in the command |\begin{picture}(0,0)(220,110)|
%  depend on the page layout.
%    \begin{macrocode}
\newcommand{\dissinnertitle}{%
  \newcommand{\DT@innertitle}{\relax}%
  \disstitle}
\newcommand{\disstitle}{%
  \thispagestyle{empty}%
  {\parskip=0pt%
    \parindent=0pt%
    \unitlength=0.1mm%
    \null\vfill%
    \begin{picture}(0,0)(220,110)%
      \ifx\DT@innertitle\undefined
      \put(40,40){%
        \makebox(0,0)[bl]{%
          \ifx\DTimage\undefined %
          \rule{32mm}{202mm}%
          \else %
          \includegraphics[width=32mm,height=202mm]{\DTimage}%
          \fi %
          }}
      \fi
      \put(60,2020){%
        \makebox(0,0)[tl]{%
          \hbox to 28mm{%
            \vbox to 194mm{%
              \begin{minipage}[t]{28mm}
                \DTfont@series \Large \raggedleft
                \White{Series in}%
                \makebox[0cm][l]{\null\hspace*{6mm}\hbox{%
                    \normalsize \DTfont@normal %
                    \DT@number \DTnumber}}\\
                \White{Signal and}\\
                \White{Information}\\
                \White{Processing}\\[1.5ex]
                \White{Volume \DTvolume}
              \end{minipage}

              \vfill

              \begin{minipage}[b]{28mm}
                \DTfont@series \Large \raggedleft
                \White{Hartung}\\
                \White{Gorre}\\
                \White{Konstanz}%
                \makebox[0cm][l]{\null\hspace*{6mm}\hbox{%
                    \normalsize \DTfont@normal %
                    \ifx\DT@innertitle\undefined\else %
                      Hartung-Gorre Verlag, Konstanz, %
                    \fi %
                    \DTdate}}
              \end{minipage}}}}}
      \put(400,2020){%
        \makebox(0,0)[tl]{%
          \hbox to 97mm{%
            \vbox to 194mm{%
              \DTfont@normal \phantom{\DT@number \DTnumber}
              
              \vfill
              
              \Huge {\DTfont@title \DTtitle}
              
              \normalsize
              
              \vfill
              
              \DT@dissertation\\
              \DT@doctor \DT@dissertationB
              
              \vfill
              
              \DT@presented
              
              \medskip
              
              \LARGE {\DTfont@author \DTauthor}
              \normalsize
              
              \medskip
              \DTdegree\\
              \DT@born\ \DTborn\\
              \DT@citizen\ \DTcitizen
              
              \vfill
              
              \DT@accepted\\
              \DTexaminers
              
              \bigskip
              
              \phantom{\DTdate}
              }}}}%
    \end{picture}%
    }%
  \clearpage
  \thispagestyle{empty}
  \hbox{}
  \clearpage}
\newcommand{\dissback}{%
  \thispagestyle{empty}
  \hbox{}
  \clearpage
  \thispagestyle{empty}%
  {\parskip=0pt%
    \parindent=0pt%
    \unitlength=0.1mm%
    \null\vfill%
    \begin{picture}(0,0)(360,110)%
      \put(80,2020){%
        \makebox(0,0)[tl]{%
          \hbox to 132.5mm{%
            \vbox to 194mm{%
              \null\vfill
              
              \begin{minipage}[b]{132.5mm}
              \Large
              \DTfont@series 
              Series in Signal and Information Processing\\
              \DTfont@normal edited by Hans-Andrea Loeliger\\[1.5ex]
              $\boldsymbol \sum$ Hartung-Gorre Verlag 
              Konstanz\\[1.5ex]
              ISSN \DTissn\quad ISBN \DTisbn\quad DM \DTprice
              \end{minipage}
              }}}}%
    \end{picture}%
    }}
%    \end{macrocode}
% \end{macro}
% \end{macro}
% \end{macro}
%
% \section{Conclusion}
%
%  I was convinced by people on |comp.text.tex| to submit this class
%  to CTAN such that people might learn from it.  Thanks to everybody
%  who commented on my layout, I have used some of the comments to
%  improve the look of my dissertation.
%
% \Finale
%