软件包 Fancyhdr 警告:\headheight 太小(41.6pt):

软件包 Fancyhdr 警告:\headheight 太小(41.6pt):

今天,我的文档出现了这个错误,它长期以来都运行正常。软件包fancyhdr警告:

\headheight is too small (41.6pt): 
Make it at least 41.61469pt.
We now make it that large for the rest of the document.
This may cause the page layout to be inconsistent, however.

我尝试更改,headheight但没有成功。除了现在,文档一直有效。我认为问题与其他问题有关?什么?我不知道。它从第 47 页开始,有时会在第 48 页或第 50 页停止,并显示警告:

Package Fancyhdr Warning: \headheight is too small (27.5pt): 
 Make it at least 41.61469pt.

当我按照要求改变头部高度时,它给了我另一个错误:

texify.exe: Permission denied: Thesis_corrected-chap-8-114.log

当我尝试删除日志文件时,我收到一条消息,提示我无法删除它,因为该文件正在被其他程序/应用程序使用。关闭它。关闭 miktex 编辑器或资源管理器没有帮助。我必须注销并重新登录才能删除日志文件。当我在编辑器中重新运行代码时,它再次在某处停止并出现几个错误,例如:

Overfull \hbox (11.48994pt too wide) in paragraph at lines 255--255
\T1/cmr/bx/n/24.88 duc-tor Ma-te-ri-al-s/-Trans-par-ent Con-
Underfull \vbox (badness 10000) has occurred while \output is active
Underfull \hbox (badness 1005) in paragraph at lines 270--270
\T1/cmr/bx/n/17.28 Ma-te-ri-als and Trans-par-ent Con-duc-tor Elec-
Overfull \hbox (13.15569pt too wide) in paragraph at lines 288--288
 [][]
Underfull \hbox (badness 1527) in paragraph at lines 325--325
[]\T1/cmr/bx/n/17.28 Transparent Con-duc-tor Ma-te-ri-al-s/-Elec-trodes
Overfull \hbox (41.95877pt too wide) in paragraph at lines 332--332
 [][]
Underfull \vbox (badness 10000) has occurred while \output is active
Underfull \vbox (badness 2828) has occurred while \output is active
Underfull \hbox (badness 10000) in paragraph at lines 365--368
Underfull \vbox (badness 1838) has occurred while \output is active

这就像一个我无法摆脱的循环:奇怪的是,几个月来我一直在写论文,每天我都会更改文档的名称,例如 thesis-manuscript50,而第二天它就变成了 -51。如果我运行以前的版本(前几天的文件),它就可以完美运行。除了在过去两天内添加/修改一个部分中的文本外,我没有做任何重大更改。当我将此文本复制到上一版本(当天)文件时,它会停止并显示 headheight 消息。我希望我说清楚了。MWE 如下所示。我希望它包含最小工作包。

\documentclass[12pt,a4paper,twoside]{book}
\usepackage{epsfig,amsmath,amssymb,epic,eepic,color,amsthm}
\usepackage{subfigure}
\usepackage{commath}
\usepackage[toc,page]{appendix}
\usepackage[frenchb,english]{babel}
\usepackage[T1]{fontenc}
\usepackage[labelfont=it, bf]{caption}
\usepackage[font=it]{caption}
\usepackage[justification=centering]{caption}
\usepackage[T1]{fontenc}

\usepackage{makeidx} 
\usepackage{showidx}
\usepackage{fancyhdr}

\usepackage[numbers]{natbib}


    \usepackage{wasysym}
    \usepackage{fancybox}

    \usepackage{rotating}


\makeatletter
\renewcommand{\chapter}
\@startsection{chapter}{0}{0mm}{3\baselineskip}{1.5\baselineskip}{\Huge\normalfont\bfseries}}
\makeatother

                \setlength{\topmargin}{-5mm} 
                \setlength{\textheight}{240mm}
                \setlength{\textwidth}{15cm}



\renewcommand{\textfraction}{0.1}                   
\renewcommand{\floatpagefraction}{0.9}      
\renewcommand{\bottomfraction}{0.7}             
\tolerance=5000                                                     

\newlength{\mytabwidth}
\newlength{\myxlengthtozero}
\newlength{\myylengthtozero}
\newcommand{\PutBottomLeft}[1]{
  \setlength{\myxlengthtozero}{0pt}
  \addtolength{\myxlengthtozero}{-3.54cm}
  \addtolength{\myxlengthtozero}{-\hoffset}
\ifthenelse{\isodd{\thepage}}{\addtolength{\myxlengthtozero}{-\oddsidemargin}}{\addtolength{\myxlengthtozero}{-\evensidemargin}}%
  \setlength{\myylengthtozero}{\paperheight}
  \addtolength{\myylengthtozero}{-1in}
  \addtolength{\myylengthtozero}{-\voffset}
  \addtolength{\myylengthtozero}{-\topmargin}
  \addtolength{\myylengthtozero}{-\headheight}
  \addtolength{\myylengthtozero}{-\headsep}
  \addtolength{\myylengthtozero}{-\topskip}
  \makebox[0pt][r]{\makebox[-\myxlengthtozero][l]{
  \raisebox{-\myylengthtozero}[0pt][0pt]{#1}}}}


\pagestyle{fancy}

    \setlength{\headheight}{41.6257pt}
    \setlength{\headwidth}{\textwidth}

        \lhead[\thepage] {\rightmark}
        \rhead[\leftmark] {\thepage}
        \lfoot[]{}
        \cfoot[]{}
        \rfoot[]{}

\linespread{1.5}

\setcounter{tocdepth}{7}            
\setcounter{secnumdepth}{7}         


\begin{document}

如果你们能帮助我摆脱这种困境,我将不胜感激。我刚从朋友那里拿了 MWE 文件,他教了我一些基本的东西(在他离开工作之前),我继续边做边学,但我仍然认为我并不擅长。遗憾的是,这可能从描述/代码中可以看出来:( 提前谢谢,Azhar

相关内容