Skip to content

Commit

Permalink
Prida definiciu skolitela cez \skolitel
Browse files Browse the repository at this point in the history
  • Loading branch information
novotnyr committed Aug 16, 2020
1 parent 2af9c25 commit a2290a8
Show file tree
Hide file tree
Showing 2 changed files with 68 additions and 3 deletions.
10 changes: 7 additions & 3 deletions rnthesis.cls
Original file line number Diff line number Diff line change
Expand Up @@ -234,13 +234,17 @@ z\'{\i}skan\'ych \v{s}t\'udiom a s pomocou uvedenej literat\'ury.
}%
\newcommand{\miesto}[1]{\def\@miesto{#1}}

%veduci
%veduci/skolitel
\def\@veduci{%
\ClassError{rnthesis}%
{Neuvedeny veduci! Definujte cez \string\veduci}%
{Priklad: \string\veduci{doc. RNDr. Jozef Mak, DrSc.}}%
{Neuvedeny veduci, resp. skolitel! Definujte cez \string\veduci alebo \string\skolitel}%
{Priklad: \string\veduci{doc. RNDr. Jozef Mak, DrSc.} alebo \string\skolitel{doc. RNDr. Jozef Mak, DrSc.}}%
}
\newcommand{\veduci}[1]{\def\@veduci{#1}}
\newcommand{\skolitel}[1]{%
\renewcommand\tutorname{\v{S}kolite\v{l}}
\def\@veduci{#1}
}%

%konzultant
\let\@konzultant\relax
Expand Down
61 changes: 61 additions & 0 deletions test-cases/skolitel.tex
Original file line number Diff line number Diff line change
@@ -0,0 +1,61 @@
\documentclass{rnthesis}
\usepackage[slovak]{babel}
\usepackage[T1]{fontenc}
\usepackage[utf8]{inputenc}
\usepackage{lmodern}
\usepackage{rnt-thm}


\title{Školiteľ}
\author{Bc. Milan Makrela}
\pracovisko{Ústav informatiky}
\typprace{diplomová}
\skolitel{doc. RNDr. Jozef Mak, DrSc.}
\miesto{Košice}
\rok{2017}

\begin{document}
\maketitle
\newpage
\chapter{Tradičný Lipsum}
Lorem ipsum dolor sit amet.

\begin{equation}
P(X_n = x_n | X_{n - 1} = x_{n - 1}, X_{n - 2} = x_{n - 2}, \dots, X_0 = x_0) = P(X_n = x_n | X_{n - 1} = x_{n - 1})
\end{equation}

Iný príklad:

\begin{equation}
\int\!\!\!\int x^y\,{\rm d}x\,{\rm d}y = \int\!\!\!\int (1 + x) - (\sin^2 x + \cos^2 x)^y\,{\rm d}x\,{\rm d}y
\end{equation}

\begin{veta}[o ľuďoch]
Náhodná veličina $X$ majúca geometrické rozdelenie s parametrom $p$ vyjadruje
počet \uv{neúspechov} pred prvým úspechom pri neobmedzenej realizácii pokusov
v Bernoulliho schéme.
\end{veta}
%
\begin{dokaz}
Dôkaz prenechávame na pozorného čitateľa.
\end{dokaz}


%---------

\chapter{Dolor sit amet}
Potom môžeme usúdiť, že

\begin{equation}
\pmatrix{3 & 3\cr 1 & 2} \cdot 3
\end{equation}

\begin{veta}[tá istá ľuďoch]
Náhodná veličina $X$ majúca geometrické rozdelenie s parametrom $p$ vyjadruje
počet \uv{neúspechov} pred prvým úspechom pri neobmedzenej realizácii pokusov
v Bernoulliho schéme.
\end{veta}



\end{document}

0 comments on commit a2290a8

Please sign in to comment.