\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}