\documentclass{report}
\usepackage{hyperref}
% WARNING: THIS SHOULD BE MODIFIED DEPENDING ON THE LETTER/A4 SIZE
\oddsidemargin 0cm
\evensidemargin 0cm
\marginparsep 0cm
\marginparwidth 0cm
\parindent 0cm
\textwidth 16.5cm

\ifpdf
  \usepackage[pdftex]{graphicx}
\else
  \usepackage[dvips]{graphicx}
\fi

% definitons for warning and note tag
\usepackage[most]{tcolorbox}
\newtcolorbox{tcbwarning}{
 breakable,
 enhanced jigsaw,
 top=0pt,
 bottom=0pt,
 titlerule=0pt,
 bottomtitle=0pt,
 rightrule=0pt,
 toprule=0pt,
 bottomrule=0pt,
 colback=white,
 arc=0pt,
 outer arc=0pt,
 title style={white},
 fonttitle=\color{black}\bfseries,
 left=8pt,
 colframe=red,
 title={Warning:},
}
\newtcolorbox{tcbnote}{
 breakable,
 enhanced jigsaw,
 top=0pt,
 bottom=0pt,
 titlerule=0pt,
 bottomtitle=0pt,
 rightrule=0pt,
 toprule=0pt,
 bottomrule=0pt,
 colback=white,
 arc=0pt,
 outer arc=0pt,
 title style={white},
 fonttitle=\color{black}\bfseries,
 left=8pt,
 colframe=yellow,
 title={Note:},
}

\begin{document}
% special variable used for calculating some widths.
\newlength{\tmplength}
\chapter{Unit ok{\_}recursive{\_}ancestor}
\section{Overview}
\begin{description}
\item[\texttt{\begin{ttfamily}TMyClass\end{ttfamily} Class}]
\item[\texttt{\begin{ttfamily}TMyClass\end{ttfamily} Class}]Valid Pascal, FPC compiles this (just fix first TMyClass, e.g.
\item[\texttt{\begin{ttfamily}TMyInterface\end{ttfamily} Interface}]Invalid Pascal, such relation is not allowed, FPC correctly reports: Error: Forward declaration of class "TMyInterface" must be resolved here to use the class as ancestor
\item[\texttt{\begin{ttfamily}TMyInterface\end{ttfamily} Interface}]Valid Pascal, FPC compiles this (just fix first TMyInterface, e.g.
\end{description}
\section{Classes, Interfaces, Objects and Records}
\subsection*{TMyClass Class}
\subsubsection*{\large{\textbf{Description}}\normalsize\hspace{1ex}\hfill}
Valid Pascal, FPC compiles this (just fix first TMyClass, e.g. to not declare explicit ancestor). Generic and non{-}generic TMyClass are different types.\subsection*{TMyInterface Interface}
\subsubsection*{\large{\textbf{Description}}\normalsize\hspace{1ex}\hfill}
Invalid Pascal, such relation is not allowed, FPC correctly reports: Error: Forward declaration of class "TMyInterface" must be resolved here to use the class as ancestor\subsection*{TMyInterface Interface}
\subsubsection*{\large{\textbf{Description}}\normalsize\hspace{1ex}\hfill}
Valid Pascal, FPC compiles this (just fix first TMyInterface, e.g. to not declare explicit ancestor). Generic and non{-}generic TMyClass are different types.\end{document}
