\documentclass[12pt]{article}
\usepackage[polish]{babel}
\usepackage[OT4]{fontenc}
\usepackage[utf8]{inputenc}
\title{Przykładowy tekst napisany w LaTeX-u}
\author{Maciejka\\University}
\begin{document}
\date{}
\maketitle
\tableofcontents{}
\section{Funkcje trygonometryczne}\
\subsection{Definicja z elementów trójkata prostokatnego}
\section{Funkcje wykładnicze i logarytmiczne}
\end{document}
teraz mam taki problem, że sekcje i pod sekcje sa podwojne jakis błąd? wydaje mi sie ze powinno byc okey