![在回忆录文档类中设置特定边距](https://linux22.com/image/447353/%E5%9C%A8%E5%9B%9E%E5%BF%86%E5%BD%95%E6%96%87%E6%A1%A3%E7%B1%BB%E4%B8%AD%E8%AE%BE%E7%BD%AE%E7%89%B9%E5%AE%9A%E8%BE%B9%E8%B7%9D.png)
我试图获得与以下相同的效果:
\newgeometry{top=1.2in,bottom=1in,right=1in,left=1in}
在回忆录文档类中,不使用几何包。我发现的最佳解决方案是:
\setulmarginsandblock{1.2in}{1in}{*}
\setlrmarginsandblock{1in}{1in}{*}
\checkandfixthelayout
虽然这对顶部和左侧边距有效,但右侧和底部边距太大。
答案1
让我将我的评论转化为答案:
- 我不同意你的说法。回忆录页面布局的设置给出了正确的结果。
- 从您的代码片段很难看出您正在做什么以及您尝试做什么
\newgeometry{top=1.2in,bottom=1in,right=1in,left=1in}
。 - 如果您想在文档的某处更改页面布局,
memoir
请使用软件包中提供的集成工具changepage
(由同一作者编写)。
MWE 演示了memoir
页面布局设置是否按预期工作:
\documentclass[11pt]{memoir}
\setulmarginsandblock{1.2in}{1in}{*} % <---
\setlrmarginsandblock{1in}{1in}{*} % <---
\checkandfixthelayout % <---
%---------------- Show page layout. Don't use in a real document!
\usepackage{showframe}
\renewcommand\ShowFrameLinethickness{0.15pt}
\renewcommand*\ShowFrameColor{\color{red}}
%---------------------------------------------------------------%
\usepackage{lipsum}% For dummy text. Don't use in a real document
\begin{document}
\lipsum
\end{document
当然,memoir
提供远不止这些选项来设计页面布局。关于它们你应该查阅包文档:回忆录课。