From: Doni Pracner Date: Sat, 31 Mar 2018 20:13:51 +0000 (+0200) Subject: Premestanje nekih delova da moze lakse region da se kompajlira. X-Git-Url: https://svarog.pmf.uns.ac.rs/gitweb/?a=commitdiff_plain;h=a864d5cf6af89c754883ad9387f60701c35e3118;p=os2skripta.git Premestanje nekih delova da moze lakse region da se kompajlira. bitno je da su neke stvari pre begin document, jer onda emacs automatski te izdvoji za kompajliranje dela. korisno da se napravi glava o joe-u i putty-u kao odvojen dokument. --- 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