]> mj.ucw.cz Git - diplomky.git/blob - mff/diplomky/en/example.tex
Diplomky: Konverze do UTF-8
[diplomky.git] / mff / diplomky / en / example.tex
1 %%% Ukázka použití některých konstrukcí LaTeXu
2
3 \subsection{Ukázka \LaTeX{}u}
4 \label{ssec:ukazka}
5
6 This short subsection serves as an~example of basic \LaTeX{} constructs,
7 which can be useful for writing a~thesis.
8
9 Let us start with lists:
10
11 \begin{itemize}
12 \item The logo of Matfyz is displayed in figure~\ref{fig:mff}.
13 \item This is subsection~\ref{ssec:ukazka}.
14 \item Citing literature~\cite{lamport94}.
15 \end{itemize}
16
17 Different kinds of dashes:
18 red-black (short),
19 pages 16--22 (middle),
20 $45-44$ (minus),
21 and this is --- as you could have expected --- a~sentence-level dash,
22 which is the longest.
23 (Note that we have follwed \verb|a| by a~tilde instead of a~space
24 to avoid line breaks at that place.)
25
26 \newtheorem{theorem}{Theorem}
27 \newtheorem*{define}{Definition}        % Definice nečíslujeme, proto "*"
28
29 \begin{define}
30 A~{\sl Tree} is a connected graph with no cycles.
31 \end{define}
32
33 \begin{theorem}
34 This theorem is false.
35 \end{theorem}
36
37 \begin{proof}
38 False theorems do not have proofs.
39 \end{proof}
40
41 \begin{figure}
42         \centering
43         \includegraphics[width=30mm]{../img/logo.eps}
44         \caption{Logo of MFF UK}
45         \label{fig:mff}
46 \end{figure}