TeX - LaTeX Asked by Uvaraj on November 27, 2020
How can I control automatically the minimum number of lines(5 lines) in last page when it ends with reference list?
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}
You can test if the end of the second item is near of the end of page, and break the page if this is true:
ifdimpagetotal > 460pt newpage fi
This generally will work as expected with less or more text, but if you add exactly only 12-14 lines, pagetotal
will be about 530pt or so (that is, near of pagegoal
of 550pt). Then LaTeX could decide that there a optimal break between 1st and 2nd references without reset before pagetotal
to 0.0pt.
I don't know now how to solve this correctly, but a poor man solution for this MWE could be a nested conditional to make the page break when the third item is near (but not very near) of the pagegoal
:
ifdim dimexprpagetotal+7baselineskip > pagegoal
ifdim dimexprpagetotal+2baselineskip > pagegoal
else newpage
fi
fi
Answered by Fran on November 27, 2020
Get help from others!
Recent Questions
Recent Answers
© 2024 TransWikia.com. All rights reserved. Sites we Love: PCI Database, UKBizDB, Menu Kuliner, Sharing RPP