我使用Latex,文档类是书。在每一章之后,有一个页头和页面,页面上还有一个奇怪的符号,其余的是空白的。然后在此页面之后生成正常的空白页面。有没有人遇到过这样的问题?如何摆脱这个“非空白”空白页面? 非常感谢和祝福!
答案 0 :(得分:0)
我遇到了类似的问题,发现它依赖于我所拥有的软件包的组合,以及初始化命令的顺序。我附上我的正常标题。唯一的非标准部分是partpg,它适用于chappg为章节所做的章节。
\documentclass[10pt,notitlepage]{book}%
\usepackage[a4paper,twoside,bindingoffset=0in,left=1.25in,right=1.25in,top=1in,
b ottom=1.5in,includemp,marginparwidth=1.25in,heightrounded,verbose]{geometry}
\usepackage{sectsty} % Fancy section Headers.
\usepackage{fancyhdr} % Headers and footers.
\usepackage{parskip} % Paragraph layout - no indent, line space between.
\usepackage{tocbibind} % Include index, toc, and biblio in toc.
\usepackage[auto]{partpg} % Modified version of chappg to provide part-pageno type page numbering.
\usepackage{appendix} % Multiple appendix sections in multi part document.
\usepackage[style=altlist,toc=true]{glossary} % Enhanced glossary commands.
\usepackage{calc} % Provide inline calculation of variable setting.
\usepackage{color} % Colour support.
\usepackage{xifthen} % Programming commands.
\usepackage{longtable}
\input{dataTypeDef}
%----------------------------------------------------------
\fontsize{10}{12}
\partfont{\raggedright}
\settocname{Table of Contents}
\makeglossary
% There is a conflict between partpg and makeglos.
% To generate the glossary, run makeglos AFTER removing the next line.
\renewcommand{\partpgsep}{.}
\renewcommand{\glossaryname}{Glossary}
\setlength{\headheight}{13.6pt}
\pagestyle{fancy}%
{% Ensure appendices in different parts restart numbering at A each time
\renewcommand{\restoreapp}{}
\fancypagestyle{plain}{% Redefine style to use the relevant elements on the part pages
\fancyhfoffset[LE,RO]{\marginparsep+\marginparwidth}
\renewcommand{\headrulewidth}{0.1pt}
\renewcommand{\footrulewidth}{0.1pt}
\fancyhead[LE,RO]{\leftmark}
\fancyfoot[LE,RO]{\thepage}}%
\makeatletter% Redefine cleardoublepage so blank pages at the end of chapters have desired header.
\def\cleardoublepage{\clearpage\if@twoside \ifodd\c@page\else
\hbox{}
\vspace*{\fill}
\pagestyle{plain}
\newpage
\if@twocolumn\hbox{}\newpage\fi\fi\fi}
\makeatother
\fancyhead{}
\fancyfoot{}
答案 1 :(得分:0)
确保章节文件是ANSI编码的而不是Unicode。我最近有使用Unicode文件的个人经验,生成奇怪的符号,在我将它们转换为ANSI后消失。