% !TeX encoding = UTF-8
% !TeX spellcheck = sl_SI
\documentclass[]{article}
\usepackage[utf8]{inputenc}
\usepackage{etoolbox}
\usepackage[hidelinks]{hyperref}
\usepackage[a4paper, total={7in, 10in}]{geometry}
\usepackage{graphicx}
\usepackage{hologo}
\usepackage{amssymb}
\usepackage{pgfplots}
\usepackage[inline]{enumitem}
\usepackage{amsmath}
\usepackage{siunitx}
\usepackage{multicol}
\usepackage{tabularcalc}
\usepackage{amsmath}
\usepackage{float}
\usepackage{tasks}
\usepackage{filecontents}
\usepackage{textcomp}
\usepackage{tkz-euclide}
\usepackage{listings}
% \usepackage{multienum} % weird with labels
\usetikzlibrary{calc} %% not really needed............. idk.
%\usetikzlibrary{external}
% \usetkzobj{all} % tkz-euclide > 3.02 tega ne potrebuje več (:
%\tikzexternalize
\usepackage{xcolor}
\sisetup{output-decimal-marker = {,}, quotient-mode=fraction,per-mode=fraction} % per-mode=symbol
\newcommand\ddfrac[2]{\frac{\displaystyle #1}{\displaystyle #2}}
\newcommand{\functionSamples}{100} % fix to fancier value upon release, keep low during development
\newcommand{\razhroscevanje}{1}
\definecolor{codegreen}{rgb}{0,0.6,0}
\definecolor{codegray}{rgb}{0.5,0.5,0.5}
\definecolor{codepurple}{rgb}{0.58,0,0.82}
\definecolor{backcolour}{rgb}{0.95,0.95,0.92}

\lstdefinestyle{mystyle}{
    backgroundcolor=\color{backcolour},   
    commentstyle=\color{codegreen},
    keywordstyle=\color{magenta},
    numberstyle=\tiny\color{codegray},
    stringstyle=\color{codepurple},
    basicstyle=\ttfamily\footnotesize,
    breakatwhitespace=false,         
    breaklines=true,                 
    captionpos=b,                    
    keepspaces=true,                 
    numbers=left,                    
    numbersep=5pt,                  
    showspaces=false,                
    showstringspaces=false,
    showtabs=false,                  
    tabsize=2
}

\lstset{style=mystyle}
\def\@maketitle{%
	\newpage
	\null
	\vskip 2em%
	\begin{center}%
		\let \footnote \thanks
		{\LARGE \@title \par}%
		\vskip 1.5em%
		{\large
			\lineskip .5em%
			\begin{tabular}[t]{c}% <------
				\@author%            <------ Authors
			\end{tabular}\par}%    <------
		\vskip 1em%
		{\large \@date}%
	\end{center}%
	\par
	\vskip 1.5em}
%opening
\newcommand{\snovdn}{Zgledi ohranitve gibalne količine v eni dimenziji }
\newcommand{\predmdn}{fiz}
\newcommand{\stevilkadn}{2}
\newcommand{\cm}[1]{\SI{#1}{\centi\meter}}
\newcommand{\kmh}[1]{\SI{#1}{\kilo\meter\per\hour}}
\makeatletter
\newcommand{\xslalph}[1]{\expandafter\@xslalph\csname c@#1\endcsname}
\newcommand{\@xslalph}[1]{%
	\ifcase#1\or a\or b\or c\or \v{c}\or d\or e\or f\or g\or h\or i%
	\or j\or k\or l\or m\or n\or o\or p\or r\or s\or \v{s}%
	\or t\or u\or v\or z\or \v{z}
	\else\@ctrerr\fi%
}
\AddEnumerateCounter{\xslalph}{\@xslalph}{m}
\makeatother
\newcommand\gauss[2]{1/(#2*sqrt(2*pi))*exp(-((x-#1)^2)/(2*#2^2))} % Gauss function, parameters mu and sigma
\newcommand*\textfrac[2]{
	\frac{\text{#1}}{\text{#2}}
}
\renewcommand\abstractname{Povzetek}
\date{8. oktober 2020}
\renewcommand\contentsname{Kazalo vsebine}
\renewcommand\figurename{Slika}
\renewcommand\abstractname{Povzetek}
\newcommand{\iic}{I\textsuperscript{2}C }
% \patchcmd{\thebibliography}{\section*{\refname}}{}{}{}
\title{%
	\snovdn --- \stevilkadn. domača naloga \\
	\large Fizika, Gimnazija Bežigrad}
\author{\begin{tabular}{rl}
		\textbf{Profesor:} & prof. Peter Gabrovec \\
		\textbf{Avtor:} & Anton Luka Šijanec, 2. a
%		\textbf{Avtor:} & Anton Luka Šijanec \\ & Member 2 \\ & Member 3
\end{tabular}}


% \everymath{\displaystyle} % https://tex.stackexchange.com/a/32847/212260
\begin{document}
\maketitle

\begin{abstract}

	Ta dokument obsega naloge, naročene dijakom 7. oktobra 2020, in njihove
	rešitve, ki sem jih spisal sam. Naloge obsegajo snov \textit{\snovdn}in so
	iz učnega lista z nalogami profesorja Gabrovca. Kjer je bilo potrebno izbrati neke poljubne primere, sem jih vedno izbral naključno.
\end{abstract}
\tableofcontents

\section{6. domača naloga --- zahtevnost C}
**Avto z maso \SI{1200}{\kilo\gram} trči s hitrostjo \SI{50}{\kilo\meter\per\hour} v nasproti vozeči tovornjak z maso \SI{4000}{\kilo\gram}. Hitrost tovornjaka je \SI{40}{\kilo\meter\per\hour}. Trk traja \SI{0,2}{\second}. Kolikšem sunek sile prejme pri trku voznik osebnega vozila z maso \SI{70}{\kilo\gram} in kolikšen sunek sile voznik tovornjaka z maso \SI{80}{\kilo\gram}?
$$G_1+G_2=G'_1+G'_2 \rightarrow
\SI{1270}{\kilo\gram}\cdot(\kmh{-50})+\SI{4080}{\kilo\gram}\cdot\kmh{40}=
\SI{5360}{\kilo\gram}\cdot\kmh{18,6} \rightarrow v=\kmh{18,6}$$
$$a_a=\frac{\kmh{-50}-\kmh{18,6}}{\SI{0,2}{\second}}=
\SI{343,0}{\kilo\meter\per\second\squared} =
\SI{95,28}{\meter\per\second\squared} \rightarrow
F_a = \SI{70}{\kilo\gram}\cdot\SI{95,28}{\meter\per\second\squared} =
\SI{6670}{\newton} \rightarrow {\int_{t_1}^{t_2}F \,dt}_a = J_a =
\SI{1334}{\newton\second}$$
$$a_t=\frac{\kmh{40}-\kmh{18,6}}{\SI{0,2}{\second}}=
\SI{107}{\kilo\meter\per\second\squared} =
\SI{29,72}{\meter\per\second\squared} \rightarrow
F_t = \SI{80}{\kilo\gram}\cdot\SI{29,72}{\meter\per\second\squared} =
\SI{2378}{\newton} \rightarrow {\int_{t_1}^{t_2}F \,dt}_t = J_t =
\SI{475,6}{\newton\second}$$
\section{Zaključek}
Hvala H. T., ker mi je namignil, da je masa vozila enaka vsoti mase avtomobila in mase voznika.

Ta dokument je informativne narave in se lahko še spreminja. Najnovejša različica, torej PDFji in
\hologo{LaTeX}
izvorna koda, zgodovina sprememb in prejšnje različice, je na voljo mojem šolskem Git repozitoriju na
\url{https://github.com/sijanec/sola-gimb-2} v mapi 
\href{https://github.com/sijanec/sola-gimb-2/tree/master/\predmdn/domace_naloge/\stevilkadn/}{/\predmdn/domace\_naloge/\stevilkadn/}. Povezava za ogled zadnje različice tega dokumenta v PDF obliki je  \url{http://razor.arnes.si/~asija3/files/sola/gimb/2/\predmdn/domace_naloge/\stevilkadn/dokument.pdf} in/ali \url{https://github.com/sijanec/sola-gimb-2/raw/master/\predmdn/domace_naloge/\stevilkadn/dokument.pdf}.

\if\razhroscevanje1
\section{Razhroščevalne informacije}
Te informacije so generirane, ker je omogočeno razhroščevanje. Pred objavo dokumenta izklopite razhroščevanje. To naredite tako, da nastavite ukaz \texttt{razhroscevanje} na 0 v začetku dokumenta.

Grafi imajo natančnost \functionSamples\space točk na graf.

Konec generiranja dokumenta: \input|"date -Ins"
\fi
%	\item $$$$
\end{document}
