大家好。我正在使用类和 Bjornstrup 精美的章节标题输入/编辑文档memoir
。每当我尝试使用该geometry
包调整 [缩小] 页边距时,就会发生“奇怪”的事情:灰色标题的右下角(位于章节号的“后面”[找不到更好的词来形容])开始一点一点地消失。这是我重现 MWE 的尝试:
第一个是我的ruleofprayer.tex f
文件:
\documentclass[a4paper,12pt,twoside]{book}
\input{preamble}
\begin{document}
\include{chapter1}
\end{document}
然后,这是我的preamble.tex
文件:
\usepackage{lmodern}
\usepackage{geometry}
\usepackage[dvipsnames]{xcolor}
\usepackage{amssymb}
\usepackage{framed}
\usepackage{indentfirst}
\usepackage{changes}
\usepackage[Bjornstrup]{fncychap}
\usepackage[pagestyles]{titlesec}
% % % % % % % % % % % % % % % % % % % % % % % % % % % % % %
\ChNumVar{\fontsize{76}{80}\usefont{OT1}{pzc}{m}{n}\selectfont}
\ChTitleVar{\raggedleft\Huge\sffamily\bfseries}
\titleformat{\section}[display]
{\normalfont\Huge\scshape\mdseries\centering}{}{16pt}{\Large}
\titlespacing*{\section}
{0pt}{20pt}{16pt}
\titleformat{\subsection}
{\normalfont\Large\bfseries\centering}{}{1em}{}
\titlespacing*{\subsection}
{0pt}{3.25ex plus 1.0ex minus 0.2ex}{1.5ex plus 0.2ex}
\titleformat{\subsubsection}
{\normalfont\large\scshape\mdseries\centering}{}{1em}{}
\titlespacing*{\subsubsection}
{0pt}{3.25ex plus 1ex minus .2ex}{1.5ex plus .2ex}
\titlespacing{\section}{0pt}{*2}{*2}
\titlespacing{\subsection}{0pt}{*2}{*2}
% % % % % % % % % % % % % % % % % % % % % % % % % % % % % %
\geometry{
left=2.85cm,
right=2.85cm,
top=1.95cm,
bottom=2.25cm
}
% % % % % % % % % % % % % % % % % % % % % % % % % % % % % %
\newpagestyle{main}{
\headrule
\sethead[\scshape\chaptertitle][][]{}{}{\slshape\chaptertitle}
\setfoot[][\thepage][]{}{\thepage}{}
}
\pagestyle{main}
最后是简短的部分chapter1.tex
:
\chapter{Saturday Evening Prayers}
Towards evening, we stand before the holy icons (having lit a candle and maybe some incense), with reverence and fear of God; we gather our thoughts, make the Sign of the Cross, and say:
In the Name of the Father, and of the Son, and of the Holy Spirit. Amen.
\begin{framed}
From St. Thomas Sunday until Ascension, instead of \textbf{O God, cleanse me, a sinner \ldots we say:}
Christ is risen from the dead, trampling down death by death, and upon those in the tombs bestowing life.
\end{framed}
Afterwards, we collect our thoughts, and make seven prostrations (or metanoias), saying:
\section*{The Seven--Bow Beginning}
如果我保留该geometry
包(即不为其分配任何值),灰色背景会变成一个漂亮的矩形;只有当我试图“干预”几何图形并弄乱边距时,我才会遇到问题。谢谢!
我很抱歉之前没有正确拆分文件。希望这能澄清 MWE。
答案1
您遇到了排序问题:您在加载后更改了边距fncychap
,这会打乱其计算。重新排序为
\usepackage{geometry}
\geometry{
left=2.85cm,
right=2.85cm,
top=1.95cm,
bottom=2.25cm
}
\usepackage[Bjornstrup]{fncychap}
解决了这个问题。