I create a table, but it goes off the bottom margin of the page.
This is the code:
\documentclass[a4paper, 12pt]{report} %report è utilizzato per la tesi
\usepackage[left=1.5in, top=0.5in, bottom=1.0in, right=1.0in]{geometry}
\usepackage[italian]{babel} %pacchetto italiano
\usepackage[utf8]{inputenc}
\usepackage[hidelinks]{hyperref} %crea i link sulle parole od indice
\usepackage{amsmath,amssymb} %pacchetto matematica
\usepackage{graphicx} %pacchetto per immagini. File supportati PNG, JPEG e PDF
\usepackage{grffile}
\usepackage{makeidx} %crea l'indice
\usepackage{wrapfig}
\usepackage{array}
\usepackage{booktabs}
\usepackage{tabularx}
\usepackage[table]{xcolor}
\setlength{\arrayrulewidth}{0.5mm}
\setlength{\tabcolsep}{18pt}
\renewcommand{\arraystretch}{1.5}
\newcolumntype{s}{>{\columncolor[HTML]{AAACED}} p{3cm}}
\arrayrulecolor[HTML]{0d0d0c}
\usepackage{multirow}
\usepackage{hhline}
\usepackage{afterpage} %crea pagina bianca
\usepackage{lipsum} %testo lipsum
\pagenumbering{roman} %numeri romani
\usepackage[Sonny]{fncychap}
%\usepackage[autostyle, italian=guillemets]{csquotes}
%\usepackage[backend=bibtex, style=numeric]{biblatex}
%\usepackage{guit}
%\addbibresource{Bibliografia.bib}
%\usepackage{filecontents}
\usepackage{afterpage}
\newcommand\blankpage{%
\null
\thispagestyle{empty}%
\addtocounter{page}{-1}%
\newpage}
\title{}
\begin{document}
\begin{table}[htbp]
\centering
\begin{tabularx}{\linewidth}{XXXX}
\rowcolor{cyan} \multicolumn{1}{c}{\textit{\textbf{USE CASE #1}}} & \multicolumn{3}{c}{\textit{\textbf{Improvements of a subject}}} \tabularnewline \midrule
\textbf{Goal context} & \multicolumn{3}{p{4cm}}{Conoscere gli sviluppi di una materia} \tabularnewline \midrule
\textbf{Preconditions} & \multicolumn{3}{p{4cm}}{Lo studente deve aver svolto almeno due esercizi di una stessa materia} \tabularnewline \midrule
\textbf{Success end condition} & \multicolumn{3}{p{4cm}}{Lo studente viene a conoscenza degli sviluppi di una materia} \tabularnewline \midrule
\textbf{Failed end condition} & \multicolumn{3}{p{4cm}}{ la macchina non trova i valori richiesti o lo studente ha svolto meno die due esercizi }\tabularnewline \midrule
\textbf{Primary Actor} & \multicolumn{3}{p{4cm}}{Lo studente} \tabularnewline \midrule
\textbf{Trigger} & \multicolumn{3}{p{4cm}}{Preme il tasto "Learning" dal menù in home} \tabularnewline \midrule
\rowcolor{cyan} \multicolumn{1}{p{4cm}}{ \textbf{Description}}& \textbf{Step} & \textbf{Studente} & \textbf{Sistema} \tabularnewline \midrule
& \textbf{1} & Preme il tasto "Learning" dal menù in home & Mostra la Learning Room \tabularnewline \midrule
& \textbf{2} & & Mostra la Learning Room \tabularnewline \midrule
& \textbf{3} & Preme il tasto "Start" & Attiva la comunicazione vocale \tabularnewline \midrule
& \textbf{4} & & Attiva la comunicazione vocale \tabularnewline \midrule
& \textbf{5} & Seleziona verbalmente l'opzione 3 & \tabularnewline \midrule \pagebreak
& \textbf{6} & & Comunica verbalmente i progressi \tabularnewline \midrule
\rowcolor{cyan} \multicolumn{1}{p{4cm}}{ \textbf{Extension}}& \textbf{Step} & \textbf{Studente} & \textbf{Sistema} \tabularnewline \midrule
Caso in cui lo studente non preme il tasto "Learning" ma preme "Exit" & \textbf{1.1} & Preme il tasto "Exit" presente nell'home & \tabularnewline \midrule
\end{tabularx}
\caption{tabularx-version with booktabs: Brief overview of all economic schools and their understanding of cyclical drivers.\cite{BormotovMichael2009}}
\label{table:economicSchools3}
\end{table}
\end{document}


\end{table}at the end, so your tabular should be a float. What floating parameters did you use? They could be interfering with LaTeX trying to float the table to the next page. – Miyase Jun 07 '22 at 22:47\begin{table}line that would control the table placement. the table does not seem very big, why does it not fit on the page? You have not shown any code that would allow anyone to answer the question. – David Carlisle Jun 07 '22 at 22:47\begin{table}[htbp]. Now can you help me? – Valerio Panzera Jun 07 '22 at 22:54\documentclass?) Adding the missing line show that your table simply has too narrow columns and a lot of wasted space. If you really want to keep that design, you need to make it alongtablethat can be split over several pages. What do you prefer? – Miyase Jun 07 '22 at 23:10