@@ -1,3 +1,23 @@ | |||
BSc and MSc TeX templates | |||
See [PDF](./main.pdf). | |||
Pogledati [PDF](./main.pdf). | |||
Options: | |||
Za Master rad koristiti: | |||
\usepackage[msc]{tmtkthesis} | |||
Za Diplomski rad koristiti: | |||
\usepackage[bsc]{tmtkthesis} | |||
Ukoliko je sadržaj dat u vidu stavki (items) koristiti: | |||
\usepackage[msc, itemtoc]{tmtkthesis} | |||
... | |||
\krataksadrzaj{ | |||
\item Prva | |||
\item Druga | |||
} | |||
... |
@@ -1,9 +1,4 @@ | |||
\documentclass[a4paper, 12pt, oneside]{book} | |||
\input{preamble} | |||
% \msctrue{} za master tezu, \bsctrue{} za diplomski rad | |||
\msctrue{} | |||
\documentclass[msc]{tmtkthesis} | |||
\naslov{Наслов рада\n на српском језику} | |||
\naslove{Thesis title in English} | |||
@@ -12,19 +7,25 @@ | |||
\odobreno{01.05.2020.} | |||
\godina{2020.} | |||
\begin{document} | |||
\rezime{Кратак резиме рада на српском језику (највише 10 редова).} | |||
\kljucnereci{највише 5, кључних, речи, одвојених, зарезом} | |||
\frontmatter | |||
\pagestyle{frontmatter} | |||
\abstract{Short abstract in English (max 10 rows).} | |||
\keywords{max 5, keywords, separated, by, commas} | |||
\maketitle | |||
\krataksadrzaj{ | |||
Kratak sadržaj rada | |||
} | |||
\include{prvestrane} | |||
\predlogpoglavlja{ | |||
\item Uvod | |||
} | |||
\pagestyle{frontmatter} | |||
\tableofcontents | |||
\begin{document} | |||
\mainmatter\pagestyle{mainmatter} | |||
\maketitle | |||
\prvestrane | |||
\sadrzaj | |||
\include{tutorial} | |||
@@ -1,133 +0,0 @@ | |||
% PAGE | |||
\usepackage[margin=2cm]{geometry} % Margins | |||
% FONT | |||
\usepackage[T1, T2A]{fontenc} % Font rendering | |||
\usepackage[utf8]{inputenc} % Input encoding | |||
\usepackage[english, serbianc]{babel} | |||
\usepackage{microtype} | |||
% PARAGRAPH | |||
\widowpenalty10000 % Prevent widows | |||
\clubpenalty10000 % Prevent orphans | |||
\setlength{\parindent}{0pt} % Paragraph indentation | |||
\setlength{\parskip}{12pt} % Space between paragraphs | |||
% CHAPTER | |||
\usepackage{titlesec} % Modify titles style | |||
\titleformat{\chapter}[hang]{\Huge\bfseries}{\thechapter% | |||
\hspace{20pt}}{0pt}{} % Modify chapter style | |||
% NUMBERING | |||
\setcounter{secnumdepth}{5} % Depth of section numbering | |||
\usepackage{chngcntr} | |||
\counterwithout{figure}{chapter} | |||
\counterwithout{table}{chapter} | |||
\counterwithout{equation}{chapter} | |||
% HEADER AND FOOTER | |||
\usepackage{fancyhdr} | |||
\pagestyle{fancy} | |||
\makeatletter | |||
\renewcommand{\footrulewidth}{0.4pt} | |||
\renewcommand{\chaptermark}[1]{\markboth{\thechapter.\ #1}{}} | |||
\fancypagestyle{mainmatter}{ | |||
\fancyhf{} | |||
\lhead{\nouppercase{\removelinebreaks\@naslov}} | |||
\rhead{} | |||
\ifbsc \lfoot{\nouppercase{\removelinebreaks\@student} - Дипломски рад} \fi | |||
\ifmsc \lfoot{\nouppercase{\removelinebreaks\@student} - Мастер рад} \fi | |||
\cfoot{} | |||
\rfoot{\thepage} | |||
} | |||
\fancypagestyle{frontmatter}{ | |||
\fancyhf{} | |||
\lhead{} | |||
\rhead{} | |||
\cfoot{} | |||
\rfoot{} | |||
} | |||
\fancypagestyle{plain}{ | |||
\lhead{\nouppercase{\removelinebreaks\@naslov}} | |||
\rhead{} | |||
\ifbsc \lfoot{\nouppercase{\removelinebreaks\@student} - Дипломски рад} \fi | |||
\ifmsc \lfoot{\nouppercase{\removelinebreaks\@student} - Мастер рад} \fi | |||
\cfoot{} | |||
\rfoot{\thepage} | |||
} | |||
\addtocontents{toc}{\protect\thispagestyle{frontmatter}} | |||
\makeatother | |||
% BIBLIOGRAPHY | |||
\addto{\captionsserbianc}{\renewcommand{\bibname}{Литература}} | |||
\usepackage{cite} | |||
% QUOTES | |||
\usepackage[style=german]{csquotes} | |||
% MATH | |||
\usepackage{amsmath} | |||
\usepackage{mathtools} | |||
\usepackage{siunitx} | |||
% REFERENCES & CAPTIONS | |||
\usepackage{hyperref} % use [hidelinks] to hide links | |||
\usepackage{subcaption} | |||
\captionsetup{justification=centering} | |||
% ITEMIZE | |||
\usepackage{enumitem} | |||
\setlist[itemize]{noitemsep, topsep=0pt} | |||
% TABLES | |||
\usepackage{booktabs} | |||
% TITLE PAGE | |||
\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{\odobreno}[1]{\gdef\@odobreno{#1}} | |||
\newcommand{\godina}[1]{\gdef\@godina{#1}} | |||
\newif\ifbsc | |||
\newif\ifmsc | |||
\newcommand{\removelinebreaks}[1]{% | |||
\begingroup\def\n{ }#1\endgroup} | |||
\newcommand{\n}{\vadjust{\vspace{12pt}}\nolinebreak\hspace{\fill}\linebreak} | |||
\renewcommand{\maketitle}{ | |||
\begin{titlepage} | |||
\begin{center} | |||
{\fontsize{16}{\baselineskip}\selectfont УНИВЕРЗИТЕТ У БЕОГРАДУ\\[6pt] ГРАЂЕВИНСКИ ФАКУЛТЕТ} | |||
\includegraphics[width=46mm]{img/grf.png} | |||
\vspace{2cm} | |||
{\fontsize{20}{\baselineskip}\selectfont\bfseries\MakeUppercase{\@naslov}} | |||
\vspace{1cm} | |||
{ \fontsize{16}{\baselineskip}\selectfont | |||
\ifbsc - ДИПЛОМСКИ РАД - \fi | |||
\ifmsc - МАСТЕР РАД - \fi | |||
} | |||
\vfill | |||
{ \fontsize{16}{\baselineskip}\selectfont | |||
\begin{tabular*}{\textwidth}{l @{\extracolsep{\fill}} l} | |||
\textbf{Ментор:} & \textbf{Кандидат:} \\[12pt] | |||
\@mentor & \@student \\ | |||
\end{tabular*} | |||
} | |||
\vspace{1cm} | |||
{ \fontsize{16}{\baselineskip}\selectfont Београд, \@godina } | |||
\end{center} | |||
\end{titlepage} | |||
} | |||
\makeatother |
@@ -1,68 +0,0 @@ | |||
\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 | |||
рада одобрена је на седници | |||
Катедре за техничку механику и теорију конструкција | |||
одржаној \@odobreno{} године. | |||
\hfill | |||
\begin{tabular}{@{}l@{}} | |||
Ментор,\\ | |||
\@mentor | |||
\end{tabular} | |||
\newpage | |||
{\bfseries\removelinebreaks{\MakeUppercase{\@naslov}}} | |||
\textbf{Резиме:} | |||
Кратак резиме рада на српском језику (највише 10 редова). | |||
\textbf{Kljuчне речи:} | |||
највише 5 кључних речи одвојених зарезом | |||
\vspace{1cm} | |||
{\bfseries\MakeUppercase{\@naslove}} | |||
\textbf{Abstract:} | |||
Short abstract in English (max 10 rows). | |||
\textbf{Kljuчне речи:} | |||
max 5 keywords separated by commas | |||
\makeatother |
@@ -0,0 +1,232 @@ | |||
\NeedsTeXFormat{LaTeX2e} | |||
\ProvidesClass{tmtk}[2020/06/06 MSc BSc template class for GRF uni] | |||
\newif\if@msc | |||
\newif\if@bsc | |||
\newif\if@tocitem | |||
\@tocitemfalse | |||
\@mscfalse | |||
\@bscfalse | |||
\DeclareOption{msc}{\@msctrue} | |||
\DeclareOption{bsc}{\@bsctrue} | |||
\DeclareOption{tocitem}{\@tocitemtrue} | |||
\DeclareOption*{\PassOptionsToClass{\CurrentOption}{book}} | |||
\ProcessOptions | |||
% \relax | |||
\LoadClass[a4paper, 12pt, oneside]{book} | |||
% PAGE | |||
\RequirePackage[margin=2cm]{geometry} % Margins | |||
% FONT | |||
\RequirePackage[T1, T2A]{fontenc} % Font rendering | |||
\RequirePackage[utf8]{inputenc} % Input encoding | |||
\RequirePackage[english, serbianc]{babel} | |||
\RequirePackage{microtype} | |||
% PARAGRAPH | |||
\widowpenalty10000 % Prevent widows | |||
\clubpenalty10000 % Prevent orphans | |||
\setlength{\parindent}{0pt} % Paragraph indentation | |||
\setlength{\parskip}{12pt} % Space between paragraphs | |||
% CHAPTER | |||
\RequirePackage{titlesec} % Modify titles style | |||
\titleformat{\chapter}[hang]{\Huge\bfseries}{\thechapter% | |||
\hspace{20pt}}{0pt}{} % Modify chapter style | |||
% NUMBERING | |||
\setcounter{secnumdepth}{5} % Depth of section numbering | |||
\RequirePackage{chngcntr} | |||
\counterwithout{figure}{chapter} | |||
\counterwithout{table}{chapter} | |||
\counterwithout{equation}{chapter} | |||
% HEADER AND FOOTER | |||
\RequirePackage{fancyhdr} | |||
\pagestyle{fancy} | |||
\makeatletter | |||
\renewcommand{\footrulewidth}{0.4pt} | |||
\renewcommand{\chaptermark}[1]{\markboth{\thechapter.\ #1}{}} | |||
\fancypagestyle{mainmatter}{ | |||
\fancyhf{} | |||
\lhead{\nouppercase{\removelinebreaks\@naslov}} | |||
\rhead{} | |||
\if@bsc \lfoot{\nouppercase{\removelinebreaks\@student} - Дипломски рад} \fi | |||
\if@msc \lfoot{\nouppercase{\removelinebreaks\@student} - Мастер рад} \fi | |||
\cfoot{} | |||
\rfoot{\thepage} | |||
} | |||
\fancypagestyle{frontmatter}{ | |||
\fancyhf{} | |||
\lhead{} | |||
\rhead{} | |||
\cfoot{} | |||
\rfoot{} | |||
} | |||
\fancypagestyle{plain}{ | |||
\lhead{\nouppercase{\removelinebreaks\@naslov}} | |||
\rhead{} | |||
\if@bsc \lfoot{\nouppercase{\removelinebreaks\@student} - Дипломски рад} \fi | |||
\if@msc \lfoot{\nouppercase{\removelinebreaks\@student} - Мастер рад} \fi | |||
\cfoot{} | |||
\rfoot{\thepage} | |||
} | |||
\addtocontents{toc}{\protect\thispagestyle{frontmatter}} | |||
\makeatother | |||
% BIBLIOGRAPHY | |||
\addto{\captionsserbianc}{\renewcommand{\bibname}{Литература}} | |||
\RequirePackage{cite} | |||
% QUOTES | |||
\RequirePackage[style=german]{csquotes} | |||
% MATH | |||
\RequirePackage{amsmath} | |||
\RequirePackage{mathtools} | |||
\RequirePackage{siunitx} | |||
% REFERENCES & CAPTIONS | |||
\RequirePackage{hyperref} % use [hidelinks] to hide links | |||
\RequirePackage{subcaption} | |||
\captionsetup{justification=centering} | |||
% ITEMIZE | |||
\RequirePackage{enumitem} | |||
\setlist[itemize]{noitemsep, topsep=0pt} | |||
% TABLES | |||
\RequirePackage{booktabs} | |||
% TITLE PAGE | |||
\makeatletter | |||
\newcommand{\naslov}[1]{\gdef\@naslov{#1}} | |||
\newcommand{\naslove}[1]{\gdef\@naslove{#1}} | |||
\newcommand{\rezime}[1]{\gdef\@rezime{#1}} | |||
\newcommand{\abstract}[1]{\gdef\@abstract{#1}} | |||
\newcommand{\kljucnereci}[1]{\gdef\@kljucnereci{#1}} | |||
\newcommand{\keywords}[1]{\gdef\@keywords{#1}} | |||
\newcommand{\krataksadrzaj}[1]{\gdef\@krataksadrzaj{#1}} | |||
\newcommand{\predlogpoglavlja}[1]{\gdef\@predlogpoglavlja{#1}} | |||
\newcommand{\teza}[1]{\gdef\@teza{#1}} | |||
\newcommand{\mentor}[1]{\gdef\@mentor{#1}} | |||
\newcommand{\student}[1]{\gdef\@student{#1}} | |||
\newcommand{\odobreno}[1]{\gdef\@odobreno{#1}} | |||
\newcommand{\godina}[1]{\gdef\@godina{#1}} | |||
\newcommand{\removelinebreaks}[1]{% | |||
\begingroup\def\n{ }#1\endgroup} | |||
\newcommand{\n}{\vadjust{\vspace{12pt}}\nolinebreak\hspace{\fill}\linebreak} | |||
\renewcommand{\maketitle}{ | |||
\frontmatter | |||
\pagestyle{frontmatter} | |||
\begin{titlepage} | |||
\begin{center} | |||
{\fontsize{16}{\baselineskip}\selectfont УНИВЕРЗИТЕТ У БЕОГРАДУ\\[6pt] ГРАЂЕВИНСКИ ФАКУЛТЕТ} | |||
\includegraphics[width=46mm]{img/grf.png} | |||
\vspace{2cm} | |||
{\fontsize{20}{\baselineskip}\selectfont\bfseries\MakeUppercase{\@naslov}} | |||
\vspace{1cm} | |||
{ \fontsize{16}{\baselineskip}\selectfont | |||
\if@bsc - ДИПЛОМСКИ РАД - \fi | |||
\if@msc - МАСТЕР РАД - \fi | |||
} | |||
\vfill | |||
{ \fontsize{16}{\baselineskip}\selectfont | |||
\begin{tabular*}{\textwidth}{l @{\extracolsep{\fill}} l} | |||
\textbf{Ментор:} & \textbf{Кандидат:} \\[12pt] | |||
\@mentor & \@student \\ | |||
\end{tabular*} | |||
} | |||
\vspace{1cm} | |||
{ \fontsize{16}{\baselineskip}\selectfont Београд, \@godina } | |||
\end{center} | |||
\end{titlepage} | |||
} | |||
\newcommand{\prvestrane}{ | |||
\textbf{% | |||
\if@bsc ДИПЛОМСКИ РАД \fi | |||
\if@msc МАСТЕР РАД \fi | |||
ИЗ УЖЕ НАУЧНЕ ОБЛАСТИ:}\\ | |||
ТЕХНИЧКА МЕХАНИКА И ТЕОРИЈА КОНСТРУКЦИЈА | |||
\textbf{Кандидат:} \@student | |||
\textbf{Тема:} \removelinebreaks{\@naslov} | |||
\textbf{Кратак садржај рада (попуњава ментор):} | |||
\if@tocitem | |||
\begin{enumerate}[itemsep=0mm, topsep=0mm] | |||
\@krataksadrzaj | |||
\end{enumerate} | |||
\else | |||
\@krataksadrzaj | |||
\fi | |||
\textbf{Предлог поглавља (попуњава ментор):} | |||
\begin{enumerate}[itemsep=0mm, topsep=0mm] | |||
\@predlogpoglavlja | |||
\end{enumerate} | |||
Тема | |||
\if@bsc дипломског рада \fi | |||
\if@msc мастер рада \fi | |||
рада одобрена је на седници | |||
Катедре за техничку механику и теорију конструкција | |||
одржаној \@odobreno{} године. | |||
\hfill | |||
\begin{tabular}{@{}l@{}} | |||
Ментор,\\ | |||
\@mentor | |||
\end{tabular} | |||
\newpage | |||
{\bfseries\removelinebreaks{\MakeUppercase{\@naslov}}} | |||
\textbf{Резиме:} | |||
{\@rezime} | |||
\textbf{Kljuчне речи:} | |||
{\@kljucnereci} | |||
\vspace{1cm} | |||
{\bfseries\MakeUppercase{\@naslove}} | |||
\textbf{Abstract:} | |||
{\@abstract} | |||
\textbf{Keywords:} | |||
{\@keywords} | |||
} | |||
\newcommand{\sadrzaj}{ | |||
\tableofcontents | |||
\mainmatter | |||
\pagestyle{mainmatter} | |||
} | |||
\makeatother |