当最后一页以参考文献列表结束时,如何自动控制最后一页的最小行数(5 行)?

当最后一页以参考文献列表结束时,如何自动控制最后一页的最小行数(5 行)?

当最后一页以参考文献列表结束时,如何自动控制最后一页的最小行数(5 行)?

\documentclass{article}

\begin{document}

Hello, here is some text without a meaning.  This text should show what 
a printed text will look like at this place.  If you read this text, 
you will get no information.  Really?  Is there no information?  Is there 
a difference between this text and some nonsense like not at all!  A 
blind text like this gives you information about the selected font, how 
the letters are written and an impression of the look.  This text should
contain all letters of the alphabet and it should be written in of the
original language.There is no need for special content, but the length of
words should match the language.

Hello, here is some text without a meaning.  This text should show what 
a printed text will look like at this place.  If you read this text, 
you will get no information.  Really?  Is there no information?  Is there 
a difference between this text and some nonsense like not at all!  A 
blind text like this gives you information about the selected font, how 
the letters are written and an impression of the look.  This text should
contain all letters of the alphabet and it should be written in of the
original language.There is no need for special content, but the length of
words should match the language.

Hello, here is some text without a meaning.  This text should show what 
a printed text will look like at this place.  If you read this text, 
you will get no information.  Really?  Is there no information?  Is there 
a difference between this text and some nonsense like not at all!  A 
blind text like this gives you information about the selected font, how 
the letters are written and an impression of the look.  This text should
contain all letters of the alphabet and it should be written in of the
original language.There is no need for special content, but the length of
words should match the language.

Hello, here is some text without a meaning.  This text should show what 
a printed text will look like at this place.  If you read this text, 
you will get no information.  Really?  Is there no information?  Is there 
a difference between this text and some nonsense like not at all!  A 
blind text like this gives you information about the selected font, how 
the letters are written and an impression of the look.  This text should
contain all letters of the alphabet and it should be written in of the
original language.There is no need for special content, but the length of
words should match the language.

Hello, here is some text without a meaning.  This text should show what 
a printed text will look like at this place.  If you read this text, 
you will get no information.  Really?  Is there no information?  Is there 
a difference between this text and some nonsense like not at all!  A 
blind text like this gives you information about the selected font, how 
the letters are written and an impression of the look.  This text should
contain all letters of the alphabet and it should be written in of the
original language.There is no need for special content, but the length of
words should match the language.

Hello, here is some text without a meaning.  This text should show what 
a printed text will look like at this place.  If you read this text, 
you will get no information.  Really?  Is there no information?  Is there 
a difference between this text and some nonsense like not at all!  A 
blind text like this gives you information about the selected font, how 
the letters are written and an impression of the look.  This text should
contain all letters of the alphabet and it should be written in of the
original language.There is no need for special content, but the length of
words should match the language.

Hello, here is some text without a meaning.  This text should show what 
a printed text will look like at this place.  If you read this text, 
you will get no information.  Really?  Is there no information?  Is there 
a difference between this text and some nonsense like not at all!  A 
blind text like this gives you information about the selected font, how 
the letters are written and an impression of the look.  This text should
contain all letters of the alphabet and it should be written in of the
original language.There is no need for special content, but the length of
words should match the language.

Hello, here is some text without a meaning.  This text should show what 
a printed text will look like at this place.  If you read this text, 
you will get no information.  Really?  Is there no information?  Is there 
a difference between this text and some nonsense like not at all!  A 
blind text like this gives you information about the selected font, how 
the letters are written and an impression of the look.  This text should
contain all letters of the alphabet and it should be written in of the
original language.There is no need for special content, but the length of
words should match the language.

Hello, here is some text without a meaning.  This text should show what 
a printed text will look like at this place.  If you read this text, 
you will get no information.  Really?  Is there no information?  Is there 
a difference between this text and some nonsense like not at all!  A 
blind text like this gives you information about the selected font, how 
the letters are written and an impression of the look.  This text should
contain all letters of the alphabet and it should be written in of the
original language.There is no need for special content, but the length of
words should match the language.

Hello, here is some text without a meaning.  This text should show what 
a printed text will look like at this place.  If you read this text, 
you will get no information.  Really?  Is there no information?  Is there 
a difference between this text and some nonsense like not at all!  A 
blind text like this gives you information about the selected font, how 
the letters are written and an impression of the look.  

\begin{thebibliography}{}

\bibitem{01} Blankenship, B. (1998). Baker roll 1924: Eastern Band of Cherokee Indians of North Carolina. Cherokee, NC: Cherokee Roots.

\bibitem{02} Kempe, C. H., \& Helfer, R. E. (1980). The battered child (5th ed.). Chicago, IL: University of Chicago Press.

\bibitem{03} World Bank (2004). Gender and development in the Middle East and North Africa: women in the public sphere. Washington, DC: Author.

\bibitem{04} Duncan, G. J., \& Brooks-Gunn, J. (Eds.). (1997). Consequences of growing up poor. New York, NY: Russell Sage Foundation.

\bibitem{05} Ickes, W. (Ed.). (1998). Empathic accuracy. New York, NY: Guilford Press.

\end{thebibliography}

\end{document}

答案1

您可以测试第二项的末尾是否靠近页面末尾,如果是,则断页:

\ifdim\pagetotal > 460pt  \newpage \fi 

这通常会在文本较少或更多时按预期工作,但如果您只添加 12-14 行, \pagetotal则大约为 530pt 左右(即接近\pagegoal550pt)。然后 LaTeX 可以决定第一和第二个引用之间的最佳间隔无需重置即可恢复\pagetotal至 0.0pt

我现在不知道如何正确解决这个问题,但是这个 MWE 的一个糟糕的解决方案可能是嵌套条件,当第三个项目接近(但不是太接近)时使分页符\pagegoal

\ifdim \dimexpr\pagetotal+7\baselineskip  > \pagegoal  
   \ifdim \dimexpr\pagetotal+2\baselineskip  > \pagegoal
      \else \newpage 
   \fi
\fi 

答案2

让我们避开表格的美学方面,假设您想缩放图像以适合页面的其余部分。

2\lineskip是我的猜测。删除它会使图像过大,但如果没有它,\vfill图像下方就会出现一个小间隙。

\documentclass{article}
\usepackage{graphicx}
\usepackage{lipsum}
\usepackage{showframe}

\begin{document}

\lipsum[1-3]

\vfill{\centering
\includegraphics[width=\textwidth, height={\dimexpr \pagegoal-\pagetotal-2\lineskip}, 
  keepaspectratio]{example-image}
\par}

\end{document}

相关内容