“空白页”每章后面都有一个奇怪的符号,我怎样才能摆脱它?

发布于 2024-10-01 08:34:08 字数 128 浏览 3 评论 0原文

我用的是Latex,文档类是book。每章之后都有一页,有页头和页脚,上面还有一个奇怪的符号,其余都是空白。然后在该页面之后生成一个正常的空白页面。有没有人遇到过这样的问题?我怎样才能摆脱这个“非空白”的空白页? 非常感谢并致以最美好的祝愿!

I use Latex, document class is book. After each chapter, there is a page with page head and foot, and also a strange symbol on it, and the rest is blank. Then after this page a normal blank page is generated. Has anyone ever encountered such problem? How can I get rid of this "non-blank" blank page?
Thank you very much and best wishes!

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(2

败给现实 2024-10-08 08:34:08

我遇到了类似的问题,发现它取决于我所拥有的软件包的组合以及初始化命令的执行顺序。我附上了我的正常标题。唯一的非标准部分是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{}

I have had a similar problem, and found that it depended on the mix of packages I had, and the order in which initialisation commands were made. I enclose my normal header. The only non-standard part is partpg which does for chapters what chappg does for chapters.

\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{}
左耳近心 2024-10-08 08:34:08

确保您的章节文件是 ANSI 编码而不是 Unicode。我最近有过这样的经历:Unicode 文件生成奇怪的符号,这些符号在我将它们转换为 ANSI 后消失。

Make sure your chapter files are ANSI-encoded instead of Unicode. I have recent personal experience with Unicode files generating weird symbols that disappear after I convert them to ANSI.

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文