警告“命令 \@makecol 已改变。”

警告“命令 \@makecol 已改变。”

当我编译我的文档时,我收到以下警告Command \@makecol has changed.

TexStudio 指向文件footmisc.sty。当然,我尝试安装其最新版本(2011/06/06 v5.5b),但问题仍然存在 :(

梅威瑟:

\documentclass[12pt,a4paper]{article}
\usepackage[utf8]{inputenc}

\usepackage{fancyhdr}
\usepackage[bottom,hang]{footmisc}
\usepackage[T1]{fontenc}

\begin{document}
mediante DHCP\footnote{Se puede obtener más información sobre esta utilidad en el documento anexo Guía de usuario de Xen: Instalación, configuración y primeros pasos}

\end{document}

我已经看到,通过重新排序fancyhdrfootmisc句子,警告不会出现,但仍然不确定是否没有错误,或者只是fancyhdr检查得不好。

答案1

footmisc对 进行修补\@makecol。然而,在执行此操作之前,它会检查以确保其定义符合编写 时的定义footmisc包实现(部分5.1 输出例程,第 12 页)提及:

首先,我们要确保\@makecol这些宏在编写时符合预期:既然我们要修补它,我们最好确保修补的是正确的东西。(对 1999 年的定义进行了微小的更改,但据我所知,这不会对我们基于其进行修补的定义的语义产生任何影响。)

确实如此,fancyhdr更新定义:

\let\latex@makecol\@makecol
\def\@makecol{\ifvoid\footins\footnotetrue\else\footnotefalse\fi
\let\topfloat\@toplist\let\botfloat\@botlist\latex@makecol}

在其前面添加一些信息。因此,切换加载顺序就可以了,允许在再次更新其定义footmisc之前执行必要的修补:fancyhdr

\usepackage[..]{footmisc}% http://ctan.org/pkg/footmisc
\usepackage{fancyhdr}% http://ctan.org/pkg/fancyhdr

相关内容