首页
学习
活动
专区
圈层
工具
发布
社区首页 >问答首页 >目录中段落页码不对齐

目录中段落页码不对齐
EN

Stack Overflow用户
提问于 2020-12-10 00:58:10
回答 1查看 374关注 0票数 0

我正在使用博士学位论文.cls文件。当我创建一个段落时,TOC中的段落页码不对齐。

下面是最低限度的代码:

代码语言:javascript
复制
\documentclass[final]{USC-Thesis_Minimal}
\usepackage[lofdepth,lotdepth,caption=false]{subfig}
\begin{document}
\title{Some title}

\author{Some Name}
\major{Some Engineering}
\month{May}
\year{2019}

\setcounter{secnumdepth}{5}
\setcounter{tocdepth}{5}
\maketitle

% Table Of Contents
\cleardoublepage\phantomsection
\renewcommand{\contentsname}{Table of Contents}
\tableofcontents

% List of tables
\listoftables

% List of figures
\listoffigures

% Begin Body
\mainmatter

\chapter{Chapter 1} 
\section{A very long section, very long text section}
\subsection{A very long subsection, very long text subsection}
\subsubsection{A very long subsubsection Very long text subsubsection}
\paragraph{A long paragraph}

\end{document}

下面是cls文件的相关部分。

代码语言:javascript
复制
%Margins of Table of Contents - so that the page listings for toc do 
%not align with page number 
\cftsetrmarg{0.7in}
\newlength{\numtomarg}
\setlength{\numtomarg}{0.2in}
\renewcommand{\cftchapafterpnum}{\hspace{\numtomarg}\mbox{}}
\renewcommand{\cftsecafterpnum}{\hspace{\numtomarg}\mbox{}}
\renewcommand{\cftsubsecafterpnum}{\hspace{\numtomarg}\mbox{}}
\renewcommand{\cftsubsubsecafterpnum}{\hspace{\numtomarg}\mbox{}}
\renewcommand{\cftfigafterpnum}{\hspace{\numtomarg}\mbox{}}
\renewcommand{\cftsubfigafterpnum}{\hspace{\numtomarg}\mbox{}}
\renewcommand{\cfttabafterpnum}{\hspace{\numtomarg}\mbox{}}
\renewcommand{\cftsubtabafterpnum}{\hspace{\numtomarg}\mbox{}}

我找不到替代段落的办法。类似于:

代码语言:javascript
复制
\renewcommand{\cftparagraphafterpnum}{\hspace{\numtomarg}\mbox{}}

下面是类文件的链接。有人能帮我解决这个问题吗?

EN

回答 1

Stack Overflow用户

发布于 2020-12-10 09:40:30

使用下面的LaTeX命令完成了这个任务:

代码语言:javascript
复制
\renewcommand{\cftparaafterpnum}{\hspace{\numtomarg}\mbox{}}
票数 0
EN
页面原文内容由Stack Overflow提供。腾讯云小微IT领域专用引擎提供翻译支持
原文链接:

https://stackoverflow.com/questions/65227065

复制
相关文章

相似问题

领券
问题归档专栏文章快讯文章归档关键词归档开发者手册归档开发者手册 Section 归档