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

Subversion Repositories phr

[/] [phr/] [trunk/] [doc/] [informe-tesis/] [template/] [metathesis-v2.0/] [thesis.sty] - Blame information for rev 192

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

Line No. Rev Author Line
1 5 guanucolui
\usepackage[dvips]{graphicx}
2
\usepackage{latexsym}
3
\usepackage{rotating}
4
 
5
% Try uncommenting the following line if fonts don't
6
% display correctly in the PDF file.
7
%\usepackage{pslatex}
8
 
9
% To use palatino font, uncomment the following line.
10
%\usepackage{mathpazo}
11
 
12
% To use times roman font, uncomment the following line.
13
%\usepackage{mathptmx}
14
 
15
% For other fonts, see http://www.tug.org/fonts/
16
 
17
\oddsidemargin = .5in
18
\textwidth = 6in
19
 
20
\headheight = 0in
21
\headsep = 0in
22
\topmargin = .25in
23
\textheight = 8.5in
24
 
25
\floatsep = .29in
26
\textfloatsep = \floatsep
27
\intextsep = \floatsep
28
 
29
% To have the references sorted in the order they are cited,
30
% (instead of alphabetically), use 'unsrt' instead of 'abbrv'.
31
%
32
\bibliographystyle{abbrv}
33
 
34
\setcounter{secnumdepth}{3}
35
\setcounter{tocdepth}{3}
36
 
37
% Almost everything is double spaced.
38
%
39
\newcommand{\spacing}{1.8}
40
\renewcommand{\baselinestretch}{\spacing}
41
 
42
% Footnotes are to be single spaced.
43
%
44
\newcommand{\munfootnote}[1]{%
45
        \renewcommand{\baselinestretch}{1.0}%
46
        \normalsize
47
        \footnote{#1}%
48
        \renewcommand{\baselinestretch}{\spacing}%
49
        \normalsize
50
}
51
 
52
% Lengthy quotes must also be single spaced.
53
% We provide a parameter for the citation label too.
54
%
55
\newenvironment{munquote}[1][]{%
56
        \renewcommand{\baselinestretch}{1.0}%
57
        \normalsize
58
        \def\muncite{#1}
59
        \vspace{1.5mm}
60
        \begin{quote}\sl``}{''\muncite
61
        \end{quote}
62
        \renewcommand{\baselinestretch}{\spacing}%
63
        \normalsize
64
}
65
 
66
% Command for creating the thesis title page in accordance with the
67
% requirements of the School of Graduate Studies.
68
% For usage example, see thesis.tex.
69
%
70
\newcommand{\thesistitle}[5]{%
71
\thispagestyle{empty}
72
\begin{center}
73
 
74
\renewcommand{\baselinestretch}{1.0}%
75
\textbf{\Large #1}
76
\renewcommand{\baselinestretch}{\spacing}%
77
 
78
\vspace{1.0cm}
79
 
80
by \\
81
\copyright\ #2
82
 
83
\vspace{\fill}
84
 
85
\vspace{\fill}
86
 
87
A thesis submitted to the \\
88
School of Graduate Studies \\
89
in partial fulfilment of the \\
90
requirements for the degree of \\
91
#3 \\
92
 
93
\vspace{\fill}
94
 
95
#4 \\
96
Memorial University of Newfoundland
97
 
98
\vspace{\fill}
99
 
100
#5 \\
101
 
102
\vspace{\fill}
103
 
104
St. John's \hfill Newfoundland
105
\end{center}
106
}
107
 
108
% The \munepsfig command is used to insert a new EPS figure
109
% into our document.  Usage is:
110
%
111
%       \munepsfig[args]{filename}{caption}
112
%
113
% where:
114
%       - the optional 'args' argument is passed to the
115
%         embedded \includegraphics command, this can be used
116
%         to scale the figure or rotate it.
117
%       - 'filename' is the name of the EPS file in the 'figures'
118
%         directory that is to be inserted (note that 'filename'
119
%         should not include the '.eps' extension).
120
%       - 'filename' also serves as the label for the figure.
121
%         with the text 'fig:' prepended.
122
%
123
% Sample Usage:
124
%       \munepsfig[scale=0.5,angle=90]{barchart}{Population over time}
125
 
126
% inserts the EPS file 'figures/barchart.eps' reduced in size by 50%
127
% rotated 90 degrees and with the caption "Popuation over Time."
128
% We can refer to that figure as Figure~\ref{fig:barchart} in the text.
129
%
130
\newcommand{\munepsfig}[3][scale=1.0]{%
131
        \begin{figure}[!htbp]
132
                \centering
133
                \vspace{2mm}
134
                \includegraphics[#1]{figures/#2.eps}
135
                \caption{#3}
136
                \label{fig:#2}
137
        \end{figure}
138
}
139
 
140
% \munlepsfig command inserts a figure in landscape mode.  The
141
% entire page is rotated to accommodate the figure.  The arguments
142
% are the same as for \munepsfig, above
143
%
144
\newcommand{\munlepsfig}[3][scale=1.0]{%
145
        \begin{sidewaysfigure}[!htbp]
146
                \centering
147
                \vspace{2mm}
148
                \includegraphics[#1]{figures/#2.eps}
149
                \caption{#3}
150
                \label{fig:#2}
151
        \end{sidewaysfigure}
152
}
153
 
154
% The 'muntxtfig' environment is used to insert 'textual' figures
155
% into our document, such as brief source code snippets.  Usage is:
156
%
157
%       \begin{muntxtfig}[spacing]{label}{caption}{width}
158
%         text for 'figure'
159
%       \end{muntxtfig}
160
%
161
% where:
162
%       - 'spacing' is a number representing the baselinestretch
163
%         (line-spacing) to use for the text figure.  Default is
164
%          single-spacing.
165
%       - 'label' is the label to be used for referencing.
166
%          The figure can be referenced as Figure~\ref{fig:label}.
167
%       - 'caption' is the caption to display below the figure.
168
%       - 'width' is the width of the minipage in which the text figure
169
%         is formatted.
170
%
171
% Sample usage:
172
% \begin{muntxtfig}[1.0]{code}{Hello World}{0.5\textwidth}
173
%   Some text
174
% \end{muntxtfig}
175
%
176
\newenvironment{muntxtfig}[4][\spacing]{%
177
        \begin{figure}[!htbp]
178
                \centering
179
                \def\muncaption{#3}%
180
                \def\munlabel{#2}%
181
                \renewcommand{\baselinestretch}{#1}%
182
                \normalsize%
183
                \begin{minipage}{#4}
184
                \hrule \hrule
185
                \bigskip
186
}{%
187
                \hrule \hrule
188
                \end{minipage}
189
                \renewcommand{\baselinestretch}{\spacing}%
190
                \normalsize%
191
                \caption{\muncaption}
192
                \label{fig:\munlabel}
193
        \end{figure}
194
}
195
 
196
% The 'muntab' environment is used to insert a new table into our document.
197
% Usage is:
198
%
199
%       \begin{muntab}{table_format}{label}{caption}
200
%        table contents
201
%       \end{muntab}
202
%
203
% where:
204
%       - 'label' is the label used to reference the Table.
205
%          We can refer to the table as Table~\ref{tab:label} in
206
%          the text.
207
%       - 'caption' is the caption placed above the Table.
208
%
209
%
210
\newenvironment{muntab}[3]{%
211
        \begin{table}[!htbp]
212
                \centering
213
                \caption{#3}
214
                \label{tab:#2}
215
                \vspace{2mm}
216
                \begin{tabular}{#1}
217
}{%
218
                \end{tabular}
219
        \end{table}
220
}
221
 
222
% The 'munltab' environment is like muntab, but displays the table
223
% in landscape mode on its own page.  See muntab environment for usage.
224
%
225
\newenvironment{munltab}[3]{%
226
        \begin{sidewaystable}
227
                \centering
228
                \caption{#3}
229
                \label{tab:#2}
230
                \vspace{2mm}
231
                \begin{tabular}{#1}
232
}{%
233
                \end{tabular}
234
        \end{sidewaystable}
235
}
236
 
237
% The \muneqn environment is used to add an equation to the thesis.
238
% Usage is:
239
%
240
%       \begin{muneqn}{label}
241
%         equation body
242
%       \end{muneqn}
243
%
244
% where:
245
%       - 'label' is the label used to reference the Equation.
246
%          We can refer to the equation as Table~\ref{eqn:label} in
247
%          the text.
248
%
249
\newenvironment{muneqn}[1]{%
250
        \begin{equation}
251
                \label{eqn:#1}
252
}{
253
        \end{equation}
254
}
255
 
256
%
257
% For theorems and corollaries.
258
%
259
\newtheorem{cor}{Corollary}
260
\newtheorem{thm}{Theorem}

powered by: WebSVN 2.1.0

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