目录间距问题

目录间距问题

我刚刚从 Overleaf 复制了这个模板,我是一个绝对的初学者。我应该怎么做才能将章节名称与章节编号分开,这样 8 就不会卡住了?

图片:

图片

我的代码:

\documentclass[smalldemyvopaper,11pt,twoside,onecolumn,openright,extrafontsizes]{memoir}
\usepackage[utf8x]{inputenc}
\usepackage[T1]{fontenc}
\usepackage[osf]{Alegreya,AlegreyaSans}
\usepackage{microtype}
\usepackage{setspace}
\usepackage{lettrine}
\usepackage{titlesec}
\usepackage{lipsum}
\usepackage{calc}
\usepackage{hologo}
\usepackage[hidelinks]{hyperref}
\setstocksize{8.5in}{5.675in}
\settrimmedsize{8.5in}{5.5in}{*}
\setbinding{0.175in}
\setlrmarginsandblock{0.611in}{1.222in}{*}
\setulmarginsandblock{0.722in}{1.545in}{*}
\renewcommand\thechapter{\Roman{chapter}}
\titleformat
{\chapter}
[display]
{\normalfont\scshape\huge}
{\HUGE\thechapter\centering}
{0pt}
{\vspace{18pt}\centering}[\vspace{42pt}]
\setlength{\parskip}{0em}
\linespread{1.09}
\renewcommand\contentsname{\normalfont\scshape Contents}
\renewcommand\cftchapterfont{\normalfont}
\renewcommand{\cftchapterpagefont}{\normalfont}
\renewcommand{\printtoctitle}{\centering\Huge}
\checkandfixthelayout
\fixpdflayout
\begin{document}
\tableofcontents*
\chapter{1}
\chapter{1}
\chapter{1}
\chapter{1}
\chapter{1}
\chapter{1}
\chapter{1}
\chapter{1}
\chapter{1}
\end{document}

答案1

受到非常有才华的@egreg 想法的启发,我改变了章节名称和章节编号之间的距离。

在此处输入图片描述

\documentclass[smalldemyvopaper,11pt,twoside,onecolumn,openright,extrafontsizes]{memoir}
    \usepackage[utf8x]{inputenc}
    \usepackage[T1]{fontenc}
    \usepackage[osf]{Alegreya,AlegreyaSans}
    \usepackage{microtype}
    \usepackage{setspace}
    \usepackage{lettrine}
    \usepackage{titlesec}
    \usepackage{lipsum}
    \usepackage{calc}
    \usepackage{hologo}
    \usepackage[hidelinks]{hyperref}
    \setstocksize{8.5in}{5.675in}
    \settrimmedsize{8.5in}{5.5in}{*}
    \setbinding{0.175in}
    \setlrmarginsandblock{0.611in}{1.222in}{*}
    \setulmarginsandblock{0.722in}{1.545in}{*}
    \renewcommand\thechapter{\Roman{chapter}}
    \titleformat
    {\chapter}
    [display]
    {\normalfont\scshape\huge}
    {\HUGE\thechapter\centering}
    {0pt}
    {\vspace{18pt}\centering}[\vspace{42pt}]
    \setlength{\parskip}{0em}
    \linespread{1.09}
    \renewcommand\contentsname{\normalfont\scshape Contents}
    \renewcommand\cftchapterfont{\normalfont}
    \renewcommand{\cftchapterpagefont}{\normalfont}
    \renewcommand{\printtoctitle}{\centering\Huge}
    \checkandfixthelayout
    \fixpdflayout
    \usepackage{etoolbox}
    \makeatletter
    \patchcmd{\l@chapter}{1.5em}{2em}{}{}
    \makeatother
    \setlength{\cftchapternumwidth}{3em}
    \begin{document}
    \tableofcontents*
    \chapter{1}
    \chapter{1}
    \chapter{1}
    \chapter{1}
    \chapter{1}
    \chapter{1}
    \chapter{1}
    \chapter{1}
    \chapter{1}
    \end{document}

相关内容