Manyfoot 边距,与 \newgeometry 冲突

Manyfoot 边距,与 \newgeometry 冲突

我需要书中某一部分的边距比其他部分更宽。(我知道这不是标准的,但这部分是对有大量边注的文本的翻译。)此外,这部分文本有多层脚注,我正在使用 manyfoot 来实现。

我尝试了多种不同的方法来使用 geometry 包的 \newgeometry 来控制边距,但是当我使用 \newgeometry 时,manyfoot 脚注不符合边距。(我还尝试使用 quoting 包来定义一个新环境,但这不起作用,因为 leftmargin 和 rightmargin 是绝对的,并且不作为内边距和外边距。我还尝试了 changepage 和 adjustwidth,但这也不起作用。)

下面是一个 MWE,显示了 manyfoot 和 \newgeometry 的问题:

\documentclass{book} 

\usepackage[para*]{manyfoot}
\newfootnote[para]{C}
\newcounter{footnoteC} 
\newcommand{\footnoteC}{%
\stepcounter{footnoteC}%
\linespread{1.2}% Set line spacing
\Footnotemark\thefootnoteC \FootnotetextC\thefootnoteC}

\newfootnote[para]{T}
\newcounter{footnoteT}
\newcommand{\footnoteT}{%
        \stepcounter{footnoteT}%
\linespread{1.2}% Set line spacing
        \Footnotemark\thefootnoteT \FootnotetextT\thefootnoteT}
     \renewcommand{\thefootnoteT}{\alph{footnoteT}}

\usepackage{geometry}
\geometry{%
inner=30mm, 
outer=40mm,
top=20mm, 
headsep=1.78mm, 
bottom=30mm
}

\usepackage{lipsum}

\begin{document}

\chapter*{Chapter 1}
%
Blah blah blah blahblah blah blahblahblah Blah blah blah blahblah blah blahblahblah Blah blah blah blahblah blah blahblahblah Blah blah blah blahblah blah blahblahblah Blah blah blah blahblah blah blahblahblah.\footnoteC{~\lipsum[35]% 
}
Blah blah blah blahblah blah blahblahblah Blah blah blah blahblah blah blahblahblah Blah blah blah blahblah blah blahblahblah Blah blah blah blahblah blah blahblahblah Blah blah blah blahblah blah blahblahblah.\footnoteT{~\lipsum[46]% 
}
\lipsum[1-2]
Blah blah blah blahblah blah blahblahblah Blah blah blah blahblah blah blahblahblah Blah blah blah blahblah blah blahblahblah Blah blah blah blahblah blah blahblahblah Blah blah blah blahblah blah blahblahblah.\footnoteT{\,~%
\lipsum[50]% 
}
%
\lipsum[78]
Blah blah blah blahblah blah blahblahblah Blah blah blah blahblah blah blahblahblah Blah blah blah blahblah blah blahblahblah Blah blah blah blahblah blah blahblahblah Blah blah blah blahblah blah blahblahblah.\footnote{~\lipsum[35]% 
}
%
\lipsum[18-19]
Blah blah blah blahblah blah blahblahblah Blah blah blah blahblah blah blahblahblah Blah blah blah blahblah blah blahblahblah Blah blah blah blahblah blah blahblahblah Blah blah blah blahblah blah blahblahblah.\footnoteC{~\lipsum[89]% 
}
\lipsum[8]

% I want to change just the outer margin and leave the inner margin the same as the rest of the book.

\globaldefs=1
\newgeometry{%
inner=30mm, %
outer=60mm% 
}
\globaldefs=0

\chapter*{Chapter 2}
Blah blah blah blahblah\footnoteC{~blahblah blah blahblahblah.% 
} 
blah blahblahblah Blah\footnoteC{~blahblah blah blahblahblah.% 
}
blah blah blahblah blah blahblahblah\footnoteC{~blahblah blah blahblahblah.% 
}
Blah blah blah blahblah blah blahblahblah Blah\footnoteC{~blahblah blah blahblahblah.% 
}
blah blah blahblah blah blahblahblah Blah blah blah blahblah blah blahblahbla.\footnoteC{~blahblah blah blahblahblah.% 
}
BlahBlah blah blah blahblah\footnoteC{~blahblah blah blahblahblah.% 
} 
blah blahblahblah Blah\footnoteC{~blahblah blah blahblahblah.% 
}
blah blah blahblah blah blahblahblah\footnoteC{~blahblah blah blahblahblah.% 
}
Blah blah blah blahblah blah blahblahblah Blah\footnoteC{~blahblah blah blahblahblah.% 
}
blah blah blahblah blah blahblahblah Blah blah blah blahblah blah blahblahblah.\footnoteC{~blahblah blah blahblahblah.% 
} 
blahblahblah.\footnoteT{~\lipsum[46]% 
}
\lipsum[1-2]
Blah blahblah\footnoteC{~blahblah blah blahblahblah.% 
} 
blah blahblahblah Blah\footnoteC{~blahblah blah blahblahblah.% 
}
blah blah blahblah blah blahblahblah\footnoteC{~blahblah blah blahblahblah.% 
}
Blah blah blah blahblah blah blahblahblah Blah\footnoteC{~blahblah blah blahblahblah.% 
}
blah blah blahblah blah blahblahblah Blah blah blah blahblah blah blahblahbla.\footnoteC{~blahblah blah blahblahblah.% 
}
BlahBlah blah blah blahblah\footnoteC{~blahblah blah blahblahblah.% 
} 
blah blahblahblah Blah\footnoteC{~blahblah blah blahblahblah.% 
}
blah blah blahblah blah blahblahblah\footnoteC{~blahblah blah blahblahblah.% 
}
Blah blah blah blahblah blah blahblahblah Blah\footnoteC{~blahblah blah blahblahblah.% 
}
 blahblahblah.\footnoteT{\,~%
\lipsum[50]% 
}
%
\lipsum[78]
Blah blah blah blahblah Blah blah blah blahblah\footnoteC{~blahblah blah blahblahblah.% 
} 
blah blahblahblah Blah\footnoteC{~blahblah blah blahblahblah.% 
}
blah blah blahblah blah blahblahblah\footnoteC{~blahblah blah blahblahblah.% 
}
Blah blah blah blahblah blah blahblahblah Blah\footnoteC{~blahblah blah blahblahblah.% 
}
blah blah blahblah blah blahblahblah Blah blah blah blahblah blah blahblahbla.\footnoteC{~blahblah blah blahblahblah.% 
}
BlahBlah blah blah blahblah\footnoteC{~blahblah blah blahblahblah.% 
} 
blah blahblahblah Blah\footnoteC{~blahblah blah blahblahblah.% 
}
blah blah blahblah blah blahblahblah\footnoteC{~blahblah blah blahblahblah.% 
}
Blah blah blah blahblah blah blahblahblah Blah\footnoteC{~blahblah blah blahblahblah.% 
}
 blahblahblah.\footnoteT{~\lipsum[35]% 
}
%
\lipsum[18] blahblah\footnoteC{~blahblah blah blahblahblah.% 
} 
blah blahblahblah Blah\footnoteC{~blahblah blah blahblahblah.% 
}
blah blah blahblah blah blahblahblah\footnoteC{~blahblah blah blahblahblah.% 
}
Blah blah blah blahblah blah blahblahblah Blah\footnoteC{~blahblah blah blahblahblah.% 
}
blah blah blahblah blah blahblahblah Blah blah blah blahblah blah blahblahbla.\footnoteC{~blahblah blah blahblahblah.% 
}
BlahBlah blah blah blahblah\footnoteC{~blahblah blah blahblahblah.% 
} 
blah blahblahblah Blah\footnoteC{~blahblah blah blahblahblah.% 
}
blah blah blahblah blah blahblahblah\footnoteC{~blahblah blah blahblahblah.% 
}
Blah blah blah blahblah blah blahblahblah Blah\footnoteC{~blahblah blah blahblahblah.% 
}
 blahblah blah blahblahblah Blah blah blah blahblah blah blahblahblah Blah blah blah blahblah blah.

\restoregeometry




\chapter*{Chapter 3}
%
Blah blah blah blahblah blah blahblahblah Blah blah blah blahblah blah blahblahblah Blah blah blah blahblah blah blahblahblah Blah blah blah blahblah blah blahblahblah Blah blah blah blahblah blah blahblahblah.\footnoteC{~\lipsum[35]% 
}
Blah blah blah blahblah blah blahblahblah Blah blah blah blahblah blah blahblahblah Blah blah blah blahblah blah blahblahblah Blah blah blah blahblah blah blahblahblah Blah blah blah blahblah blah blahblahblah.\footnoteT{~\lipsum[46]% 
}
\lipsum[1-2]
Blah blah blah blahblah blah blahblahblah Blah blah blah blahblah blah blahblahblah Blah blah blah blahblah blah blahblahblah Blah blah blah blahblah blah blahblahblah Blah blah blah blahblah blah blahblahblah.\footnoteT{\,~%
\lipsum[50]% 
}
%
\lipsum[78]
Blah blah blah blahblah blah blahblahblah Blah blah blah blahblah blah blahblahblah Blah blah blah blahblah blah blahblahblah Blah blah blah blahblah blah blahblahblah Blah blah blah blahblah blah blahblahblah.\footnote{~\lipsum[35]% 
}
%
\lipsum[18-19]
Blah blahblah blah blahblahblah Blah blah blah blahblah blah blahblahblah Blah blah blah blahblah blah blahblahblah Blah blah blah blahblah blah blahblahblah Blah blah blah blahblah blah blahblahblah.\footnoteC{~\lipsum[89]% 
}
\lipsum[8]

\end{document}

在此处输入图片描述

在此处输入图片描述

在此处输入图片描述

在此处输入图片描述

在此处输入图片描述

在此处输入图片描述

您可以看到,在奇数页上,脚注突出到外边距,但更糟糕的是,在偶数页上,脚注与外边距齐平并突出到内边距。(页眉、页脚和脚注在整本书中保持不变,只有正文的边距发生变化,这可能是可以接受的,但实际结果是完全不可接受的。)

我也尝试使用几何包编写一个新环境,如下所示:

\newenvironment{translation}
  {
  \globaldefs=1 % This has no effect
   \newgeometry{
    inner=30mm, %bindingoffset=6mm,% The inner margin is the sum of these. 
    outer=60mm
    }
   \globaldefs=0 % This has no effect
   \aftergroup
   \restoregeometry
  }

但结果与上面给出的 MWE 相同。

有人知道我该如何将新的文本宽度传递给 manyfoot 吗?或者如何使 \newgeometry 在基础级别起作用并将其参数传递给 manyfoot?请注意,geometry 包本身设置的原始边距已传递给 manyfoot,因此原则上似乎是可行的。

答案1

添加

 \makeatletter \MFL@columnwidth\columnwidth \makeatother 

当您改变几何形状来更新脚注的列宽时。

并删除\globaldefs设置,除非你控制全部代码在其范围内,但您在这里不这样做,因为\newgeometry发出 a\newpage并调用输出例程。当我尝试您的示例时,由于这个原因,我最终在辅助文件中缺少反斜杠。

相关内容