我们在使用Latex时,有时需要另起一页继续写。这时,你最好使用“\clearpage” 实现这个功能,而不要用“\newpage”。

因为:

\newpage:  The \newpage command ends the current page.
\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}

Logo

AtomGit 是由开放原子开源基金会联合 CSDN 等生态伙伴共同推出的新一代开源与人工智能协作平台。平台坚持“开放、中立、公益”的理念,把代码托管、模型共享、数据集托管、智能体开发体验和算力服务整合在一起,为开发者提供从开发、训练到部署的一站式体验。

更多推荐