From 3a61709b99b7f56048e0cdf6422ad84882f42b1e Mon Sep 17 00:00:00 2001 From: Doni Pracner Date: Thu, 21 Feb 2013 20:04:23 +0100 Subject: [PATCH] dve varijante skripte - tri fajla --- skripta-spa1-dk.tex | 62 +++++++++++++++++++ skripta-spa1-jk.tex | 62 +++++++++++++++++++ skripta-spa1.tex => skripta-spa1-sadrzaj.tex | 64 +++----------------- 3 files changed, 131 insertions(+), 57 deletions(-) create mode 100644 skripta-spa1-dk.tex create mode 100644 skripta-spa1-jk.tex rename skripta-spa1.tex => skripta-spa1-sadrzaj.tex (97%) diff --git a/skripta-spa1-dk.tex b/skripta-spa1-dk.tex new file mode 100644 index 0000000..d795337 --- /dev/null +++ b/skripta-spa1-dk.tex @@ -0,0 +1,62 @@ +\documentclass[a4paper,twoside]{article} + +\usepackage[T1]{fontenc} +\usepackage[utf8]{inputenc}%definišemo da je ulaz utf-8 fajl + +\usepackage[serbian]{babel} + +\newcommand{\varijacija}{dk} +%jk=jedna kolona, dk=dve kolone + +\newcommand{\mainstart}{ +\begin{multicols}{2} +} + +\newcommand{\mainend}{ +\end{multicols} +} + +\newcommand{\manbreakJK}{ +%\pagebreak +} + +%margine +%experiment +%\usepackage[top=2.5cm, bottom=1.5cm, left=3cm, right=2cm]{geometry} +%staro: +\usepackage[top=1.5cm, bottom=1cm, left=2cm, right=1cm]{geometry} + +\usepackage{fancyhdr} +\pagestyle{fancy} + +%% 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]{Strukture podataka i algoritmi 1 -- 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 +} +\setlength{\headheight}{15pt} + +%promene u marginama: +%\setlength{\marginparwidth}{32pt} +%\setlength{\textwidth}{620pt} +%\setlength{\textheight}{620pt} + +\include{skripta-spa1-sadrzaj} + +\end{document} \ No newline at end of file diff --git a/skripta-spa1-jk.tex b/skripta-spa1-jk.tex new file mode 100644 index 0000000..9f8089d --- /dev/null +++ b/skripta-spa1-jk.tex @@ -0,0 +1,62 @@ +\documentclass[a4paper,twoside]{article} + +\usepackage[T1]{fontenc} +\usepackage[utf8]{inputenc}%definišemo da je ulaz utf-8 fajl + +\usepackage[serbian]{babel} + +\newcommand{\varijacija}{jk} +%jk=jedna kolona, dk=dve kolone + +\newcommand{\mainstart}{ +%\begin{multicols}{2} +} + +\newcommand{\mainend}{ +%\end{multicols} +} + +\newcommand{\manbreakJK}{ +\pagebreak +} + +%margine +%experiment +%\usepackage[top=2.5cm, bottom=1.5cm, left=3cm, right=2cm]{geometry} +%staro: +\usepackage[top=1.5cm, bottom=1cm, left=2cm, right=1cm]{geometry} + +\usepackage{fancyhdr} +\pagestyle{fancy} + +%% 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]{Strukture podataka i algoritmi 1 -- 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 +} +\setlength{\headheight}{15pt} + +%promene u marginama: +%\setlength{\marginparwidth}{32pt} +%\setlength{\textwidth}{620pt} +%\setlength{\textheight}{620pt} + +\include{skripta-spa1-sadrzaj} + +\end{document} \ No newline at end of file diff --git a/skripta-spa1.tex b/skripta-spa1-sadrzaj.tex similarity index 97% rename from skripta-spa1.tex rename to skripta-spa1-sadrzaj.tex index b19c92f..68dacce 100644 --- a/skripta-spa1.tex +++ b/skripta-spa1-sadrzaj.tex @@ -1,9 +1,8 @@ -% skripta-spa1.tex +% skripta-spa1-sadrzaj.tex % Skripta za predmet Strukture podataka i algoritmi 1, DMI, PMF, NS - -\documentclass[a4paper,twoside]{article} -\usepackage[T1]{fontenc} -\usepackage[utf8]{inputenc}%definišemo da je ulaz utf-8 fajl +% ovaj fajl sadrzi glavni sadrzaj skripte koji se ukljucuje u jedan +% od pomocnih fajlova koji ce primeniti adekvatna formatiranja, +% npr za jednu ili dve kolone % osnovne informacije koje ce se prikazati na naslovnoj strani, % kao i u informacijama u generisanom pdfu @@ -11,24 +10,8 @@ \newcommand{\naslov}{Skripta za vezbe iz predmeta "Strukture podataka i algoritmi 1"} \newcommand{\datum}{Februar 2013, Novi Sad} -\newcommand{\verzija}{ver 13a-jk} -%jk=jedna kolona, dk=dve kolone - -\newcommand{\mainstart}{ -%\begin{multicols}{2} -} - -\newcommand{\mainend}{ -%\end{multicols} -} - -\newcommand{\manbreakJK}{ -\pagebreak -} - -\usepackage[serbian]{babel} -\usepackage{fancyhdr} -\pagestyle{fancy} +\newcommand{\verzija}{ver 13a-\varijacija} +%varijacija je definisana u fajlu koji ukljucuje ovaj \title{\naslov -- \verzija} \author{\autor} @@ -54,12 +37,6 @@ pdfauthor={\autor}% \usepackage{latexsym} \usepackage{multicol} -%margine -%experiment -%\usepackage[top=2.5cm, bottom=1.5cm, left=3cm, right=2cm]{geometry} -%staro: -\usepackage[top=1.5cm, bottom=1cm, left=2cm, right=1cm]{geometry} - \begin{document} %customize the itemize environments @@ -74,33 +51,6 @@ pdfauthor={\autor}% \setlength{\partopsep}{1pt} } -%% 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]{Strukture podataka i algoritmi 1 -- 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} }} @@ -3117,4 +3067,4 @@ fajlove, odnosno ako je moguće preimenovati problematične foldere. \mainend -\end{document} + -- 2.17.1