OpenCores
URL https://opencores.org/ocsvn/phr/phr/trunk

Subversion Repositories phr

[/] [phr/] [trunk/] [doc/] [informe-tesis/] [phd-thesis-template-master/] [README.md] - Blame information for rev 284

Go to most recent revision | Details | Compare with Previous | View Log

Line No. Rev Author Line
1 125 guanucolui
CUED PhD Thesis Template
2
========================
3
> A PhD thesis LaTeX template for Cambridge University Engineering Department.
4
 
5
## Author(s)
6
*   Krishna Kumar
7
 
8
## License
9
 
10
The MIT License (MIT)
11
 
12
Copyright (c) 2013 Krishna Kumar
13
 
14
Permission is hereby granted, free of charge, to any person obtaining a copy
15
of this software and associated documentation files (the "Software"), to deal
16
in the Software without restriction, including without limitation the rights
17
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
18
copies of the Software, and to permit persons to whom the Software is
19
furnished to do so, subject to the following conditions:
20
 
21
The above copyright notice and this permission notice shall be included in
22
all copies or substantial portions of the Software.
23
 
24
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
25
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
26
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
27
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
28
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
29
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
30
THE SOFTWARE.
31
 
32
--------------------------------------------------------------------------------
33
 
34
## Features
35
 
36
*   Conforms to the Student Registry PhD dissertation guidelines and CUED PhD guidelines
37
 
38
*   Adaptive Title Page: Title page adapts to title length
39
 
40
*   Print / On-line version: Different layout and hyper-referencing styles
41
 
42
*   Pre-defined and custom fonts (Times / Fourier / Latin Modern) with math support
43
 
44
*   Pre-defined and custom bibliography style support (authoryear / numbered / custom)
45
 
46
*   Custom page styles: 3 Different Header / Footer styles
47
 
48
*   Pre-defined and custom margin size
49
 
50
*   A separate abstract with thesis title and author name, along with the titlepage can be generated by passing the argument `abstract` to the document class.
51
 
52
 
53
## Building your thesis
54
 
55
### Using the Make File (Unix/Linux)
56
 
57
The template supports PDF, DVI and PS formats. All three formats can be generated
58
with the provided `Makefile`.
59
 
60
To build the `PDF` version of your thesis, run:
61
 
62
    make
63
 
64
 
65
This build procedure uses `pdflatex` and will produce `thesis.pdf`.
66
 
67
To produce `DVI` and `PS` versions of your document, you should run:
68
 
69
 
70
    make BUILD_STRATEGY=latex
71
 
72
This will use the `latex` command to build the document and will produce
73
`thesis.dvi`, `thesis.ps` and `thesis.pdf` documents. You will need psutils installed
74
 
75
Clean unwanted files
76
 
77
To clean unwanted clutter (all LaTeX auto-generated files), run:
78
 
79
    make clean
80
 
81
__Note__: the `Makefile` itself is take from and maintained at
82
[here](http://code.google.com/p/latex-makefile/).
83
 
84
### Shell script for PDFLaTeX (Unix/Linux)
85
 
86
Usage: `sh ./compile-thesis.sh [OPTIONS] [filename]`
87
 
88
[option]  compile: Compiles the PhD Thesis
89
 
90
[option]  clean: removes temporary files - no filename required
91
 
92
### Using the Batch file on Windows (PDFLaTeX)
93
 
94
*    Open command prompt and navigate to the directory with the tex file. Run:
95
 
96
    `compile-thesis-windows.bat`.
97
 
98
*    Alternatively, double click on `compile-thesis-windows.bat`
99
 
100
-------------------------------------------------------------------------------
101
 
102
## Usage details
103
 
104
### Class Options
105
 
106
The class file, `PhDThesisPSnPDF`, is based on the standard `book` class
107
 
108
It supports the following custom options:
109
 
110
*   `a4paper` (default as per the University guidelines) or `a5paper`: Paper size
111
 
112
*   `11pt` or `12pt`: The University of Cambridge guidelines recommend using a minimum font size of 11pt (12pt is preferred) and 10pt for footnotes. This template also supports `10pt`.
113
 
114
*   `oneside` or `twoside` (default): This is especially useful for printing double side (twoside) or single side.
115
 
116
*   `print`: Supports Print and Online Version with different page margins and hyperlink styles.
117
    Use `print` in the options to activate Print Version with appropriate margins and page layout and view styles.
118
    Leaving the options field blank will activate Online version.
119
 
120
*   `custommargin`: You can alter the margin dimension for both print and online version by using the keyword `custommargin` in the options. Then you can define the dimensions of the margin in the `preamble.tex` file:
121
 
122
        \ifsetMargin
123
        \else
124
        \RequirePackage[left=37mm,right=30mm,top=35mm,bottom=30mm]{geometry}
125
        \setFancyHdr
126
        \fi
127
    `\setFancyHdr` should be called when using custom margins for proper header/footer dimensions
128
 
129
 
130
*   `index`: Including this option builds the index, which is placed at the end of the thesis.
131
 
132
    Instructions on how to use the index can be found [here](http://en.wikibooks.org/wiki/LaTeX/Indexing#Using_makeidx).
133
 
134
    _Note_: the package `makeidx` is used to create the index.
135
 
136
*   `abstract`: This option enables only the thesis title page and the abstract with title and author to be printed.
137
 
138
### Abstract separate
139
 
140
*  A separate abstract with the title of the PhD and the candidate name has to be submitted to the Student Registry. This can be generated using `abstract` option in the document class. Ignore subsequent warnings about skipping sections (if any).
141
 
142
*  To generate the separate abstract and the title page, make sure the following commands are in the `preamble.tex` file:
143
 
144
        \ifdefineAbstract
145
        \includeonly{Abstract/abstract}
146
        \else
147
        \fi
148
 
149
 
150
### Choosing the Fonts
151
 
152
`PhDThesisPSnPDF` currently supports two fonts `Times` and `Latin Modern (default)`.
153
 
154
*   `times`: (The University of Cambridge guidelines recommend using Times). Specifying times option in the document class will use `mathptpx` or `Times` font with Math Support.
155
*   `fourier`: fourier font with math support
156
*   `default (empty)`: When no font is specified, `Latin Modern` is used as the default font with Math Support.
157
*   `customfont`: Any custom font can be set in preamble by using `customfont` option in the document class. Then the custom font can be loaded in preamble.tex in the line:
158
 
159
                \ifsetFont
160
                \else
161
                \RequirePackage{Your_Custom_Font}
162
                \fi
163
 
164
### Choosing the Bibliography style
165
 
166
`PhDThesisPSnPDF` currently supports two styles `authoryear` and `numbered (default)`. Citation style has to be set. You can also specify `custombib` style
167
 
168
* `authoryear`: For author-year citation eg., Krishna (2013)
169
 
170
* `numbered`: (Default Option) For numbered and sorted citation e.g., [1,5,2]
171
 
172
* `custombib`: Define your own bibliography style in the `preamble.tex` file.
173
 
174
                \RequirePackage[square, sort, numbers, authoryear]{natbib}
175
 
176
* (Overview of Bibtex-Styles with preview)[http://nodonn.tipido.net/bibstyle.php?]
177
 
178
### Choosing the Page Style
179
 
180
`PhDThesisPSnPDF` defines 3 different page styles (header and footer). The following definition is for `twoside` layout.
181
 
182
* `default (leave empty)`: For Page Numbers in Header (Left Even, Right Odd) and Chapter Name in Header (Right Even) and Section #. Section Name (Left Odd). Blank Footer.
183
 
184
        Header (Even)   : 4                                                 Introduction
185
 
186
        Header (Odd)    : 1.2 Section Name                                                      5
187
 
188
        Footer              : Empty
189
 
190
* `PageStyleI`: For Page Numbers in Header (Left Even, Right Odd) and Chapter Name next to the Page Number on Even Side (Left Even). Section Number and Section Name and Page Number in Header on Odd Side (Right Odd). Footer is empty. Layout:
191
 
192
        Header (Even)   : 4 | Introduction
193
 
194
        Header (Odd)    :                                                               1.2 Section Name | 5
195
 
196
        Footer              :                               Empty
197
 
198
* `PageStyleII`: Chapter Name on Even Side (Left Even) in Header. Section Number and Section Name in Header on Odd Side (Right Odd). Page numbering in footer. Layout:
199
 
200
        Header (Even)   : Introduction
201
 
202
        Header (Odd)    :                                                                               1.2 Section Name
203
 
204
        Footer[centered]:                               3
205
 
206
### Changing the visual style of chapter headings
207
 
208
The visual style of chapter headings can be modified using the `titlesec` package. Edit the following lines in the `preamble.tex` file.
209
 
210
        \RequirePackage{titlesec}
211
        \newcommand{\PreContentTitleFormat}{\titleformat{\chapter}[display]{\scshape\Large}
212
        {\Large\filleft{\chaptertitlename} \Huge\thechapter}
213
        {1ex}{}
214
        [\vspace{1ex}\titlerule]}
215
        \newcommand{\ContentTitleFormat}{\titleformat{\chapter}[display]{\scshape\huge}
216
        {\Large\filleft{\chaptertitlename} \Huge\thechapter}{1ex}
217
        {\titlerule\vspace{1ex}\filright}
218
        [\vspace{1ex}\titlerule]}
219
        \newcommand{\PostContentTitleFormat}{\PreContentTitleFormat}
220
        \PreContentTitleFormat
221
 
222
### Custom Settings
223
 
224
*   The depth for the table of contents can be set using:
225
 
226
        \setcounter{secnumdepth}{3}
227
            \setcounter{tocdepth}{3}
228
    A depth of [3] indicates to a level of `\subsubsection` or #.#.#.#. Default set as 2.
229
 
230
*   To hide sections from appearing in TOC use: `\tochide\section{Section name}` in your TeX files
231
 
232
*   Define custom caption style for figure and table caption in `preamble.tex` using:
233
 
234
        \RequirePackage[small,bf,figurename=Fig.,labelsep=space,tableposition=top]{caption}
235
 
236
*   Bibliography with Author-Year Citation in `preamble.tex`:
237
 
238
        \RequirePackage[round, sort, numbers, authoryear]{natbib}
239
 
240
 
241
### Nomenclature Definition
242
 
243
* To use nomenclature in your chapters:
244
 
245
        \nomenclature[g-pi]{$\pi$}{ $\simeq 3.14\ldots$}
246
 
247
    The sort keys have prefix. In this case a prefix of `g` is used to denote Greek Symbols, followed by `-pi` or `-sort_key`. Use a `-` to separate sort key from the prefixes. The standard prefixes defined in this class are:
248
 
249
    * `A` or `a`: Roman Symbols
250
 
251
    * `G` or `g`: Greek Symbols
252
 
253
    * `Z` or `z`: Acronyms/Abbreviations
254
 
255
    * `R` or `r`: Superscripts
256
 
257
    * `S` or `s`: Subscripts
258
 
259
    * `X` or `x`: Other Symbols
260
 
261
*   You can change the Title of Nomenclature to Notations or Symbols in the `preamble.tex` using:
262
 
263
        \renewcommand\nomname{Symbols}
264
 
265
## General guidelines
266
[Why is it important to follow good practices and not get killed by a Velociraptor ;)](http://www.xkcd.com/292/)
267
 
268
*   To restrict the length of the figure caption in List of figures use a \[short-title\] and {longtitle} for the caption or the section:
269
 
270
                `\caption[Caption that you want to appear in TOC]{Actual caption of the figure}`
271
                `\section[short]{title}`
272
 
273
*   To exclude sections from being numbered and disable it from appearing in the Table of Contents use \section*{Section_Name} or \chapter*{Chapter_Name}
274
 
275
*   To only exclude it from being listed in the Table of Contents encapsulate the section command inside the `\tochide` command. `\tochide{\section{Section_Name}}` the section will not appear in the Table of Contents, but the section will be numbered.
276
 
277
*   When including figures in your tex file, it's a good practice to size your picture depending on the page size, instead of using absolute values. In the following example `0.75\textwidth` refers to picture width being set to 75% of the text width.
278
 
279
        \includegraphics[width=0.75\textwidth]{minion}
280
 
281
*   Use a `-` to separate sort key from the prefixes, eg., `g-pi` dentes the Greek symbol `pi`.
282
 
283
-------------------------------------------------------------------------------
284
 
285
## Frequently Asked Questions
286
 
287
### _Q1_: Where can I find the thesis formatting guidelines this class is based on?
288
 
289
[https://www.admin.cam.ac.uk/students/studentregistry/exams/submission/phd/format.html](https://www.admin.cam.ac.uk/students/studentregistry/exams/submission/phd/format.html)
290
 
291
[http://www.eng.cam.ac.uk/postgraduate/assets/library/document/p/original/planningphd.pdf](http://www.eng.cam.ac.uk/postgraduate/assets/library/document/p/original/planningphd.pdf)
292
 
293
 
294
### _Q2_: Where can I find newer versions of the University of Cambridge crest/logos?
295
 
296
The university updates its crest every now and then. You can find up-to-date
297
logos on [this page](http://www.admin.cam.ac.uk/offices/communications/services/logos/)
298
(subject to change without notice).
299
 
300
Download and exchange the new logos with `CUni.eps` and/or `CUni.pdf`. I'll try to keep the crest up to date.
301
 
302
### _Q3_: Where can I find the guidelines to submit my thesis and requirements?
303
 
304
[Preparing to submit:](https://www.admin.cam.ac.uk/students/studentregistry/exams/submission/phd/preparing.html)
305
 
306
[Formatting styles:](https://www.admin.cam.ac.uk/students/studentregistry/exams/submission/phd/format.html)
307
 
308
[Submitting the dissertation](https://www.admin.cam.ac.uk/students/studentregistry/exams/submission/phd/submitting.html)
309
 
310
### _Q4_: How can I count the number of words in my thesis?
311
 
312
You can run the following command (Linux/Unix):
313
    `ps2ascii thesis.pdf | wc -w` (eg., result 2713 words)
314
 
315
or
316
    `pdftotext thesis.pdf | wc thesis.txt -w` (eg., result 2690 words)
317
 
318
### _Q5_: I found a bug in the template. Where do I report bugs?
319
 
320
You can report issues at
321
[our GitHub repository](https://github.com/kks32/phd-thesis-template).
322
 
323
You can also mail
324
[the developer](https://github.com/kks32/phd-thesis-template/graphs/contributors) directly or contact [Tim Love, CUED](mailto:tpl@eng.cam.ac.uk)
325
 
326
 
327
--------------------------------------------------------------------------------
328
## Troubleshooting Warnings
329
 
330
### _W1_: I get the LaTeX Warning: You have requested document class Classes/PhDThesisPSnPDF, but the document class provides PhDThesisPSnPDF, should I be concerned?
331
 
332
No! Do nothing, or if you don't want any warning messages change the line near the top of the class file to \ProvidesClass{Classes/PhDthesisPSnPDF} if you're not going to install the class file in a more standard location. You can install it in a standard location like `/usr/share/texmf/tex/latex/` and run `texhash` to reconfigure.
333
 
334
### _W2_:I get the package Fancyhdr Warning: \fancyhead's `E` option without twoside option is useless on input line \# or \#. What should I do?
335
 
336
Nothing. The warning is because the twoside option is also defined in the class, although only the oneside option is currently used.
337
 
338
### _W3_: I get the Class PhDThesisPSnPDF Warning: Unknown or non-standard option 'something'. Will see if I can load it from the book class. If you get a warning unused global option(s): `something` then the option is not supported! on input line \#.
339
 
340
You are either trying to use a undefined option or a non-standard option which is in the book class but not defined in the PhD Thesis Template. If it can be used it will be loaded and you will get no further warnings. If not, the option you chose is unavailable.
341
 
342
 
343
### _W4_: I get LaTeX Warning: Unused global option(s):[something].
344
 
345
You are trying to load an option that is not supported in the PhDThesisClass and the Book Class. Are you sure you are using the right option? Check your spelling!
346
 
347
### _W5_: I get I'm skipping whatever remains of this command line \# of file thesis.aux \@input{Chapter1/chapter1.aux}
348
 
349
If you are generating a separate abstract for your thesis submission, ignore this warning and good luck with your submission. If you are compiling your thesis and see this warning, please remove the option `abstract` from the document class.
350
 
351
 
352
 
353
--------------------------------------------------------------------------------
354
 
355
## Known Issue(s) / Bugs
356
 
357
*   Hyperlinks doesn't seem to be working in Post-Script file, however works on DVI and PDF (which is produced from the PS file), possibly viewer limitation than a code bug.
358
 
359
*   On older versions of dvips (version 5.97 or below), if your page margins do not appear properly in your PDF, when compiling through DVI >> PS >> PDF, please ensure that you have set a4paper or a5paper in the document class. If you are still having issues you can run:
360
 
361
                ps2pdf -sPAPERSIZE=a4 thesis.ps thesis.pdf
362
 
363
    This issue occurs only when the papersize is not specified in the document class and you are compiling DVI >> PS >> PDF using an older version (5.97 or below) of dvips.
364
 
365
*   If you find any let me know, or even better, patch it and contribute to the development of the LaTeX Template.
366
 
367
 
368
--------------------------------------------------------------------------------
369
 
370
## TODO list
371
 
372
*  Make example thesis a document on how to use the template and include general guidelines and good  practices.
373
 
374
--------------------------------------------------------------------------------
375
## ChangeLog
376
 
377
### 2014/01/11 - Version 1.0
378
> Commit 2f6918863e3c9d0a7e95bd2651ce7ef8ae38f90a
379
*   Fixed an issue with the headers in Nomenclature section
380
*   Removed deprecated codes, added functionality to tweak chapter headings in preamble.tex.
381
*   Distributed under MIT license
382
*   Acknowledgement and Cls file update
383
*   Appendices after References
384
 
385
### 2013/12/09 - Version 1.0 Beta Release 10.0
386
> Commit 973492fe1f1805e4fef60ec54060621b3e90a3cd
387
*   Fixed issues with DVI >> PS >> PDF and workaround, when papersize is not set for older versions of dvips (5.97 or lower).
388
 
389
### 2013/12/08 - Version 1.0 Beta Release 9.0
390
> Commit c11f98e26566af08cb9c4cacbdfddf6b28111886
391
*   Wider text area (75% of page size), support for separate abstract for submission to the Student Registry, appendix
392
 
393
### 2013/12/05 - Version 1.0 Beta Release 8.0
394
> Commit 324d1a5609992028afb109b424573cd3a5e31849
395
*   Update class file to support dvips driver when using dvi > PS output in hyperTeX. Removed deprecated codes from Declaration and class files
396
 
397
### 2013/12/05 - Version 1.0 Beta Release 7.2
398
> Commit 2f397eda12ef2b81314b67847e312f688095a379
399
*   Update to margin dimensions (1:1 ratio is maintained) with a binding offset of 5mm on the print version. Replaced the hmargin ratio of 3:2 with 1:1 with a binding offset.
400
 
401
### 2013/12/04 - Version 1.0 Beta Release 7.1
402
> Commit 9cb782f26cc3573f8d3077db520ba84b5f295049
403
*   Declaration with automatic insertion of the author and the degree date and conforming to the statments in the University guidelines
404
 
405
### 2013/12/03 - Version 1.0 Beta Release 7.0
406
> Commit 1f695d512ae5ce765398db4dc4b6381dc0351868
407
*   Default font size is 12pt and the default paper size is A4, confirming to the University regulations in terms of font, font sizer, paper size and set them as defaults.
408
 
409
### 2013/11/27 - Version 1.0 Beta Release 6.2
410
> Commit a5f49d49a6cc39209d95f91e667fd7b359ab5227
411
*   Update to the Makefile to remove PS files when running Makeclean
412
 
413
### 2013/11/26 - Version 1.0 Beta Release 6.1
414
> Commit e29a99406649dcce8f23b6d9df0b87eabd09fc0e
415
*   Update to the Makefile to support PS to PDF conversion
416
 
417
### 2013/11/26 - Version 1.0 Beta Release 6.0
418
> Commit 187b9324420812326e62d963afa42e26532e82e7
419
*   Included a Windows Batch file for LaTeX / Nomenclature compilation
420
*   Supports \printnomencl[optional_argument]
421
 
422
### 2013/11/26 - Version 1.0 Beta Release 5.0
423
> Commit 76a733ee305ed4aae9d546492cef768512df2b13
424
*   Supports DVI/PS
425
*   Supports Custom Margin and FancyHdr update
426
 
427
### 2013/11/24 - Version 1.0 Beta Release 0
428
> Commit 73c8dd9ea82c21476d964ad5cdff1b71fe7327c8
429
*   Author(s): Krishna Kumar
430
*   Adaptive Title Page: Title page adapts to the length of the title
431
*   Print / On-line version: Different layout and hyper-referncing styles
432
*   Pre-defined and custom fonts (Times / Palatino / Latin Modern) with math support
433
*   Pre-defined and custom bibliography style support (authoryear / numbered / custom)
434
*   Custom page styles: 3 Different Header / Footer styles
435
 
436
### 2013/11/14 - Inception
437
> Author(s): Krishna Kumar
438
 
439
--------------------------------------------------------------------------------
440
 
441
## Inspirations/Based on:
442
 
443
*   Cambridge Computer Laboratory PhD Thesis Template [https://github.com/cambridge/thesis](https://github.com/cambridge/thesis)
444
 
445
*   CUED Version 1.1 Template by H. Banderi
446
 
447
## Acknowlegments
448
 
449
*   Alex Ridge - original idea, code concepts & testing
450
 
451
*   Steven Kaneti - code concepts
452
 
453
*   Tina Schwamb - testing and bug reports

powered by: WebSVN 2.1.0

© copyright 1999-2024 OpenCores.org, equivalent to Oliscience, all rights reserved. OpenCores®, registered trademark.