\documentclass[letterpaper, 12pt, twoside]{article}
\setlength{\textheight}{24cm}
\setlength{\textwidth}{16cm}
\setlength{\oddsidemargin}{0.2cm}
\setlength{\topmargin}{-2cm}
\setlength{\columnsep}{2cm}
\setlength{\parindent}{24pt}
\parskip=5mm
\linespread{1.35}
\evensidemargin=0.3cm
\parindent=0mm
\pagenumbering{roman}
\usepackage{pdfpages}
\usepackage{longtable}
\usepackage{chngcntr}
\usepackage{helvet}
\usepackage{longtable,tabu}
\usepackage{fancyhdr}
\usepackage{stackengine}
\usepackage{pgfgantt}
\usepackage[utf8]{inputenc}
\usepackage{graphicx}
\usepackage[graphicx]{realboxes}
\usepackage{float} % for [H] location specifier
\usepackage{multirow}
\usepackage[nottoc,numbib]{tocbibind}
\usepackage{pgfplots}
\usepackage{amsmath}
\usepackage{lipsum}
\usepackage{amsmath}
\usepackage{adjustbox}
\usepackage{amssymb}
\usepackage{pdflscape}
\usepackage{pdflscape}
\usepackage[binary-units=true]{siunitx}
\usepackage[american,cuteinductors]{circuitikz}
\usepackage[pdftex,pdftitle={Work Progress - Week 10 - Invasive RDMA Protocol - TCRC-89 - TEC},hidelinks]{hyperref}
\counterwithin{figure}{section}
\counterwithin{table}{section}
\usepackage[usegeometry]{typearea}% before geometry!
\usepackage{geometry}
\geometry{
left=0.9in, right=0.9in, top=0.3in, bottom=1.25in,headheight=23pt,includehead
}
\newcommand*{\useportrait}{%
\clearpage
\KOMAoptions{paper=portrait,DIV=current}%switch to portrait
\newgeometry{% geometry settings for portrait
left=0.5in, right=0.5in, top=0.6in, bottom=1.25in,headheight=23pt,includehead
}%
\fancyhfoffset{0pt}% <- recalculate head and foot width for fancyhdr
}
\newcommand*{\uselandscape}{%
\clearpage
\KOMAoptions{paper=landscape,DIV=current}%switch to landscape
\newgeometry{% geometry settings for landscap
left=0.5in, right=0.5in, top=0.6in, bottom=1.25in,headheight=23pt,includehead
}%
\fancyhfoffset{0pt}% recalculate head and foot width for fancyhdr
}
\pgfplotsset{width=12cm,compat=1.9}
\definecolor{barblue}{RGB}{153,204,254}
\definecolor{groupblue}{RGB}{51,102,254}
\definecolor{linkred}{RGB}{165,0,33}
\renewcommand\sfdefault{phv}
\renewcommand\mddefault{mc}
\renewcommand\bfdefault{bc}
\setganttlinklabel{s-s}{START-TO-START}
\setganttlinklabel{f-s}{FINISH-TO-START}
\setganttlinklabel{f-f}{FINISH-TO-FINISH}
\sffamily
\pagestyle{fancy}
\fancyhf{}
\fancyhead[RE]{\textit{The project}}
\fancyhead[RO]{\thepage}
\fancyhead[LO]{\textit{The topic}}
\fancyhead[LE]{\thepage}
\sisetup{per-mode=symbol,per-symbol = p}
\newcommand\textbox[1]{%
\parbox{.333\textwidth}{#1}%
}
%\renewcommand{\familydefault}{\sfdefault}
\graphicspath{{./}{./fig/}}
\title{This is a template}
\begin{document}
\input{portada.tex}
\newpage
\setcounter{page}{1}
\tableofcontents
\clearpage
\listoftables
\listoffigures
\newpage
\pagenumbering{arabic}
\end{document}