I need to organize both my list of figures and tables to adhere to two reports attached together, corresponding to each title of the reports, as it has to be one pdf file. I have seen hardly any material covering this, whereas any material I did find was overly complicated or simply did not work.
This is how I need the two Lists to appear (Note that I am using sections not chapters):
This is my LoF and LoT, where the red line indicates where I need the section title. Lab 2 is an exact copy of 1 so that I could test the LoF and LoT.
Mve below for main file:
\documentclass[12pt]{article}
\usepackage[margin=3cm]{geometry}
\usepackage{graphicx}
\usepackage{listings}
\usepackage{tikz}
\usepackage[utf8]{inputenc}
\usepackage[linktocpage=true]{hyperref}
\hypersetup{
colorlinks,
citecolor=black,
filecolor=black,
linkcolor=black,
urlcolor=black
}
\usepackage{chngcntr}
\usepackage{etoolbox}
\usepackage{subcaption}
\usepackage{caption}
\usepackage{cleveref}
\usepackage{refstyle}
\usepackage{color}
\usepackage{textcomp}
\definecolor{listinggray}{gray}{0.9}
\definecolor{lbcolor}{rgb}{0.9,0.9,0.9}
\input{ArduinoCodeListing}
\begin{document}
\input{labCover.tex}
\pagenumbering{roman}
\newpage
\setcounter{page}{1}
\tableofcontents
\newpage
\listoffigures
\listoftables
\newpage
\input{Lab1}
\newpage
\setcounter{section}{0}
\renewcommand{\thesection}{\arabic{section}}
\input{Lab2}
%\newpage
%\setcounter{section}{0}
%\renewcommand{\thesection}{\arabic{section}}
%\input{Lab3.tex}
%append more reports in the future...
\end{document}

