\documentclass[10pt]{article}

\usepackage{fullpage}
\usepackage{CJKutf8} 
\usepackage[utf8]{inputenc}
\usepackage{setspace}
\usepackage{parskip}
\usepackage{titlesec}
\usepackage[section]{placeins}
\usepackage{xcolor}
\usepackage{breakcites}
\usepackage{lineno}
\usepackage{hyphenat}





\PassOptionsToPackage{hyphens}{url}
\usepackage[colorlinks = true,
            linkcolor = blue,
            urlcolor  = blue,
            citecolor = blue,
            anchorcolor = blue]{hyperref}
\usepackage{etoolbox}
\makeatletter
\patchcmd\@combinedblfloats{\box\@outputbox}{\unvbox\@outputbox}{}{%
  \errmessage{\noexpand\@combinedblfloats could not be patched}%
}%
\makeatother


\usepackage[round]{natbib}
\let\cite\citep




\renewenvironment{abstract}
  {{\bfseries\noindent{\abstractname}\par\nobreak}\footnotesize}
  {\bigskip}

\titlespacing{\section}{0pt}{*3}{*1}
\titlespacing{\subsection}{0pt}{*2}{*0.5}
\titlespacing{\subsubsection}{0pt}{*1.5}{0pt}


\usepackage{authblk}


\usepackage{graphicx}
\usepackage[space]{grffile}
\usepackage{latexsym}
\usepackage{textcomp}
\usepackage{longtable}
\usepackage{tabulary}
\usepackage{booktabs,array,multirow}
\usepackage{amsfonts,amsmath,amssymb}
\providecommand\citet{\cite}
\providecommand\citep{\cite}
\providecommand\citealt{\cite}
% You can conditionalize code for latexml or normal latex using this.
\newif\iflatexml\latexmlfalse
\AtBeginDocument{\DeclareGraphicsExtensions{.pdf,.PDF,.eps,.EPS,.png,.PNG,.tif,.TIF,.jpg,.JPG,.jpeg,.JPEG}}

\usepackage[utf8]{inputenc}
\usepackage[english]{babel}








\usepackage{tabulary}
\setlength{\textfloatsep}{0.1cm}

\begin{document}
\begin{CJK}{UTF8}{gbsn}

\title{How do I prevent wide tables from overflowing in the exported PDF?}



\author[1]{Deyan Ginev}%
\affil[1]{Authorea}%


\vspace{-1em}



  
  \date{April 25, 2026}


\begingroup
\let\center\flushleft
\let\endcenter\endflushleft
\maketitle
\endgroup








\sloppy


In this article, we will examine two cases of table overflow, for Authorea's PDF export. Namely horizontal, exceeding the page width, and vertical, exceeding the page height.

\section{Horizontal Overflow}

A standard table in \LaTeX{} is typically realized via the \verb|{tabular}| environment. An example with too much horizontal content may look like:\selectlanguage{english}
\begin{table}[h]\centering
\begin{tabular}{|cccccccccc|}\hline
too many words here & too many words here  & too many words here  & too many words here  & too many words here  & too many words here & too many words here  & too many words here  & too many words here & too many words here \\\hline
\end{tabular}
\caption{{Horizontally Overflown Table with tabular}}
\end{table}

In the PDF export it becomes apparent this is not a viable solution for a printed page. To counteract this, we may use the more advanced \verb|{tabulary}| package, a detailed introduction to which can be found \href{https://en.wikibooks.org/wiki/LaTeX/Tables#The_tabulary_package}{here}. The main difference in effect is that tabulary will rewrap all table columns so that they fit the page, even if content has to be pushed down in suboptimal patterns. The same table in tabulary looks like:\selectlanguage{english}
\begin{table}[h]\centering
\begin{tabulary}{0.9\textwidth}{|CCCCCCCCCC|}\hline
too many words here & too many words here  & too many words here  & too many words here  & too many words here  & too many words here & too many words here  & too many words here  & too many words here & too many words here \\\hline
\end{tabulary}
\caption{{Horizontally Overflown Table with tabulary}}
\end{table}




\section{Vertical Overflow}

As in the horizontal case, when a \verb|{tabular}| table overflows the screen, it is simple clipped at the page edge. Example may look like:\selectlanguage{english}
\begin{table}[h]\centering
\begin{tabular}{c}
$\downarrow$ \\
$\downarrow$ \\
$\downarrow$ \\
$\downarrow$ \\
$\downarrow$ \\
$\downarrow$ \\
$\downarrow$ \\
$\downarrow$ \\
$\downarrow$ \\
$\downarrow$ \\
$\downarrow$ \\
$\downarrow$ \\
$\downarrow$ \\
$\downarrow$ \\
$\downarrow$ \\
$\downarrow$ \\
$\downarrow$ \\
$\downarrow$ \\
$\downarrow$ \\
$\downarrow$ \\
$\downarrow$ \\
$\downarrow$ \\
$\downarrow$ \\
$\downarrow$ \\
$\downarrow$ \\
$\downarrow$ \\
$\downarrow$ \\
$\downarrow$ \\
$\downarrow$ \\
$\downarrow$ \\
$\downarrow$ \\
$\downarrow$ \\
$\downarrow$ \\
$\downarrow$ \\
$\downarrow$ \\
$\downarrow$ \\
$\downarrow$ \\
$\downarrow$ \\
$\downarrow$ \\
$\downarrow$ \\
$\downarrow$ \\
$\downarrow$ \\
$\downarrow$ \\
$\downarrow$ \\
$\downarrow$ \\
$\downarrow$ \\
$\downarrow$ \\
$\downarrow$ \\
$\downarrow$ \\
$\downarrow$ \\
$\downarrow$ \\
$\downarrow$ \\
$\downarrow$ \\
$\downarrow$ \\
$\downarrow$ \\
$\downarrow$ \\
$\downarrow$ \\
$\downarrow$ \\
$\downarrow$ \\
$\downarrow$ \\
$\downarrow$ \\
$\downarrow$ \\
$\downarrow$ \\
\end{tabular}
\end{table}
\clearpage

The same example looks can be typeset neatly if one simply replaces the use of tabular with \verb|{longtable}|:
\begin{center}\selectlanguage{english}
\begin{longtable}{c}
$\downarrow$ \\
$\downarrow$ \\
$\downarrow$ \\
$\downarrow$ \\
$\downarrow$ \\
$\downarrow$ \\
$\downarrow$ \\
$\downarrow$ \\
$\downarrow$ \\
$\downarrow$ \\
$\downarrow$ \\
$\downarrow$ \\
$\downarrow$ \\
$\downarrow$ \\
$\downarrow$ \\
$\downarrow$ \\
$\downarrow$ \\
$\downarrow$ \\
$\downarrow$ \\
$\downarrow$ \\
$\downarrow$ \\
$\downarrow$ \\
$\downarrow$ \\
$\downarrow$ \\
$\downarrow$ \\
$\downarrow$ \\
$\downarrow$ \\
$\downarrow$ \\
$\downarrow$ \\
$\downarrow$ \\
$\downarrow$ \\
$\downarrow$ \\
$\downarrow$ \\
$\downarrow$ \\
$\downarrow$ \\
$\downarrow$ \\
$\downarrow$ \\
$\downarrow$ \\
$\downarrow$ \\
$\downarrow$ \\
$\downarrow$ \\
$\downarrow$ \\
$\downarrow$ \\
$\downarrow$ \\
$\downarrow$ \\
$\downarrow$ \\
$\downarrow$ \\
$\downarrow$ \\
$\downarrow$ \\
$\downarrow$ \\
$\downarrow$ \\
$\downarrow$ \\
$\downarrow$ \\
$\downarrow$ \\
$\downarrow$ \\
$\downarrow$ \\
$\downarrow$ \\
$\downarrow$ \\
$\downarrow$ \\
$\downarrow$ \\
$\downarrow$ \\
$\downarrow$ \\
$\downarrow$ \\
\end{longtable}
\end{center}

There is a variety of advanced customization options also available for longtable environments.

test exporter

\selectlanguage{english}
\FloatBarrier
\end{CJK}\end{document}

