Latex添加新一页——用“\clearpage” 不要用“\newpage”

我们在使用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}

  • 52
    点赞
  • 70
    收藏
    觉得还不错? 一键收藏
  • 6
    评论
评论 6
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值