Debian Codegraph @

texmf-dist/doc/latex/lion-msc/lion-msc.tex

raw
1 \documentclass[twoside,single]{lion-msc}
2
3 \title{The \texttt{lion-msc} document class}
4 \author{Michiel de Dood}
5
6 %\affiliation{Huygens-Kamerlingh Onnes Laboratory, Leiden University} % this is the default value
7 %\affiliation{Instituut-Lorentz, Leiden University} % for theoretical physics
8
9 %\affiliation{Huygens-Kamerlingh Onnes Laboratorium, Universiteit Leiden} % experimental physics in Dutch
10 %\affiliation{Instituut-Lorentz, Universiteit Leiden} % theoretical physics in Dutch
11
12 %\address{P.O. Box 9500, 2300 RA Leiden, The Netherlands} % default address - uncomment if need be
13
14 % \newdate{date}{\day}{\month}{\year} % definition of time and date using datetime package
15 %\newdate{date}{27}{08}{2010}
16 %\date{\displaydate{date}}
17
18 %\studentid{19750118} % check you student ID, LaTeX does not do this
19 %\abstract{Here goes a wonderful abstract.} % limit your self to 1/2 page or 500 words
20 %\supervisor{Jan Aarts} % Note that this should be a LION staff member!
21 %\corrector{to be defined} % This could be a LION staff member or your external supervisor
22
23 %\degree{Master of Science} % The default option is "Bachelor of Science", change if needed
24
25 %\major{Physics and Astronomy} % The default option is "Physics", change if needed
26 %\major{Physics and Mathematics}
27
28 % optional cover picture - should be jpg or pdf
29 % \coverpicture{\includegraphics[width=13cm]{thesisstyle.png}}
30
31 % Use this to make hyperlinks visible in the document.
32 % \hypersetup{colorlinks=true}
33
34 % ---------------------------------------------------------------- My defintions!
35 % \renewcommand{\vec}[1] {\ensuremath{ \overrightarrow{ #1 } }}
36 \renewcommand{\vec}[1] {\ensuremath{ \mathbf{ #1 } }}
37 % \bra \ket \braket and \proj
38 \newcommand{\bra}[1]{\ensuremath{\langle #1 \vert}}
39 \newcommand{\ket}[1]{\ensuremath{\vert #1 \rangle}}
40 \newcommand{\braket}[2]{\ensuremath{\langle #1 \vert #2 \rangle}}
41 \newcommand{\proj}[1]{\ensuremath{\vert #1 \rangle \langle #1 \vert}}
42
43 \newcommand{\kpar}{\ensuremath{k_\parallel}}
44 % ----------------------------------------------------------------
45
46 % \usepackage{tocloft}
47 % \renewcommand{\cftchapdotsep}{\cftdotsep}
48
49 \begin{document}
50
51 % roman numbering in the table of contents section
52 \pagenumbering{roman}
53
54 \maketitle
55
56 % Table of contents : it is a good idea to include this into your thesis
57 \tableofcontents
58 \cleardoublepage
59
60 % The following list of figures and list of tables are optional. Remove the comments if needed
61 %\listoffigures
62 %\newpage
63
64 %\listoftables
65 %\newpage
66
67 % in the main part of the document use standard arabic numbers. Page counter resets to 1.
68 \pagenumbering{arabic}
69
70 \chapter{Description of the document class \textrm{lion-msc}}
71
72 This chapter describes the \textrm{lion-msc} document class. The aim of this document class is to assist staff, students and the university administration with the creation of bachelor and master theses. By using this document class we create a document that has a first page that contains all required information such as title, author, student ID, supervisor, second corrector etc.
73
74 Some of the compulsory features are standardized, many other have default values. More experienced \LaTeX users can easily modify the feel and look of the document, but should try not too modify the first pages of the thesis. This is the page that should be handed in to the university administration that keeps this on file together with the grade given by the staff member of the physics department.
75
76 At a later stage all bachelor and master theses will be placed in an online repository that is, in principle, publicly available. This repository will look better (more professional) if the first pages and layout of theses is similar.
77
78 The use of a specialized document class is a method that is used by many scientific journals to ensure that all submitted articles contain all necessary information. Publishers only accept articles that are typeset according to certain rules. \LaTeX style files and templates are often provided to help authors to comply with the style of the journal.
79
80 Currently the document class is still under active development and will be improved. If you use this style to typeset your thesis please do check frequently for updates of the files \textrm{lion-msc.cls} and the associated bibliography style file \textrm{lion-msc.bst}.
81
82 \section{Getting Started}
83
84 Unzip the zip file into a directory and start with the file minimal.tex. On most systems this should compile if you have the 'lion-msc.cls' file and 'minimal.tex' in the same working directory. 'lion-msc' is based on the report class and any valid option for a report can be passed onto lion-msc. In addition, lion-msc uses several additional packages. Most modern \LaTeX systems have features that allow you to automatically get missing files if your computer is connected to the internet.
85
86 A minimal \LaTeX document that should compile with pdf\LaTeX is the following (I called this file 'minimal.tex')
87
88 \begin{verbatim}
89 \documentclass[twoside,single]{lion-msc}
90
91 \title{Title}
92 \author{A. Uthor}
93
94 \begin{document}
95
96 \maketitle
97
98 \chapter{Chapter 1}
99
100 Here you type the text for the first chapter of
101 your thesis.
102
103 \end{document}
104 \end{verbatim}
105
106 If problems arise at this point check if you compile \LaTeX directly to pdf. The older route that converts tex files to dvi files and then to postscript is not supported. It is very unlikely that this will be supported in the future.
107
108 If problems persist check if you have all necessary files in the right location, most notably 'lion-msc.cls' and 'logo-leidenuniv.pdf'. If you placed the files in some standard location for your tex installation make sure that your installation knows about these files. A quicker, more fail-safe way around this is to place these files in the same working directory as the \LaTeX file that you are trying to compile.
109
110 Once you have made these steps take a look at lion-msc.tex as it contains a more complete template that shows how to use the lion-msc documentclass.
111
112 \subsection{Files in this package}
113
114 The files included with this package are the following:
115
116 \vskip 1em
117
118 \begin{tabular}{l l}
119 \hline
120 \textbf{lion-msc.cls} & documentclass file \\
121 \textbf{logo-leidenuniv.pdf} & PDF file with logo of Leiden University. \\
122 & This file is required by the document class \\
123 \textbf{lion-msc.bst} & bibliography style file that can be used with bibtex \\
124 \textbf{lion-msc.layout} & layout file used for integration with LyX environment \\
125 \textbf{minimal.tex} & Minimal \LaTeX file demonstrating the use of \\
126 & lion-msc.cls \\
127 \textbf{AlexanderPRA.tex} & \LaTeX file used as an example of a Master Thesis \\
128 \textbf{lion-msc.tex} & This file \\
129 \textbf{lion-msc.pdf} & PDF file of the compiled version of lion-msc.tex \\
130 \textbf{Fig1.png} & Figure used in AlexanderPRA.tex \\
131 \textbf{Fig2.png} & Figure used in AlexanderPRA.tex \\
132 \textbf{Fig3a.png} & Figure used in AlexanderPRA.tex \\
133 \textbf{Fig3b.png} & Figure used in AlexanderPRA.tex \\
134 \textbf{Fig4.png} & Figure used in AlexanderPRA.tex \\
135 \textbf{4photon.bib} & BibTeX database file for AlexanderPRA.tex \\
136 \hline
137 \end{tabular}
138
139 \section{List of available commands and options}
140
141 This section gives an overview of special commands and options that are defined through this documentclass. You can use these to change the appearance of your thesis and to include all necessary information.
142
143 \subsection{lion-msc options}
144
145 Lion-msc inherits and passes its options to the report class. By default the class uses [a4paper, 12pt, fleqn]. If desired this can be passed on by including valid report class options to the options of lion-msc.
146
147 \begin{tabular}{l l}
148 \hline
149 \textbf{double} & (default) double line spacing, useful for drafts \\
150 \textbf{single} & single line spacing. This looks better in the final version \\
151 \hline
152 \end{tabular}
153
154 \subsection{Specific lion-msc commands}
155
156 With the lion-msc documentclass most of the required information is entered in the preamble of the \LaTeX document (i.e. before $\backslash$begin\{document\}). This information is made visible by using the $\backslash$maketitle command. This should be the first command after $\backslash$begin\{document\}.
157
158 Note that you have to fill out the required options. If you leave these empty, instructions will appear in red on the title page. Most of these commands are quite flexible. For instance you can insert newline characters ($\backslash \backslash$) in the affiliation command. This is practical if you do a project outside LION.
159
160 \begin{tabular}{l l}
161 \hline
162 \textbf{$\backslash$author} & (required) Defines the author \\
163 \textbf{$\backslash$title} & (required) Defines the title of your thesis \\
164 \textbf{$\backslash$abstract} & (required) Provide your abstract here, \\
165 & making sure that it fits on the page.\\
166 \textbf{$\backslash$affiliation} & Sets the affiliation to something else than \\
167 & the default value. \\
168 \textbf{$\backslash$address} & Use this to change the default address if needed. \\
169 \textbf{$\backslash$studentid} & (required) enter your student ID (studentnummer) \\
170 \textbf{$\backslash$supervisor} & (required) provide a valid supervisor. This should \\
171 & be a staff member of the Leiden Physics Department \\
172 \textbf{$\backslash$corrector} & (required) provide the name of the 2$^{nd}$ corrector. \\
173 & This could be an external supervisor. \\
174 \textbf{$\backslash$degree} & (optional) Default is "Bachelor of Science"\\
175 & Use this to change the default value. \\
176 \textbf{$\backslash$major} & (optional) Default is "Physics" \\
177 & Use this to change the default value. \\
178 \textbf{$\backslash$coverpicture} & (optional) Insert a cover picture on the first page \\
179 & Usage: \\
180 & $\backslash$coverpicture\{$\backslash$includegraphics[width=13cm]\{picture.jpg\}\} \\
181 \textbf{$\backslash$dedicate} & (optional) Use this to dedicate your thesis to someone. \\
182 & Please do respect the university guidelines for this! \\
183
184 \hline
185 \end{tabular}
186
187 Note that these commands are highly flexible and a bit a \LaTeX knowledge will allow you to make all kinds of smart modifications. A common, and reasonable desire is to give credit to the PhD student or postdoc that guided you during the project. You can do this by trying the following code: \\
188 $\backslash$supervisor\{PhD student $\backslash \backslash$ $\backslash$hspace*\{$\backslash$fill\}Supervisor\}.\\
189 Note that you should always have a staff member from Leiden as your supervisor because this person is authorized to give you the final grade.
190
191 \subsection{Packages and additional styling tips}
192
193 This documentclass uses a number of standard packages, such as amsmath, amssymb for extra functions and symbols to display math and the graphicx package to display graphics in the document. It uses the natbib package to deal with references to automatically sort and compress multiple references. I do not recommend making changes to this in the document preamble. In particular the interplay between natbib and the bibliography style can give very unexpected results.
194
195 The default configuration also uses the hyperref package to create a pdf with hyperlinks. The links are hidden so that the text looks normal; try clicking one of the references or in the table of contents and you will see that you are automatically brought to the appropriate reference or section.
196
197 The use of packages inside the documentclass can cause an error when you try to use a package within your \LaTeX document. This typically happens when both the documentclass and your own \LaTeX document use some options. There is a $\backslash$PassOptionsToPackage command that you can use before the $\backslash$documentclass to try to pass the desired option to the package.
198
199 \subsubsection{Headers with fancyhdr}
200 The headers and footers on each page contain some useful info. This is done using the \verb"fancyhdr" package. You can change the appearance of these by using the $\backslash$fancyhead and $\backslash$fancyfoot commands. See the \verb"fancyhdr" documentation for details. You can also open lion-msc.cls in a text editor and look for these commands. You can place your own commands before the $\backslash$begin\{document\} command in your \LaTeX file. The grey text at the bottom with date and time is there to help you and your supervisor to keep track of the version, so that we do not end up correcting an old version. It may look somewhat strange in the final version and can be removed by using\\
201 $\backslash$fancyfoot[CE,CO]\{\}.
202
203 \subsubsection{Table of contents styling}
204
205 Some people may want to get the original dots back into the table of contents. There is an old-fashioned way of doing this without extra packages. Insert the following in the document preamble. The separation of 4.5 is the default value and can be changed to tune the spacing between dots.
206 \begin{verbatim}
207 \makeatletter
208 \renewcommand\@dotsep{4.5}
209 \makeatother
210 \end{verbatim}
211 An alternative is to use the \verb"tocloft" package that offers additional styling options. Insert the following to use this package. (Suggestion by Casper Remeijer)
212 \begin{verbatim}
213 \usepackage{tocloft}
214 \renewcommand{\cftchapdotsep}{\cftdotsep}
215 \end{verbatim}
216
217 \subsubsection{svg figures}
218
219 Thanks to Fabian Steinmeyer the svg package is now enabled by default, i.e. loaded inside the lion-msc class.
220
221 The svg package is intended for the automated integration of SVG graphics into LaTeX documents. Therefore the capabilities provided by Inkscape — or more precisely its command line tool — are used to export the text within an SVG graphic to a separate file, which is then rendered by LaTeX. For this purpose the two commands \verb#\includesvg# and \verb#\includeinkscape# are provided which are very similar to the \verb#\includegraphics# command of the graphicx package.
222
223
224 \subsubsection{Subfigures}
225
226 It can be quite useful to have multiple figures next to each other. This can be done with the \verb"subcaption" package. (Suggestion by Casper Remeijer)
227
228 \begin{verbatim}
229 \usepackage[labelformat=simple,justification=centering]{subcaption}
230 \renewcommand\thesubfigure{(\alph{subfigure})}
231 \end{verbatim}
232
233 \subsubsection{Typesetting of units}
234
235 Some people rely on a package called 'siunitx' to deal with the correct typesetting of units in the SI system. The following commands could be added
236 to the document preamble. (Suggestion by Casper Remeijer)
237
238 \begin{verbatim}
239 \usepackage{siunitx}
240 \sisetup{separate-uncertainty = true, multi-part-units = single, inter-unit-product = \ensuremath { { } \cdot { } }}
241 % use \pm symbol for uncertainty values, don't repeat the unit, unit multiplication is indicated by means of a half-height dot
242 \end{verbatim}
243
244 \subsubsection{Indentation of paragraphs}
245
246 Some people do not like the standard LaTeX indentation at the beginning of the paragraph. This can be changed using the parskip package
247
248 \begin{verbatim}
249 \usepackage{parskip}
250 \end{verbatim}
251
252 \section{Using LyX}
253
254 Lyx is a powerfull visual editor that used LateX for typesetting. It exports .tex files that can be submitted to journals. Specifically the visual formula editor is very usefull. It also support track-changes, which is very usefull when collaborating. Some people do not like LyX.
255
256 \subsection{Installation}
257
258 In order to use the lion-msc style in LyX, the latex style should be installed systemwide. With miktex this is done automatically. Now identify the lion-msc.layout file. It might be located at "c:{\textbackslash}program files{\textbackslash}miktex{\textbackslash}doc{\textbackslash}lion-msc".
259
260 The next thing to do is to set the document class to a local layout and choose for the
261 \emph{lion-msc.layout} file:
262
263 Documents $\rhd$ Settings $\rhd$ Document Class $\rhd$ Local-layout
264
265 \include{AlexanderPRA}
266
267 %\appendix
268 %\include{appa}
269
270 \section*{Acknowledgements}
271 This research was made possible by financial support from the Dutch Association for Scientific Research (NWO) and the Foundation for Fundamental Research of Matter (FOM).
272
273 \bibliographystyle{plain}
274 \bibliography{4photon}
275
276 \end{document}
277