\documentclass{article}


\usepackage{graphicx} % Required for inserting images
\usepackage{amsmath}  % Required for mathematical symbols
\usepackage{hyperref} % For hyperlinks


\title{Sample LaTeX Document}
\author{Generated by ChatGPT}
\date{\today}


\begin{document}


\maketitle


\tableofcontents


\section{Introduction}
This is a sample LaTeX document that includes various common elements such as sections, lists, tables, figures, and mathematical equations.


\section{Lists}
\subsection{Itemized List}
\begin{itemize}
\item First item
\item Second item
\item Third item
\end{itemize}


\subsection{Enumerated List}
\begin{enumerate}
\item First item
\item Second item
\item Third item
\end{enumerate}


\section{Mathematical Equations}
Here are some sample mathematical equations:


\subsection{Inline Equation}
This is an inline equation: \( E = mc^2 \).


\subsection{Displayed Equations}
\begin{equation}
a^2 + b^2 = c^2
\end{equation}


\begin{align}
x &= y + z \\
y &= mx + b
\end{align}


\section{Tables}
Here is a sample table:


\begin{table}[h!]
\centering
\begin{tabular}{|c|c|c|}
\hline
Header 1 & Header 2 & Header 3 \\
\hline
Data 1 & Data 2 & Data 3 \\
Data 4 & Data 5 & Data 6 \\
Data 7 & Data 8 & Data 9 \\
\hline
\end{tabular}
\caption{Sample Table}
\label{table:1}
\end{table}


\section{Figures}
Here is a sample figure:


\begin{figure}[h!]
\centering
\includegraphics[width=0.5\textwidth]{example-image}
\caption{Sample Figure}
\label{fig:1}
\end{figure}


\section{Sections and Subsections}
This is an example of a section with subsections.


\subsection{Subsection 1}
Content of subsection 1.


\subsection{Subsection 2}
Content of subsection 2.


\section{References}
Here is a reference to the table \ref{table:1} and the figure \ref{fig:1}.


\end{document}
