Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
U
uva
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Analytics
Analytics
CI / CD
Repository
Value Stream
Wiki
Wiki
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Taddeüs Kroes
uva
Commits
34346fcf
Commit
34346fcf
authored
Jan 06, 2011
by
Sander Mathijs van Veen
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Portfolio: Added most of the sections to report.
parent
86bee751
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
176 additions
and
19 deletions
+176
-19
portfolio/latex/Makefile
portfolio/latex/Makefile
+7
-7
portfolio/latex/graph.dot
portfolio/latex/graph.dot
+7
-1
portfolio/latex/latex-answers.tex
portfolio/latex/latex-answers.tex
+162
-11
No files found.
portfolio/latex/Makefile
View file @
34346fcf
...
@@ -13,14 +13,14 @@ compile:
...
@@ -13,14 +13,14 @@ compile:
pdflatex
-interaction
=
nonstopmode latex-answers.tex
pdflatex
-interaction
=
nonstopmode latex-answers.tex
rm
-vf
*
.log
rm
-vf
*
.log
graph
:
graph.
dot
graph
:
graph.
tex
highlight
:
foo.
py
highlight
:
foo.
tex
%.py
:
%.tex
foo.tex
:
foo.py
pygmentize
-O
style
=
colorful
-o
$
^
$@
pygmentize
-O
style
=
colorful
-o
$
@
$^
%.dot
:
%.tex
graph.tex
:
graph.dot
dot2tex
-
-autosize
--usepdflatex
$@
|
\
dot2tex
-
t
math
$^
|
\
sed
's/\\\(use\|enl\|doc\|page\|\(end\|begin\){doc\).*//'
>
$
^
sed
's/\\\(use\|enl\|doc\|page\|\(end\|begin\){doc\).*//'
>
$
@
portfolio/latex/graph.dot
View file @
34346fcf
digraph
A
{
digraph
A
{
node
[
label
=
"$q_0$"
]
q_0
;
q_0
->
q_1
;
q_0
->
q_1
;
q_1
->
q_1
;
q_1
->
q_1
;
q_1
->
q_2
;
q_1
->
q_2
;
q_2
->
q_0
;
q_2
->
q_0
;
q_3
->
q_4
;
q_4
->
q_4
;
q_4
->
q_7
;
q_3
->
q_6
;
q_6
->
q_7
;
q_7
->
q_3
;
}
}
portfolio/latex/latex-answers.tex
View file @
34346fcf
...
@@ -3,6 +3,9 @@
...
@@ -3,6 +3,9 @@
\usepackage
{
listings
}
\usepackage
{
listings
}
\usepackage
{
hyperref
}
\usepackage
{
hyperref
}
\usepackage
{
amsmath
}
\usepackage
{
amsmath
}
\usepackage
{
appendix
}
\usepackage
{
booktabs
}
% Graphviz graph (using tikz)
% Graphviz graph (using tikz)
\usepackage
[x11names, rgb]
{
xcolor
}
\usepackage
[x11names, rgb]
{
xcolor
}
...
@@ -25,6 +28,16 @@
...
@@ -25,6 +28,16 @@
\begin{document}
\begin{document}
\maketitle
\maketitle
\begin{abstract}
This assignment is about practising with the
\LaTeX
{}
typesetting system. This
assignment should at least contain an abstract (this), table of content (below
on this page), different sections, some source code, a graph, a table, a
mathematical equation (including a theorem and proof), footnotes, hyperlinks, a
quotation, a reference to an existing scientific article and, last by not least,
should use BibTeX.
\end{abstract}
\tableofcontents
\tableofcontents
\pagebreak
\pagebreak
...
@@ -32,11 +45,66 @@
...
@@ -32,11 +45,66 @@
\section
{
Basic typography
}
% {{{
\section
{
Basic typography
}
% {{{
\label
{
sec:Basic typography
}
\label
{
sec:Basic typography
}
% abstract
\subsection
{
Ordered and unordered list
}
% {{{
% table of contents
\label
{
sub:Ordered and unordered list
}
% list
% footnote
Let's start with an example of an unordered list containing the names of some
% hyperlink
``randomly chosen'' countries.
\begin{itemize}
\item
The Netherlands.
\item
Belgium.
\item
Germany.
\item
England.
\item
France.
\end{itemize}
\noindent
And an ordered list, which is used when the order matters.
\begin{enumerate}
\item
First item.
\item
Second item.
\item
Third item, which is
\\
splitted into two lines.
\item
Fourth and last item.
\end{enumerate}
% }}}
\subsection
{
Footnotes and hyperlinks
}
% {{{
\label
{
sub:Footnotes and hyperlinks
}
When writing an article, it is sometimes unclear if the audience of the article
understands every detail. Therefore, it is wise to add additional information
(or the address of a web page containing additional information) about details
inside footnotes
\footnote
{
This is an example of a footnote in
\LaTeX
{}
.
}
.
Manuals contain often hyperlinks to introduce a subject, which is out of the
scope of the manual. This is a hyperlink to Google's homepage:
\url
{
http://www.google.com
}
, which will help while writing an advanced
\LaTeX
{}
document.
% }}}
\subsection
{
Quotation and references
}
% {{{
\label
{
sub:Quotation and references
}
It is possible that another author wrote a brilliant text about your subject. It
is even so brilliant that describes everything and your description would be
fuzzy compared to his description. That could be a reason to quote the relevant
part of his text.
\footnote
{
Note: Plagiarism looks like quoting but is in fact
very different. Plagiarism is when someone is quoting, for example, an entire
article, without mentioning the source of the article. I would call it stealing,
but that is just my humble opinion.
}
This a quote of the famous Linus Torvalds, which is one the reason why I choose
to study Computer Science:
\begin{quote}
\emph
{
``Most good programmers do programming not because they
expect to get paid or get adulation by the public, but because it is fun to
program.''
$
-
$
Linus Torvalds
}
\end{quote}
% }}}
% quotation
% quotation
% reference to existing article.
% reference to existing article.
% BibTex
% BibTex
...
@@ -50,7 +118,7 @@ One of the requirements of this assignment is demonstrating some (highlighted)
...
@@ -50,7 +118,7 @@ One of the requirements of this assignment is demonstrating some (highlighted)
pseudo code, therefore I took the initiative to write some example python code
pseudo code, therefore I took the initiative to write some example python code
used for this demonstration.
used for this demonstration.
\begin{program}
% {{{
\begin{program}
[H]
% {{{
\label
{
lst-example-foo
}
\label
{
lst-example-foo
}
...
@@ -78,29 +146,52 @@ overall compilation process.
...
@@ -78,29 +146,52 @@ overall compilation process.
\subsection
{
Look all those tables!
}
% {{{
\subsection
{
Look all those tables!
}
% {{{
\label
{
sub:Look, it's a table!
}
\label
{
sub:Look, it's a table!
}
\begin{table}
[H]
\begin{table}
[H]
\centering
\begin{tabular}
{
|l|l|l|
}
\hline
\begin{tabular}
{
|l|l|l|
}
\hline
$
r
_
1
c
_
1
$
&
$
r
_
1
c
_
2
$
&
$
r
_
1
c
_
3
$
\\
\hline
$
r
_
1
c
_
1
$
&
$
r
_
1
c
_
2
$
&
$
r
_
1
c
_
3
$
\\
\hline
$
r
_
2
c
_
1
$
&
$
r
_
2
c
_
2
$
&
$
r
_
2
c
_
3
$
\\
\hline
$
r
_
2
c
_
1
$
&
$
r
_
2
c
_
2
$
&
$
r
_
2
c
_
3
$
\\
\hline
$
r
_
3
c
_
1
$
&
$
r
_
3
c
_
2
$
&
$
r
_
3
c
_
3
$
\\
\hline
$
r
_
3
c
_
1
$
&
$
r
_
3
c
_
2
$
&
$
r
_
3
c
_
3
$
\\
\hline
\end{tabular}
\end{tabular}
\caption
{
Basic table with three columns and rows
}
\caption
{
Basic table with three columns and rows
.
}
\end{table}
\end{table}
\begin{table}
[H]
\begin{table}
[H]
\centering
\begin{tabular}
{
|l|ll|
}
\hline
\begin{tabular}
{
|l|ll|
}
\hline
$
r
_
1
c
_
1
$
&
$
r
_
1
c
_
2
$
&
$
r
_
1
c
_
3
$
\\
\hline
$
r
_
1
c
_
1
$
&
$
r
_
1
c
_
2
$
&
$
r
_
1
c
_
3
$
\\
\hline
$
r
_
2
c
_
1
$
&
$
r
_
2
c
_
2
$
&
$
r
_
2
c
_
3
$
\\
\cline
{
2-3
}
$
r
_
2
c
_
1
$
&
$
r
_
2
c
_
2
$
&
$
r
_
2
c
_
3
$
\\
\cline
{
2-3
}
$
r
_
3
c
_
1
$
&
$
r
_
3
c
_
2
$
&
$
r
_
3
c
_
3
$
\\
\hline
$
r
_
3
c
_
1
$
&
$
r
_
3
c
_
2
$
&
$
r
_
3
c
_
3
$
\\
\hline
\end{tabular}
\end{tabular}
\caption
{
Basic table with three columns and rows
}
\caption
{
Basic table with three columns and rows.
}
\end{table}
\begin{table}
[H]
\begin{tabular}
{
@
{}
rrrrcrrrcrrr@
{}}
\toprule
&
\multicolumn
{
3
}{
c
}{$
w
=
8
$}
&
\phantom
{
abc
}&
\multicolumn
{
3
}{
c
}{$
w
=
16
$}
\\
\cmidrule
{
2-4
}
\cmidrule
{
6-8
}
\cmidrule
{
10-12
}
&
$
t
=
0
$
&
$
t
=
1
$
&
$
t
=
2
$
&&
$
t
=
0
$
&
$
t
=
1
$
&
$
t
=
2
$
\\\midrule
$
dir
=
1
$
\\
$
c
$
&
0.0790
&
0.1692
&
0.2945
&&
0.3670
&
0.7187
&
3.1815
\\
$
c
$
&
-0.8651
&
50.0476
&
5.9384
&&
-9.0714
&
297.0923
&
46.2143
\\
$
c
$
&
124.2756
&
-50.9612
&
-14.2721
&&
128.2265
&
-630.5455
&
-381.0930
\\
$
dir
=
0
$
\\
$
c
$
&
0.0357
&
1.2473
&
0.2119
&&
0.3593
&
-0.2755
&
2.1764
\\
$
c
$
&
-17.9048
&
-37.1111
&
8.8591
&&
-30.7381
&
-9.5952
&
-3.0000
\\
$
c
$
&
105.5518
&
232.1160
&
-94.7351
&&
100.2497
&
141.2778
&
-259.7326
\\
\bottomrule
\end{tabular}
\caption
{
Example table using the
\texttt
{
booktabs
}
package.
}
\end{table}
\end{table}
% }}}
% }}}
\subsection
{
Graph (GraphViz to PSTikz)
}
% {{{
\subsection
{
Graph (GraphViz to PSTikz)
}
% {{{
\label
{
sub:Graph-GraphViz-to-PSTikz
}
\label
{
sub:Graph-GraphViz-to-PSTikz
}
% \input{graph}
\begin{figure}
[H]
\input
{
graph
}
\caption
{
Two graphs, written in GraphViz'
\texttt
{
dot
}
and generated using
\texttt
{
dot2tex
}
.
}
\end{figure}
% }}}
% }}}
% }}}
% }}}
...
@@ -108,7 +199,67 @@ $r_3c_1$ & $r_3c_2$ & $r_3c_3$ \\ \hline
...
@@ -108,7 +199,67 @@ $r_3c_1$ & $r_3c_2$ & $r_3c_3$ \\ \hline
\section
{
Mathematics
}
% {{{
\section
{
Mathematics
}
% {{{
\label
{
sec:Mathematics
}
\label
{
sec:Mathematics
}
\subsection
{
Example matrix
}
% {{{
\label
{
sub:Example matrix
}
Matrix A is an
$
M
\times
N
$
matrix, which is written as
\[
\left
(
\begin
{
array
}{
cccc
}
\alpha
_{
0
,
0
}
&
\alpha
_{
0
,
1
}
&
\cdots
&
\alpha
_{
0
,n
-
1
}
\\
\alpha
_{
1
,
0
}
&
\alpha
_{
1
,
1
}
&
\cdots
&
\alpha
_{
1
,n
-
1
}
\\
\vdots
&
\vdots
&
\ddots
&
\vdots
\\
\alpha
_{
m
-
1
,
0
}
&
\alpha
_{
m
-
1
,
1
}
&
\cdots
&
\alpha
_{
m
-
1
,n
-
1
}
\end
{
array
}
\right
)
\]
% }}}
\subsection
{
Equations
}
% {{{
\label
{
sub:Equations
}
\LaTeX
{}
makes it possible to write equations (with for example sub and
superscript, braces and summations) easily.
\[
\left
|
\sum
_{
i
=
1
}^
n a
_
ib
_
i
\right
|
\le
\left
(
\sum
_{
i
=
1
}^
n a
_
i
^
2
\right
)
^{
1
/
2
}
\left
(
\sum
_{
i
=
1
}^
n b
_
i
^
2
\right
)
^{
1
/
2
}
\]
And it is possible to break the equation into smaller, numbered parts.
\begin{align}
(a+b)
^
3
&
= (a+b)
^
2(a+b)
\\
&
=(a
^
2+2ab+b
^
2)(a+b)
\\
&
=(a
^
3+2a
^
2b+ab
^
2) + (a
^
2b+2ab
^
2+b
^
3)
\\
&
=a
^
3+3a
^
2b+3ab
^
2+b
^
3
\end{align}
% }}}
\subsection
{
Mathematical Theorem
}
% {{{
\label
{
sub:Mathematical Theorem
}
% }}}
% }}}
\begin{appendices}
\pagebreak
\section
{
Example appendix
}
% {{{
\label
{
sec:Example
}
Additional information (or information which will fill many pages) is in most
cases added at the end of a document in the Appendix. This is just an example,
but without any additional information :-).
% }}}
% }}}
\end{appendices}
\end{document}
\end{document}
% vim: foldmethod=marker:
% vim: foldmethod=marker:
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment