\documentclass{article}

\usepackage{amsmath, amsthm, amssymb, amsfonts}
\usepackage{thmtools}
\usepackage{graphicx}
\usepackage{setspace}
\usepackage{geometry}
\usepackage{float}
\usepackage[backend=biber,style=ieee,sorting=ynt]{biblatex}
\usepackage[hidelinks]{hyperref}
\usepackage[utf8]{inputenc}
\usepackage[spanish]{babel}
\usepackage{framed}
\usepackage[dvipsnames]{xcolor}
\usepackage{tcolorbox}
\usepackage{tikz}
\usetikzlibrary{positioning}
\usetikzlibrary{arrows.meta}
\usepackage{caption}
\usepackage{longtable}
\usepackage{pdflscape}
\usepackage{svg}
\usepackage{subcaption}
\usepackage{caption}
\usepackage{multirow}
\usepackage{array}
\usepackage{listings}
\usepackage{cancel}
\usepackage{fancyhdr}

\addbibresource{referencias.bib}


\colorlet{LightGray}{White!90!Periwinkle}
\colorlet{LightOrange}{Orange!15}
\colorlet{LightGreen}{Green!15}



\newcommand{\HRule}[1]{\rule{\linewidth}{#1}}

\declaretheoremstyle[name=Theorem,]{thmsty}
\declaretheorem[style=thmsty,numberwithin=section]{theorem}
\tcolorboxenvironment{theorem}{colback=LightGray}

\declaretheoremstyle[name=Proposition,]{prosty}
\declaretheorem[style=prosty,numberlike=theorem]{proposition}
\tcolorboxenvironment{proposition}{colback=LightOrange}

\declaretheoremstyle[name=Principle,]{prcpsty}
\declaretheorem[style=prcpsty,numberlike=theorem]{principle}
\tcolorboxenvironment{principle}{colback=LightGreen}

\newcolumntype{L}[1]{>{\raggedleft\let\newline\\\arraybackslash\hspace{0pt}}m{#1}}
\newcolumntype{C}[1]{>{\centering\let\newline\\\arraybackslash\hspace{0pt}}m{#1}}
\newcolumntype{R}[1]{>{\raggedright\let\newline\\\arraybackslash\hspace{0pt}}m{#1}}

\setstretch{1.2}
\geometry{
    textheight=9in,
    textwidth=5.5in,
    top=1in,
    headheight=12pt,
    headsep=25pt,
    footskip=30pt
}

\lstdefinestyle{bashstyle}{
    language=bash,
    basicstyle=\ttfamily,
    backgroundcolor=\color{gray!10},
    keywordstyle=\color{blue},
    commentstyle=\color{green!40!black},
    stringstyle=\color{red},
    showstringspaces=false,
    numbers=left,
    numberstyle=\tiny\color{gray},
    breaklines=true,
    breakatwhitespace=true,
    frame=tb,
    rulecolor=\color{black!70},
    framerule=0.5pt,
    tabsize=4,
    captionpos=b
}

\lstdefinestyle{javastyle}{
    language=Java,
    basicstyle=\ttfamily,
    backgroundcolor=\color{gray!10},
    keywordstyle=\color{blue},
    commentstyle=\color{green!40!black},
    stringstyle=\color{red},
    showstringspaces=false,
    numbers=left,
    numberstyle=\tiny\color{gray},
    breaklines=true,
    breakatwhitespace=true,
    frame=tb,
    rulecolor=\color{black!70},
    framerule=0.5pt,
    tabsize=4,
    captionpos=b
}

\lstdefinestyle{pythonstyle}{
    language=Python,
    basicstyle=\ttfamily,
    backgroundcolor=\color{gray!10},
    keywordstyle=\color{blue},
    commentstyle=\color{green!40!black},
    stringstyle=\color{red},
    showstringspaces=false,
    numbers=left,
    numberstyle=\tiny\color{gray},
    breaklines=true,
    breakatwhitespace=true,
    frame=tb,
    rulecolor=\color{black!70},
    framerule=0.5pt,
    tabsize=4,
    captionpos=b
}

\lstdefinestyle{cppstyle}{
    language=C++,
    basicstyle=\ttfamily,
    backgroundcolor=\color{gray!10},
    keywordstyle=\color{blue},
    commentstyle=\color{green!40!black},
    stringstyle=\color{red},
    showstringspaces=false,
    numbers=left,
    numberstyle=\tiny\color{gray},
    breaklines=true,
    breakatwhitespace=true,
    frame=tb,
    rulecolor=\color{black!70},
    framerule=0.5pt,
    tabsize=4,
    captionpos=b
}



\pagestyle{fancy}
\fancyhf{}
\renewcommand{\headrulewidth}{0pt}
\fancyfoot[C]{\thepage}
\fancyfoot[C]{\footnotesize \thepage \quad \textbar{} \quad Este trabajo está bajo una licencia CC BY-SA 4.0.\\ Más info: \url{https://creativecommons.org/licenses/by/4.0/}}


% ------------------------------------------------------------------------------

\begin{document}

% ------------------------------------------------------------------------------
% Cover Page and ToC
% ------------------------------------------------------------------------------

\title{ \normalsize \textsc{}
	\\ [2.0cm]
	\HRule{1.5pt} \\
	\LARGE \textbf{\uppercase{Template Trabajos}
		\HRule{2.0pt} \\ [0.6cm] \LARGE{Universidad de Bogotá Jorge Tadeo Lozano} \vspace*{13\baselineskip}}
}
\date{}
\author{\textbf{Alvarado Becerra Ludwig} \\
	 Nombre Materia - 2025-2S}

\maketitle
\thispagestyle{empty}
\newpage

\tableofcontents
\listoffigures
\listoftables
\thispagestyle{empty}
\newpage
\setcounter{page}{1}

\section{Sección}


Test\cite{test}. Python Code:

\begin{lstlisting}[style=pythonstyle]
  print("Hola Mundo!")
\end{lstlisting}

C++ code:


\begin{lstlisting}[style=cppstyle]
#include <iostream>

int main(){
  std::cout << "Hola mundo!" << std::endl;
  return 0;
}
\end{lstlisting}

Grafo


\begin{center}
  \begin{tikzpicture}[node distance={15mm}, thick, main/.style = {draw, circle}]
    \node[main] (n1) {\(1\)};
    \node[main] (n2) [above of=n1] {\(2\)};
    \node[main] (n3) [right of=n2, xshift=10mm, yshift=-3mm] {\(3\)};
    \node[main] (n4) [right of=n1] {\(4\)};
    \draw[-{Stealth}] (n1) -- (n2);
    \draw[-{Stealth}] (n1) -- (n4);
    \draw[-{Stealth}] (n2) -- (n4);
    \draw[-{Stealth}] (n2) -- (n3);
  \end{tikzpicture}
\end{center}


Bash:

\begin{lstlisting}[style=bashstyle]
echo "Hola Mundo!"
\end{lstlisting}


\addcontentsline{toc}{section}{Referencias}
\printbibliography

\newpage

\thispagestyle{empty}

\vspace*{0.3\textwidth}

\begin{figure}[H]
  \centering
  \includesvg[width=\textwidth]{img/LogoUtadeo.svg}
\end{figure}



\end{document}
