我在回忆录类方面遇到了问题。目录在左侧,但我想将其移到右侧,并在左侧留出更多空白。我使用了回忆录类和选项,openright
但我不明白如何解决这个问题。
\documentclass[a4paper,11pt,titlepage,twoside,openleft]{memoir}
\usepackage[utf8x]{inputenc}
\usepackage{plain}
\usepackage{setspace}
\settrimmedsize{297mm}{210mm}{*}
\setlength{\trimtop}{0pt}
\setlength{\trimedge}{\stockwidth}
\addtolength{\trimedge}{-\paperwidth}
\settypeblocksize{634pt}{448.13pt}{*}
\setulmargins{4cm}{*}{*}
\setlrmargins{*}{*}{1.5}
\setmarginnotes{17pt}{51pt}{\onelineskip}
\setheadfoot{\onelineskip}{2\onelineskip}
\setheaderspaces{*}{2\onelineskip}{*}
\checkandfixthelayout
%
\frenchspacing
% Font with math support: New Century Schoolbook
\usepackage{fouriernc}
\usepackage[T1]{fontenc}
\OnehalfSpacing
%
% Sets numbering division level
\setsecnumdepth{subsection}
\maxsecnumdepth{subsubsection}
%
\usepackage{calc,soul,fourier}
\makeatletter
\newlength\dlf@normtxtw
\setlength\dlf@normtxtw{\textwidth}
\newsavebox{\feline@chapter}
\newcommand\feline@chapter@marker[1][4cm]{%
\sbox\feline@chapter{%
\resizebox{!}{#1}{\fboxsep=1pt%
\colorbox{gray}{\color{white}\thechapter}%
}}%
\rotatebox{90}{%
\resizebox{%
\heightof{\usebox{\feline@chapter}}+\depthof{\usebox{\feline@chapter}}}%
{!}{\scshape\so\@chapapp}}\quad%
\raisebox{\depthof{\usebox{\feline@chapter}}}{\usebox{\feline@chapter}}%
}
\newcommand\feline@chm[1][4cm]{%
\sbox\feline@chapter{\feline@chapter@marker[#1]}%
\makebox[0pt][c]{% aka \rlap
\makebox[1cm][r]{\usebox\feline@chapter}%
}}
\makechapterstyle{daleifmodif}{
\renewcommand\chapnamefont{\normalfont\Large\scshape\raggedleft\so}
\renewcommand\chaptitlefont{\normalfont\Large\bfseries\scshape}
\renewcommand\chapternamenum{} \renewcommand\printchaptername{}
\renewcommand\printchapternum{\null\hfill\feline@chm[2.5cm]\par}
\renewcommand\afterchapternum{\par\vskip\midchapskip}
\renewcommand\printchaptertitle[1]{\color{gray}\chaptitlefont\raggedleft ##1\par}
}
\makeatother
\chapterstyle{daleifmodif}
%
% The pages should be numbered consecutively at the bottom centre of the
% page.
\makepagestyle{myvf}
\makeoddfoot{myvf}{}{\thepage}{}
\makeevenfoot{myvf}{}{\thepage}{}
\makeheadrule{myvf}{\textwidth}{\normalrulethickness}
\makeevenhead{myvf}{\small\textsc{\leftmark}}{}{}
\makeoddhead{myvf}{}{}{\small\textsc{\rightmark}}
\pagestyle{myvf}
%
\newcommand{\clearemptydoublepage}{\newpage{\thispagestyle{empty}\doublepage}}
%
\makeindex
\usepackage{lipsum} \usepackage{titlesec}
\usepackage{color}
\usepackage[table]{xcolor}
\usepackage[colorlinks=true,
allcolors=black]{hyperref}
\usepackage[italian]{babel}
\begin{document}
\pagenumbering{gobble}
\begin{titlingpage}
\begin{SingleSpace}
\calccentering{\unitlength}
\begin{adjustwidth*}{\unitlength}{-\unitlength}
\begin{center}
{\Large \textit{AAA}}\\
\vspace{6 mm}
\rule[0.5ex]{\linewidth}{2pt}\vspace*{-\baselineskip}\vspace*{3.2pt}
\rule[0.5ex]{\linewidth}{1pt}\\[\baselineskip]
{\HUGE BB }\\[4mm]
{\Large \textit{AAA}}\\
\rule[0.5ex]{\linewidth}{1pt}\vspace*{-\baselineskip}\vspace{3.2pt}
\rule[0.5ex]{\linewidth}{2pt}\\
\vspace{20.5mm}
\vspace{6cm}
\begin{minipage}{0.4\textwidth}
\begin{flushleft} \large
\emph{Studente:}\\
\end{flushleft}
\end{minipage}
~
\begin{minipage}{0.4\textwidth}
\begin{flushright} \large
\emph{Docenti:} \\
\end{flushright}
\end{minipage}\\[3.5cm]
\end{center}
\begin{flushright}
{\small aa}
\end{flushright}
\end{adjustwidth*}
\end{SingleSpace}
\end{titlingpage}
\thispagestyle{empty}
\pagenumbering{roman}
% indice
\tableofcontents
\newpage
\listoffigures
\newpage
\listoftables
\newpage
\begingroup
\renewcommand{\cleardoublepage}{}
\renewcommand{\clearpage}{}
\titleformat{\chapter}
{\normalfont\Huge\bfseries}{\thechapter}{1em}{}
\titlespacing*{\chapter}{0pt}{0in}{0.2in}
\titlespacing*{\section}{0pt}{0.20in}{0.1in}
\titlespacing*{\subsection}{0pt}{0.10in}{0.02in}
\mainmatter
\chapter{1}
\lipsum[1-2]
\chapter{2}
\lipsum[2-3]
\endgroup
\end{document}
此图显示了一个问题:右侧边距太大,左侧边距太大