Platon Technologies
not logged in Login Registration
EnglishSlovak
open source software development celebrating 10 years of open source development! Tuesday, October 22, 2019

File: [Platon] / doc / diplomova-praca-rajo / diplomovka.sty (download)

Revision 1.1, Thu Jul 24 17:50:07 2003 UTC (16 years, 3 months ago) by rajo

Diploma Thesis of Lubomir Host.
Title: Metoda Monte Carlo vo fyzike nizkoteplotnej plazmy. (Slovak language)

%
% 'diplomovka.sty' created: Tue Dec 10 16:12:05 CET 2002
%
% Developed by Lubomir Host 'rajo' <rajo AT platon.sk>
% Copyright (c) 2003 Platon SDG
% Licensed under terms of GNU General Public License.
% All rights reserved.
%

% $Platon$

\ProvidesPackage{diplomovka}

%% zapis podrobnejsich informacii o strankovych zlomoch do *.log suboru
%\tracingpages=1

% Check if we're using pdflatex or plain latex 
% http://www.cmp.liv.ac.uk/misc/guide/linux_guide/node133.html
\usepackage {ifpdf} 
\ifpdf %% /*
    \usepackage [pdftex]{graphicx} 
    % \usepackage {thumbpdf} 
    \pdfoutput=1 
    \pdftrue 
    \usepackage[pdftex, 
        pdftitle={Metóda Monte Carlo vo fyzike nízkoteplotnej plazmy}, 
        pdfauthor={Lubomir Host}, 
        colorlinks={true}, 
        a4paper, 
        pdfsubject={}, 
        pagebackref={true}, 
        linktocpage, 
        urlcolor={blue}, 
        citecolor={blue}, 
        unicode={true}]{hyperref} 
    \pdfcompresslevel=9
    \pdfinfo{
        /CreationDate (/04/2003) 
        /ModDate (\the\day. \the\month. \the\year)
        /Keywords (Monte Carlo, simulations, plazma, plasma, LaTeX, TeX,
        source code, programming)
    }
\else 
    \usepackage [dvips]{graphicx} 
    \pdffalse 
    % Pouzitie balika hyperref sposobuje ZLE zarovnanie obsahu !!
    %\usepackage [dvips]{hyperref}
\fi %% */

%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
%%
%% Definicie nejakych klucovych slov
%%

% znak <C-L> (ASCII = 12) zadefinujeme ako komentar. <C-L> pouziva vim
% ako separator sekcii, teda ich mozno dobre formatovat prikazom na
% formatovanie paragrafu 'gqap' (vo vime: tam kde zacia sekcia, zacina
% aj paragraf)
\catcode12=14 % kategoria 14 = komentar

\def\stvorcek#1{% stvorcek premmennej velkosti v mieste indskip
    \hbox {\vrule height#1pt depth0pt width#1pt \hss}}
\def\nadnadpis#1#2#3\par{%
    \bigskip%
    \nopagebreak%
        \let\makelabel\descriptionlabel\item[\stvorcek{#1}] {#2\textbf{#3}}%
    \nopagebreak%
    \par \medskip \nopagebreak%
}
\def\nadpis#1{\nadnadpis{11}{\Large}{#1}}
\def\podnadpis#1{\nadnadpis{9}{\large}{#1}}
\def\podpodnadpis#1{\nadnadpis{7}{\normalsize}{#1}}

\def\bod#1{{\textbf{\Large{#1}} }}
\def\podbod#1{\item #1}

%%
%% Matematicke definicie
%%
%% /*

% stredne hodnoty
\def\<#1>{\ensuremath{\langle#1\rangle}}
\def\meanlambda{\langle\lambda\rangle}
% jedna polovica
\def\polovica{\frac{1}{2}}
%
% kotangens
\def\cotg{\ensuremath{\mathrm{\cot}}}
\def\cosec{\ensuremath{\mathrm{\csc}}}
\def\arctg{\ensuremath{\mathrm{\arctan}}}
\def\sgn{\ensuremath{\mathrm{sgn}}}
\def\Heaviside(#1){\ensuremath{\Theta(#1)}}
\def\Dirac(#1){\ensuremath{\delta(#1)}}
\def\erf(#1){\ensuremath{\mathrm{erf}(#1)}}
\def\erfc(#1){\ensuremath{\mathrm{erfc}(#1)}}

% znak integracnych medzi pri symbole integralu umiestnime nad a pod
% symbol
\def\Int{\int\limits }

% obycajnu derivaciu piseme ako \Deriv{funkc}{time}
\def\Deriv#1#2{\frac{\d #1}{\d #2}}
%diferencial v integraloch a pod: \int_0^1 f(x) \d x
\def\d{\ensuremath{\;{\rm d}}}

% parcialnu derivaciu budeme pisat ako \Partial{funkc}{time}
\def\Partial#1#2{\frac{\partial #1}{\partial #2}}

\def\vektor#1{\ensuremath{\mathbf{#1}}}
\def\vector#1{\ensuremath{\mathbf{#1}}}
\def\oper#1{\ensuremath{\mathsf{#1}}}


%\def\logic#1{\ensuremath{\quad\mathrm{#1}\quad}}
%\def\AND{\logic{AND}}
%\def\OR{\logic{OR}}
\def\AND{\;\wedge\;}
\def\OR{\;\vee\;}

% Jednotky v matematickom mode: /*
\def\jednotka#1{\ensuremath{\;\mathrm{#1}}}

\def\m{\ensuremath{\;\mathrm{m}}}
\def\meter{\ensuremath{\;\mathrm{m}}}
\def\mm{\ensuremath{\;\mathrm{mm}}}
\def\nm{\ensuremath{\;\mathrm{nm}}}
\def\cm{\ensuremath{\;\mathrm{cm}}}

\def\Hz{\ensuremath{\;\mathrm{Hz}}}
\def\kHz{\ensuremath{\;\mathrm{kHz}}}
\def\MHz{\ensuremath{\;\mathrm{MHz}}}
\def\GHz{\ensuremath{\;\mathrm{GHz}}}

\def\s{\ensuremath{\;\mathrm{s}}}
\def\sekunda{\ensuremath{\;\mathrm{s}}}
\def\ms{\ensuremath{\;\mathrm{ms}}}
\def\mus{\ensuremath{\;\mathrm{\mu s}}}

\def\kg{\ensuremath{\;\mathrm{kg}}}

\def\eV{\ensuremath{\;\mathrm{eV}}}            % elektronvolt
\def\Coulomb{\ensuremath{\;\mathrm{C}}}        % coulomb
\def\C{\ensuremath{\;\mathrm{C}}}            % coulomb

\def\F{\ensuremath{\;\mathrm{F}}}            % farad
\def\pF{\ensuremath{\;\mathrm{pF}}}

\def\V{\ensuremath{\;\mathrm{V}}}
\def\kV{\ensuremath{\;\mathrm{kV}}}
\def\mV{\ensuremath{\;\mathrm{mV}}}
\def\nV{\ensuremath{\;\mathrm{nV}}}

\def\A{\ensuremath{\;\mathrm{A}}}
\def\kA{\ensuremath{\;\mathrm{kA}}}
\def\mA{\ensuremath{\;\mathrm{mA}}}
\def\miA{\ensuremath{\;\mathrm{\mu A}}}
\def\nA{\ensuremath{\;\mathrm{nA}}}
\def\pA{\ensuremath{\;\mathrm{pA}}}
\def\fA{\ensuremath{\;\mathrm{fA}}}

\def\J{\ensuremath{\;\mathrm{J}}}
\def\kJ{\ensuremath{\;\mathrm{kJ}}}            
\def\MJ{\ensuremath{\;\mathrm{MJ}}}            % megajoule

\def\K{\ensuremath{\;\mathrm{K}}}            % Kelvin
\def\Kelvin{\ensuremath{\;\mathrm{K}}}            % Kelvin

\def\Torr{\ensuremath{\;\mathrm{Torr}}}        % Torr
\def\Pa{\ensuremath{\;\mathrm{Pa}}}
\def\kPa{\ensuremath{\;\mathrm{kPa}}}

\def\dB{\ensuremath{\;\mathrm{dB}}}

\def\TOhm{\ensuremath{\;\mathrm{T\Omega}}}

\def\fS{\ensuremath{\;\mathrm{fS}}}            % femto siemens (vodivost)
\def\fSiemens{\ensuremath{\;\mathrm{fS}}}    % femto siemens (vodivost)
\def\Siemens{\ensuremath{\;\mathrm{S}}}        % siemens (vodivost)

% */ jednotky

%% 
%% Pouzitie:
%%           \cislo 1.234245         --> 1.234245
%%           \cisloexp 1.123414^6    --> 1.123414 10^6
%%
\def\cislo#1.#2{\ensuremath{#1.#2}}
\def\cisloexp#1.#2^#3{\cislo #1.#2\ensuremath{\times10^{#3}}}

%% */


%%
%% Referencie
%%
% rovnice
\def\vztah#1{(\ref{#1})}
\def\rov#1{(\ref{#1})}
\def\refeq#1{(\ref{#1})}
% obrazky
\def\refimage#1{\ref{#1}}
% kapitoly
\def\refchapter#1{\ref{#1}}
%\def\urlcite#1{}
\def\urlcite#1{~\cite{#1}}

% cisla riadkov -- aby som ich nemusel v kuse prepisovat pri kazdom posuve, mame makro
%%\newcount\tempnum
%%% 19 riadkov je na zaciatku suboru 07-prilohy.tex do 1. riadku zdrojoveho kodu
%%\def\linenumber#1{\tempnum=#1 \advance\tempnum-19 \the\tempnum}

% load references generated from C source code
\input{hotGas.c.LINENUM}
\let\ex\expandafter
\def\linenumber#1{\csname LINE#1\endcsname--\mbox{[LINE #1]}}


%%
%% Images
%%
%% \inputImage{label}{width}{file}{caption}
%% \inputImage /*
\newcommand{\inputImage}[5][tb]{%
\begin{figure}[#1]%
    \begin{center}%
        \includegraphics[width=#3]{#4}%
        \caption{#5}%
        \label{#2}%
    \end{center}%
\end{figure}%
}

%% */
%% \inputTwoImages /*
\newcommand{\inputTwoImages}[5][bt]{%
\begin{figure}[#1]%
    \begin{center}%
%        \framebox{%
        \raisebox{0pt}[0.5\height][0pt]{%
            \includegraphics[width=#3]{#4}%
        }%
%        }%
        \caption{#5}%
        \label{#2}%
    \end{center}%
\end{figure}%
}

%% */
%% \inputTwoImagesDown /*
\newcommand{\inputTwoImagesDown}[6][tb]{%
\begin{figure}[#1]%
    \begin{center}%
%        \framebox{%
        \raisebox{0pt}[#6\height][0pt]{%
            \includegraphics[width=#3]{#4}%
        }%
%        }%
        \caption{#5}%
        \label{#2}%
    \end{center}%
\end{figure}%
}

%% */
%% \inputTwoImagesUp /*
\newcommand{\inputTwoImagesUp}[5][tb]{%
\begin{figure}[#1]%
    \begin{center}%
%        \framebox{%
        \raisebox{-0.5\height}[0.5\height][0pt]{%
            \includegraphics[width=#3]{#4}%
        }%
%        }%
        \caption{#5}%
        \label{#2}%
    \end{center}%
\end{figure}%
}

%% */


%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
%% 
%% Styl stranky
%%
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%

%%
%% Nastavenie rozmerov 
%%
\@ifclassloaded{report}{%
    \voffset=-1in        % default 0pt
    \topmargin=2.3cm     % default 20pt = 0.7cm
    %\hoffset=-1in       % default 0pt
    \textwidth=16cm      % default 390pt = 13.71cm
    \textheight=23cm     % default 592pt = 20.8cm
    \oddsidemargin=4.6mm  % default 31pt = 1.1cm
    \evensidemargin=4.6mm % default 31pt = 1.1cm
    \unitlength=1mm      % default  1pt
    \abovecaptionskip=5pt
}

% vyskyt "vdov" a "sirôtok"
\clubpenalty=10000 % sirôtky - 1. a 2. riadok
\widowpenalty=10000 % vdova - posledny riadok odstavca
\interlinepenalty=10 % lepsie je zlomit medzi odstavcami

% vypis jednotiek:
{\newlinechar`\^^J % prinutime ho oddelovat spravy novym riadkom
\message{^^J^^J}
\message{Nastavenie rozmerov:^^J}
\message{---------------------------^^J}
\message{voffset          = \the\voffset^^J}
\message{hoffset          = \the\hoffset^^J}
\message{textwidth        = \the\textwidth^^J}
\message{textheight       = \the\textheight^^J}
\message{oddsidemargin    = \the\oddsidemargin^^J}
\message{evensidemargin   = \the\evensidemargin^^J}
\message{topmargin        = \the\topmargin^^J}
\message{unitlength       = \the\unitlength^^J}
\message{parindent        = \the\parindent^^J}
\message{parskip          = \the\parskip^^J}
\message{abovecaptionskip = \the\abovecaptionskip^^J}
\message{belowcaptionskip = \the\belowcaptionskip^^J}
\message{---------------------------^^J^^J}
}

% riadkovanie
%\linespread{1.3}

% neodsadzovat zaciatok odstavca, medzera medzi odstavcami
\setlength{\parindent}{0pt}
\setlength{\parskip}{\medskipamount}

%%
%% Styl hlaviciek
%%
%% set fancy header only in 'report' style
% /*
\def\setAppendixHeader{} % in style 'report' redefined 
\@ifclassloaded{report}{%
    \fancypagestyle{diplomovkaPageStyle}{%
        %\fancyhf{} % clear all header and footer fields
        \fancyhead[L]{% left side of header
            \leftmark}
        \fancyhead[R]{% right side of header
            \thepage}
        \fancyfoot{} % remove footer
        \renewcommand{\headrulewidth}{0.4pt}
        %\renewcommand{\footrulewidth}{0.4pt}
        \addtolength{\headheight}{3.1pt}
        %\renewcommand{\footrulewidth}{0pt}
    }
    \pagestyle{diplomovkaPageStyle}
    %\renewcommand{\chaptermark}[1]{\markboth{Kapitola \thechapter. -- #1}{}}
    %\renewcommand{\sectionmark}[1]{\markright{\thesection\ #1}}
    \renewcommand{\sectionmark}[1]{\markboth{\textbf{\thesection\ #1}}{}}
    \renewcommand{\chaptermark}[1]{\markboth{\textbf{\thechapter\ #1}}{}}
    \def\setAppendixHeader{%
        \renewcommand{\chaptermark}[1]{\markboth{\textbf{\appendixname~\thechapter:\ ##1}}{}}%
    }%
}
% */


%%
%% Styl citacii
%%
%% \bibauthor \bibwork /*
\newcommand{\bibauthor}[1]{\textsc{#1}}
\newcommand{\bibwork}[1]{\textit{#1}}
%% */


% Viacriadkova rovnica sa sadza cez prostredie 'eqnarray'
% - nastavenie sirky medzi stlpcami
%\setlength\arraycolsep{2pt}


%%
%% Sadzanie zdrojoveho kodu jazyka C -- makro podla knihy
%% P.Olsak: TeXbook naruby, str. 29
%%
%% Rozsirenie:
%% -- podpora indentovania: <Tab> sa sadza ako 4 medzery
%% -- pridavanie referencii na dane cislo riadku
%% -- sadzanie viacerych znakov '--' ako dva znaky minus (nie ako pomlcky)
%% \beginCsource /*

%\def\setverb{\def\do##1{\catcode`##1=12}\dospecials}
%\def\begtt{\par\bgroup \setverb\obeyspaces\obeylines\startverb}
%{\catcode`\|=0 \catcode`\\=12
%|gdef|startverb#1\endtt{|tt#1|egroup}}

\newcount\linenum
\let\znakminus=-
{\obeyspaces\catcode9=13% pozor! tuto menim tabulator na aktivny znak !!
\catcode`-=13
\gdef\activespace{\obeyspaces\let =\ \catcode`-=13\def-{\znakminus{}}\catcode9=13\def    {\ \ \ \ }}}% a tuto do tokenu '<Tab>' priradzujem medzery
\def\setverb{\def\do##1{\catcode`##1=12}\dospecials\catcode9=13}
\def\beginCsource#1{\parskip=0.0pt plus 1.0pt \scriptsize \par\bgroup \setverb \activespace
    \everypar={\label{\the\linenum} \global\advance\linenum1 \llap{\the\linenum\quad}}
    \def\par##1{\endgraf\ifx##1\par\leavevmode\fi ##1}
    \obeylines \startverb}
{\catcode`\|=0 \catcode`\\=12
|gdef|startverb#1\endCsource{|tt#1|egroup}}

%% */
\def\code#1{\texttt{#1}}

%%
%% Slovenske/ceske uvodzovky:
%% 
%% Pouzitie: \uv{slovo}
%% zdroj: texmf/tex/csplain/czech.sty
%% /*
%% KOREKCIA: v definicii \clqq bolo povodne \kern 0.1em, co davalo
%%           malu medzeru medzi zaciatok uvodzoviek a 1. pismenko
%%           Povodna definicia sa dostane zamenou 0.05 --> 0.1
\newif\iflte
\DeclareTextCommandDefault\clqq{\leavevmode
  \set@low@box{''}%
  \setbox1=\hbox{l\/}\dimen1=\wd1
  \setbox1=\hbox{l}\advance\dimen1 by -\wd1
  \ifdim\dimen1>0pt\kern-.05em\box0\kern.05em
    \else\kern.05em\box0\kern-.05em\fi\nobreak\hskip0pt}
\DeclareTextCommandDefault\crqq{\edef\@SF{\spacefactor\the\spacefactor}%
  \nobreak\kern-.07em\hbox{``}\kern.07em\@SF\relax}
\def\set@low@box#1{\setbox2=\hbox{,}\setbox0=\hbox{#1}%
  \dimen0=\ht0 \advance\dimen0 by -\ht2
  \setbox0=\hbox{\lower\dimen0 \box0}\ht0=\ht2\dp0=\dp2}
\DeclareRobustCommand\clq{\leavevmode\set@low@box{\char'047 }%
  \box0 \kern.04em\nobreak\hskip0pt\relax}
\DeclareRobustCommand\crq{{\edef\@SF{\spacefactor\the\spacefactor}%
  \nobreak\char'140 \kern.17em\@SF\relax}}
\iflte
  \DeclareTextCommand{\clqq}{T1}{\leavevmode\kern.05em
    \char18 \kern-.0158em\nobreak\hskip0pt}
  \DeclareTextCommand{\crqq}{T1}
    {{\edef\@SF{\spacefactor\the\spacefactor}%
      \nobreak\kern.06em \char16 \kern.024em \@SF\relax}}
\fi
\iflte\else\let\if@compatibility=\iffalse{\let\fi=\fi}\fi
\ifx\cs@olduv\undefined
  \iflte
    \if@compatibility
      \DeclareRobustCommand\uv{\bgroup\aftergroup\closequotes
        \leavevmode\clqq\let\next=}
    \else
      \DeclareRobustCommand\uv[1]{{\leavevmode\clqq#1\crqq}}
    \fi
  \else
    \ifx\uv\undefined
      \def\uv{\bgroup\aftergroup\closequotes
        \leavevmode\clqq\let\next=}
    \fi
  \fi
\else
  \DeclareRobustCommand\uv{\bgroup\aftergroup\closequotes
    \leavevmode\clqq\let\next=}
\fi
\def\closequotes{\unskip\crqq\relax}
%% */



% fonty:
%\tiny         drobný font
%\scriptsize   velmi malý font
%\footnotesize dosť malý font
%\small        malý font
%\normalsize   normálny font
%\large        velký font
%\Large        väčší font
%\LARGE        velmi velký font
%\huge         obrovský font
%\Huge         najväčší font


% vim: ts=4
% vim600: fdl=0 fdm=marker fdc=3 fmr=/*,*/ tw=130


Platon Group <platon@platon.org> http://platon.org/
Copyright © 2002-2006 Platon Group
Site powered by Metafox CMS
Go to Top