Browse Source

Prve strane pocetak

master
Marko Radisic 4 years ago
parent
commit
e274d2bfe4
6 changed files with 341 additions and 1 deletions
  1. 1
    1
      .gitignore
  2. BIN
      img/grf.png
  3. 10
    0
      intro.tex
  4. 39
    0
      main.tex
  5. 219
    0
      preamble.tex
  6. 72
    0
      prvestrane.tex

+ 1
- 1
.gitignore View File

@@ -23,7 +23,7 @@
# *.pdf

## Generated if empty string is given at "Please type another file name for output:"
.pdf
*.pdf

## Bibliography auxiliary files (bibtex/biblatex/biber):
*.bbl

BIN
img/grf.png View File


+ 10
- 0
intro.tex View File

@@ -0,0 +1,10 @@
\chapter{Увод}\label{cha:introduction}

\section{Мотивација}\label{sec:motivation}

Марко иде у школу добар је ђак.

%%% Local Variables:
%%% mode: latex
%%% TeX-master: "main"
%%% End:

+ 39
- 0
main.tex View File

@@ -0,0 +1,39 @@
\documentclass[a4paper, 12pt, oneside]{book}

\input{preamble}

% \msctrue za master tezu, \bsctrue za diplomski rad
\msctrue{}

\naslov{Наслов\protect\\ рада}
\naslove{Thesis title}
\mentor{Проф. Др Петар Петровић}
\student{Петар Петровић 111/11}
\datum{01.05.2020.}

\begin{document}

\frontmatter
\pagestyle{frontmatter}

\maketitle

\include{prvestrane}

\pagestyle{frontmatter}
\cleardoublepage{}
\begin{singlespace}
\tableofcontents
\end{singlespace}

\mainmatter\pagestyle{mainmatter}

\include{intro}

\appendix
\cleardoublepage{}
% \include{ap}

% \printbibliography{}

\end{document}

+ 219
- 0
preamble.tex View File

@@ -0,0 +1,219 @@
% PAGE LAYOUT
\usepackage[margin=2cm]{geometry} % Margins

% FONT STYLE
\usepackage[T1, T2A]{fontenc} % Font rendering
\usepackage[utf8]{inputenc} % Input encoding
\usepackage[english, serbianc]{babel}
% \usepackage{lmodern}
% \usepackage{microtype}

% PARAGRAPH SETTINGS
\widowpenalty10000 % Prevent widows
\clubpenalty10000 % Prevent orphans
\setlength{\parindent}{0pt} % Paragraph indentation
\setlength{\parskip}{12pt} % Space between paragraphs
\usepackage[doublespacing]{setspace}
\setlength{\jot}{2ex} % Line spacing inside equation env
\setcounter{secnumdepth}{5} % Depth of section numbering

\usepackage{comment} % Comment env for orgtbl exports

% CHAPTER STYLE
\usepackage[sf,bf]{titlesec} % Modify titles style
\titleformat{\chapter}[hang]{\singlespacing\Huge\bfseries\sffamily}{\thechapter%
\hspace{20pt}}{0pt}{} % Modify chapter style

% HEADER AND FOOTER
\usepackage{fancyhdr}
\pagestyle{fancy}
\renewcommand{\chaptermark}[1]{\markboth{\thechapter.\ #1}{}}
\fancypagestyle{mainmatter}{
\fancyhf{}
\lhead{\textsf{\nouppercase{\leftmark}}}
\rhead{\textsf{\nouppercase{\rightmark}}}
\cfoot{}
\rfoot{\thepage}
}
\fancypagestyle{frontmatter}{
\fancyhf{}
\lhead{}
\rhead{\textsf{\nouppercase{\rightmark}}}
\cfoot{}
\rfoot{\thepage}
}
\fancypagestyle{plain}{
\fancyhf{}
\lhead{}
\rhead{}
\cfoot{}
\rfoot{\thepage}
}

% BIBLIOGRAPHY
\usepackage[
bibencoding=utf8,
backend=bibtex,
defernumbers=true,
sorting=none,
clearlang=true,
style=numeric,
url=false,
firstinits=true]{biblatex}
\renewcommand{\multinamedelim}{\addcomma\space}
\renewcommand{\finalnamedelim}{\addcomma\space}
\renewcommand{\labelnamepunct}{\addcomma\space}
\renewcommand{\newunitpunct}{\addcomma\space}
\renewbibmacro{in:}{}
\addbibresource{/home/mengesh/Dropbox/nauka/Library-BBT}

\defbibheading{bibliography}[\bibname]{%
\chapter*{#1}%
\markboth{}{#1}}

% QUOTES
\usepackage[autostyle]{csquotes}

% SUPPRESS PAGE NUMBER RESET
% \makeatletter
% \def\pagenumbering#1{%
% \gdef\thepage{\csname @#1\endcsname \c@page}}
% \makeatother

% FIGURES
\usepackage[inkscapepath=svgsubdir]{svg}
\usepackage{pgfplots, etoolbox} % Plot directly from csv
\usepackage{tikz-3dplot}
\usepackage{tikz-dimline}
\usepackage[mode=buildnew]{standalone}
\usepackage{xstring}
\usepackage{calc}

\usepackage{tikzscale}
\usetikzlibrary{pgfplots.groupplots}
\usetikzlibrary{arrows.meta, bending, positioning, matrix}
\pgfplotsset{
compat=1.15,
table/search path={csv},
every axis/.append style={
thick,
cycle list name=black white,
% ylabel style={rotate=-90}
}
}
% \usetikzlibrary{external}
% \tikzexternalize[prefix=tikz-external/]

% MATH
\usepackage{amsmath}
\usepackage{amssymb}
\usepackage{amsbsy}
\usepackage{mathtools}
\usepackage{physics}
\usepackage{commath} % differentials
\usepackage{interval} % Intervals definitions
\intervalconfig{soft open fences, separator symbol=;}
\usepackage{xfrac} % Nicer fractions
\usepackage{siunitx} % Nicer units
\usepackage{arydshln} % Dashes in matrices
\usepackage[Symbol]{upgreek} % Straight Greek symbols

\newcommand\mat[1]{\boldsymbol{\mathrm{#1}}}
\renewcommand\vec[1]{\boldsymbol{#1}}

\newcommand{\myfourier}{\mbox{\unitlength1em
\begin{picture}(2,0.5)
\put(0.5,0.25){\circle{0.4}}
\put(0.7,0.25){\thicklines \line(1,0){0.6}}
\put(1.5,0.25){\circle*{0.4}}
\end{picture}}}

\newcommand{\myinvfourier}{\mbox{\unitlength1em
\begin{picture}(2,0.5)
\put(0.5,0.25){\circle*{0.4}}
\put(0.7,0.25){\thicklines \line(1,0){0.6}}
\put(1.5,0.25){\circle{0.4}}
\end{picture}}}

% REFERENCES & CAPTIONS
\usepackage[hidelinks]{hyperref}
\usepackage{subcaption}
\captionsetup{justification=centering}

% NOMENCLATURE
\usepackage[intoc]{nomencl}
\renewcommand*{\pagedeclaration}[1]{\unskip, page \hyperpage{#1}}
\newcommand{\nomunit}[1]{%
\renewcommand{\nomentryend}{\hspace*{\fill}#1}}
\makenomenclature
\makeatletter
\patchcmd{\thenomenclature}{\section*}{\section}{}{}
\makeatother

% ACRONYMS
\usepackage{acronym}

% ITEMIZE
\usepackage{enumitem}
\setlist[itemize]{noitemsep, topsep=0pt}

% TABLES
\usepackage{booktabs}

%% DEBUGGING

% SHOW LABELS
% \usepackage[draft,inline]{showlabels}
\makeatletter
\newcommand{\naslov}[1]{\gdef\@naslov{#1}}
\newcommand{\naslove}[1]{\gdef\@naslove{#1}}
\newcommand{\teza}[1]{\gdef\@teza{#1}}
\newcommand{\mentor}[1]{\gdef\@mentor{#1}}
\newcommand{\student}[1]{\gdef\@student{#1}}
\newcommand{\datum}[1]{\gdef\@datum{#1}}
\newif\ifbsc
\newif\ifmsc
\newcommand{\removelinebreaks}[1]{%
\begingroup\def\\{}#1\endgroup}

\renewcommand{\maketitle}{
\begin{titlepage}
\begin{center}
{\fontsize{16}{\baselineskip}\selectfont УНИВЕРЗИТЕТ У БЕОГРАДУ\\ ГРАЂЕВИНСКИ ФАКУЛТЕТ}

\includegraphics[width=46mm]{img/grf.png}
\vspace{2cm}

{\linespread{1.5}\fontsize{20}{10}\selectfont\bfseries\MakeUppercase{\@naslov}}

\vspace{1cm}

{ \fontsize{22}{\baselineskip}\selectfont
\ifbsc - ДИПЛОМСКИ РАД - \fi
\ifmsc - МАСТЕР РАД - \fi
}
\vfill

{ \fontsize{16}{0.8\baselineskip}\selectfont

\begin{minipage}{0.5\linewidth}
\textbf{Ментор:} \\
\@mentor
\end{minipage}%
\begin{minipage}{0.5\linewidth}
\textbf{Кандидат:} \\
\@student
\end{minipage}
}
{ \fontsize{16}{\baselineskip}\selectfont Београд, 2020. }
\end{center}
\end{titlepage}
}
\makeatother

%%% Local Variables:
%%% mode: latex
%%% TeX-master: "main"
%%% End:


+ 72
- 0
prvestrane.tex View File

@@ -0,0 +1,72 @@
\makeatletter
\textbf{%
\ifbsc ДИПЛОМСКИ РАД \fi
\ifmsc МАСТЕР РАД \fi
ИЗ УЖЕ НАУЧНЕ ОБЛАСТИ:}\\
ТЕХНИЧКА МЕХАНИКА И ТЕОРИЈА КОНСТРУКЦИЈА

\textbf{Кандидат:} \@student

\textbf{Тема:} \removelinebreaks{\@naslov}

\textbf{Кратак садржај рада (попуњава ментор):}
\begin{enumerate}[itemsep=0mm, topsep=0mm]
\item
\item
\item
\item
\item
\item
\item
\end{enumerate}

\textbf{Предлог поглавља (попуњава ментор):}
\begin{enumerate}[itemsep=0mm, topsep=0mm]
\item
\item
\item
\item
\item
\item
\item
\end{enumerate}

Тема
\ifbsc дипломског рада \fi
\ifmsc мастер рада \fi
рада одобрена је на седници
Катедре за техничку механику и теорију конструкција
одржаној \@datum{} године.

\hfill
\begin{tabular}{@{}l@{}}
Ментор,\\
\@mentor
\end{tabular}

\newpage

{\bfseries\removelinebreaks{\MakeUppercase{\@naslov}}}

\textbf{Резиме:}

Кратак резиме рада на српском језику (највише 10 редова).

\textbf{Kljuчне речи:}
највише 5 кључних речи одвојених зарезом

{\bfseries\MakeUppercase{\@naslove}}

\textbf{Abstract:}

Short abstract in English (max 10 rows).

\textbf{Kljuчне речи:}
max 5 keywords separated by commas

\makeatother

%%% Local Variables:
%%% mode: latex
%%% TeX-master: "../main"
%%% End:

Loading…
Cancel
Save