\clearpage & \cleardoublepage (LaTeX2e unofficial reference manual (July 2023)) | 您所在的位置:网站首页 › 强力删除删不掉的文件怎么删 › \clearpage & \cleardoublepage (LaTeX2e unofficial reference manual (July 2023)) |
Next: \newpage, Up: Page breaking [Contents][Index] 10.1 \clearpage & \cleardoublepageSynopsis: \clearpageor \cleardoublepageEnd the current page and output all of the pending floating figures and tables (see Floats). If there are too many floats to fit on the page then LaTeX will put in extra pages containing only floats. In two-sided printing, \cleardoublepage also makes the next page of content a right-hand page, an odd-numbered page, if necessary inserting a blank page. The \clearpage command is robust while \cleardoublepage is fragile (see \protect). LaTeX’s page breaks are optimized so ordinarily you only use this command in a document body to polish the final version, or inside commands. The \cleardoublepage command will put in a blank page, but it will have the running headers and footers. To get a really blank page, use this command. \let\origdoublepage\cleardoublepage \newcommand{\clearemptydoublepage}{% \clearpage {\pagestyle{empty}\origdoublepage}% }If you want LaTeX’s standard \chapter command to do this then add the line \let\cleardoublepage\clearemptydoublepage. (Of course this affects all uses of \cleardoublepage, not just the one in \chapter.) The command \newpage (see \newpage) also ends the current page, but without clearing pending floats. And, if LaTeX is in two-column mode then \newpage ends the current column while \clearpage and \cleardoublepage end the current page. |
CopyRight 2018-2019 实验室设备网 版权所有 |