X-Git-Url: http://svarog.pmf.uns.ac.rs/gitweb/?p=os2skripta.git;a=blobdiff_plain;f=skripta-os2.tex;fp=skripta-os2.tex;h=a1a400225fa9804a0190ab3c736b62afe03a221d;hp=53929102384f0add3634805d9823273cecb586d0;hb=a864d5cf6af89c754883ad9387f60701c35e3118;hpb=640751bc70f1303b2bb466101374f5270e22b4df diff --git a/skripta-os2.tex b/skripta-os2.tex index 5392910..a1a4002 100644 --- a/skripta-os2.tex +++ b/skripta-os2.tex @@ -72,76 +72,6 @@ pdfauthor={\autor}% %margine \usepackage[top=2cm, bottom=2cm, left=2.5cm, right=2cm]{geometry} -\begin{document} - -%customize the itemize environments - -\let\olditemize=\itemize -\def\itemize{ -\olditemize - \setlength{\itemsep}{1pt} - \setlength{\parskip}{0pt} - \setlength{\parsep}{0pt} - \setlength{\topsep}{-1cm} - -} - -%% ovi redovi daju header i footer - -\renewcommand{\sectionmark}[1]{\markright{\thesection\ #1}} -\fancyhf{} % delete current setting for header and footer -%\fancyfoot[C]{\thepage} - -\fancyhead[LO]{\bfseries\rightmark} -\fancyhead[RO]{\thepage} - -\fancyhead[RE]{Operativni sistemi 2 -- skripta} -\fancyhead[LE]{\thepage} - -\renewcommand{\headrulewidth}{0.5pt} -\renewcommand{\headwidth}{\textwidth} - -%\renewcommand{\footrulewidth}{0.5pt} -%\addtolength{\headheight}{0.5pt} % make space for the rule -\fancypagestyle{plain}{% - \fancyhead{} % get rid of headers on plain pages - \fancyfoot{} - \renewcommand{\headrulewidth}{0pt} % and the line - \renewcommand{\footrulewidth}{0pt} % and the line -} -\renewcommand{\headheight}{15pt} - -%promene u marginama: -%\setlength{\marginparwidth}{32pt} -%\setlength{\textwidth}{620pt} -%\setlength{\textheight}{620pt} - - -%% specijalni blokovi koji služe kao podsetnici u radu ili napomene -\newcommand{\skica}[1]{ - \noindent \framebox{\parbox[c]{0.9\textwidth}{ {\small** \textit{#1} }} - \newline } -} - -\newcommand{\skicas}[1]{ - \framebox{* \textit{#1} *} -} - -%boldovane skice visokog prioriteta -\newcommand{\skicab}[1]{ - \noindent \framebox{\parbox[c]{0.9\textwidth}{ {\small*** - \textbf{#1} }} \newline } } - -\newcommand{\kod}[1]{{\small\texttt{#1}}} - -% ako je sledeci red odkomentarisan nista od skica nece biti ispisano -% u finalni dokument - - \renewcommand{\skica}[1]{} - - -\maketitle - % theorems, definition etc. %'''''''''''''''''''''''''' @@ -195,6 +125,78 @@ pdfauthor={\autor}% \lstnewenvironment{codeblock-indent}[1][]{\lstset{style=codeblock-indent,#1}}{} \lstnewenvironment{terminal}{\lstset{style=terminal}}{} +%% specijalni blokovi koji služe kao podsetnici u radu ili napomene +\newcommand{\skica}[1]{ + \noindent \framebox{\parbox[c]{0.9\textwidth}{ {\small** \textit{#1} }} + \newline } +} + +\newcommand{\skicas}[1]{ + \framebox{* \textit{#1} *} +} + +%boldovane skice visokog prioriteta +\newcommand{\skicab}[1]{ + \noindent \framebox{\parbox[c]{0.9\textwidth}{ {\small*** + \textbf{#1} }} \newline } } + +\newcommand{\kod}[1]{{\small\texttt{#1}}} + +% ako je sledeci red odkomentarisan nista od skica nece biti ispisano +% u finalni dokument + + \renewcommand{\skica}[1]{} + +%customize the itemize environments + +\let\olditemize=\itemize +\def\itemize{ +\olditemize + \setlength{\itemsep}{1pt} + \setlength{\parskip}{0pt} + \setlength{\parsep}{0pt} + \setlength{\topsep}{-1cm} + +} + \begin{document} + + +%% ovi redovi daju header i footer + +\renewcommand{\sectionmark}[1]{\markright{\thesection\ #1}} +\fancyhf{} % delete current setting for header and footer +%\fancyfoot[C]{\thepage} + +\fancyhead[LO]{\bfseries\rightmark} +\fancyhead[RO]{\thepage} + +\fancyhead[RE]{Operativni sistemi 2 -- skripta} +\fancyhead[LE]{\thepage} + +\renewcommand{\headrulewidth}{0.5pt} +\renewcommand{\headwidth}{\textwidth} + +%\renewcommand{\footrulewidth}{0.5pt} +%\addtolength{\headheight}{0.5pt} % make space for the rule +\fancypagestyle{plain}{% + \fancyhead{} % get rid of headers on plain pages + \fancyfoot{} + \renewcommand{\headrulewidth}{0pt} % and the line + \renewcommand{\footrulewidth}{0pt} % and the line +} +\renewcommand{\headheight}{15pt} + +%promene u marginama: +%\setlength{\marginparwidth}{32pt} +%\setlength{\textwidth}{620pt} +%\setlength{\textheight}{620pt} + + + + +\maketitle + + % ----------------==================-------------------------------------- % Pravi pocetak rada