BSc and MSc tex templates
Nevar pievienot vairāk kā 25 tēmas Tēmai ir jāsākas ar burtu vai ciparu, tā var saturēt domu zīmes ('-') un var būt līdz 35 simboliem gara.

preamble.tex 5.9KB

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