使用下面的代码实现了中英双目录的排版,但是我想要的是目录无缩进,而英文目录的subsection存在缩进,如何设置英文目录的subsection不缩进?
makeatletter
\newcommand\engcontentsname{ \setmainfont{Arial} \bfseries \zihao{2} \centerline{Contents}}
\newcommand\tableofengcontents{%
\if@twocolumn
\@restonecoltrue\onecolumn
\else
\@restonecolfalse
\fi
\chapter{\engcontentsname
\@mkboth{%
\MakeUppercase\engcontentsname}{\MakeUppercase\engcontentsname}}%
\@starttoc{toe}% !!!!Define a new contents!!!!
\if@restonecol\twocolumn\fi
}
\newcommand\addengcontents[2]{%
\addcontentsline{toe}{#1}{\numberline {\csname the#1\endcsname}#2}}
\makeatother
\newcommand\echapter[1]{\addengcontents{chapter}{#1}}
\newcommand\esection[1]{\addengcontents{section}{#1}}
\newcommand\esubsection[1]{\addengcontents{subsection}{#1}}
是的,目录这里所有章节都不缩进,能解决吗?