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

Subversion Repositories phr

[/] [phr/] [trunk/] [doc/] [informe-tesis/] [template/] [metathesis-v2.0/] [chap2.tex] - Blame information for rev 242

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

Line No. Rev Author Line
1 5 guanucolui
\chapter{Figures and Tables}
2
\label{chap:figtab}
3
 
4
\section{Figures}
5
 
6
We can include encapsulated PostScript\texttrademark\ figures
7
(\texttt{.eps}) in the document and refer to it using a label.
8
For example, MUN's logo can be seen in Figure~\ref{fig:MUN_Logo_Pantone}.
9
\munepsfig{MUN_Logo_Pantone}{This is MUN's logo}
10
 
11
Figure~\ref{fig:enrollment} shows a chart of MUN's Fall
12
enrollment from 2005 -- 2009.\munfootnote{From \emph{Memorial
13
University of Newfoundland --- Fact Book 2009}.}
14
\munepsfig[scale=0.50]{enrollment}{MUN Fall Enrollment 2005 -- 2009}
15
The figure was created using the \textsf{Calc} spreadsheet application of
16
the office suite \textsf{OpenOffice.org}.\munfootnote{This office suite
17
can be downloaded at no cost from \texttt{http://openoffice.org/}. Unlike
18
other commercial office suites, \textsf{OpenOffice.org} may be legally
19
shared with colleagues and fellow students.  There are versions for
20
Linux, Microsoft Windows, Mac~OS~X and Solaris.  Also, unlike commercial
21
offerings, \textsf{OpenOffice.org} does not require activation using
22
registration keys.}  This figure was reduced by 50\%.
23
 
24
For larger figures, we can use landscape mode to rotate the page
25
and display the figure using the \verb+\munlepsfig+ command, as shown
26
in Figure~\ref{fig:enrollment-landscape}.  The figure will be the
27
only thing on the page when typeset in landscape mode.
28
(The figure is reduced to 85\% of its original size.)
29
\munlepsfig[scale=0.85]{enrollment-landscape}
30
        {MUN Fall Enrollment 2005 -- 2009 (landscape)}
31
 
32
Alternatively, if we just want to rotate the figure, but not
33
the entire page, we can specify an \texttt{angle} attribute
34
in the default argument of the \verb+\munepsfig+ command.
35
The result is shown in Figure~\ref{fig:enrollment-rotate}.
36
If the figure is too large or if there isn't sufficient
37
text, then the figure may appear on its own page.
38
\munepsfig[scale=0.30,angle=90]{enrollment-rotate}
39
        {MUN Fall Enrollment 2005 -- 2009 (rotated)}
40
 
41
Note that all three of the enrollment figures are basically
42
the same file, but with different names --- on Linux, they are
43
symbolic links to the same file.  The filenames have to be different
44
because the reference labels need to be unique.
45
 
46
Figure~\ref{fig:db-deadlock} shows a Petri net created using the
47
\texttt{xfig} program (\texttt{http://www.xfig.org/}) which has
48
very good support for \LaTeX.  This figure has been
49
reduced to 40\% of its original size.
50
\munepsfig[scale=0.40]{db-deadlock}{A deadlocked Petri net}
51
 
52
We can also create figures of text (such as short code snippets)
53
using the \verb+\muntxtfig+ command, as show in Figure~\ref{fig:code}.
54
\begin{muntxtfig}[1.0]{code}{Hello World}{0.5\textwidth}
55
\begin{verbatim}
56
#include <stdio.h>
57
 
58
int main(int argc, char **argv)
59
{
60
  printf("Hello world!\n");
61
  exit(0);
62
}
63
\end{verbatim}
64
\end{muntxtfig}
65
 
66
\section{Tables}
67
 
68
We can also create tables, as seen by Table~\ref{tab:pop}.  Note that,
69
as required by SGS guidelines, the caption for a table appears above the
70
table whereas figure captions appear below the figures.  Tables and
71
figures can ``float'' --- they may not appear on the page on which they
72
are mentioned.  \LaTeX{} tries to handle figure and table placement
73
intelligently, but if if you have a lot of them without a reasonable
74
amount of surrounding textual content, the figures and tables can
75
accumulate towards the end of the chapter.  Generally speaking, if
76
there is sufficient text explaining the tables and figures or if the
77
tables/figures are relatively small, this may not be a problem.  However,
78
if you have a lot of tables or figures, it may be a good idea to put
79
them in an appendix and refer to them as the need arises.
80
 
81
\begin{muntab}{c||c|c|c||c|c|c|}{pop}{Fall Semester Enrollment}
82
\hline
83
        & \multicolumn{3}{c||}{Undergraduate}
84
        & \multicolumn{3}{c|}{Graduate} \\
85
\cline{2-7}
86
     & F/T & P/T & Total & F/T & P/T & Total \\
87
\cline{2-7}
88
2004 & 13,191 & 2,223 & 15,414 & 1,308 & 879 & 2,187 \\
89
2005 & 13,184 & 2,143 & 15,327 & 1,375 & 920 & 2,295 \\
90
2006 & 12,809 & 2,224 & 15,033 & 1,373 & 899 & 2,272 \\
91
2007 & 12,634 & 2,155 & 14,789 & 1,403 & 899 & 2,302 \\
92
2008 & 12,269 & 2,208 & 14,477 & 1,410 &1,005& 2,415 \\
93
2009 & 12,382 & 2,323 & 14,705 & 1,567 &1,106& 2,673 \\
94
\hline
95
\end{muntab}
96
 
97
Table~\ref{tab:degrees} shows a different table in landscape
98
mode.\munfootnote{This data was also taken from the \emph{Memorial
99
University of Newfoundland --- Fact Book 2009}.} This is useful if your
100
table is too wide for the page.  Tables are double-spaced by default.
101
To single-space a table, change the \verb+\baselinestretch+ before
102
beginning the table environment.  Remember to restore it after the
103
environment has ended.
104
 
105
\renewcommand{\baselinestretch}{1.0}\normalsize
106
\begin{munltab}{lrrrrrrrrrrrr}
107
        {degrees}
108
        {Masters Degrees Conferred by Convocation Session --- 1950 to 2009}
109
\cline{2-13}
110
                                &
111
\multicolumn{2}{|c|}{2009}      &
112
\multicolumn{2}{c|}{2008}       &
113
\multicolumn{2}{c|}{2007}       &
114
\multicolumn{2}{c|}{2006}       &
115
\multicolumn{2}{c|}{2006}       &
116
\multicolumn{1}{c|}{1950--2004} &
117
\multicolumn{1}{c|}{Total}      \\
118
\cline{2-13}
119
          &
120
May & Oct &
121
May & Oct &
122
May & Oct &
123
May & Oct &
124
May & Oct & &  \\
125
Degrees \\
126
\hline
127
Master of Applied Science               &  14 &   2 &  15 &   8 &  28 &   1 &  21 &   3 &   3 &   1 &    98 &   194 \\
128
Master of Applied Social Psychology     &   1 &   5 &   2 &   5 &   1 &   4 &   0 &   4 &   0 &   4 &    28 &    54 \\
129
Master of Applied Statistics            &   0 &   0 &   3 &   1 &   0 &   0 &   1 &   0 &   0 &   0 &    19 &    24 \\
130
Master of Arts                          &  37 &  49 &  26 &  43 &  14 &  42 &  14 &  56 &  13 &  44 &   994 & 1,332 \\
131
Master of Business Administration       &  14 &  16 &  23 &   6 &  33 &  12 &  33 &  11 &  33 &   8 &   818 & 1,007 \\
132
Master of Education                     & 107 &  87 & 120 &  55 & 147 &  74 & 108 &  76 & 113 &  75 & 2,603 & 3,565 \\
133
Master of Employment Relations          &   8 &   9 &   5 &   7 &   7 &  14 &   4 &   9 &   3 &   5 &    12 &    83 \\
134
Master of Engineering                   &  20 &  19 &  20 &  10 &  16 &  10 &  15 &  13 &   4 &  19 &   440 &   586 \\
135
Master of Environmental Science         &   3 &   3 &   3 &   1 &   0 &   1 &   7 &   1 &   3 &   1 &    66 &    89 \\
136
Master of Marine Studies                &   2 &   0 &   0 &   1 &   0 &   2 &   2 &   2 &   1 &   2 &    26 &    38 \\
137
Master of Music                         &   4 &   1 &   5 &   0 &   3 &   0 &   3 &   0 &   3 &   0 &     7 &    26 \\
138
Master of Nursing                       &   7 &   8 &  10 &   4 &  17 &   4 &  23 &   7 &   6 &   1 &   116 &   203 \\
139
Master of Oil and Gas Studies           &   0 &   0 &   2 &   0 &   0 &   0 &   0 &   2 &   4 &   0 &     0 &     8 \\
140
Master of Philosophy                    &   5 &   4 &   2 &   1 &   5 &   2 &   5 &   3 &   2 &   0 &   112 &   141 \\
141
Master of Physical Education            &   0 &   2 &   3 &   0 &   5 &   4 &   3 &   0 &   4 &   4 &    84 &   109 \\
142
Master of Public Health                 &   0 &   8 &   0 &   0 &   0 &   0 &   0 &   0 &   0 &   0 &     0 &     8 \\
143
Master of Science                       &  40 &  32 &  41 &  19 &  29 &  25 &  35 &  29 &  32 &  23 & 1,653 & 1,958 \\
144
Master of Science (Kinesiology)         &   1 &   0 &   4 &   2 &   1 &   2 &   2 &   6 &   4 &   3 &     0 &    25 \\
145
Master of Science (Medicine)            &  18 &   7 &  11 &   8 &  10 &   5 &   9 &   9 &   8 &   4 &     0 &    89 \\
146
Master of Science (Pharmacy)            &   0 &   0 &   1 &   1 &   0 &   0 &   0 &   0 &   1 &   0 &    16 &    19 \\
147
Master of Social Work                   &   4 &  11 &   4 &   5 &   4 &   9 &   9 &   5 &   4 &  10 &   257 &   322 \\
148
Master of Women's Studies               &   2 &   0 &   2 &   0 &   1 &   1 &   2 &   3 &   2 &   0 &    20 &    33 \\
149
\hline
150
\textbf{Total Masters}                  & 287 & 263 & 302 & 177 & 321 & 212 & 296 & 239 & 243 & 204 & 7,369 & 9,913 \\
151
\end{munltab}
152
\renewcommand{\baselinestretch}{\spacing}\normalsize

powered by: WebSVN 2.1.0

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