When we use Latex, we sometimes need to start a new page to continue writing. Instead of using \ newPage, you’d better implement this using \ ClearPage.
Because:
\newpage: WBR> 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.
In plain English, when you add a large number of new pages, the two are basically the same. When you add a small number of new pages, \ NewPage won’t achieve the effect you want, but \ ClearPage will.
Here’s an example:
Exp1:
\documentclass[twocolumn]{article}
\usepackage{CJK}
\setlength\textwidth{8cm}
\setlength\textheight{8cm}
\begin{document}
\begin{CJK*}{song}
\CJKtilde
first side
\newpage
sorry, first side
\clearpage
\end{CJK*}
\end{document}
Exp2:
\documentclass[twocolumn]{article}
\usepackage{CJK}
\setlength\textwidth{8cm}
\setlength\textheight{8cm}
\begin{document}
\begin{CJK*}{song}
\CJKtilde
first side
\clearpage
haha, second side
\clearpage
\end{CJK*}
\end{document}
Because:
\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.
In plain English, when you add a large number of new pages, the two are basically the same. When you add a small number of new pages, \ NewPage won’t achieve the effect you want, but \ ClearPage will.
Here’s an example:
Exp1:
\documentclass[twocolumn]{article}
\usepackage{CJK}
\setlength\textwidth{8cm}
\setlength\textheight{8cm}
\begin{document}
\begin{CJK*}{song}
\CJKtilde
first side
\newpage
sorry, first side
\clearpage
\end{CJK*}
\end{document}
Exp2:
\documentclass[twocolumn]{article}
\usepackage{CJK}
\setlength\textwidth{8cm}
\setlength\textheight{8cm}
\begin{document}
\begin{CJK*}{song}
\CJKtilde
first side
\clearpage
haha, second side
\clearpage
\end{CJK*}
\end{document}
Read More:
- Latex sets page margin, page size, page margin and geometry macro package
- Let’s get started with latex 05, line feed, paragraph feed, page feed, first line indent, etc
- Wrong path to add PCH file. Apple llvm 9.0 – language cannot be found in the new project
- Click the button to use in the react project window.open Methods open a new page and click the data again
- Three methods of JavaScript jump to new page
- New version of grafana add data source error!
- LaTeX Error: Can be used only in preamble
- Add a new springboot, and it will appear unable to read meta data for class when it is dependent
- There will be row spacing problems in algorithm use in latex. Please use the ‘setstretch {1.35}
- Latex macro package and latex error: file ‘xxx. Sty’ not found
- How to Fix errors in Chinese input of latex
- Greek letters in latex
- Android’s viewpager slides to determine whether the current stop page is the last page
- How to Use Subfigure in Latex
- Three ways of latex supporting Chinese
- Error report on & written by latex in overleaf
- How to empty a whole line in latex (simple and effective)
- The requested page cannot be accessed because the related configuration data for the page is invalid
- In many cases, the problem of error reporting by label in latex
- Latex row overflow problem overfull / hbox (1.1499pt too wide) in paragraph