LaTeX Book 文档类:调整目录中 /subsection 缩进
///'LaTeX///' 我是用 book 文档类//n//n以下是我定义的生成目录的命令//n///'//newcommand{///'content///'}[0]{//n//t///'//setcounter{tocdepth}{3}///'//n//t///'//renewcommand///'//contentsname{目录}///'//n//t///'//titlecontents{chapter}[0em]{///'//Large///'//bfseries}{///'//thecontentslabel///'//quad}{}{///'//titlerule*[8pt]{.}///'//contentspage}///'//n//t///'//titlecontents{section}[0em]{///'//bfseries}{///'//thecontentslabel///'//quad}{}{///'//titlerule*[8pt]{.}///'//contentspage}///'//n//t///'//protect///'//tableofcontents///'//n}///'//n//n但显示出来时 ///'//subsection 相较于 ///'//section 缩进的太多了, 如何调整内容:您可以使用 ///'//titlecontents 命令来调整目录中各个级别的缩进。在 ///'//titlecontents 命令的第三个参数中,可以指定每个级别的缩进量。//n//n例如,如果您希望 ///'//subsection 的缩进与 ///'//section 相同,您可以将 ///'//titlecontents{subsection} 的第三个参数设置为与 ///'//section 相同的值。以下是一个示例://n//n///'//newcommand{///'content///'}[0]{//n//t///'//setcounter{tocdepth}{3}///'//n//t///'//renewcommand///'//contentsname{目录}///'//n//t///'//titlecontents{chapter}[0em]{///'//Large///'//bfseries}{///'//thecontentslabel///'//quad}{}{///'//titlerule*[8pt]{.}///'//contentspage}///'//n//t///'//titlecontents{section}[0em]{///'//bfseries}{///'//thecontentslabel///'//quad}{}{///'//titlerule*[8pt]{.}///'//contentspage}///'//n//t///'//titlecontents{subsection}[1.5em]{///'//normalfont}{///'//thecontentslabel///'//quad}{}{///'//titlerule*[8pt]{.}///'//contentspage}///'//n//t///'//tableofcontents///'//n}///'//n//n在这个示例中,///'//titlecontents{subsection}[1.5em]{///'//normalfont}{///'//thecontentslabel///'//quad}{}{///'//titlerule*[8pt]{.}///'//contentspage} 指定了 ///'//subsection 的缩进量为 1.5em。//n//n您可以根据需要调整缩进量的数值,直到达到您期望的效果为止。
原文地址: https://www.cveoy.top/t/topic/pHim 著作权归作者所有。请勿转载和采集!