我们在使用Latex时,有时需要另起一页继续写。这时,你最好使用“\clearpage” 实现这个功能,而不要用“\newpage”。
因为:
\newpage:
\clearpage:The \clearpage command ends the current page and causes all figures and tables that have so far appeared in the input to be printed.
通俗点讲就是当你新加的一页内容较多时,两者基本一样,当新加的一页内容较少时,“\newpage”就无法实现你想要的效果,但“\clearpage”可以。
举个例子:
exp1:
\documentclass[twocolumn]{article}
\usepackage{CJK}
\setlength\textwidth{8cm}
\setlength\textheight{8cm}
\begin{document}
\begin{CJK*}{GBK}{song}
\CJKtilde
第一面
\newpage
对不起,还是第一面
\clearpage
\end{CJK*}
\end{document}
exp2:
\documentclass[twocolumn]{article}
\usepackage{CJK}
\setlength\textwidth{8cm}
\setlength\textheight{8cm}
\begin{document}
\begin{CJK*}{GBK}{song}
\CJKtilde
第一面
\clearpage
哈哈,第二面
\clearpage
\end{CJK*}
\end{document}
本文介绍了在使用Latex排版时如何正确地进行分页操作。通过对比
ewpage与clearpage两个命令的区别,解释了在不同情况下它们的作用及适用场景,并提供了具体的示例代码。

1万+

被折叠的 条评论
为什么被折叠?



