BSc and MSc tex templates
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219
  1. % PAGE LAYOUT
  2. \usepackage[margin=2cm]{geometry} % Margins
  3. % FONT STYLE
  4. \usepackage[T1, T2A]{fontenc} % Font rendering
  5. \usepackage[utf8]{inputenc} % Input encoding
  6. \usepackage[english, serbianc]{babel}
  7. % \usepackage{lmodern}
  8. % \usepackage{microtype}
  9. % PARAGRAPH SETTINGS
  10. \widowpenalty10000 % Prevent widows
  11. \clubpenalty10000 % Prevent orphans
  12. \setlength{\parindent}{0pt} % Paragraph indentation
  13. \setlength{\parskip}{12pt} % Space between paragraphs
  14. \usepackage[doublespacing]{setspace}
  15. \setlength{\jot}{2ex} % Line spacing inside equation env
  16. \setcounter{secnumdepth}{5} % Depth of section numbering
  17. \usepackage{comment} % Comment env for orgtbl exports
  18. % CHAPTER STYLE
  19. \usepackage[sf,bf]{titlesec} % Modify titles style
  20. \titleformat{\chapter}[hang]{\singlespacing\Huge\bfseries\sffamily}{\thechapter%
  21. \hspace{20pt}}{0pt}{} % Modify chapter style
  22. % HEADER AND FOOTER
  23. \usepackage{fancyhdr}
  24. \pagestyle{fancy}
  25. \renewcommand{\chaptermark}[1]{\markboth{\thechapter.\ #1}{}}
  26. \fancypagestyle{mainmatter}{
  27. \fancyhf{}
  28. \lhead{\textsf{\nouppercase{\leftmark}}}
  29. \rhead{\textsf{\nouppercase{\rightmark}}}
  30. \cfoot{}
  31. \rfoot{\thepage}
  32. }
  33. \fancypagestyle{frontmatter}{
  34. \fancyhf{}
  35. \lhead{}
  36. \rhead{\textsf{\nouppercase{\rightmark}}}
  37. \cfoot{}
  38. \rfoot{\thepage}
  39. }
  40. \fancypagestyle{plain}{
  41. \fancyhf{}
  42. \lhead{}
  43. \rhead{}
  44. \cfoot{}
  45. \rfoot{\thepage}
  46. }
  47. % BIBLIOGRAPHY
  48. \usepackage[
  49. bibencoding=utf8,
  50. backend=bibtex,
  51. defernumbers=true,
  52. sorting=none,
  53. clearlang=true,
  54. style=numeric,
  55. url=false,
  56. firstinits=true]{biblatex}
  57. \renewcommand{\multinamedelim}{\addcomma\space}
  58. \renewcommand{\finalnamedelim}{\addcomma\space}
  59. \renewcommand{\labelnamepunct}{\addcomma\space}
  60. \renewcommand{\newunitpunct}{\addcomma\space}
  61. \renewbibmacro{in:}{}
  62. \addbibresource{/home/mengesh/Dropbox/nauka/Library-BBT}
  63. \defbibheading{bibliography}[\bibname]{%
  64. \chapter*{#1}%
  65. \markboth{}{#1}}
  66. % QUOTES
  67. \usepackage[autostyle]{csquotes}
  68. % SUPPRESS PAGE NUMBER RESET
  69. % \makeatletter
  70. % \def\pagenumbering#1{%
  71. % \gdef\thepage{\csname @#1\endcsname \c@page}}
  72. % \makeatother
  73. % FIGURES
  74. \usepackage[inkscapepath=svgsubdir]{svg}
  75. \usepackage{pgfplots, etoolbox} % Plot directly from csv
  76. \usepackage{tikz-3dplot}
  77. \usepackage{tikz-dimline}
  78. \usepackage[mode=buildnew]{standalone}
  79. \usepackage{xstring}
  80. \usepackage{calc}
  81. \usepackage{tikzscale}
  82. \usetikzlibrary{pgfplots.groupplots}
  83. \usetikzlibrary{arrows.meta, bending, positioning, matrix}
  84. \pgfplotsset{
  85. compat=1.15,
  86. table/search path={csv},
  87. every axis/.append style={
  88. thick,
  89. cycle list name=black white,
  90. % ylabel style={rotate=-90}
  91. }
  92. }
  93. % \usetikzlibrary{external}
  94. % \tikzexternalize[prefix=tikz-external/]
  95. % MATH
  96. \usepackage{amsmath}
  97. \usepackage{amssymb}
  98. \usepackage{amsbsy}
  99. \usepackage{mathtools}
  100. \usepackage{physics}
  101. \usepackage{commath} % differentials
  102. \usepackage{interval} % Intervals definitions
  103. \intervalconfig{soft open fences, separator symbol=;}
  104. \usepackage{xfrac} % Nicer fractions
  105. \usepackage{siunitx} % Nicer units
  106. \usepackage{arydshln} % Dashes in matrices
  107. \usepackage[Symbol]{upgreek} % Straight Greek symbols
  108. \newcommand\mat[1]{\boldsymbol{\mathrm{#1}}}
  109. \renewcommand\vec[1]{\boldsymbol{#1}}
  110. \newcommand{\myfourier}{\mbox{\unitlength1em
  111. \begin{picture}(2,0.5)
  112. \put(0.5,0.25){\circle{0.4}}
  113. \put(0.7,0.25){\thicklines \line(1,0){0.6}}
  114. \put(1.5,0.25){\circle*{0.4}}
  115. \end{picture}}}
  116. \newcommand{\myinvfourier}{\mbox{\unitlength1em
  117. \begin{picture}(2,0.5)
  118. \put(0.5,0.25){\circle*{0.4}}
  119. \put(0.7,0.25){\thicklines \line(1,0){0.6}}
  120. \put(1.5,0.25){\circle{0.4}}
  121. \end{picture}}}
  122. % REFERENCES & CAPTIONS
  123. \usepackage[hidelinks]{hyperref}
  124. \usepackage{subcaption}
  125. \captionsetup{justification=centering}
  126. % NOMENCLATURE
  127. \usepackage[intoc]{nomencl}
  128. \renewcommand*{\pagedeclaration}[1]{\unskip, page \hyperpage{#1}}
  129. \newcommand{\nomunit}[1]{%
  130. \renewcommand{\nomentryend}{\hspace*{\fill}#1}}
  131. \makenomenclature
  132. \makeatletter
  133. \patchcmd{\thenomenclature}{\section*}{\section}{}{}
  134. \makeatother
  135. % ACRONYMS
  136. \usepackage{acronym}
  137. % ITEMIZE
  138. \usepackage{enumitem}
  139. \setlist[itemize]{noitemsep, topsep=0pt}
  140. % TABLES
  141. \usepackage{booktabs}
  142. %% DEBUGGING
  143. % SHOW LABELS
  144. % \usepackage[draft,inline]{showlabels}
  145. \makeatletter
  146. \newcommand{\naslov}[1]{\gdef\@naslov{#1}}
  147. \newcommand{\naslove}[1]{\gdef\@naslove{#1}}
  148. \newcommand{\teza}[1]{\gdef\@teza{#1}}
  149. \newcommand{\mentor}[1]{\gdef\@mentor{#1}}
  150. \newcommand{\student}[1]{\gdef\@student{#1}}
  151. \newcommand{\datum}[1]{\gdef\@datum{#1}}
  152. \newif\ifbsc
  153. \newif\ifmsc
  154. \newcommand{\removelinebreaks}[1]{%
  155. \begingroup\def\\{}#1\endgroup}
  156. \renewcommand{\maketitle}{
  157. \begin{titlepage}
  158. \begin{center}
  159. {\fontsize{16}{\baselineskip}\selectfont УНИВЕРЗИТЕТ У БЕОГРАДУ\\ ГРАЂЕВИНСКИ ФАКУЛТЕТ}
  160. \includegraphics[width=46mm]{img/grf.png}
  161. \vspace{2cm}
  162. {\linespread{1.5}\fontsize{20}{10}\selectfont\bfseries\MakeUppercase{\@naslov}}
  163. \vspace{1cm}
  164. { \fontsize{22}{\baselineskip}\selectfont
  165. \ifbsc - ДИПЛОМСКИ РАД - \fi
  166. \ifmsc - МАСТЕР РАД - \fi
  167. }
  168. \vfill
  169. { \fontsize{16}{0.8\baselineskip}\selectfont
  170. \begin{minipage}{0.5\linewidth}
  171. \textbf{Ментор:} \\
  172. \@mentor
  173. \end{minipage}%
  174. \begin{minipage}{0.5\linewidth}
  175. \textbf{Кандидат:} \\
  176. \@student
  177. \end{minipage}
  178. }
  179. { \fontsize{16}{\baselineskip}\selectfont Београд, 2020. }
  180. \end{center}
  181. \end{titlepage}
  182. }
  183. \makeatother
  184. %%% Local Variables:
  185. %%% mode: latex
  186. %%% TeX-master: "main"
  187. %%% End: