Latex 文本超出底部边缘并被剪切

Latex 文本超出底部边缘并被剪切

在此处输入图片描述

以下是给出有线结果的代码。

\documentclass[a4paper,12pt, oneside]{book}

%enable linespacing commands%
\usepackage{setspace}
%set onehalf line spacing
\onehalfspacing

%enable H option that prevent figure floats
\usepackage{float}

%used to import graphics%
\usepackage{graphicx}

%used for referencing%
\usepackage{harvard}

%customise chapter styles%
\usepackage{titlesec}
\titleformat{\chapter}{}{}{0em}{\bf\LARGE}

%set bibliography listing style to agsm%
\bibliographystyle{agsm}

%set margins%
\usepackage[left=3cm,right=3cm,top=3cm,bottom=3cm]{geometry}

%keep only the page number%
\pagestyle{plain}

%allows to create tables with different column widths%
\usepackage{tabularx}

%allows to create tables that can span accross pages%
\usepackage{longtable}%dependency of longtabu
\usepackage{tabu}%contains longtabu

%enable support for source code
% this package needs the python package 'sudo pip install pygments'
%add pdfLaTeX option -shell-escape
\usepackage{minted}

\begin{document}




\begin{figure}%[H]
\centering
\caption{possible example composition of a Cgui GUI}
\label{fig:cgui_square}
sdl kfj slkdfj klsdjfklsj dfkl jskldfj klsj kl
sdf kjsdhf kjsdh fkj
sd fjhgsd fkjhsdkf
sdl kfj slkdfj klsdjfklsj dfkl jskldfj klsj kl
sdf kjsdhf kjsdh fkj
sd fjhgsd fkjhsdkf
sdl kfj slkdfj klsdjfklsj dfkl jskldfj klsj kl
sdf kjsdhf kjsdh fkj
sd fjhgsd fkjhsdkf
sdl kfj slkdfj klsdjfklsj dfkl jskldfj klsj kl
sdf kjsdhf kjsdh fkj
sd fjhgsd fkjhsdkf
sdl kfj slkdfj klsdjfklsj dfkl jskldfj klsj kl
sdf kjsdhf kjsdh fkj
sd fjhgsd fkjhsdkf
sdl kfj slkdfj klsdjfklsj dfkl jskldfj klsj kl
sdf kjsdhf kjsdh fkj
sd fjhgsd fkjhsdkf
sdl kfj slkdfj klsdjfklsj dfkl jskldfj klsj kl
sdf kjsdhf kjsdh fkj
sd fjhgsd fkjhsdkf
sdl kfj slkdfj klsdjfklsj dfkl jskldfj klsj kl
sdf kjsdhf kjsdh fkj
sd fjhgsd fkjhsdkf
sdl kfj slkdfj klsdjfklsj dfkl jskldfj klsj kl
sdf kjsdhf kjsdh fkj
sd fjhgsd fkjhsdkf
sdl kfj slkdfj klsdjfklsj dfkl jskldfj klsj kl
sdf kjsdhf kjsdh fkj
sd fjhgsd fkjhsdkf
sdl kfj slkdfj klsdjfklsj dfkl jskldfj klsj kl
sdf kjsdhf kjsdh fkj
sd fjhgsd fkjhsdkf
\end{figure}




% begining of the table
\begin{longtabu} to \textwidth { X[1 , l ]  X[1 , l ] }
\label{table:xxxx_xxxxx}\\
\caption{xxxxxxxxx xxx xxxx xxxxxx }\\
% -----------------headings----------------------%
\hline
\textbf{xxxxxxxxx xxx xxxx xxxxxx}
&
\textbf{xxxxxxxxx xxx xxxx xxxxxx}
\\
\hline
\endfirsthead

%headings for next page columns
\hline
\textbf{xxxxxxxxx xxx xxxx xxxxxx}
&
\textbf{xxxxxxxxx xxx xxxx xxxxxx}
\\
\hline
\endhead

%this is printed before the table is broken into the next page
\multicolumn{2}{r}{Continued on next page} \\
\endfoot

\hline
\endlastfoot
% ---------------headings end--------------------%
xxxxxxxxx xxx xxxx xxxxxx xxxxxxxx xxxxxx xxxxxx xxxxxxxxx
&
xxxxxxxxx xxx xxxx xxxxxx xxxxxxxx xxxxxx xxxxxx xxxxxxxxx
\\

\hline
xxxxxxxxx xxx xxxx xxxxxx xxxxxxxx xxxxxx xxxxxx xxxxxxxxx
&
xxxxxxxxx xxx xxxx xxxxxx xxxxxxxx xxxxxx xxxxxx xxxxxxxxx
\\

\hline
xxxxxxxxx xxx xxxx xxxxxx xxxxxxxx xxxxxx xxxxxx xxxxxxxxx
&
xxxxxxxxx xxx xxxx xxxxxx xxxxxxxx xxxxxx xxxxxx xxxxxxxxx
\\

\hline
xxxxxxxxx xxx xxxx xxxxxx xxxxxxxx xxxxxx xxxxxx xxxxxxxxx
&
xxxxxxxxx xxx xxxx xxxxxx xxxxxxxx xxxxxx xxxxxx xxxxxxxxx
\\
%-------------------body end---------------------%
\end{longtabu}
% end of the table



\paragraph{}
xxxxxxxxx xxx xxxx xxxxxx xxxxxxxx xxxxxx xxxxxx xxxxxxxxxxxxxxxxxx xxx xxxx xxxxxx xxxxxxxx xxxxxx xxxxxx xxxxxxxxxxxxxxxxxx xxx xxxx xxxxxx xxxxxxxx xxxxxx xxxxxx xxxxxxxxxxxxxxxxxx xxx xxxx xxxxxx xxxxxxxx xxxxxx xxxxxx xxxxxxxxxxxxxxxxxx xxx xxxx xxxxxx xxxxxxxx xxxxxx xxxxxx xxxxxxxxxxxxxxxxxx xxx xxxx xxxxxx xxxxxxxx xxxxxx xxxxxx xxxxxxxxxxxxxxxxxx xxx xxxx xxxxxx xxxxxxxx xxxxxx xxxxxx xxxxxxxxxxxxxxxxxx xxx xxxx xxxxxx xxxxxxxx xxxxxx xxxxxx xxxxxxxxxxxxxxxxxx xxx xxxx xxxxxx xxxxxxxx xxxxxx xxxxxx xxxxxxxxxxxxxxxxxx xxx xxxx xxxxxx xxxxxxxx xxxxxx xxxxxx xxxxxxxxxxxxxxxxxx xxx xxxx xxxxxx xxxxxxxx xxxxxx xxxxxx xxxxxxxxxxxxxxxxxx xxx xxxx xxxxxx xxxxxxxx xxxxxx xxxxxx xxxxxxxxxxxxxxxxxx xxx xxxx xxxxxx xxxxxxxx xxxxxx xxxxxx xxxxxxxxxxxxxxxxxx xxx xxxx xxxxxx xxxxxxxx xxxxxx xxxxxx xxxxxxxxxxxxxxxxxx xxx xxxx xxxxxx xxxxxxxx xxxxxx xxxxxx xxxxxxxxxxxxxxxxxx xxx xxxx xxxxxx xxxxxxxx xxxxxx xxxxxx xxxxxxxxxxxxxxxxxx xxx xxxx xxxxxx xxxxxxxx xxxxxx xxxxxx xxxxxxxxxxxxxxxxxx xxx xxxx xxxxxx xxxxxxxx xxxxxx xxxxxx xxxxxxxxxxxxxxxxxx xxx xxxx xxxxxx xxxxxxxx xxxxxx xxxxxx xxxxxxxxxxxxxxxxxx xxx xxxx xxxxxx xxxxxxxx xxxxxx xxxxxx xxxxxxxxxxxxxxxxxx xxx xxxx xxxxxx xxxxxxxx xxxxxx xxxxxx xxxxxxxxxxxxxxxxxx xxx xxxx xxxxxx xxxxxxxx xxxxxx xxxxxx xxxxxxxxxxxxxxxxxx xxx xxxx xxxxxx xxxxxxxx xxxxxx xxxxxx xxxxxxxxxxxxxxxxxx xxx xxxx xxxxxx xxxxxxxx xxxxxx xxxxxx xxxxxxxxxxxxxxxxxx xxx xxxx xxxxxx xxxxxxxx xxxxxx xxxxxx xxxxxxxxx xxxxxxxxx xxx xxxx xxxxxx xxxxxxxx xxxxxx xxxxxx xxx




\end{document}

答案1

如果您允许表格[h]在长表格开始之前离开队列,那么在这种情况下它会选择更好的分页符。

\documentclass[a4paper,12pt, oneside]{book}

%enable linespacing commands%
\usepackage{setspace}
%set onehalf line spacing
\onehalfspacing

%enable H option that prevent figure floats
\usepackage{float}

%used to import graphics%
\usepackage{graphicx}

%used for referencing%
\usepackage{harvard}

%customise chapter styles%
\usepackage{titlesec}
\titleformat{\chapter}{}{}{0em}{\bf\LARGE}

%set bibliography listing style to agsm%
\bibliographystyle{agsm}

%set margins%
\usepackage[left=3cm,right=3cm,top=3cm,bottom=3cm]{geometry}

%keep only the page number%
\pagestyle{plain}

%allows to create tables with different column widths%
\usepackage{tabularx}

%allows to create tables that can span accross pages%
\usepackage{longtable}%dependency of longtabu
\usepackage{tabu}%contains longtabu

%enable support for source code
% this package needs the python package 'sudo pip install pygments'
%add pdfLaTeX option -shell-escape
%\usepackage{minted}

\begin{document}




\begin{figure}[htp]
\centering
\caption{possible example composition of a Cgui GUI}
\label{fig:cgui_square}
sdl kfj slkdfj klsdjfklsj dfkl jskldfj klsj kl
sdf kjsdhf kjsdh fkj
sd fjhgsd fkjhsdkf
sdl kfj slkdfj klsdjfklsj dfkl jskldfj klsj kl
sdf kjsdhf kjsdh fkj
sd fjhgsd fkjhsdkf
sdl kfj slkdfj klsdjfklsj dfkl jskldfj klsj kl
sdf kjsdhf kjsdh fkj
sd fjhgsd fkjhsdkf
sdl kfj slkdfj klsdjfklsj dfkl jskldfj klsj kl
sdf kjsdhf kjsdh fkj
sd fjhgsd fkjhsdkf
sdl kfj slkdfj klsdjfklsj dfkl jskldfj klsj kl
sdf kjsdhf kjsdh fkj
sd fjhgsd fkjhsdkf
sdl kfj slkdfj klsdjfklsj dfkl jskldfj klsj kl
sdf kjsdhf kjsdh fkj
sd fjhgsd fkjhsdkf
sdl kfj slkdfj klsdjfklsj dfkl jskldfj klsj kl
sdf kjsdhf kjsdh fkj
sd fjhgsd fkjhsdkf
sdl kfj slkdfj klsdjfklsj dfkl jskldfj klsj kl
sdf kjsdhf kjsdh fkj
sd fjhgsd fkjhsdkf
sdl kfj slkdfj klsdjfklsj dfkl jskldfj klsj kl
sdf kjsdhf kjsdh fkj
sd fjhgsd fkjhsdkf
sdl kfj slkdfj klsdjfklsj dfkl jskldfj klsj kl
sdf kjsdhf kjsdh fkj
sd fjhgsd fkjhsdkf
sdl kfj slkdfj klsdjfklsj dfkl jskldfj klsj kl
sdf kjsdhf kjsdh fkj
sd fjhgsd fkjhsdkf
\end{figure}



% begining of the table
\begin{longtabu} to \textwidth { X[1 , l ]  X[1 , l ] }
\label{table:xxxx_xxxxx}\\
\caption{xxxxxxxxx xxx xxxx xxxxxx }\\
% -----------------headings----------------------%
\hline
\textbf{xxxxxxxxx xxx xxxx xxxxxx}
&
\textbf{xxxxxxxxx xxx xxxx xxxxxx}
\\
\hline
\endfirsthead

%headings for next page columns
\hline
\textbf{xxxxxxxxx xxx xxxx xxxxxx}
&
\textbf{xxxxxxxxx xxx xxxx xxxxxx}
\\
\hline
\endhead

%this is printed before the table is broken into the next page
\multicolumn{2}{r}{Continued on next page} \\
\endfoot

\hline
\endlastfoot
% ---------------headings end--------------------%
xxxxxxxxx xxx xxxx xxxxxx xxxxxxxx xxxxxx xxxxxx xxxxxxxxx
&
xxxxxxxxx xxx xxxx xxxxxx xxxxxxxx xxxxxx xxxxxx xxxxxxxxx
\\

\hline
xxxxxxxxx xxx xxxx xxxxxx xxxxxxxx xxxxxx xxxxxx xxxxxxxxx
&
xxxxxxxxx xxx xxxx xxxxxx xxxxxxxx xxxxxx xxxxxx xxxxxxxxx
\\

\hline
xxxxxxxxx xxx xxxx xxxxxx xxxxxxxx xxxxxx xxxxxx xxxxxxxxx
&
xxxxxxxxx xxx xxxx xxxxxx xxxxxxxx xxxxxx xxxxxx xxxxxxxxx
\\

\hline
xxxxxxxxx xxx xxxx xxxxxx xxxxxxxx xxxxxx xxxxxx xxxxxxxxx
&
xxxxxxxxx xxx xxxx xxxxxx xxxxxxxx xxxxxx xxxxxx xxxxxxxxx
\\
%-------------------body end---------------------%
\end{longtabu}
% end of the table



\paragraph{}
xxxxxxxxx xxx xxxx xxxxxx xxxxxxxx xxxxxx xxxxxx xxxxxxxxxxxxxxxxxx xxx xxxx xxxxxx xxxxxxxx xxxxxx xxxxxx xxxxxxxxxxxxxxxxxx xxx xxxx xxxxxx xxxxxxxx xxxxxx xxxxxx xxxxxxxxxxxxxxxxxx xxx xxxx xxxxxx xxxxxxxx xxxxxx xxxxxx xxxxxxxxxxxxxxxxxx xxx xxxx xxxxxx xxxxxxxx xxxxxx xxxxxx xxxxxxxxxxxxxxxxxx xxx xxxx xxxxxx xxxxxxxx xxxxxx xxxxxx xxxxxxxxxxxxxxxxxx xxx xxxx xxxxxx xxxxxxxx xxxxxx xxxxxx xxxxxxxxxxxxxxxxxx xxx xxxx xxxxxx xxxxxxxx xxxxxx xxxxxx xxxxxxxxxxxxxxxxxx xxx xxxx xxxxxx xxxxxxxx xxxxxx xxxxxx xxxxxxxxxxxxxxxxxx xxx xxxx xxxxxx xxxxxxxx xxxxxx xxxxxx xxxxxxxxxxxxxxxxxx xxx xxxx xxxxxx xxxxxxxx xxxxxx xxxxxx xxxxxxxxxxxxxxxxxx xxx xxxx xxxxxx xxxxxxxx xxxxxx xxxxxx xxxxxxxxxxxxxxxxxx xxx xxxx xxxxxx xxxxxxxx xxxxxx xxxxxx xxxxxxxxxxxxxxxxxx xxx xxxx xxxxxx xxxxxxxx xxxxxx xxxxxx xxxxxxxxxxxxxxxxxx xxx xxxx xxxxxx xxxxxxxx xxxxxx xxxxxx xxxxxxxxxxxxxxxxxx xxx xxxx xxxxxx xxxxxxxx xxxxxx xxxxxx xxxxxxxxxxxxxxxxxx xxx xxxx xxxxxx xxxxxxxx xxxxxx xxxxxx xxxxxxxxxxxxxxxxxx xxx xxxx xxxxxx xxxxxxxx xxxxxx xxxxxx xxxxxxxxxxxxxxxxxx xxx xxxx xxxxxx xxxxxxxx xxxxxx xxxxxx xxxxxxxxxxxxxxxxxx xxx xxxx xxxxxx xxxxxxxx xxxxxx xxxxxx xxxxxxxxxxxxxxxxxx xxx xxxx xxxxxx xxxxxxxx xxxxxx xxxxxx xxxxxxxxxxxxxxxxxx xxx xxxx xxxxxx xxxxxxxx xxxxxx xxxxxx xxxxxxxxxxxxxxxxxx xxx xxxx xxxxxx xxxxxxxx xxxxxx xxxxxx xxxxxxxxxxxxxxxxxx xxx xxxx xxxxxx xxxxxxxx xxxxxx xxxxxx xxxxxxxxxxxxxxxxxx xxx xxxx xxxxxx xxxxxxxx xxxxxx xxxxxx xxxxxxxxx xxxxxxxxx xxx xxxx xxxxxx xxxxxxxx xxxxxx xxxxxx xxx




\end{document}

相关内容