![移动页边距以便装订](https://linux22.com/image/293687/%E7%A7%BB%E5%8A%A8%E9%A1%B5%E8%BE%B9%E8%B7%9D%E4%BB%A5%E4%BE%BF%E8%A3%85%E8%AE%A2.png)
\documentclass[a4paper,12pt,openright,twoside]{book}
\usepackage[utf8]{inputenc}
\usepackage{indentfirst}
\usepackage{fancyhdr}
\usepackage{booktabs}
\pagestyle{fancy}\addtolength{\headwidth}{14pt}
\renewcommand{\chaptermark}[1]{\markboth{\thechapter.\ #1}{}}
\renewcommand{\sectionmark}[1]{\markright{\thesection \ #1}{}}
\rhead[\fancyplain{}{\bfseries\leftmark}]{\fancyplain{}{\bfseries\thepage}}
\lhead[\fancyplain{}{\bfseries\thepage}]{\fancyplain{}{\bfseries\rightmark}}
\begin{document}
我想将奇数页的左边距向右移动一点,偶数页的右边距向左移动一点。我需要在装订的两侧留出更多空间,这种配置是居中的,因此装订占用了空间,结果在视觉上不对称,难以浏览。我该怎么办?
答案1
长度\oddsidemargin
需要\evensidemargin
增加/减少。
\documentclass[a4paper,12pt,openright,twoside]{book}
\usepackage[utf8]{inputenc}
\usepackage{indentfirst}
\usepackage{fancyhdr}
\usepackage{booktabs}
\pagestyle{fancy}\addtolength{\headwidth}{14pt}
\renewcommand{\chaptermark}[1]{\markboth{\thechapter.\ #1}{}}
\renewcommand{\sectionmark}[1]{\markright{\thesection \ #1}{}}
\rhead[\fancyplain{}{\bfseries\leftmark}]{\fancyplain{}{\bfseries\thepage}}
\lhead[\fancyplain{}{\bfseries\thepage}]{\fancyplain{}{\bfseries\rightmark}}
\usepackage{lipsum}
\addtolength\oddsidemargin{1cm}
\addtolength\evensidemargin{-1cm}
\begin{document}
\lipsum[1-7]
\end{document}